pwa.php 967 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Module Name: Progressive Web Apps
  4. * Module Description: Speed up and improve the reliability of your site using the latest in web technology.
  5. * Sort Order: 38
  6. * Recommendation Order: 18
  7. * First Introduced: 5.6.0
  8. * Requires Connection: Yes
  9. * Auto Activate: No
  10. * Module Tags: Developers
  11. * Feature: Traffic
  12. * Additional Search Queries: manifest, pwa, progressive
  13. */
  14. require_once ( JETPACK__PLUGIN_DIR . 'modules/pwa/class.jetpack-pwa-helpers.php' );
  15. require_once ( JETPACK__PLUGIN_DIR . 'modules/pwa/class.jetpack-pwa-manifest.php' );
  16. class Jetpack_PWA {
  17. /**
  18. * @var Jetpack_PWA
  19. */
  20. private static $__instance = null;
  21. /**
  22. * Singleton implementation
  23. *
  24. * @return Jetpack_PWA
  25. */
  26. public static function instance() {
  27. if ( is_null( self::$__instance ) ) {
  28. self::$__instance = new Jetpack_PWA;
  29. }
  30. return self::$__instance;
  31. }
  32. private function __construct() {
  33. Jetpack_PWA_Manifest::instance();
  34. }
  35. }
  36. Jetpack_PWA::instance();