| 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 |
|
| 15 |
require_once ( JETPACK__PLUGIN_DIR . 'modules/pwa/class.jetpack-pwa-helpers.php' ); |
| 16 |
require_once ( JETPACK__PLUGIN_DIR . 'modules/pwa/class.jetpack-pwa-manifest.php' ); |
| 17 |
|
| 18 |
class Jetpack_PWA { |
| 19 |
/** |
| 20 |
* @var Jetpack_PWA |
| 21 |
*/ |
| 22 |
private static $__instance = null; |
| 23 |
|
| 24 |
/** |
| 25 |
* Singleton implementation |
| 26 |
* |
| 27 |
* @return Jetpack_PWA |
| 28 |
*/ |
| 29 |
public static function instance() { |
| 30 |
if ( is_null( self::$__instance ) ) { |
| 31 |
self::$__instance = new Jetpack_PWA; |
| 32 |
} |
| 33 |
|
| 34 |
return self::$__instance; |
| 35 |
} |
| 36 |
|
| 37 |
private function __construct() { |
| 38 |
Jetpack_PWA_Manifest::instance(); |
| 39 |
} |
| 40 |
} |
| 41 |
|
| 42 |
Jetpack_PWA::instance(); |
| 43 |
|