Super Progressive Web Apps - Version 1.9

Version Description

  • Date: 25.July.2018
  • Tested with WordPress 4.9.7.
  • Enhancement: Added compatibility with Google Chrome 68 Mini Info-Bar.
  • Enhancement: Added support for tagDiv AMP Plugin which ships with Newspaper theme and Newsmag theme. If you use this theme, you can now use AMP version of the start page.
  • Enhancement: Added support for images in offline page. Images added to offline page are now cached during service worker activation.
  • Enhancement: Improved the service worker installation routine to handle invalid entities in the service worker dependencies.
  • Enhancement: SuperPWA is now translated to French, thanks to @romainvincent and Spanish, thanks to @arkangel.
  • Bug Fix: Fixed issue where translation files in /languages/ folder was not being loaded.
Download this release

Release Info

Developer arunbasillal
Plugin Icon 128x128 Super Progressive Web Apps
Version 1.9
Comparing to
See all releases

Code changes from version 1.8.1 to 1.9

README.MD CHANGED
@@ -11,7 +11,7 @@
11
  </p>
12
 
13
  <p align="center">
14
- <a href="https://superpwa.com/?utm_source=GitHub&utm_medium=SuperPWALogo">
15
  <img src="https://pbs.twimg.com/profile_images/975224418543681536/X9-CESOD_400x400.jpg" alt="Super Progressive Web Apps" width=175 height=175>
16
  </a>
17
 
@@ -21,7 +21,7 @@
21
  SuperPWA helps to convert your WordPress website into Progressive Web Apps easily.
22
  <br>
23
  <br>
24
- <a href="https://superpwa.com/?utm_source=GitHub&utm_medium=readme-viewWeb"><strong>Visit Website »</strong></a>
25
  <br>
26
  <br>
27
  <a href="https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/new?template=bug.md">Report bug</a>
@@ -38,7 +38,7 @@
38
 
39
 
40
  <p align="center">
41
- <a href="https://superpwa.com">
42
  <img src="https://lighthouse-badge.appspot.com?score=100" alt="LightHouse Score">
43
  </a>
44
  <a href="https://wordpress.org/plugins/super-progressive-web-apps/">
@@ -57,14 +57,14 @@
57
 
58
  ## Welcome to the Super PWA GitHub repository
59
 
60
- ⚡️ Demo : <a href="https://superpwa.com/?utm_source=GitHub&utm_medium=readme-welcome">superpwa.com</a>
61
 
62
  ## What is Progressive Web Apps
63
  Progressive Web Apps (PWA) is a new technology that creates a middle ground between a website and a mobile app. They are installed on the phone like a normal app (web app) and can be accessed from the home screen.
64
 
65
  Users can come back to your website by launching the app from their home screen and interact with your website through an app-like interface. Your return visitors will experience almost-instant loading times and enjoy the great performance benefits of your PWA!
66
 
67
- <a href="https://superpwa.com?utm_source=github&utm_medium=readme-what-is-pwa">Super Progressive Web Apps</a> makes it easy for you to convert your WordPress website into a Progressive Web App easily!
68
 
69
  ## ⭐ Support the project
70
  If you feel super excited and want to support us in a small way, please consider starring and/or sharing the repo! This helps us getting known and grow the community.
@@ -80,6 +80,13 @@ SuperPWA is easy to configure, it takes less than a minute to set-up your Progre
80
 
81
  ### 💡 Progressive Web App Minimum Requirments
82
  - [x] Progressive Web Apps require that your WordPress website is served from a secure origin i.e. your website should be HTTPS and not HTTP. If your website isn’t HTTPS, please contact your host about it. You can also ask us [Support Forums](https://wordpress.org/support/plugin/super-progressive-web-apps) if you need help.
 
 
 
 
 
 
 
83
 
84
  #### 📦 What's in the box
85
 
@@ -103,9 +110,9 @@ Here are the current features of Super Progressive Web Apps:
103
  * New in version 1.4: You can now set the theme_color property in the manifest.
104
  * New in version 1.5: OneSignal integration for Push notifications.
105
  * New in version 1.6: WordPress Multisite Network compatibility.
106
- * New in version 1.7: Add-Ons for SuperPWA is here! Ships with [UTM Tracking Add-On](https://superpwa.com/addons/utm-tracking/?utm_source=github&utm_medium=readme-version) to track visits coming from your PWA.
107
  * New in version 1.8: Compatibility issues with OneSignal are now resolved!
108
- * New in version 1.8: New Add-On: [Apple Touch Icons](https://superpwa.com/addons/apple-touch-icons/?utm_source=github&utm_medium=readme-version) that sets your app icons as Apple Touch Icons.
109
 
110
  #### 🔮 Upcoming features:
111
  * Offline Indicator Notice.
@@ -196,7 +203,7 @@ There are various ways you can contribute:
196
  * [Raise an issue](https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues) on GitHub.
197
  * Follow and Engage with us on Social Media
198
 
199
- &nbsp;&nbsp;&nbsp; <a href="https://twitter.com/SuperPWA" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174876.svg" title="Follow SuperPWA on Twitter" width=35 height=35></a>&nbsp;&nbsp;&nbsp;&nbsp;
200
  <a href="https://www.youtube.com/channel/UCMFlNeutNCwTNls186moUUA" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174883.svg" title="Follow SuperPWA on YouTube" width=35 height=35></a>&nbsp;&nbsp;&nbsp;&nbsp;
201
  <a href="https://www.facebook.com/SuperPWA/" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174848.svg" title="Follow SuperPWA on Facebook" width=35 height=35></a>&nbsp;&nbsp;&nbsp;&nbsp;
202
  <a href="https://www.instagram.com/superpwa/" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174855.svg" title="Follow SuperPWA on Instagram" width=35 height=35></a>&nbsp;&nbsp;&nbsp;&nbsp;
@@ -210,6 +217,9 @@ There are various ways you can contribute:
210
  <p> &nbsp;&nbsp;&nbsp; <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A//github.com/SuperPWA/Super-Progressive-Web-Apps/" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174848.svg" title="Follow SuperPWA on Facebook" width=20 height=20> Share on Facebook </a>&nbsp;&nbsp;&nbsp;&nbsp;</p>
211
  <p> &nbsp;&nbsp;&nbsp; <a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A//github.com/SuperPWA/Super-Progressive-Web-Apps/&title=Super%20Progressive%20Web%20Apps&summary=Super%20Progressive%20Web%20Apps%20helps%20to%20convert%20your%20WordPress%20website%20into%20PWA%20%23SuperPWA&source=GitHub" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174857.svg" title="Share SuperPWA on LinkedIn" width=20 height=20> Share on LinkedIn</a>&nbsp;&nbsp;&nbsp;&nbsp;</p>
212
  <p> &nbsp;&nbsp;&nbsp; <a href="https://plus.google.com/share?url=https%3A//github.com/SuperPWA/Super-Progressive-Web-Apps/" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174851.svg" title="Share on Google+" width=20 height=20> Share on Google+ </a>&nbsp;&nbsp;&nbsp;&nbsp;</p>
 
 
 
213
 
214
  Emoji Credits : [Emojipedia](emojipedia.org)
215
  Social Media Icon Credits : [Flaticon](flaticon.com)
11
  </p>
12
 
13
  <p align="center">
14
+ <a href="https://superpwa.com/?utm_source=GitHub&utm_medium=Readme-SuperPWALogo">
15
  <img src="https://pbs.twimg.com/profile_images/975224418543681536/X9-CESOD_400x400.jpg" alt="Super Progressive Web Apps" width=175 height=175>
16
  </a>
17
 
21
  SuperPWA helps to convert your WordPress website into Progressive Web Apps easily.
22
  <br>
23
  <br>
24
+ <a href="https://superpwa.com/?utm_source=GitHub&utm_medium=Readme-viewWeb"><strong>Visit Website »</strong></a>
25
  <br>
26
  <br>
27
  <a href="https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/new?template=bug.md">Report bug</a>
38
 
39
 
40
  <p align="center">
41
+ <a href="https://superpwa.com/?utm_source=GitHub&utm_medium=Readme-LighthouseScore">
42
  <img src="https://lighthouse-badge.appspot.com?score=100" alt="LightHouse Score">
43
  </a>
44
  <a href="https://wordpress.org/plugins/super-progressive-web-apps/">
57
 
58
  ## Welcome to the Super PWA GitHub repository
59
 
60
+ ⚡️ Demo : <a href="https://superpwa.com/?utm_source=GitHub&utm_medium=Readme-WelcomeDemo">superpwa.com</a> [Check Video's to know how it works](#videos-on-how-add-to-home-screen--progressive-web-apps-works-on-different-browsers)
61
 
62
  ## What is Progressive Web Apps
63
  Progressive Web Apps (PWA) is a new technology that creates a middle ground between a website and a mobile app. They are installed on the phone like a normal app (web app) and can be accessed from the home screen.
64
 
65
  Users can come back to your website by launching the app from their home screen and interact with your website through an app-like interface. Your return visitors will experience almost-instant loading times and enjoy the great performance benefits of your PWA!
66
 
67
+ <a href="https://superpwa.com?utm_source=github&utm_medium=Readme-what-is-pwa">Super Progressive Web Apps</a> makes it easy for you to convert your WordPress website into a Progressive Web App easily!
68
 
69
  ## ⭐ Support the project
70
  If you feel super excited and want to support us in a small way, please consider starring and/or sharing the repo! This helps us getting known and grow the community.
80
 
81
  ### 💡 Progressive Web App Minimum Requirments
82
  - [x] Progressive Web Apps require that your WordPress website is served from a secure origin i.e. your website should be HTTPS and not HTTP. If your website isn’t HTTPS, please contact your host about it. You can also ask us [Support Forums](https://wordpress.org/support/plugin/super-progressive-web-apps) if you need help.
83
+ </br>
84
+
85
+ ##### Videos on How Add to Home Screen & Progressive Web Apps works on Different Browsers
86
+
87
+ |<a href="https://www.youtube.com/watch?v=n3TjhNblvqs"><img src="http://i3.ytimg.com/vi/n3TjhNblvqs/maxresdefault.jpg" alt="Google Chrome for Android"/> </br>📽️ Google Chrome for Android| <a href="https://www.youtube.com/watch?v=9v4RwahRQFU"><img src="http://i3.ytimg.com/vi/9v4RwahRQFU/maxresdefault.jpg" alt="Mozilla Firefox for Android" /> </br>📽️ Mozilla Firefox for Android | <a href="https://www.youtube.com/watch?v=V8-AdKxm134"><img src="http://i3.ytimg.com/vi/V8-AdKxm134/maxresdefault.jpg" alt="Microsoft Edge for Android"/> </br>📽️ Microsoft Edge for Android | <a href="https://www.youtube.com/watch?v=Sbhgb6_QKfQ"><img src="http://i3.ytimg.com/vi/Sbhgb6_QKfQ/maxresdefault.jpg" alt="Samung Internet for Android "/> </br>📽️ Samung Internet for Android |
88
+ | :---------: | :---------: | :---------: | :---------: |
89
+ </br>
90
 
91
  #### 📦 What's in the box
92
 
110
  * New in version 1.4: You can now set the theme_color property in the manifest.
111
  * New in version 1.5: OneSignal integration for Push notifications.
112
  * New in version 1.6: WordPress Multisite Network compatibility.
113
+ * New in version 1.7: Add-Ons for SuperPWA is here! Ships with [UTM Tracking Add-On](https://superpwa.com/addons/utm-tracking/?utm_source=GitHub&utm_medium=Readme-version) to track visits coming from your PWA.
114
  * New in version 1.8: Compatibility issues with OneSignal are now resolved!
115
+ * New in version 1.8: New Add-On: [Apple Touch Icons](https://superpwa.com/addons/apple-touch-icons/?utm_source=GitHub&utm_medium=Readme-version) that sets your app icons as Apple Touch Icons.
116
 
117
  #### 🔮 Upcoming features:
118
  * Offline Indicator Notice.
203
  * [Raise an issue](https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues) on GitHub.
204
  * Follow and Engage with us on Social Media
205
 
206
+ &nbsp;&nbsp;&nbsp; <a href="https://twitter.com/intent/follow?screen_name=superpwa" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174876.svg" title="Follow SuperPWA on Twitter" width=35 height=35></a>&nbsp;&nbsp;&nbsp;&nbsp;
207
  <a href="https://www.youtube.com/channel/UCMFlNeutNCwTNls186moUUA" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174883.svg" title="Follow SuperPWA on YouTube" width=35 height=35></a>&nbsp;&nbsp;&nbsp;&nbsp;
208
  <a href="https://www.facebook.com/SuperPWA/" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174848.svg" title="Follow SuperPWA on Facebook" width=35 height=35></a>&nbsp;&nbsp;&nbsp;&nbsp;
209
  <a href="https://www.instagram.com/superpwa/" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174855.svg" title="Follow SuperPWA on Instagram" width=35 height=35></a>&nbsp;&nbsp;&nbsp;&nbsp;
217
  <p> &nbsp;&nbsp;&nbsp; <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A//github.com/SuperPWA/Super-Progressive-Web-Apps/" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174848.svg" title="Follow SuperPWA on Facebook" width=20 height=20> Share on Facebook </a>&nbsp;&nbsp;&nbsp;&nbsp;</p>
218
  <p> &nbsp;&nbsp;&nbsp; <a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A//github.com/SuperPWA/Super-Progressive-Web-Apps/&title=Super%20Progressive%20Web%20Apps&summary=Super%20Progressive%20Web%20Apps%20helps%20to%20convert%20your%20WordPress%20website%20into%20PWA%20%23SuperPWA&source=GitHub" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174857.svg" title="Share SuperPWA on LinkedIn" width=20 height=20> Share on LinkedIn</a>&nbsp;&nbsp;&nbsp;&nbsp;</p>
219
  <p> &nbsp;&nbsp;&nbsp; <a href="https://plus.google.com/share?url=https%3A//github.com/SuperPWA/Super-Progressive-Web-Apps/" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174851.svg" title="Share on Google+" width=20 height=20> Share on Google+ </a>&nbsp;&nbsp;&nbsp;&nbsp;</p>
220
+
221
+ ## 📇 Changelog
222
+ [superpwa.com/changelog/](https://superpwa.com/changelog/?utm_source=GitHub&utm_medium=Readme-Changelog).
223
 
224
  Emoji Credits : [Emojipedia](emojipedia.org)
225
  Social Media Icon Credits : [Flaticon](flaticon.com)
admin/admin-ui-render-settings.php CHANGED
@@ -101,7 +101,7 @@ function superpwa_app_icon_cb() {
101
  <!-- Application Icon -->
102
  <input type="text" name="superpwa_settings[icon]" id="superpwa_settings[icon]" class="superpwa-icon regular-text" size="50" value="<?php echo isset( $settings['icon'] ) ? esc_attr( $settings['icon']) : ''; ?>">
103
  <button type="button" class="button superpwa-icon-upload" data-editor="content">
104
- <span class="dashicons dashicons-format-image" style="margin-top: 4px;"></span> Choose Icon
105
  </button>
106
 
107
  <p class="description">
@@ -124,7 +124,7 @@ function superpwa_splash_icon_cb() {
124
  <!-- Splash Screen Icon -->
125
  <input type="text" name="superpwa_settings[splash_icon]" id="superpwa_settings[splash_icon]" class="superpwa-splash-icon regular-text" size="50" value="<?php echo isset( $settings['splash_icon'] ) ? esc_attr( $settings['splash_icon']) : ''; ?>">
126
  <button type="button" class="button superpwa-splash-icon-upload" data-editor="content">
127
- <span class="dashicons dashicons-format-image" style="margin-top: 4px;"></span> Choose Icon
128
  </button>
129
 
130
  <p class="description">
@@ -210,11 +210,25 @@ function superpwa_start_url_cb() {
210
  <br>
211
 
212
  <!-- AMP for WordPress 0.6.2 doesn't support homepage, the blog index, and archive pages. -->
213
- <?php if ( function_exists( 'amp_init' ) ) { ?>
214
  <p class="description">
215
  <?php _e( 'Do not check this if your start page is the homepage, the blog index, or the archives page. AMP for WordPress does not create AMP versions for these pages.', 'super-progressive-web-apps' ); ?>
216
  </p>
217
  <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
 
219
  <?php } ?>
220
 
101
  <!-- Application Icon -->
102
  <input type="text" name="superpwa_settings[icon]" id="superpwa_settings[icon]" class="superpwa-icon regular-text" size="50" value="<?php echo isset( $settings['icon'] ) ? esc_attr( $settings['icon']) : ''; ?>">
103
  <button type="button" class="button superpwa-icon-upload" data-editor="content">
104
+ <span class="dashicons dashicons-format-image" style="margin-top: 4px;"></span> <?php _e( 'Choose Icon', 'super-progressive-web-apps' ); ?>
105
  </button>
106
 
107
  <p class="description">
124
  <!-- Splash Screen Icon -->
125
  <input type="text" name="superpwa_settings[splash_icon]" id="superpwa_settings[splash_icon]" class="superpwa-splash-icon regular-text" size="50" value="<?php echo isset( $settings['splash_icon'] ) ? esc_attr( $settings['splash_icon']) : ''; ?>">
126
  <button type="button" class="button superpwa-splash-icon-upload" data-editor="content">
127
+ <span class="dashicons dashicons-format-image" style="margin-top: 4px;"></span> <?php _e( 'Choose Icon', 'super-progressive-web-apps' ); ?>
128
  </button>
129
 
130
  <p class="description">
210
  <br>
211
 
212
  <!-- AMP for WordPress 0.6.2 doesn't support homepage, the blog index, and archive pages. -->
213
+ <?php if ( is_plugin_active( 'amp/amp.php' ) ) { ?>
214
  <p class="description">
215
  <?php _e( 'Do not check this if your start page is the homepage, the blog index, or the archives page. AMP for WordPress does not create AMP versions for these pages.', 'super-progressive-web-apps' ); ?>
216
  </p>
217
  <?php } ?>
218
+
219
+ <!-- tagDiv AMP 1.2 doesn't enable AMP for pages by default and needs to be enabled manually in settings -->
220
+ <?php if ( is_plugin_active( 'td-amp/td-amp.php' ) && method_exists( 'td_util', 'get_option' ) ) {
221
+
222
+ // Read option value from db
223
+ $td_amp_page_post_type = td_util::get_option( 'tds_amp_post_type_page' );
224
+
225
+ // Show notice if option to enable AMP for pages is disabled.
226
+ if ( empty( $td_amp_page_post_type ) ) { ?>
227
+ <p class="description">
228
+ <?php printf( __( 'Please enable AMP support for Page in <a href="%s">Theme Settings > Theme Panel</a> > AMP > Post Type Support.', 'super-progressive-web-apps' ), admin_url( 'admin.php?page=td_theme_panel' ) ); ?>
229
+ </p>
230
+ <?php }
231
+ } ?>
232
 
233
  <?php } ?>
234
 
admin/basic-setup.php CHANGED
@@ -262,8 +262,7 @@ register_deactivation_hook( SUPERPWA_PATH_ABS . 'superpwa.php', 'superpwa_deacti
262
  * @since 1.0
263
  */
264
  function superpwa_load_plugin_textdomain() {
265
-
266
- load_plugin_textdomain( 'super-progressive-web-apps', FALSE, SUPERPWA_PATH_ABS . '/languages/' );
267
  }
268
  add_action( 'plugins_loaded', 'superpwa_load_plugin_textdomain' );
269
 
262
  * @since 1.0
263
  */
264
  function superpwa_load_plugin_textdomain() {
265
+ load_plugin_textdomain( 'super-progressive-web-apps', false, '/super-progressive-web-apps/languages/' );
 
266
  }
267
  add_action( 'plugins_loaded', 'superpwa_load_plugin_textdomain' );
268
 
functions/common.php CHANGED
@@ -19,34 +19,40 @@ if ( ! defined( 'ABSPATH' ) ) exit;
19
  * @return (string|bool) AMP page url on success, false otherwise
20
  *
21
  * @since 1.2
 
22
  */
23
  function superpwa_is_amp() {
24
 
25
  // AMP for WordPress - https://wordpress.org/plugins/amp
26
- if ( function_exists( 'amp_init' ) ) {
27
  return defined( 'AMP_QUERY_VAR' ) ? AMP_QUERY_VAR . '/' : 'amp/';
28
  }
29
 
30
  // AMP for WP - https://wordpress.org/plugins/accelerated-mobile-pages/
31
- if ( function_exists( 'ampforwp_generate_endpoint' ) ) {
32
  return defined( 'AMPFORWP_AMP_QUERY_VAR' ) ? AMPFORWP_AMP_QUERY_VAR . '/' : 'amp/';
33
  }
34
 
35
  // Better AMP � https://wordpress.org/plugins/better-amp/
36
- if ( class_exists( 'Better_AMP' ) ) {
37
  return 'amp/';
38
  }
39
 
40
  // AMP Supremacy - https://wordpress.org/plugins/amp-supremacy/
41
- if ( class_exists( 'AMP_Init' ) ) {
42
  return 'amp/';
43
  }
44
 
45
  // WP AMP - https://wordpress.org/plugins/wp-amp-ninja/
46
- if ( function_exists( 'wpamp_init' ) ) {
47
  return '?wpamp';
48
  }
49
 
 
 
 
 
 
50
  return false;
51
  }
52
 
19
  * @return (string|bool) AMP page url on success, false otherwise
20
  *
21
  * @since 1.2
22
+ * @since 1.9 Added support for tagDiv AMP
23
  */
24
  function superpwa_is_amp() {
25
 
26
  // AMP for WordPress - https://wordpress.org/plugins/amp
27
+ if ( is_plugin_active( 'amp/amp.php' ) ) {
28
  return defined( 'AMP_QUERY_VAR' ) ? AMP_QUERY_VAR . '/' : 'amp/';
29
  }
30
 
31
  // AMP for WP - https://wordpress.org/plugins/accelerated-mobile-pages/
32
+ if ( is_plugin_active( 'accelerated-mobile-pages/accelerated-moblie-pages.php' ) ) {
33
  return defined( 'AMPFORWP_AMP_QUERY_VAR' ) ? AMPFORWP_AMP_QUERY_VAR . '/' : 'amp/';
34
  }
35
 
36
  // Better AMP � https://wordpress.org/plugins/better-amp/
37
+ if ( is_plugin_active( 'better-amp/better-amp.php' ) ) {
38
  return 'amp/';
39
  }
40
 
41
  // AMP Supremacy - https://wordpress.org/plugins/amp-supremacy/
42
+ if ( is_plugin_active( 'amp-supremacy/amp-supremacy.php' ) ) {
43
  return 'amp/';
44
  }
45
 
46
  // WP AMP - https://wordpress.org/plugins/wp-amp-ninja/
47
+ if ( is_plugin_active( 'wp-amp-ninja/wp-amp-ninja.php' ) ) {
48
  return '?wpamp';
49
  }
50
 
51
+ // tagDiv AMP - http://forum.tagdiv.com/tagdiv-amp/
52
+ if ( is_plugin_active( 'td-amp/td-amp.php' ) ) {
53
+ return defined( 'AMP_QUERY_VAR' ) ? AMP_QUERY_VAR . '/' : 'amp/';
54
+ }
55
+
56
  return false;
57
  }
58
 
languages/super-progressive-web-apps-fr_FR.mo ADDED
Binary file
languages/super-progressive-web-apps-fr_FR.po ADDED
@@ -0,0 +1,480 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2018 Super Progressive Web Apps
2
+ # This file is distributed under the same license as the Super Progressive Web Apps package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Super Progressive Web Apps 1.8\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/super-progressive-"
7
+ "web-apps\n"
8
+ "POT-Creation-Date: 2018-06-11 15:50:32+00:00\n"
9
+ "PO-Revision-Date: 2018-06-11 21:30+0530\n"
10
+ "Last-Translator: WP Media <contact@wp-rocket.me>\n"
11
+ "Language-Team: \n"
12
+ "Language: fr_FR\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "X-Generator: Poedit 2.0.8\n"
17
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
+
19
+ #: 3rd-party/onesignal.php:190
20
+ msgid ""
21
+ "<strong>SuperPWA</strong> is not compatible with OneSignal on multisites "
22
+ "yet. Disable one of these plugins until the compatibility is available."
23
+ "<br>Please refer to the <a href=\"%s\" target=\"_blank\">OneSignal "
24
+ "integration documentation</a> for more info. "
25
+ msgstr ""
26
+
27
+ #: 3rd-party/onesignal.php:212
28
+ msgid ""
29
+ "<strong>Action Required to integrate SuperPWA with OneSignal:</strong><br>1. "
30
+ "Go to <a href=\"%s\" target=\"_blank\">OneSignal Configuration > Scroll down "
31
+ "to Advanced Settings &rarr;</a><br>2. Enable <strong>Use my own manifest."
32
+ "json</strong><br>3. Set <code>%s</code>as <strong>Custom manifest.json URL</"
33
+ "strong> and Save Settings.<br>Please refer the <a href=\"%s\" target=\"_blank"
34
+ "\">OneSignal integration documentation</a> for more info. "
35
+ msgstr ""
36
+
37
+ #. Plugin Name of the plugin/theme
38
+ #: addons/utm-tracking.php:35 admin/admin-ui-setup.php:28
39
+ #: admin/admin-ui-setup.php:31 admin/admin-ui-setup.php:34
40
+ msgid "Super Progressive Web Apps"
41
+ msgstr "Super Progressive Web Apps"
42
+
43
+ #: addons/utm-tracking.php:35 admin/admin-ui-render-addons.php:49
44
+ msgid "UTM Tracking"
45
+ msgstr "Suivi UTM"
46
+
47
+ #: addons/utm-tracking.php:146
48
+ msgid "Current Start URL"
49
+ msgstr "URL de départ actuelle"
50
+
51
+ #: addons/utm-tracking.php:155
52
+ msgid "Campaign Source"
53
+ msgstr "Source de Campagne"
54
+
55
+ #: addons/utm-tracking.php:164
56
+ msgid "Campaign Medium"
57
+ msgstr "Medium de la Campagne"
58
+
59
+ #: addons/utm-tracking.php:173
60
+ msgid "Campaign Name"
61
+ msgstr "Nom de la Campagne"
62
+
63
+ #: addons/utm-tracking.php:182
64
+ msgid "Campaign Term"
65
+ msgstr "Terme de la Campagne"
66
+
67
+ #: addons/utm-tracking.php:191
68
+ msgid "Campaign Content"
69
+ msgstr "Contenu de la Campagne"
70
+
71
+ #: addons/utm-tracking.php:234
72
+ msgid ""
73
+ "This add-on automatically adds UTM campaign parameters to the <code>Start "
74
+ "Page</code> URL in your <a href=\"%s\" target=\"_blank\">manifest</a>. This "
75
+ "will help you identify visitors coming specifically from your app. <a href="
76
+ "\"%s\" target=\"_blank\">Read more</a> about UTM Tracking."
77
+ msgstr ""
78
+ "Ce module ajoute automatiquement les paramètres de campagne UTM à l'URL de "
79
+ "la <code>Page de Départ</code> dans votre <a href=\"%s\" target=\"_blank"
80
+ "\">manifeste</a> . Cela vous aidera à identifier les visiteurs provenant "
81
+ "spécifiquement de votre application. <a href=\"%s\" target=\"_blank\">En "
82
+ "savoir plus</a> sur le Suivi UTM."
83
+
84
+ #: addons/utm-tracking.php:264
85
+ msgid ""
86
+ "Campaign Source is mandatory and defaults to <code>superpwa</code>. The "
87
+ "remaining fields are optional."
88
+ msgstr ""
89
+ "La source de la Campagne est obligatoire et utilise par défaut "
90
+ "<code>superpwa</code>. Les autres champs sont facultatifs."
91
+
92
+ #: addons/utm-tracking.php:362 admin/admin-ui-render-settings.php:360
93
+ msgid "Settings saved."
94
+ msgstr "Réglages enregistrés."
95
+
96
+ #: addons/utm-tracking.php:371
97
+ msgid "UTM Tracking for"
98
+ msgstr "Suivi UTM pour"
99
+
100
+ #: addons/utm-tracking.php:382 admin/admin-ui-render-settings.php:383
101
+ msgid "Save Settings"
102
+ msgstr "Sauvegarder les réglages"
103
+
104
+ #: admin/admin-ui-render-addons.php:50
105
+ msgid ""
106
+ "Track visits from your app by adding UTM tracking parameters to the Start "
107
+ "Page URL."
108
+ msgstr ""
109
+ "Suivez les visites de votre application en ajoutant les paramètres de suivi "
110
+ "UTM à l’URL de page de départ."
111
+
112
+ #: admin/admin-ui-render-addons.php:55
113
+ msgid "Customize Settings &rarr;"
114
+ msgstr "Personnaliser les paramètres de &rarr;"
115
+
116
+ #: admin/admin-ui-render-addons.php:60
117
+ msgid "Apple Touch Icons"
118
+ msgstr "Icônes Apple Touch"
119
+
120
+ #: admin/admin-ui-render-addons.php:61
121
+ msgid ""
122
+ "Set the Application Icon and Splash Screen Icon as Apple Touch Icons for "
123
+ "compatibility with iOS devices."
124
+ msgstr ""
125
+ "Définir l’icône de l’Application et l’icône de l’écran d’accueil comme les "
126
+ "icônes Apple Touch pour la compatibilité avec les appareils iOS."
127
+
128
+ #: admin/admin-ui-render-addons.php:66
129
+ msgid "More Details &rarr;"
130
+ msgstr "Plus de détails &rarr;"
131
+
132
+ #: admin/admin-ui-render-addons.php:115
133
+ msgid "<strong>Add-On activated: %s.</strong> <a href=\"%s\"%s>%s</a>"
134
+ msgstr "<strong>Module activé : %s.</strong> <a href=\"%s\" %s=\"\">%s</a>"
135
+
136
+ #: admin/admin-ui-render-addons.php:123
137
+ msgid "Add-On deactivated"
138
+ msgstr "Module désactivé"
139
+
140
+ #: admin/admin-ui-render-addons.php:135
141
+ msgid "Add-Ons for"
142
+ msgstr "Modules pour"
143
+
144
+ #: admin/admin-ui-render-addons.php:137
145
+ msgid "Add-Ons extend the functionality of SuperPWA."
146
+ msgstr "Les modules étendent les fonctionnalités de SuperPWA."
147
+
148
+ #: admin/admin-ui-render-addons.php:177 admin/admin-ui-render-addons.php:349
149
+ msgid "Deactivate"
150
+ msgstr "Désactiver"
151
+
152
+ #: admin/admin-ui-render-addons.php:182
153
+ msgid "More information about %s"
154
+ msgstr "Plus d’informations sur %s"
155
+
156
+ #: admin/admin-ui-render-addons.php:182
157
+ msgid "More Details"
158
+ msgstr "Plus de détails"
159
+
160
+ #: admin/admin-ui-render-addons.php:197
161
+ msgid ""
162
+ "<span class=\"compatibility-compatible\"><strong>Add-On active.</strong> <a "
163
+ "href=\"%s\"%s>%s</a></span>"
164
+ msgstr ""
165
+ "<span class=\"compatibility-compatible\"><strong>Le module actif.</strong> "
166
+ "<a href=\"%s\" %s=\"\">%s</a></span>"
167
+
168
+ #: admin/admin-ui-render-addons.php:200
169
+ msgid ""
170
+ "<span class=\"compatibility-compatible\"><strong>Compatible</strong> with "
171
+ "your version of SuperPWA</span>"
172
+ msgstr ""
173
+ "<span class=\"compatibility-compatible\"><strong>Compatible</strong> avec "
174
+ "votre version de SuperPWA</span>"
175
+
176
+ #: admin/admin-ui-render-addons.php:203
177
+ msgid ""
178
+ "<span class=\"compatibility-incompatible\"><strong>Please upgrade</strong> "
179
+ "to the latest version of SuperPWA</span>"
180
+ msgstr ""
181
+ "<span class=\"compatibility-incompatible\"><strong>Veuillez mettre à niveau</"
182
+ "strong> vers la dernière version de SuperPWA</span>"
183
+
184
+ #: admin/admin-ui-render-addons.php:217
185
+ msgid "SuperPWA Newsletter"
186
+ msgstr "Newsletter de SuperPWA"
187
+
188
+ #: admin/admin-ui-render-addons.php:221
189
+ msgid ""
190
+ "Learn more about Progressive Web Apps<br>and get latest updates about "
191
+ "SuperPWA"
192
+ msgstr ""
193
+ "En savoir plus sur les Progressive Web Apps<br>et recevez les dernières "
194
+ "actualités de SuperPWA"
195
+
196
+ #: admin/admin-ui-render-addons.php:229
197
+ msgid "Enter your email"
198
+ msgstr "Entrez votre email"
199
+
200
+ #: admin/admin-ui-render-addons.php:231
201
+ msgid "Subscribe"
202
+ msgstr "S'abonner"
203
+
204
+ #: admin/admin-ui-render-addons.php:233
205
+ msgid ""
206
+ "we'll share our <code>root</code> password before we share your email with "
207
+ "anyone else."
208
+ msgstr ""
209
+ "nous partagerons notre mot de passe <code>root</code> avant de partager "
210
+ "votre email avec qui que ce soit d'autre."
211
+
212
+ #: admin/admin-ui-render-addons.php:345
213
+ msgid "Activate"
214
+ msgstr "Activer"
215
+
216
+ #: admin/admin-ui-render-addons.php:354
217
+ msgid "Install"
218
+ msgstr "Installer"
219
+
220
+ #: admin/admin-ui-render-settings.php:60
221
+ msgid ""
222
+ "Used when there is insufficient space to display the full name of the "
223
+ "application. <code>12</code> characters or less."
224
+ msgstr ""
225
+ "Utilisé lorsque l'espace est insuffisant pour afficher le nom complet de "
226
+ "l'application. <code>12</code> caractères ou moins."
227
+
228
+ #: admin/admin-ui-render-settings.php:83
229
+ msgid "A brief description of what your app is about."
230
+ msgstr "Une brève description du sujet sur lequel porte votre application."
231
+
232
+ #: admin/admin-ui-render-settings.php:104
233
+ #: admin/admin-ui-render-settings.php:127
234
+ msgid "Choose Icon"
235
+ msgstr "Choisir une icône"
236
+
237
+ #: admin/admin-ui-render-settings.php:108
238
+ msgid ""
239
+ "This will be the icon of your app when installed on the phone. Must be a "
240
+ "<code>PNG</code> image exactly <code>192x192</code> in size."
241
+ msgstr ""
242
+ "Ce sera l'icône de votre application lorsqu'elle est installée sur un "
243
+ "smartphone. Elle doit être une image <code>PNG</code> d'exactement "
244
+ "<code>192x192</code> pixels."
245
+
246
+ #: admin/admin-ui-render-settings.php:131
247
+ msgid ""
248
+ "This icon will be displayed on the splash screen of your app on supported "
249
+ "devices. Must be a <code>PNG</code> image exactly <code>512x512</code> in "
250
+ "size."
251
+ msgstr ""
252
+ "Cette icône sera affichée sur l'écran de démarrage de votre application sur "
253
+ "les appareils compatibles. Ça doit être une image <code>PNG</code> "
254
+ "d'exactement <code>512x512</code> pixels."
255
+
256
+ #: admin/admin-ui-render-settings.php:151
257
+ msgid "Background color of the splash screen."
258
+ msgstr "Couleur d’arrière-plan de l’écran de démarrage."
259
+
260
+ #: admin/admin-ui-render-settings.php:171
261
+ msgid ""
262
+ "Theme color is used on supported devices to tint the UI elements of the "
263
+ "browser and app switcher. When in doubt, use the same color as "
264
+ "<code>Background Color</code>."
265
+ msgstr ""
266
+ "La couleur du thème est utilisée sur les appareils pris en charge pour "
267
+ "personnaliser la teinte des éléments d’interface utilisateur du navigateur "
268
+ "et du switcher d’app. En cas de doute, utilisez la même couleur que la "
269
+ "<code>Couleur d’arrière-plan</code>."
270
+
271
+ #: admin/admin-ui-render-settings.php:194
272
+ msgid "&mdash; Homepage &mdash;"
273
+ msgstr "&mdash; Page d’accueil &mdash;"
274
+
275
+ #: admin/admin-ui-render-settings.php:201
276
+ msgid ""
277
+ "Specify the page to load when the application is launched from a device. "
278
+ "Current start page is <code>%s</code>"
279
+ msgstr ""
280
+ "Spécifiez la page à charger lorsque l'application est lancée à partir d'un "
281
+ "appareil. La page d'accueil actuelle est <code>%s</code>"
282
+
283
+ #: admin/admin-ui-render-settings.php:209
284
+ msgid "Use AMP version of the start page."
285
+ msgstr "Utiliser la version AMP de la page de démarrage."
286
+
287
+ #: admin/admin-ui-render-settings.php:215
288
+ msgid ""
289
+ "Do not check this if your start page is the homepage, the blog index, or the "
290
+ "archives page. AMP for WordPress does not create AMP versions for these "
291
+ "pages."
292
+ msgstr ""
293
+ "Ne cochez pas cette case si votre page de départ est la page d'accueil de "
294
+ "votre site, l'index du blog ou la page d'archives. AMP pour WordPress ne "
295
+ "crée pas de versions AMP pour ces pages."
296
+
297
+ #: admin/admin-ui-render-settings.php:241
298
+ msgid "&mdash; Default &mdash;"
299
+ msgstr "&mdash; Par défaut &mdash;"
300
+
301
+ #: admin/admin-ui-render-settings.php:248
302
+ msgid ""
303
+ "Offline page is displayed when the device is offline and the requested page "
304
+ "is not already cached. Current offline page is <code>%s</code>"
305
+ msgstr ""
306
+ "La page hors connexion s’affiche lorsque l'appareil est hors connexion et "
307
+ "que la page demandée n’est pas déjà mise en cache. La page hors connexion "
308
+ "actuelle est <code>%s</code>"
309
+
310
+ #: admin/admin-ui-render-settings.php:268
311
+ msgid "Follow Device Orientation"
312
+ msgstr "Suivre l'orientation de l'appareil"
313
+
314
+ #: admin/admin-ui-render-settings.php:271
315
+ msgid "Portrait"
316
+ msgstr "Portrait"
317
+
318
+ #: admin/admin-ui-render-settings.php:274
319
+ msgid "Landscape"
320
+ msgstr "Paysage"
321
+
322
+ #: admin/admin-ui-render-settings.php:280
323
+ msgid ""
324
+ "Set the orientation of your app on devices. When set to <code>Follow Device "
325
+ "Orientation</code> your app will rotate as the device is rotated."
326
+ msgstr ""
327
+ "Définissez l'orientation de votre application sur les appareils. Lorsque "
328
+ "l'option <code>Suivre l'orientation de l'appareil</code> est définie, votre "
329
+ "application tourne en fonction de l'appareil."
330
+
331
+ #: admin/admin-ui-render-settings.php:302
332
+ msgid ""
333
+ "Manifest generated successfully. You can <a href=\"%s\" target=\"_blank"
334
+ "\">see it here &rarr;</a>"
335
+ msgstr ""
336
+ "Le manifeste a été généré avec succès. Vous pouvez <a href=\"%s\" target="
337
+ "\"_blank\">le voir ici &rarr;</a>"
338
+
339
+ #: admin/admin-ui-render-settings.php:305
340
+ msgid ""
341
+ "Manifest generation failed. Check if WordPress can write to your root folder "
342
+ "(the same folder with wp-config.php). <a href=\"%s\" target=\"_blank\">Read "
343
+ "more &rarr;</a>"
344
+ msgstr ""
345
+ "Échec de génération du manifeste. Vérifiez si WordPress peut écrire dans "
346
+ "votre dossier racine (même dossier que wp-config.php). <a href=\"%s\" target="
347
+ "\"_blank\">En savoir plux &rarr;</a>"
348
+
349
+ #: admin/admin-ui-render-settings.php:320
350
+ msgid "Service worker generated successfully."
351
+ msgstr "Service Worker généré avec succès."
352
+
353
+ #: admin/admin-ui-render-settings.php:323
354
+ msgid ""
355
+ "Service worker generation failed. Check if WordPress can write to your root "
356
+ "folder (the same folder with wp-config.php). <a href=\"%s\" target=\"_blank"
357
+ "\">Read more &rarr;</a>"
358
+ msgstr ""
359
+ "La génération de Service Worker a échouée. Vérifiez si WordPress peut écrire "
360
+ "dans votre dossier racine (même dossier que wp-config.php). <a href=\"%s\" "
361
+ "target=\"_blank\">En savoir plus &rarr;</a>"
362
+
363
+ #: admin/admin-ui-render-settings.php:336
364
+ msgid "Your website is served over HTTPS."
365
+ msgstr "Votre site Web est servi via HTTPS."
366
+
367
+ #: admin/admin-ui-render-settings.php:339
368
+ msgid ""
369
+ "Progressive Web Apps require that your website is served over HTTPS. Please "
370
+ "contact your host to add a SSL certificate to your domain."
371
+ msgstr ""
372
+ "Les applications Web progressives exigent que votre site est desservie via "
373
+ "HTTPS. Contactez votre hébergeur pour ajouter un certificat SSL à votre "
374
+ "domaine."
375
+
376
+ #. Author of the plugin/theme
377
+ #: admin/admin-ui-setup.php:28
378
+ msgid "SuperPWA"
379
+ msgstr "SuperPWA"
380
+
381
+ #: admin/admin-ui-setup.php:31 admin/basic-setup.php:278
382
+ msgid "Settings"
383
+ msgstr "Réglages"
384
+
385
+ #: admin/admin-ui-setup.php:34
386
+ msgid "Add-Ons"
387
+ msgstr "Add-ons"
388
+
389
+ #: admin/admin-ui-setup.php:63
390
+ msgid "Application Name"
391
+ msgstr "Nom de l’application"
392
+
393
+ #: admin/admin-ui-setup.php:72
394
+ msgid "Application Short Name"
395
+ msgstr "Nom court de l’application"
396
+
397
+ #: admin/admin-ui-setup.php:81
398
+ msgid "Description"
399
+ msgstr "Description"
400
+
401
+ #: admin/admin-ui-setup.php:90
402
+ msgid "Application Icon"
403
+ msgstr "Icône de l’application"
404
+
405
+ #: admin/admin-ui-setup.php:99
406
+ msgid "Splash Screen Icon"
407
+ msgstr "Icône de l’écran de démarrage"
408
+
409
+ #: admin/admin-ui-setup.php:108
410
+ msgid "Background Color"
411
+ msgstr "Couleur d'arrière plan"
412
+
413
+ #: admin/admin-ui-setup.php:117
414
+ msgid "Theme Color"
415
+ msgstr "Couleur du thème"
416
+
417
+ #: admin/admin-ui-setup.php:126
418
+ msgid "Start Page"
419
+ msgstr "Page de départ"
420
+
421
+ #: admin/admin-ui-setup.php:135
422
+ msgid "Offline Page"
423
+ msgstr "Page hors ligne"
424
+
425
+ #: admin/admin-ui-setup.php:144
426
+ msgid "Orientation"
427
+ msgstr "Orientation"
428
+
429
+ #: admin/admin-ui-setup.php:153
430
+ msgid "Status"
431
+ msgstr "Statut"
432
+
433
+ #: admin/admin-ui-setup.php:161
434
+ msgid "Manifest"
435
+ msgstr "Manifeste"
436
+
437
+ #: admin/admin-ui-setup.php:170
438
+ msgid "Service Worker"
439
+ msgstr "Service Worker"
440
+
441
+ #: admin/admin-ui-setup.php:179
442
+ msgid "HTTPS"
443
+ msgstr "HTTPS"
444
+
445
+ #: admin/admin-ui-setup.php:305
446
+ msgid ""
447
+ "If you like SuperPWA, please <a href=\"%s\" target=\"_blank\">make a "
448
+ "donation</a> or leave a <a href=\"%s\" target=\"_blank\">&#9733;&#9733;"
449
+ "&#9733;&#9733;&#9733;</a> rating to support continued development. Thanks a "
450
+ "bunch!"
451
+ msgstr ""
452
+ "Si vous aimez SuperPWA, <a href=\"%s\" target=\"_blank\">faites un don</a> "
453
+ "ou laissez une note <a href=\"%s\" target=\"_blank\">&#9733;&#9733;&#9733;"
454
+ "&#9733;&#9733;</a> pour soutenir son développement. Merci beaucoup !"
455
+
456
+ #: admin/basic-setup.php:82 admin/basic-setup.php:116
457
+ msgid ""
458
+ "<strong>SuperPWA</strong>: Successfully updated to version %s. Thank you! <a "
459
+ "href=\"%s\" target=\"_blank\">Discover new features and read the story &rarr;"
460
+ "</a>"
461
+ msgstr ""
462
+ "<strong>SuperPWA</strong>: Succès de la mise à jour vers la version %s. "
463
+ "Merci ! <a href=\"%s\" target=\"_blank\">Découvrez les nouvelles "
464
+ "fonctionnalités et lisez notre histoire &rarr;</a>"
465
+
466
+ #: admin/basic-setup.php:294
467
+ msgid "Demo"
468
+ msgstr "Démo"
469
+
470
+ #. Plugin URI of the plugin/theme
471
+ msgid "https://superpwa.com/?utm_source=superpwa-plugin&utm_medium=plugin-uri"
472
+ msgstr "https://superpwa.com/?utm_source=superpwa-plugin&utm_medium=plugin-uri"
473
+
474
+ #. Description of the plugin/theme
475
+ msgid "Convert your WordPress website into a Progressive Web App"
476
+ msgstr "Transformer votre site WordPress en une application Web progressive"
477
+
478
+ #. Author URI of the plugin/theme
479
+ msgid "https://superpwa.com/?utm_source=superpwa-plugin&utm_medium=author-uri"
480
+ msgstr "https://superpwa.com/?utm_source=superpwa-plugin&utm_medium=author-uri"
languages/super-progressive-web-apps.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the Super Progressive Web Apps package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Super Progressive Web Apps 1.8.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/super-progressive-"
7
  "web-apps\n"
8
- "POT-Creation-Date: 2018-06-05 11:24:28+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -31,7 +31,7 @@ msgid ""
31
  "\">OneSignal integration documentation</a> for more info. "
32
  msgstr ""
33
 
34
- #. #-#-#-#-# super-progressive-web-apps.pot (Super Progressive Web Apps 1.8.1) #-#-#-#-#
35
  #. Plugin Name of the plugin/theme
36
  #: addons/utm-tracking.php:35 admin/admin-ui-setup.php:28
37
  #: admin/admin-ui-setup.php:31 admin/admin-ui-setup.php:34
@@ -80,7 +80,7 @@ msgid ""
80
  "remaining fields are optional."
81
  msgstr ""
82
 
83
- #: addons/utm-tracking.php:362 admin/admin-ui-render-settings.php:360
84
  msgid "Settings saved."
85
  msgstr ""
86
 
@@ -88,7 +88,7 @@ msgstr ""
88
  msgid "UTM Tracking for"
89
  msgstr ""
90
 
91
- #: addons/utm-tracking.php:382 admin/admin-ui-render-settings.php:383
92
  msgid "Save Settings"
93
  msgstr ""
94
 
@@ -204,6 +204,11 @@ msgstr ""
204
  msgid "A brief description of what your app is about."
205
  msgstr ""
206
 
 
 
 
 
 
207
  #: admin/admin-ui-render-settings.php:108
208
  msgid ""
209
  "This will be the icon of your app when installed on the phone. Must be a "
@@ -249,75 +254,81 @@ msgid ""
249
  "pages."
250
  msgstr ""
251
 
252
- #: admin/admin-ui-render-settings.php:241
 
 
 
 
 
 
253
  msgid "&mdash; Default &mdash;"
254
  msgstr ""
255
 
256
- #: admin/admin-ui-render-settings.php:248
257
  msgid ""
258
  "Offline page is displayed when the device is offline and the requested page "
259
  "is not already cached. Current offline page is <code>%s</code>"
260
  msgstr ""
261
 
262
- #: admin/admin-ui-render-settings.php:268
263
  msgid "Follow Device Orientation"
264
  msgstr ""
265
 
266
- #: admin/admin-ui-render-settings.php:271
267
  msgid "Portrait"
268
  msgstr ""
269
 
270
- #: admin/admin-ui-render-settings.php:274
271
  msgid "Landscape"
272
  msgstr ""
273
 
274
- #: admin/admin-ui-render-settings.php:280
275
  msgid ""
276
  "Set the orientation of your app on devices. When set to <code>Follow Device "
277
  "Orientation</code> your app will rotate as the device is rotated."
278
  msgstr ""
279
 
280
- #: admin/admin-ui-render-settings.php:302
281
  msgid ""
282
  "Manifest generated successfully. You can <a href=\"%s\" target=\"_blank"
283
  "\">see it here &rarr;</a>"
284
  msgstr ""
285
 
286
- #: admin/admin-ui-render-settings.php:305
287
  msgid ""
288
  "Manifest generation failed. Check if WordPress can write to your root folder "
289
  "(the same folder with wp-config.php). <a href=\"%s\" target=\"_blank\">Read "
290
  "more &rarr;</a>"
291
  msgstr ""
292
 
293
- #: admin/admin-ui-render-settings.php:320
294
  msgid "Service worker generated successfully."
295
  msgstr ""
296
 
297
- #: admin/admin-ui-render-settings.php:323
298
  msgid ""
299
  "Service worker generation failed. Check if WordPress can write to your root "
300
  "folder (the same folder with wp-config.php). <a href=\"%s\" target=\"_blank"
301
  "\">Read more &rarr;</a>"
302
  msgstr ""
303
 
304
- #: admin/admin-ui-render-settings.php:336
305
  msgid "Your website is served over HTTPS."
306
  msgstr ""
307
 
308
- #: admin/admin-ui-render-settings.php:339
309
  msgid ""
310
  "Progressive Web Apps require that your website is served over HTTPS. Please "
311
  "contact your host to add a SSL certificate to your domain."
312
  msgstr ""
313
 
314
- #. #-#-#-#-# super-progressive-web-apps.pot (Super Progressive Web Apps 1.8.1) #-#-#-#-#
315
  #. Author of the plugin/theme
316
  #: admin/admin-ui-setup.php:28
317
  msgid "SuperPWA"
318
  msgstr ""
319
 
320
- #: admin/admin-ui-setup.php:31 admin/basic-setup.php:279
321
  msgid "Settings"
322
  msgstr ""
323
 
@@ -396,7 +407,7 @@ msgid ""
396
  "</a>"
397
  msgstr ""
398
 
399
- #: admin/basic-setup.php:295
400
  msgid "Demo"
401
  msgstr ""
402
 
2
  # This file is distributed under the same license as the Super Progressive Web Apps package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Super Progressive Web Apps 1.9\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/super-progressive-"
7
  "web-apps\n"
8
+ "POT-Creation-Date: 2018-07-24 21:16:49+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
31
  "\">OneSignal integration documentation</a> for more info. "
32
  msgstr ""
33
 
34
+ #. #-#-#-#-# super-progressive-web-apps.pot (Super Progressive Web Apps 1.9) #-#-#-#-#
35
  #. Plugin Name of the plugin/theme
36
  #: addons/utm-tracking.php:35 admin/admin-ui-setup.php:28
37
  #: admin/admin-ui-setup.php:31 admin/admin-ui-setup.php:34
80
  "remaining fields are optional."
81
  msgstr ""
82
 
83
+ #: addons/utm-tracking.php:362 admin/admin-ui-render-settings.php:374
84
  msgid "Settings saved."
85
  msgstr ""
86
 
88
  msgid "UTM Tracking for"
89
  msgstr ""
90
 
91
+ #: addons/utm-tracking.php:382 admin/admin-ui-render-settings.php:397
92
  msgid "Save Settings"
93
  msgstr ""
94
 
204
  msgid "A brief description of what your app is about."
205
  msgstr ""
206
 
207
+ #: admin/admin-ui-render-settings.php:104
208
+ #: admin/admin-ui-render-settings.php:127
209
+ msgid "Choose Icon"
210
+ msgstr ""
211
+
212
  #: admin/admin-ui-render-settings.php:108
213
  msgid ""
214
  "This will be the icon of your app when installed on the phone. Must be a "
254
  "pages."
255
  msgstr ""
256
 
257
+ #: admin/admin-ui-render-settings.php:228
258
+ msgid ""
259
+ "Please enable AMP support for Page in <a href=\"%s\">Theme Settings > Theme "
260
+ "Panel</a> > AMP > Post Type Support."
261
+ msgstr ""
262
+
263
+ #: admin/admin-ui-render-settings.php:255
264
  msgid "&mdash; Default &mdash;"
265
  msgstr ""
266
 
267
+ #: admin/admin-ui-render-settings.php:262
268
  msgid ""
269
  "Offline page is displayed when the device is offline and the requested page "
270
  "is not already cached. Current offline page is <code>%s</code>"
271
  msgstr ""
272
 
273
+ #: admin/admin-ui-render-settings.php:282
274
  msgid "Follow Device Orientation"
275
  msgstr ""
276
 
277
+ #: admin/admin-ui-render-settings.php:285
278
  msgid "Portrait"
279
  msgstr ""
280
 
281
+ #: admin/admin-ui-render-settings.php:288
282
  msgid "Landscape"
283
  msgstr ""
284
 
285
+ #: admin/admin-ui-render-settings.php:294
286
  msgid ""
287
  "Set the orientation of your app on devices. When set to <code>Follow Device "
288
  "Orientation</code> your app will rotate as the device is rotated."
289
  msgstr ""
290
 
291
+ #: admin/admin-ui-render-settings.php:316
292
  msgid ""
293
  "Manifest generated successfully. You can <a href=\"%s\" target=\"_blank"
294
  "\">see it here &rarr;</a>"
295
  msgstr ""
296
 
297
+ #: admin/admin-ui-render-settings.php:319
298
  msgid ""
299
  "Manifest generation failed. Check if WordPress can write to your root folder "
300
  "(the same folder with wp-config.php). <a href=\"%s\" target=\"_blank\">Read "
301
  "more &rarr;</a>"
302
  msgstr ""
303
 
304
+ #: admin/admin-ui-render-settings.php:334
305
  msgid "Service worker generated successfully."
306
  msgstr ""
307
 
308
+ #: admin/admin-ui-render-settings.php:337
309
  msgid ""
310
  "Service worker generation failed. Check if WordPress can write to your root "
311
  "folder (the same folder with wp-config.php). <a href=\"%s\" target=\"_blank"
312
  "\">Read more &rarr;</a>"
313
  msgstr ""
314
 
315
+ #: admin/admin-ui-render-settings.php:350
316
  msgid "Your website is served over HTTPS."
317
  msgstr ""
318
 
319
+ #: admin/admin-ui-render-settings.php:353
320
  msgid ""
321
  "Progressive Web Apps require that your website is served over HTTPS. Please "
322
  "contact your host to add a SSL certificate to your domain."
323
  msgstr ""
324
 
325
+ #. #-#-#-#-# super-progressive-web-apps.pot (Super Progressive Web Apps 1.9) #-#-#-#-#
326
  #. Author of the plugin/theme
327
  #: admin/admin-ui-setup.php:28
328
  msgid "SuperPWA"
329
  msgstr ""
330
 
331
+ #: admin/admin-ui-setup.php:31 admin/basic-setup.php:278
332
  msgid "Settings"
333
  msgstr ""
334
 
407
  "</a>"
408
  msgstr ""
409
 
410
+ #: admin/basic-setup.php:294
411
  msgid "Demo"
412
  msgstr ""
413
 
public/js/register-sw.js CHANGED
@@ -3,6 +3,5 @@ if ('serviceWorker' in navigator) {
3
  navigator.serviceWorker.register(superpwa_sw.url)
4
  .then(function(registration) { console.log('SuperPWA service worker ready'); registration.update(); })
5
  .catch(function(error) { console.log('Registration failed with ' + error); });
6
- window.addEventListener('beforeinstallprompt', (e) => { e.prompt(); });
7
  });
8
  }
3
  navigator.serviceWorker.register(superpwa_sw.url)
4
  .then(function(registration) { console.log('SuperPWA service worker ready'); registration.update(); })
5
  .catch(function(error) { console.log('Registration failed with ' + error); });
 
6
  });
7
  }
public/manifest.php CHANGED
@@ -108,15 +108,20 @@ function superpwa_generate_manifest() {
108
  *
109
  * @since 1.0
110
  * @since 1.8 Introduced filter superpwa_wp_head_tags
 
111
  */
112
  function superpwa_add_manifest_to_wp_head() {
113
 
114
- // Get Settings
115
- $settings = superpwa_get_settings();
116
-
117
  $tags = '<!-- Manifest added by SuperPWA - Progressive Web Apps Plugin For WordPress -->' . PHP_EOL;
118
  $tags .= '<link rel="manifest" href="'. parse_url( superpwa_manifest( 'src' ), PHP_URL_PATH ) . '">' . PHP_EOL;
119
- $tags .= '<meta name="theme-color" content="'. $settings['theme_color'] .'">' . PHP_EOL;
 
 
 
 
 
 
 
120
 
121
  $tags = apply_filters( 'superpwa_wp_head_tags', $tags );
122
 
108
  *
109
  * @since 1.0
110
  * @since 1.8 Introduced filter superpwa_wp_head_tags
111
+ * @since 1.9 Introduced filter superpwa_add_theme_color
112
  */
113
  function superpwa_add_manifest_to_wp_head() {
114
 
 
 
 
115
  $tags = '<!-- Manifest added by SuperPWA - Progressive Web Apps Plugin For WordPress -->' . PHP_EOL;
116
  $tags .= '<link rel="manifest" href="'. parse_url( superpwa_manifest( 'src' ), PHP_URL_PATH ) . '">' . PHP_EOL;
117
+
118
+ // theme-color meta tag
119
+ if ( apply_filters( 'superpwa_add_theme_color', true ) ) {
120
+
121
+ // Get Settings
122
+ $settings = superpwa_get_settings();
123
+ $tags .= '<meta name="theme-color" content="'. $settings['theme_color'] .'">' . PHP_EOL;
124
+ }
125
 
126
  $tags = apply_filters( 'superpwa_wp_head_tags', $tags );
127
 
public/sw.php CHANGED
@@ -4,11 +4,12 @@
4
  *
5
  * @since 1.0
6
  *
7
- * @function superpwa_sw() Service worker filename, absolute path and link
8
- * @function superpwa_generate_sw() Generate and write service worker into sw.js
9
- * @function superpwa_sw_template() Service worker tempalte
10
- * @function superpwa_register_sw() Register service worker
11
- * @function superpwa_delete_sw() Delete service worker
 
12
  */
13
 
14
  // Exit if accessed directly
@@ -86,6 +87,7 @@ function superpwa_generate_sw() {
86
  *
87
  * @since 1.0
88
  * @since 1.7 added filter superpwa_sw_template
 
89
  */
90
  function superpwa_sw_template() {
91
 
@@ -104,8 +106,7 @@ function superpwa_sw_template() {
104
  const cacheName = '<?php echo parse_url( get_bloginfo( 'wpurl' ), PHP_URL_HOST ) . '-superpwa-' . SUPERPWA_VERSION; ?>';
105
  const startPage = '<?php echo superpwa_get_start_url(); ?>';
106
  const offlinePage = '<?php echo get_permalink( $settings['offline_page'] ) ? superpwa_httpsify( get_permalink( $settings['offline_page'] ) ) : superpwa_httpsify( get_bloginfo( 'wpurl' ) ); ?>';
107
- const fallbackImage = '<?php echo $settings['icon']; ?>';
108
- const filesToCache = [startPage, offlinePage, fallbackImage];
109
  const neverCacheUrls = [<?php echo apply_filters( 'superpwa_sw_never_cache_urls', '/\/wp-admin/,/\/wp-login/,/preview=true/' ); ?>];
110
 
111
  // Install
@@ -114,7 +115,11 @@ self.addEventListener('install', function(e) {
114
  e.waitUntil(
115
  caches.open(cacheName).then(function(cache) {
116
  console.log('SuperPWA service worker caching dependencies');
117
- return cache.addAll(filesToCache);
 
 
 
 
118
  })
119
  );
120
  });
@@ -225,4 +230,42 @@ add_action( 'wp_enqueue_scripts', 'superpwa_register_sw' );
225
  */
226
  function superpwa_delete_sw() {
227
  return superpwa_delete( superpwa_sw( 'abs' ) );
228
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  *
5
  * @since 1.0
6
  *
7
+ * @function superpwa_sw() Service worker filename, absolute path and link
8
+ * @function superpwa_generate_sw() Generate and write service worker into sw.js
9
+ * @function superpwa_sw_template() Service worker tempalte
10
+ * @function superpwa_register_sw() Register service worker
11
+ * @function superpwa_delete_sw() Delete service worker
12
+ * @function superpwa_offline_page_images() Add images from offline page to filesToCache
13
  */
14
 
15
  // Exit if accessed directly
87
  *
88
  * @since 1.0
89
  * @since 1.7 added filter superpwa_sw_template
90
+ * @since 1.9 added filter superpwa_sw_files_to_cache
91
  */
92
  function superpwa_sw_template() {
93
 
106
  const cacheName = '<?php echo parse_url( get_bloginfo( 'wpurl' ), PHP_URL_HOST ) . '-superpwa-' . SUPERPWA_VERSION; ?>';
107
  const startPage = '<?php echo superpwa_get_start_url(); ?>';
108
  const offlinePage = '<?php echo get_permalink( $settings['offline_page'] ) ? superpwa_httpsify( get_permalink( $settings['offline_page'] ) ) : superpwa_httpsify( get_bloginfo( 'wpurl' ) ); ?>';
109
+ const filesToCache = [<?php echo apply_filters( 'superpwa_sw_files_to_cache', 'startPage, offlinePage' ); ?>];
 
110
  const neverCacheUrls = [<?php echo apply_filters( 'superpwa_sw_never_cache_urls', '/\/wp-admin/,/\/wp-login/,/preview=true/' ); ?>];
111
 
112
  // Install
115
  e.waitUntil(
116
  caches.open(cacheName).then(function(cache) {
117
  console.log('SuperPWA service worker caching dependencies');
118
+ filesToCache.map(function(url) {
119
+ return cache.add(url).catch(function (reason) {
120
+ return console.log('SuperPWA: ' + String(reason) + ' ' + url);
121
+ });
122
+ });
123
  })
124
  );
125
  });
230
  */
231
  function superpwa_delete_sw() {
232
  return superpwa_delete( superpwa_sw( 'abs' ) );
233
+ }
234
+
235
+ /**
236
+ * Add images from offline page to filesToCache
237
+ *
238
+ * If the offlinePage set by the user contains images, they need to be cached during sw install.
239
+ * For most websites, other assets (css, js) would be same as that of startPage which would be cached
240
+ * when user visits the startPage the first time. If not superpwa_sw_files_to_cache filter can be used.
241
+ *
242
+ * @param (string) $files_to_cache Comma separated list of files to cache during service worker install
243
+ *
244
+ * @return (string) Comma separated list with image src's appended to $files_to_cache
245
+ *
246
+ * @since 1.9
247
+ */
248
+ function superpwa_offline_page_images( $files_to_cache ) {
249
+
250
+ // Get Settings
251
+ $settings = superpwa_get_settings();
252
+
253
+ // Retrieve the post
254
+ $post = get_post( $settings['offline_page'] );
255
+
256
+ // Return if the offline page is set to default
257
+ if( $post === NULL ) {
258
+ return $files_to_cache;
259
+ }
260
+
261
+ // Match all images
262
+ preg_match_all( '/<img[^>]+src="([^">]+)"/', $post->post_content, $matches );
263
+
264
+ // $matches[1] will be an array with all the src's
265
+ if( ! empty( $matches[1] ) ) {
266
+ return superpwa_httpsify( $files_to_cache . ', \'' . implode( '\', \'', $matches[1] ) . '\'' );
267
+ }
268
+
269
+ return $files_to_cache;
270
+ }
271
+ add_filter( 'superpwa_sw_files_to_cache', 'superpwa_offline_page_images' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: arunbasillal, josevarghese, superpwa
3
  Donate link: http://millionclues.com/donate/
4
  Tags: pwa, progressive web apps, manifest, web manifest, android app, chrome app, add to homescreen, mobile web
5
  Requires at least: 3.6.0
6
- Tested up to: 4.9.6
7
  Requires PHP: 5.3
8
  Stable tag: trunk
9
  License: GPLv2 or later
@@ -176,6 +176,16 @@ Feel free to get in touch if you have any questions.
176
 
177
  == Changelog ==
178
 
 
 
 
 
 
 
 
 
 
 
179
  = 1.8.1 =
180
  * Date: [05.June.2018](https://superpwa.com/push-notifications-are-here-again/?utm_source=wordpress.org&utm_medium=changelog#1.8.1)
181
  * Enhancement: Added an admin notice with [instructions for OneSignal integration](https://superpwa.com/doc/setup-onesignal-with-superpwa/?utm_source=wordpress.org&utm_medium=changelog).
@@ -271,6 +281,15 @@ Feel free to get in touch if you have any questions.
271
 
272
  == Upgrade Notice ==
273
 
 
 
 
 
 
 
 
 
 
274
  = 1.8.1 =
275
  * Enhancement: Added an admin notice with instructions for OneSignal integration.
276
  * Enhancement: Updated console log message for URLs excluded from cache for better clarity.
3
  Donate link: http://millionclues.com/donate/
4
  Tags: pwa, progressive web apps, manifest, web manifest, android app, chrome app, add to homescreen, mobile web
5
  Requires at least: 3.6.0
6
+ Tested up to: 4.9.7
7
  Requires PHP: 5.3
8
  Stable tag: trunk
9
  License: GPLv2 or later
176
 
177
  == Changelog ==
178
 
179
+ = 1.9 =
180
+ * Date: [25.July.2018](https://superpwa.com/superpwa-1-9-chrome-mini-infobar-ready/?utm_source=wordpress.org&utm_medium=changelog)
181
+ * Tested with WordPress 4.9.7.
182
+ * Enhancement: Added compatibility with Google Chrome 68 Mini Info-Bar.
183
+ * Enhancement: Added support for tagDiv AMP Plugin which ships with Newspaper theme and Newsmag theme. If you use this theme, you can now use AMP version of the start page.
184
+ * Enhancement: Added support for images in offline page. Images added to offline page are now cached during service worker activation.
185
+ * Enhancement: Improved the service worker installation routine to handle invalid entities in the service worker dependencies.
186
+ * Enhancement: SuperPWA is now translated to French, thanks to [@romainvincent](https://profiles.wordpress.org/romainvincent) and Spanish, thanks to [@arkangel](https://profiles.wordpress.org/arkangel/).
187
+ * Bug Fix: Fixed issue where translation files in /languages/ folder was not being loaded.
188
+
189
  = 1.8.1 =
190
  * Date: [05.June.2018](https://superpwa.com/push-notifications-are-here-again/?utm_source=wordpress.org&utm_medium=changelog#1.8.1)
191
  * Enhancement: Added an admin notice with [instructions for OneSignal integration](https://superpwa.com/doc/setup-onesignal-with-superpwa/?utm_source=wordpress.org&utm_medium=changelog).
281
 
282
  == Upgrade Notice ==
283
 
284
+ = 1.9 =
285
+ * Tested with WordPress 4.9.7.
286
+ * Enhancement: Added compatibility with Google Chrome 68 Mini Info-Bar.
287
+ * Enhancement: Added support for tagDiv AMP Plugin which ships with Newspaper theme and Newsmag theme. If you use this theme, you can now use AMP version of the start page.
288
+ * Enhancement: Added support for images in offline page. Images added to offline page are now cached during service worker activation.
289
+ * Enhancement: Improved the service worker installation routine to handle invalid entities in the service worker dependencies.
290
+ * Enhancement: SuperPWA is now translated to French, thanks to @romainvincent and Spanish, thanks to @arkangel.
291
+ * Bug Fix: Fixed issue where translation files in /languages/ folder was not being loaded.
292
+
293
  = 1.8.1 =
294
  * Enhancement: Added an admin notice with instructions for OneSignal integration.
295
  * Enhancement: Updated console log message for URLs excluded from cache for better clarity.
superpwa.php CHANGED
@@ -6,7 +6,7 @@
6
  * Author: SuperPWA
7
  * Author URI: https://superpwa.com/?utm_source=superpwa-plugin&utm_medium=author-uri
8
  * Contributors: Arun Basil Lal, Jose Varghese
9
- * Version: 1.8.1
10
  * Text Domain: super-progressive-web-apps
11
  * Domain Path: /languages
12
  * License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
@@ -19,11 +19,12 @@
19
  * @link https://github.com/arunbasillal/WordPress-Starter-Plugin
20
  *
21
  * /3rd-party/ - Functions for compatibility with 3rd party plugins and hosts.
22
- * /admin/ - Plugin backend.
 
23
  * /functions/ - Functions and utilites.
24
  * /includes/ - External third party classes and libraries.
25
  * /languages/ - Translation files go here.
26
- * /public/ - Front end files go here.
27
  * index.php - Dummy file.
28
  * license.txt - GPL v2
29
  * loader.php - Loads everything.
@@ -43,9 +44,9 @@ if ( ! defined('ABSPATH') ) exit;
43
  * @since 1.6 Depreciated constants for multisite compatibility: SUPERPWA_MANIFEST_FILENAME, SUPERPWA_MANIFEST_ABS, SUPERPWA_MANIFEST_SRC
44
  * @since 1.6 Depreciated constants for multisite compatibility: SUPERPWA_SW_FILENAME, SUPERPWA_SW_ABS, SUPERPWA_SW_SRC
45
  */
46
- if ( ! defined( 'SUPERPWA_VERSION' ) ) define( 'SUPERPWA_VERSION' , '1.8.1' ); // SuperPWA current version
47
  if ( ! defined( 'SUPERPWA_PATH_ABS' ) ) define( 'SUPERPWA_PATH_ABS' , plugin_dir_path( __FILE__ ) ); // Absolute path to the plugin directory. eg - /var/www/html/wp-content/plugins/super-progressive-web-apps/
48
- if ( ! defined( 'SUPERPWA_PATH_SRC' ) ) define( 'SUPERPWA_PATH_SRC' , plugin_dir_url( __FILE__ ) ); // Link to the plugin folder. eg - http://example.com/wp/wp-content/plugins/super-progressive-web-apps/
49
 
50
  // Load everything
51
  require_once( SUPERPWA_PATH_ABS . 'loader.php' );
6
  * Author: SuperPWA
7
  * Author URI: https://superpwa.com/?utm_source=superpwa-plugin&utm_medium=author-uri
8
  * Contributors: Arun Basil Lal, Jose Varghese
9
+ * Version: 1.9
10
  * Text Domain: super-progressive-web-apps
11
  * Domain Path: /languages
12
  * License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19
  * @link https://github.com/arunbasillal/WordPress-Starter-Plugin
20
  *
21
  * /3rd-party/ - Functions for compatibility with 3rd party plugins and hosts.
22
+ * /addons/ - Bundled add-ons
23
+ * /admin/ - Plugin backend.
24
  * /functions/ - Functions and utilites.
25
  * /includes/ - External third party classes and libraries.
26
  * /languages/ - Translation files go here.
27
+ * /public/ - Front end files go here.
28
  * index.php - Dummy file.
29
  * license.txt - GPL v2
30
  * loader.php - Loads everything.
44
  * @since 1.6 Depreciated constants for multisite compatibility: SUPERPWA_MANIFEST_FILENAME, SUPERPWA_MANIFEST_ABS, SUPERPWA_MANIFEST_SRC
45
  * @since 1.6 Depreciated constants for multisite compatibility: SUPERPWA_SW_FILENAME, SUPERPWA_SW_ABS, SUPERPWA_SW_SRC
46
  */
47
+ if ( ! defined( 'SUPERPWA_VERSION' ) ) define( 'SUPERPWA_VERSION' , '1.9' ); // SuperPWA current version
48
  if ( ! defined( 'SUPERPWA_PATH_ABS' ) ) define( 'SUPERPWA_PATH_ABS' , plugin_dir_path( __FILE__ ) ); // Absolute path to the plugin directory. eg - /var/www/html/wp-content/plugins/super-progressive-web-apps/
49
+ if ( ! defined( 'SUPERPWA_PATH_SRC' ) ) define( 'SUPERPWA_PATH_SRC' , plugin_dir_url( __FILE__ ) ); // Link to the plugin folder. eg - https://example.com/wp-content/plugins/super-progressive-web-apps/
50
 
51
  // Load everything
52
  require_once( SUPERPWA_PATH_ABS . 'loader.php' );