summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/pwa.php')
-rw-r--r--plugins/jetpack/modules/pwa.php42
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();