diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2017-12-12 20:29:44 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2017-12-12 20:29:55 -0500 |
commit | 73ce9c10188ce4f5014c97ad4c0f8c9f69410113 (patch) | |
tree | ac0b7b2f7cb14a145e2308d705033f89cebc736d /plugins/jetpack/modules/pwa.php | |
parent | Update wordpress-mobile-pack 3.2 (diff) | |
download | blogs-gentoo-73ce9c10188ce4f5014c97ad4c0f8c9f69410113.tar.gz blogs-gentoo-73ce9c10188ce4f5014c97ad4c0f8c9f69410113.tar.bz2 blogs-gentoo-73ce9c10188ce4f5014c97ad4c0f8c9f69410113.zip |
Update jetpack 5.6
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/modules/pwa.php')
-rw-r--r-- | plugins/jetpack/modules/pwa.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/pwa.php b/plugins/jetpack/modules/pwa.php new file mode 100644 index 00000000..b5e5e6a2 --- /dev/null +++ b/plugins/jetpack/modules/pwa.php @@ -0,0 +1,42 @@ +<?php +/** + * Module Name: Progressive Web Apps + * Module Description: Speed up and improve the reliability of your site using the latest in web technology. + * Sort Order: 38 + * Recommendation Order: 18 + * First Introduced: 5.6.0 + * Requires Connection: Yes + * Auto Activate: No + * Module Tags: Developers + * Feature: Traffic + * Additional Search Queries: manifest, pwa, progressive + */ + +require_once ( JETPACK__PLUGIN_DIR . 'modules/pwa/class.jetpack-pwa-helpers.php' ); +require_once ( JETPACK__PLUGIN_DIR . 'modules/pwa/class.jetpack-pwa-manifest.php' ); + +class Jetpack_PWA { + /** + * @var Jetpack_PWA + */ + private static $__instance = null; + + /** + * Singleton implementation + * + * @return Jetpack_PWA + */ + public static function instance() { + if ( is_null( self::$__instance ) ) { + self::$__instance = new Jetpack_PWA; + } + + return self::$__instance; + } + + private function __construct() { + Jetpack_PWA_Manifest::instance(); + } +} + +Jetpack_PWA::instance(); |