Version Description
- Date: 29.May.2020
- Tested with WordPress 5.4.1.
- Enhancement: Removed the WordPress admin notice suggesting to add SuperPWA manifest to OneSignal. #114
- Enhancement: Updated fallback value in superpwa_get_display() to match the default value in superpwa_get_settings().
- Enhancement: UTM Tracking Add-on: Added default values for Campaign Medium and Campaign Name.
- Bug Fix: Fixed a rare PHP Notice: Array to string conversion in basic-setup.php on line 415. #92
- Bug Fix: Added a check to see if WP_Plugins_List_Table class is available before using it. #93
Download this release
Release Info
Developer | arunbasillal |
Plugin | Super Progressive Web Apps |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.1
- 3rd-party/onesignal.php +3 -30
- README.MD +5 -7
- addons/utm-tracking.php +15 -5
- admin/basic-setup.php +19 -5
- languages/super-progressive-web-apps.pot +390 -392
- public/manifest.php +2 -2
- readme.txt +23 -3
- superpwa.php +3 -3
3rd-party/onesignal.php
CHANGED
@@ -212,16 +212,13 @@ add_action( 'deactivate_onesignal-free-web-push-notifications/onesignal.php', 's
|
|
212 |
* One multisites, warn users that SuperPWA and OneSignal cannot work together.
|
213 |
*
|
214 |
* @since 1.8.1
|
|
|
215 |
*/
|
216 |
function superpwa_onesignal_admin_notices() {
|
217 |
|
218 |
-
// Notices only for admins.
|
219 |
-
if ( ! current_user_can( 'manage_options' ) ) {
|
220 |
-
return;
|
221 |
-
}
|
222 |
-
|
223 |
// Incompatibility notice for Multisites
|
224 |
-
if ( is_multisite() ) {
|
|
|
225 |
echo '<div class="notice notice-warning"><p>' .
|
226 |
sprintf(
|
227 |
__( '<strong>SuperPWA</strong> is not compatible with OneSignal on multisites yet. Disable one of these plugins until the compatibility is available.<br>Please refer to the <a href="%s" target="_blank">OneSignal integration documentation</a> for more info. ', 'super-progressive-web-apps' ),
|
@@ -230,29 +227,5 @@ function superpwa_onesignal_admin_notices() {
|
|
230 |
|
231 |
// Filter PWA status since PWA is not ready yet.
|
232 |
add_filter( 'superpwa_is_pwa_ready', '__return_false' );
|
233 |
-
|
234 |
-
return;
|
235 |
-
}
|
236 |
-
|
237 |
-
// Get OneSignal settings.
|
238 |
-
$onesignal_wp_settings = get_option( 'OneSignalWPSetting' );
|
239 |
-
|
240 |
-
// Show notice if OneSignal custom manifest is disabled or if the custom manifest is not the SuperPWA manifest.
|
241 |
-
if (
|
242 |
-
! isset( $onesignal_wp_settings['use_custom_manifest'] ) ||
|
243 |
-
! ( (int) $onesignal_wp_settings['use_custom_manifest'] === 1 ) ||
|
244 |
-
! isset( $onesignal_wp_settings['custom_manifest_url'] ) ||
|
245 |
-
! ( strcasecmp( trim( $onesignal_wp_settings['custom_manifest_url'] ), superpwa_manifest( 'src' ) ) === 0 )
|
246 |
-
) {
|
247 |
-
echo '<div class="notice notice-warning"><p>' .
|
248 |
-
sprintf(
|
249 |
-
__( '<strong>Action Required to integrate SuperPWA with OneSignal:</strong><br>1. Go to <a href="%s" target="_blank">OneSignal Configuration > Scroll down to Advanced Settings →</a><br>2. Enable <strong>Use my own manifest.json</strong><br>3. Set <code>%s</code>as <strong>Custom manifest.json URL</strong> and Save Settings.<br>Please refer the <a href="%s" target="_blank">OneSignal integration documentation</a> for more info. ', 'super-progressive-web-apps' ),
|
250 |
-
admin_url( 'admin.php?page=onesignal-push#configuration' ),
|
251 |
-
superpwa_manifest( 'src' ),
|
252 |
-
'https://superpwa.com/doc/setup-onesignal-with-superpwa/?utm_source=superpwa-plugin&utm_medium=onesignal-admin-notice'
|
253 |
-
) . '</p></div>';
|
254 |
-
|
255 |
-
// Filter PWA status since PWA is not ready yet.
|
256 |
-
add_filter( 'superpwa_is_pwa_ready', '__return_false' );
|
257 |
}
|
258 |
}
|
212 |
* One multisites, warn users that SuperPWA and OneSignal cannot work together.
|
213 |
*
|
214 |
* @since 1.8.1
|
215 |
+
* @since 2.1 Removed the notice recommending customers to add manifest to OneSignal.
|
216 |
*/
|
217 |
function superpwa_onesignal_admin_notices() {
|
218 |
|
|
|
|
|
|
|
|
|
|
|
219 |
// Incompatibility notice for Multisites
|
220 |
+
if ( is_multisite() && current_user_can( 'manage_options' ) ) {
|
221 |
+
|
222 |
echo '<div class="notice notice-warning"><p>' .
|
223 |
sprintf(
|
224 |
__( '<strong>SuperPWA</strong> is not compatible with OneSignal on multisites yet. Disable one of these plugins until the compatibility is available.<br>Please refer to the <a href="%s" target="_blank">OneSignal integration documentation</a> for more info. ', 'super-progressive-web-apps' ),
|
227 |
|
228 |
// Filter PWA status since PWA is not ready yet.
|
229 |
add_filter( 'superpwa_is_pwa_ready', '__return_false' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
}
|
231 |
}
|
README.MD
CHANGED
@@ -119,10 +119,10 @@ Here are the current features of Super Progressive Web Apps:
|
|
119 |
* New in version 1.5: OneSignal integration for Push notifications.
|
120 |
* New in version 1.6: WordPress Multisite Network compatibility.
|
121 |
* 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.
|
122 |
-
* New in version 1.8: Compatibility issues with OneSignal are now resolved!
|
123 |
-
* 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.
|
124 |
-
* New in version 2.0: SuperPWA is now compatible with WordPress installed in a sub-folder.
|
125 |
-
* New in version 2.0: You can now set [display property](https://superpwa.com/doc/web-app-manifest-display-modes/?utm_source=GitHub&utm_medium=Readme-version) from SuperPWA settings.
|
126 |
|
127 |
#### 🔮 Upcoming features:
|
128 |
* Offline Indicator Notice.
|
@@ -186,7 +186,7 @@ Your Progressive Web App should be ready to test with the default settings upon
|
|
186 |
|
187 |
#### Testing Your Progressive Web App
|
188 |
|
189 |
-
* Open a supported browser in a supported device (for eg: Chrome for Android (62 or higher) in an Android
|
190 |
* Enter your website and wait till it fully loads
|
191 |
* You should see a pop-up that has your Application Icon and a button that reads "ADD TO HOME SCREEN".
|
192 |
* Click on it and your PWA will be added to your home screen. Wait for the install to complete.
|
@@ -217,7 +217,6 @@ There are various ways you can contribute:
|
|
217 |
<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>
|
218 |
<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>
|
219 |
<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>
|
220 |
-
<a href="https://plus.google.com/+SuperPWA" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174851.svg" title="Follow on Google+" width=35 height=35></a>
|
221 |
|
222 |
* Send us a Pull Request with your bug fixes and/or new features.
|
223 |
* Provide feedback and [suggestions on enhancements](https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues?direction=desc&labels=Enhancement&page=1&sort=created&state=open).
|
@@ -226,7 +225,6 @@ There are various ways you can contribute:
|
|
226 |
<a href="https://twitter.com/home?status=Super%20Progressive%20Web%20Apps%20helps%20to%20convert%20your%20WordPress%20website%20into%20PWA%20%23SuperPWA%20https%3A//github.com/SuperPWA/Super-Progressive-Web-Apps/%20%40SuperPWA" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174876.svg" title="Share SuperPWA on Twitter" width=20 height=20> Share on Twitter </a>
|
227 |
<p> <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> </p>
|
228 |
<p> <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> </p>
|
229 |
-
<p> <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> </p>
|
230 |
|
231 |
## 📇 Changelog
|
232 |
[superpwa.com/changelog/](https://superpwa.com/changelog/?utm_source=GitHub&utm_medium=Readme-Changelog).
|
119 |
* New in version 1.5: OneSignal integration for Push notifications.
|
120 |
* New in version 1.6: WordPress Multisite Network compatibility.
|
121 |
* 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.
|
122 |
+
* New in version 1.8: Compatibility issues with OneSignal are now resolved!
|
123 |
+
* 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.
|
124 |
+
* New in version 2.0: SuperPWA is now compatible with WordPress installed in a sub-folder.
|
125 |
+
* New in version 2.0: You can now set [display property](https://superpwa.com/doc/web-app-manifest-display-modes/?utm_source=GitHub&utm_medium=Readme-version) from SuperPWA settings.
|
126 |
|
127 |
#### 🔮 Upcoming features:
|
128 |
* Offline Indicator Notice.
|
186 |
|
187 |
#### Testing Your Progressive Web App
|
188 |
|
189 |
+
* Open a supported browser in a supported device (for eg: Chrome for Android (62 or higher) in an Android device)
|
190 |
* Enter your website and wait till it fully loads
|
191 |
* You should see a pop-up that has your Application Icon and a button that reads "ADD TO HOME SCREEN".
|
192 |
* Click on it and your PWA will be added to your home screen. Wait for the install to complete.
|
217 |
<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>
|
218 |
<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>
|
219 |
<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>
|
|
|
220 |
|
221 |
* Send us a Pull Request with your bug fixes and/or new features.
|
222 |
* Provide feedback and [suggestions on enhancements](https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues?direction=desc&labels=Enhancement&page=1&sort=created&state=open).
|
225 |
<a href="https://twitter.com/home?status=Super%20Progressive%20Web%20Apps%20helps%20to%20convert%20your%20WordPress%20website%20into%20PWA%20%23SuperPWA%20https%3A//github.com/SuperPWA/Super-Progressive-Web-Apps/%20%40SuperPWA" target="_blank" style="width:100%"><img src="https://image.flaticon.com/icons/svg/174/174876.svg" title="Share SuperPWA on Twitter" width=20 height=20> Share on Twitter </a>
|
226 |
<p> <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> </p>
|
227 |
<p> <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> </p>
|
|
|
228 |
|
229 |
## 📇 Changelog
|
230 |
[superpwa.com/changelog/](https://superpwa.com/changelog/?utm_source=GitHub&utm_medium=Readme-Changelog).
|
addons/utm-tracking.php
CHANGED
@@ -45,6 +45,8 @@ function superpwa_utm_tracking_get_settings() {
|
|
45 |
|
46 |
$defaults = array(
|
47 |
'utm_source' => 'superpwa',
|
|
|
|
|
48 |
);
|
49 |
|
50 |
return get_option( 'superpwa_utm_tracking_settings', $defaults );
|
@@ -207,10 +209,10 @@ function superpwa_utm_tracking_validater_sanitizer( $settings ) {
|
|
207 |
$settings['utm_source'] = sanitize_text_field( $settings['utm_source'] ) == '' ? 'superpwa' : sanitize_text_field( $settings['utm_source'] );
|
208 |
|
209 |
// Sanitize campaign medium
|
210 |
-
$settings['utm_medium'] = sanitize_text_field( $settings['utm_medium'] );
|
211 |
|
212 |
// Sanitize campaign name
|
213 |
-
$settings['utm_campaign'] = sanitize_text_field( $settings['utm_campaign'] );
|
214 |
|
215 |
// Sanitize campaign term
|
216 |
$settings['utm_term'] = sanitize_text_field( $settings['utm_term'] );
|
@@ -261,7 +263,7 @@ function superpwa_utm_tracking_source_cb() {
|
|
261 |
</fieldset>
|
262 |
|
263 |
<p class="description">
|
264 |
-
<?php _e( 'Campaign Source is mandatory and defaults to <code>superpwa</code>.
|
265 |
</p>
|
266 |
|
267 |
<?php
|
@@ -279,9 +281,13 @@ function superpwa_utm_tracking_medium_cb() {
|
|
279 |
|
280 |
<fieldset>
|
281 |
|
282 |
-
<input type="text" name="superpwa_utm_tracking_settings[utm_medium]"
|
283 |
|
284 |
</fieldset>
|
|
|
|
|
|
|
|
|
285 |
|
286 |
<?php
|
287 |
}
|
@@ -298,9 +304,13 @@ function superpwa_utm_tracking_name_cb() {
|
|
298 |
|
299 |
<fieldset>
|
300 |
|
301 |
-
<input type="text" name="superpwa_utm_tracking_settings[utm_campaign]"
|
302 |
|
303 |
</fieldset>
|
|
|
|
|
|
|
|
|
304 |
|
305 |
<?php
|
306 |
}
|
45 |
|
46 |
$defaults = array(
|
47 |
'utm_source' => 'superpwa',
|
48 |
+
'utm_medium' => 'superpwa',
|
49 |
+
'utm_campaign' => 'superpwa',
|
50 |
);
|
51 |
|
52 |
return get_option( 'superpwa_utm_tracking_settings', $defaults );
|
209 |
$settings['utm_source'] = sanitize_text_field( $settings['utm_source'] ) == '' ? 'superpwa' : sanitize_text_field( $settings['utm_source'] );
|
210 |
|
211 |
// Sanitize campaign medium
|
212 |
+
$settings['utm_medium'] = sanitize_text_field( $settings['utm_medium'] ) == '' ? 'superpwa' : sanitize_text_field( $settings['utm_medium'] );
|
213 |
|
214 |
// Sanitize campaign name
|
215 |
+
$settings['utm_campaign'] = sanitize_text_field( $settings['utm_campaign'] ) == '' ? 'superpwa' : sanitize_text_field( $settings['utm_campaign'] );
|
216 |
|
217 |
// Sanitize campaign term
|
218 |
$settings['utm_term'] = sanitize_text_field( $settings['utm_term'] );
|
263 |
</fieldset>
|
264 |
|
265 |
<p class="description">
|
266 |
+
<?php _e( 'Campaign Source is mandatory and defaults to <code>superpwa</code>.', 'super-progressive-web-apps' ); ?>
|
267 |
</p>
|
268 |
|
269 |
<?php
|
281 |
|
282 |
<fieldset>
|
283 |
|
284 |
+
<input type="text" name="superpwa_utm_tracking_settings[utm_medium]" class="regular-text" value="<?php if ( isset( $settings['utm_medium'] ) && ( ! empty($settings['utm_medium']) ) ) echo esc_attr( $settings['utm_medium'] ); ?>"/>
|
285 |
|
286 |
</fieldset>
|
287 |
+
|
288 |
+
<p class="description">
|
289 |
+
<?php _e( 'Campaign Source is mandatory and defaults to <code>superpwa</code>.', 'super-progressive-web-apps' ); ?>
|
290 |
+
</p>
|
291 |
|
292 |
<?php
|
293 |
}
|
304 |
|
305 |
<fieldset>
|
306 |
|
307 |
+
<input type="text" name="superpwa_utm_tracking_settings[utm_campaign]" class="regular-text" value="<?php if ( isset( $settings['utm_campaign'] ) && ( ! empty($settings['utm_campaign']) ) ) echo esc_attr( $settings['utm_campaign'] ); ?>"/>
|
308 |
|
309 |
</fieldset>
|
310 |
+
|
311 |
+
<p class="description">
|
312 |
+
<?php _e( 'Campaign Source is mandatory and defaults to <code>superpwa</code>.', 'super-progressive-web-apps' ); ?>
|
313 |
+
</p>
|
314 |
|
315 |
<?php
|
316 |
}
|
admin/basic-setup.php
CHANGED
@@ -57,14 +57,25 @@ register_activation_hook( SUPERPWA_PATH_ABS . 'superpwa.php', 'superpwa_activate
|
|
57 |
* Will redirect to SuperPWA settings page when plugin is activated.
|
58 |
* Will not redirect if multiple plugins are activated at the same time.
|
59 |
* Will not redirect when activated network wide on multisite. Network admins know their way.
|
|
|
|
|
|
|
|
|
|
|
60 |
*
|
61 |
* @since 2.0
|
|
|
62 |
*/
|
63 |
function superpwa_activation_redirect( $plugin, $network_wide ) {
|
|
|
64 |
// Return if not SuperPWA or if plugin is activated network wide.
|
65 |
if ( $plugin !== plugin_basename( SUPERPWA_PLUGIN_FILE ) || $network_wide === true ) {
|
66 |
return false;
|
67 |
}
|
|
|
|
|
|
|
|
|
68 |
|
69 |
/**
|
70 |
* An instance of the WP_Plugins_List_Table class.
|
@@ -82,7 +93,6 @@ function superpwa_activation_redirect( $plugin, $network_wide ) {
|
|
82 |
// Redirect to SuperPWA settings page.
|
83 |
exit( wp_redirect( admin_url( 'admin.php?page=superpwa' ) ) );
|
84 |
}
|
85 |
-
|
86 |
add_action( 'activated_plugin', 'superpwa_activation_redirect', PHP_INT_MAX, 2 );
|
87 |
|
88 |
/**
|
@@ -401,18 +411,22 @@ function superpwa_add_rewrite_rules() {
|
|
401 |
* Generates SW and Manifest on the fly.
|
402 |
*
|
403 |
* This way no physical files have to be placed on WP root folder. Hallelujah!
|
404 |
-
*
|
405 |
-
* @
|
406 |
*
|
407 |
* @uses superpwa_get_sw_filename()
|
408 |
* @uses superpwa_get_manifest_filename()
|
409 |
-
* @uses
|
|
|
|
|
|
|
|
|
410 |
*/
|
411 |
function superpwa_generate_sw_and_manifest_on_fly( $query ) {
|
412 |
if ( ! property_exists( $query, 'query_vars' ) || ! is_array( $query->query_vars ) ) {
|
413 |
return;
|
414 |
}
|
415 |
-
$query_vars_as_string =
|
416 |
$manifest_filename = superpwa_get_manifest_filename();
|
417 |
$sw_filename = superpwa_get_sw_filename();
|
418 |
|
57 |
* Will redirect to SuperPWA settings page when plugin is activated.
|
58 |
* Will not redirect if multiple plugins are activated at the same time.
|
59 |
* Will not redirect when activated network wide on multisite. Network admins know their way.
|
60 |
+
*
|
61 |
+
* @param (string) $plugin Path to the main plugin file from plugins directory.
|
62 |
+
* @param (bool) $network_wide True when network activated on multisites. False otherwise.
|
63 |
+
*
|
64 |
+
* @author Arun Basil Lal
|
65 |
*
|
66 |
* @since 2.0
|
67 |
+
* @since 2.1 Added a check to see if WP_Plugins_List_Table class is available.
|
68 |
*/
|
69 |
function superpwa_activation_redirect( $plugin, $network_wide ) {
|
70 |
+
|
71 |
// Return if not SuperPWA or if plugin is activated network wide.
|
72 |
if ( $plugin !== plugin_basename( SUPERPWA_PLUGIN_FILE ) || $network_wide === true ) {
|
73 |
return false;
|
74 |
}
|
75 |
+
|
76 |
+
if ( ! class_exists( 'WP_Plugins_List_Table' ) ) {
|
77 |
+
return false;
|
78 |
+
}
|
79 |
|
80 |
/**
|
81 |
* An instance of the WP_Plugins_List_Table class.
|
93 |
// Redirect to SuperPWA settings page.
|
94 |
exit( wp_redirect( admin_url( 'admin.php?page=superpwa' ) ) );
|
95 |
}
|
|
|
96 |
add_action( 'activated_plugin', 'superpwa_activation_redirect', PHP_INT_MAX, 2 );
|
97 |
|
98 |
/**
|
411 |
* Generates SW and Manifest on the fly.
|
412 |
*
|
413 |
* This way no physical files have to be placed on WP root folder. Hallelujah!
|
414 |
+
*
|
415 |
+
* @author Maria Daniel Deepak <daniel@danieldeepak.com>
|
416 |
*
|
417 |
* @uses superpwa_get_sw_filename()
|
418 |
* @uses superpwa_get_manifest_filename()
|
419 |
+
* @uses superpwa_manifest_template()
|
420 |
+
* @uses superpwa_sw_template()
|
421 |
+
*
|
422 |
+
* @since 2.0
|
423 |
+
* @since 2.1 uses http_build_query() instead of implode() to convert query_vars to string.
|
424 |
*/
|
425 |
function superpwa_generate_sw_and_manifest_on_fly( $query ) {
|
426 |
if ( ! property_exists( $query, 'query_vars' ) || ! is_array( $query->query_vars ) ) {
|
427 |
return;
|
428 |
}
|
429 |
+
$query_vars_as_string = http_build_query( $query->query_vars );
|
430 |
$manifest_filename = superpwa_get_manifest_filename();
|
431 |
$sw_filename = superpwa_get_sw_filename();
|
432 |
|
languages/super-progressive-web-apps.pot
CHANGED
@@ -1,392 +1,390 @@
|
|
1 |
-
# Copyright (C)
|
2 |
-
# This file is distributed under the same license as the Super Progressive Web Apps plugin.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Super Progressive Web Apps 2.
|
6 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/super-progressive-web-apps\n"
|
7 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date:
|
13 |
-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
-
"X-Generator: WP-CLI 2.
|
15 |
-
"X-Domain: super-progressive-web-apps\n"
|
16 |
-
|
17 |
-
#. Plugin Name of the plugin
|
18 |
-
#: addons/utm-tracking.php:35
|
19 |
-
#: admin/admin-ui-setup.php:28
|
20 |
-
#: admin/admin-ui-setup.php:31
|
21 |
-
#: admin/admin-ui-setup.php:34
|
22 |
-
msgid "Super Progressive Web Apps"
|
23 |
-
msgstr ""
|
24 |
-
|
25 |
-
#. Plugin URI of the plugin
|
26 |
-
msgid "https://superpwa.com/?utm_source=superpwa-plugin&utm_medium=plugin-uri"
|
27 |
-
msgstr ""
|
28 |
-
|
29 |
-
#. Description of the plugin
|
30 |
-
msgid "Convert your WordPress website into a Progressive Web App"
|
31 |
-
msgstr ""
|
32 |
-
|
33 |
-
#. Author of the plugin
|
34 |
-
#: admin/admin-ui-setup.php:28
|
35 |
-
msgid "SuperPWA"
|
36 |
-
msgstr ""
|
37 |
-
|
38 |
-
#. Author URI of the plugin
|
39 |
-
msgid "https://superpwa.com/?utm_source=superpwa-plugin&utm_medium=author-uri"
|
40 |
-
msgstr ""
|
41 |
-
|
42 |
-
#: 3rd-party/onesignal.php:
|
43 |
-
msgid "<strong>SuperPWA</strong> is not compatible with OneSignal on multisites yet. Disable one of these plugins until the compatibility is available.<br>Please refer to the <a href=\"%s\" target=\"_blank\">OneSignal integration documentation</a> for more info. "
|
44 |
-
msgstr ""
|
45 |
-
|
46 |
-
#:
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
#:
|
52 |
-
msgid "
|
53 |
-
msgstr ""
|
54 |
-
|
55 |
-
#: addons/utm-tracking.php:
|
56 |
-
msgid "
|
57 |
-
msgstr ""
|
58 |
-
|
59 |
-
#: addons/utm-tracking.php:
|
60 |
-
msgid "Campaign
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: addons/utm-tracking.php:
|
64 |
-
msgid "Campaign
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: addons/utm-tracking.php:
|
68 |
-
msgid "Campaign
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: addons/utm-tracking.php:
|
72 |
-
msgid "Campaign
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
-
#: addons/utm-tracking.php:
|
76 |
-
msgid "
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: addons/utm-tracking.php:
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
msgid "Demo"
|
392 |
-
msgstr ""
|
1 |
+
# Copyright (C) 2020 SuperPWA
|
2 |
+
# This file is distributed under the same license as the Super Progressive Web Apps plugin.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Super Progressive Web Apps 2.1\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/super-progressive-web-apps\n"
|
7 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2020-05-28T22:12:23+00:00\n"
|
13 |
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
+
"X-Generator: WP-CLI 2.2.0\n"
|
15 |
+
"X-Domain: super-progressive-web-apps\n"
|
16 |
+
|
17 |
+
#. Plugin Name of the plugin
|
18 |
+
#: addons/utm-tracking.php:35
|
19 |
+
#: admin/admin-ui-setup.php:28
|
20 |
+
#: admin/admin-ui-setup.php:31
|
21 |
+
#: admin/admin-ui-setup.php:34
|
22 |
+
msgid "Super Progressive Web Apps"
|
23 |
+
msgstr ""
|
24 |
+
|
25 |
+
#. Plugin URI of the plugin
|
26 |
+
msgid "https://superpwa.com/?utm_source=superpwa-plugin&utm_medium=plugin-uri"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#. Description of the plugin
|
30 |
+
msgid "Convert your WordPress website into a Progressive Web App"
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
+
#. Author of the plugin
|
34 |
+
#: admin/admin-ui-setup.php:28
|
35 |
+
msgid "SuperPWA"
|
36 |
+
msgstr ""
|
37 |
+
|
38 |
+
#. Author URI of the plugin
|
39 |
+
msgid "https://superpwa.com/?utm_source=superpwa-plugin&utm_medium=author-uri"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: 3rd-party/onesignal.php:224
|
43 |
+
msgid "<strong>SuperPWA</strong> is not compatible with OneSignal on multisites yet. Disable one of these plugins until the compatibility is available.<br>Please refer to the <a href=\"%s\" target=\"_blank\">OneSignal integration documentation</a> for more info. "
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: addons/utm-tracking.php:35
|
47 |
+
#: admin/admin-ui-render-addons.php:49
|
48 |
+
msgid "UTM Tracking"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
+
#: addons/utm-tracking.php:148
|
52 |
+
msgid "Current Start URL"
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: addons/utm-tracking.php:157
|
56 |
+
msgid "Campaign Source"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: addons/utm-tracking.php:166
|
60 |
+
msgid "Campaign Medium"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: addons/utm-tracking.php:175
|
64 |
+
msgid "Campaign Name"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: addons/utm-tracking.php:184
|
68 |
+
msgid "Campaign Term"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: addons/utm-tracking.php:193
|
72 |
+
msgid "Campaign Content"
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: addons/utm-tracking.php:236
|
76 |
+
msgid "This add-on automatically adds UTM campaign parameters to the <code>Start Page</code> URL in your <a href=\"%s\" target=\"_blank\">manifest</a>. This will help you identify visitors coming specifically from your app. <a href=\"%s\" target=\"_blank\">Read more</a> about UTM Tracking."
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#: addons/utm-tracking.php:266
|
80 |
+
#: addons/utm-tracking.php:289
|
81 |
+
#: addons/utm-tracking.php:312
|
82 |
+
msgid "Campaign Source is mandatory and defaults to <code>superpwa</code>."
|
83 |
+
msgstr ""
|
84 |
+
|
85 |
+
#: addons/utm-tracking.php:372
|
86 |
+
#: admin/admin-ui-render-settings.php:419
|
87 |
+
msgid "Settings saved."
|
88 |
+
msgstr ""
|
89 |
+
|
90 |
+
#: addons/utm-tracking.php:381
|
91 |
+
msgid "UTM Tracking for"
|
92 |
+
msgstr ""
|
93 |
+
|
94 |
+
#: addons/utm-tracking.php:392
|
95 |
+
#: admin/admin-ui-render-settings.php:442
|
96 |
+
msgid "Save Settings"
|
97 |
+
msgstr ""
|
98 |
+
|
99 |
+
#: admin/admin-ui-render-addons.php:50
|
100 |
+
msgid "Track visits from your app by adding UTM tracking parameters to the Start Page URL."
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: admin/admin-ui-render-addons.php:55
|
104 |
+
msgid "Customize Settings →"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: admin/admin-ui-render-addons.php:60
|
108 |
+
msgid "Apple Touch Icons"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: admin/admin-ui-render-addons.php:61
|
112 |
+
msgid "Set the Application Icon and Splash Screen Icon as Apple Touch Icons for compatibility with iOS devices."
|
113 |
+
msgstr ""
|
114 |
+
|
115 |
+
#: admin/admin-ui-render-addons.php:66
|
116 |
+
msgid "More Details →"
|
117 |
+
msgstr ""
|
118 |
+
|
119 |
+
#: admin/admin-ui-render-addons.php:115
|
120 |
+
msgid "<strong>Add-On activated: %s.</strong> <a href=\"%s\"%s>%s</a>"
|
121 |
+
msgstr ""
|
122 |
+
|
123 |
+
#: admin/admin-ui-render-addons.php:123
|
124 |
+
msgid "Add-On deactivated"
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: admin/admin-ui-render-addons.php:135
|
128 |
+
msgid "Add-Ons for"
|
129 |
+
msgstr ""
|
130 |
+
|
131 |
+
#: admin/admin-ui-render-addons.php:137
|
132 |
+
msgid "Add-Ons extend the functionality of SuperPWA."
|
133 |
+
msgstr ""
|
134 |
+
|
135 |
+
#: admin/admin-ui-render-addons.php:177
|
136 |
+
#: admin/admin-ui-render-addons.php:349
|
137 |
+
msgid "Deactivate"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
#: admin/admin-ui-render-addons.php:182
|
141 |
+
msgid "More information about %s"
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: admin/admin-ui-render-addons.php:182
|
145 |
+
msgid "More Details"
|
146 |
+
msgstr ""
|
147 |
+
|
148 |
+
#: admin/admin-ui-render-addons.php:197
|
149 |
+
msgid "<span class=\"compatibility-compatible\"><strong>Add-On active.</strong> <a href=\"%s\"%s>%s</a></span>"
|
150 |
+
msgstr ""
|
151 |
+
|
152 |
+
#: admin/admin-ui-render-addons.php:200
|
153 |
+
msgid "<span class=\"compatibility-compatible\"><strong>Compatible</strong> with your version of SuperPWA</span>"
|
154 |
+
msgstr ""
|
155 |
+
|
156 |
+
#: admin/admin-ui-render-addons.php:203
|
157 |
+
msgid "<span class=\"compatibility-incompatible\"><strong>Please upgrade</strong> to the latest version of SuperPWA</span>"
|
158 |
+
msgstr ""
|
159 |
+
|
160 |
+
#: admin/admin-ui-render-addons.php:217
|
161 |
+
msgid "SuperPWA Newsletter"
|
162 |
+
msgstr ""
|
163 |
+
|
164 |
+
#: admin/admin-ui-render-addons.php:221
|
165 |
+
msgid "Learn more about Progressive Web Apps<br>and get latest updates about SuperPWA"
|
166 |
+
msgstr ""
|
167 |
+
|
168 |
+
#: admin/admin-ui-render-addons.php:229
|
169 |
+
msgid "Enter your email"
|
170 |
+
msgstr ""
|
171 |
+
|
172 |
+
#: admin/admin-ui-render-addons.php:231
|
173 |
+
msgid "Subscribe"
|
174 |
+
msgstr ""
|
175 |
+
|
176 |
+
#: admin/admin-ui-render-addons.php:233
|
177 |
+
msgid "we'll share our <code>root</code> password before we share your email with anyone else."
|
178 |
+
msgstr ""
|
179 |
+
|
180 |
+
#: admin/admin-ui-render-addons.php:345
|
181 |
+
msgid "Activate"
|
182 |
+
msgstr ""
|
183 |
+
|
184 |
+
#: admin/admin-ui-render-addons.php:354
|
185 |
+
msgid "Install"
|
186 |
+
msgstr ""
|
187 |
+
|
188 |
+
#: admin/admin-ui-render-settings.php:61
|
189 |
+
msgid "Used when there is insufficient space to display the full name of the application. <span id=\"superpwa-app-short-name-limit\"><code>12</code> characters or less.</span>"
|
190 |
+
msgstr ""
|
191 |
+
|
192 |
+
#: admin/admin-ui-render-settings.php:84
|
193 |
+
msgid "A brief description of what your app is about."
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#: admin/admin-ui-render-settings.php:105
|
197 |
+
#: admin/admin-ui-render-settings.php:128
|
198 |
+
msgid "Choose Icon"
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#: admin/admin-ui-render-settings.php:109
|
202 |
+
msgid "This will be the icon of your app when installed on the phone. Must be a <code>PNG</code> image exactly <code>192x192</code> in size."
|
203 |
+
msgstr ""
|
204 |
+
|
205 |
+
#: admin/admin-ui-render-settings.php:132
|
206 |
+
msgid "This icon will be displayed on the splash screen of your app on supported devices. Must be a <code>PNG</code> image exactly <code>512x512</code> in size."
|
207 |
+
msgstr ""
|
208 |
+
|
209 |
+
#: admin/admin-ui-render-settings.php:152
|
210 |
+
msgid "Background color of the splash screen."
|
211 |
+
msgstr ""
|
212 |
+
|
213 |
+
#: admin/admin-ui-render-settings.php:172
|
214 |
+
msgid "Theme color is used on supported devices to tint the UI elements of the browser and app switcher. When in doubt, use the same color as <code>Background Color</code>."
|
215 |
+
msgstr ""
|
216 |
+
|
217 |
+
#: admin/admin-ui-render-settings.php:202
|
218 |
+
msgid "Specify the page to load when the application is launched from a device. Current start page is <code>%s</code>"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: admin/admin-ui-render-settings.php:210
|
222 |
+
msgid "Use AMP version of the start page."
|
223 |
+
msgstr ""
|
224 |
+
|
225 |
+
#: admin/admin-ui-render-settings.php:216
|
226 |
+
msgid "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."
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
+
#: admin/admin-ui-render-settings.php:229
|
230 |
+
msgid "Please enable AMP support for Page in <a href=\"%s\">Theme Settings > Theme Panel</a> > AMP > Post Type Support."
|
231 |
+
msgstr ""
|
232 |
+
|
233 |
+
#: admin/admin-ui-render-settings.php:263
|
234 |
+
msgid "Offline page is displayed when the device is offline and the requested page is not already cached. Current offline page is <code>%s</code>"
|
235 |
+
msgstr ""
|
236 |
+
|
237 |
+
#: admin/admin-ui-render-settings.php:283
|
238 |
+
msgid "Follow Device Orientation"
|
239 |
+
msgstr ""
|
240 |
+
|
241 |
+
#: admin/admin-ui-render-settings.php:286
|
242 |
+
msgid "Portrait"
|
243 |
+
msgstr ""
|
244 |
+
|
245 |
+
#: admin/admin-ui-render-settings.php:289
|
246 |
+
msgid "Landscape"
|
247 |
+
msgstr ""
|
248 |
+
|
249 |
+
#: admin/admin-ui-render-settings.php:295
|
250 |
+
msgid "Set the orientation of your app on devices. When set to <code>Follow Device Orientation</code> your app will rotate as the device is rotated."
|
251 |
+
msgstr ""
|
252 |
+
|
253 |
+
#: admin/admin-ui-render-settings.php:317
|
254 |
+
msgid "Full Screen"
|
255 |
+
msgstr ""
|
256 |
+
|
257 |
+
#: admin/admin-ui-render-settings.php:320
|
258 |
+
msgid "Standalone"
|
259 |
+
msgstr ""
|
260 |
+
|
261 |
+
#: admin/admin-ui-render-settings.php:323
|
262 |
+
msgid "Minimal UI"
|
263 |
+
msgstr ""
|
264 |
+
|
265 |
+
#: admin/admin-ui-render-settings.php:326
|
266 |
+
msgid "Browser"
|
267 |
+
msgstr ""
|
268 |
+
|
269 |
+
#: admin/admin-ui-render-settings.php:332
|
270 |
+
msgid "Display mode decides what browser UI is shown when your app is launched. <code>Standalone</code> is default. <a href=\"%s\" target=\"_blank\">What's the difference? →</a>"
|
271 |
+
msgstr ""
|
272 |
+
|
273 |
+
#: admin/admin-ui-render-settings.php:355
|
274 |
+
msgid "Manifest generated successfully. You can <a href=\"%s\" target=\"_blank\">See it here →</a>"
|
275 |
+
msgstr ""
|
276 |
+
|
277 |
+
#: admin/admin-ui-render-settings.php:358
|
278 |
+
msgid "Manifest generation failed. <a href=\"%s\" target=\"_blank\">Fix it →</a>"
|
279 |
+
msgstr ""
|
280 |
+
|
281 |
+
#: admin/admin-ui-render-settings.php:379
|
282 |
+
msgid "Service worker generated successfully. <a href=\"%s\" target=\"_blank\">See it here →</a>"
|
283 |
+
msgstr ""
|
284 |
+
|
285 |
+
#: admin/admin-ui-render-settings.php:382
|
286 |
+
msgid "Service worker generation failed. <a href=\"%s\" target=\"_blank\">Fix it →</a>"
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: admin/admin-ui-render-settings.php:395
|
290 |
+
msgid "Your website is served over HTTPS."
|
291 |
+
msgstr ""
|
292 |
+
|
293 |
+
#: admin/admin-ui-render-settings.php:398
|
294 |
+
msgid "Progressive Web Apps require that your website is served over HTTPS. Please contact your host to add a SSL certificate to your domain."
|
295 |
+
msgstr ""
|
296 |
+
|
297 |
+
#: admin/admin-ui-setup.php:31
|
298 |
+
#: admin/basic-setup.php:365
|
299 |
+
msgid "Settings"
|
300 |
+
msgstr ""
|
301 |
+
|
302 |
+
#: admin/admin-ui-setup.php:34
|
303 |
+
msgid "Add-Ons"
|
304 |
+
msgstr ""
|
305 |
+
|
306 |
+
#: admin/admin-ui-setup.php:63
|
307 |
+
msgid "Application Name"
|
308 |
+
msgstr ""
|
309 |
+
|
310 |
+
#: admin/admin-ui-setup.php:72
|
311 |
+
msgid "Application Short Name"
|
312 |
+
msgstr ""
|
313 |
+
|
314 |
+
#: admin/admin-ui-setup.php:81
|
315 |
+
msgid "Description"
|
316 |
+
msgstr ""
|
317 |
+
|
318 |
+
#: admin/admin-ui-setup.php:90
|
319 |
+
msgid "Application Icon"
|
320 |
+
msgstr ""
|
321 |
+
|
322 |
+
#: admin/admin-ui-setup.php:99
|
323 |
+
msgid "Splash Screen Icon"
|
324 |
+
msgstr ""
|
325 |
+
|
326 |
+
#: admin/admin-ui-setup.php:108
|
327 |
+
msgid "Background Color"
|
328 |
+
msgstr ""
|
329 |
+
|
330 |
+
#: admin/admin-ui-setup.php:117
|
331 |
+
msgid "Theme Color"
|
332 |
+
msgstr ""
|
333 |
+
|
334 |
+
#: admin/admin-ui-setup.php:126
|
335 |
+
msgid "Start Page"
|
336 |
+
msgstr ""
|
337 |
+
|
338 |
+
#: admin/admin-ui-setup.php:135
|
339 |
+
msgid "Offline Page"
|
340 |
+
msgstr ""
|
341 |
+
|
342 |
+
#: admin/admin-ui-setup.php:144
|
343 |
+
msgid "Orientation"
|
344 |
+
msgstr ""
|
345 |
+
|
346 |
+
#: admin/admin-ui-setup.php:153
|
347 |
+
msgid "Display"
|
348 |
+
msgstr ""
|
349 |
+
|
350 |
+
#: admin/admin-ui-setup.php:162
|
351 |
+
msgid "Status"
|
352 |
+
msgstr ""
|
353 |
+
|
354 |
+
#: admin/admin-ui-setup.php:170
|
355 |
+
msgid "Manifest"
|
356 |
+
msgstr ""
|
357 |
+
|
358 |
+
#: admin/admin-ui-setup.php:179
|
359 |
+
msgid "Service Worker"
|
360 |
+
msgstr ""
|
361 |
+
|
362 |
+
#: admin/admin-ui-setup.php:188
|
363 |
+
msgid "HTTPS"
|
364 |
+
msgstr ""
|
365 |
+
|
366 |
+
#: admin/admin-ui-setup.php:348
|
367 |
+
msgid "If you like SuperPWA, please <a href=\"%s\" target=\"_blank\">make a donation</a> or leave a <a href=\"%s\" target=\"_blank\">★★★★★</a> rating to support continued development. Thanks a bunch!"
|
368 |
+
msgstr ""
|
369 |
+
|
370 |
+
#: admin/basic-setup.php:113
|
371 |
+
msgid "Your app is ready with the default settings. "
|
372 |
+
msgstr ""
|
373 |
+
|
374 |
+
#: admin/basic-setup.php:117
|
375 |
+
msgid "<a href=\"%s\">Customize your app →</a>"
|
376 |
+
msgstr ""
|
377 |
+
|
378 |
+
#: admin/basic-setup.php:119
|
379 |
+
#: admin/basic-setup.php:153
|
380 |
+
msgid "Thank you for installing <strong>Super Progressive Web Apps!</strong> "
|
381 |
+
msgstr ""
|
382 |
+
|
383 |
+
#: admin/basic-setup.php:128
|
384 |
+
#: admin/basic-setup.php:162
|
385 |
+
msgid "<strong>SuperPWA</strong>: Successfully updated to version %s. Thank you! <a href=\"%s\" target=\"_blank\">Discover new features and read the story →</a>"
|
386 |
+
msgstr ""
|
387 |
+
|
388 |
+
#: admin/basic-setup.php:381
|
389 |
+
msgid "Demo"
|
390 |
+
msgstr ""
|
|
|
|
public/manifest.php
CHANGED
@@ -311,7 +311,7 @@ function superpwa_get_orientation() {
|
|
311 |
/**
|
312 |
* Get display of PWA
|
313 |
*
|
314 |
-
* @return
|
315 |
*
|
316 |
* @author Jose Varghese
|
317 |
*
|
@@ -322,7 +322,7 @@ function superpwa_get_display() {
|
|
322 |
// Get Settings
|
323 |
$settings = superpwa_get_settings();
|
324 |
|
325 |
-
$display = isset( $settings['display'] ) ? $settings['display'] :
|
326 |
|
327 |
switch ( $display ) {
|
328 |
|
311 |
/**
|
312 |
* Get display of PWA
|
313 |
*
|
314 |
+
* @return (string) Display of PWA as set in the plugin settings.
|
315 |
*
|
316 |
* @author Jose Varghese
|
317 |
*
|
322 |
// Get Settings
|
323 |
$settings = superpwa_get_settings();
|
324 |
|
325 |
+
$display = isset( $settings['display'] ) ? $settings['display'] : 1;
|
326 |
|
327 |
switch ( $display ) {
|
328 |
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Super Progressive Web Apps ===
|
2 |
-
Contributors: superpwa, arunbasillal, josevarghese
|
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: 5.
|
7 |
Requires PHP: 5.3
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
@@ -13,6 +13,9 @@ SuperPWA helps you convert your WordPress website into a Progressive Web App ins
|
|
13 |
|
14 |
== Description ==
|
15 |
|
|
|
|
|
|
|
16 |
Progressive Web Apps (PWA) is a new technology that combines the best of mobile web and the best of mobile apps to create a superior mobile web experience. They are installed on the phone like a normal app (web app) and can be accessed from the home screen.
|
17 |
|
18 |
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!
|
@@ -178,6 +181,15 @@ Feel free to get in touch if you have any questions.
|
|
178 |
|
179 |
== Changelog ==
|
180 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
= 2.0.2 =
|
182 |
* Date: 16.January.2019
|
183 |
* Bug Fix: Fix fatal error in PHP versions prior to PHP 5.5. "Cant use function return value in write context".
|
@@ -301,6 +313,14 @@ Feel free to get in touch if you have any questions.
|
|
301 |
|
302 |
== Upgrade Notice ==
|
303 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
= 2.0.2 =
|
305 |
* Bug Fix: Fix fatal error in PHP versions prior to PHP 5.5. "Cant use function return value in write context".
|
306 |
|
@@ -402,4 +422,4 @@ Feel free to get in touch if you have any questions.
|
|
402 |
* New Feature: Set custom offline page: Select the page you want the user to see when a page that isn't in the cache is accessed and the user is offline.
|
403 |
|
404 |
= 1.0 =
|
405 |
-
* First release of the plugin.
|
1 |
=== Super Progressive Web Apps ===
|
2 |
+
Contributors: superpwa, arunbasillal, josevarghese
|
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: 5.4.1
|
7 |
Requires PHP: 5.3
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
> **Help decide on the future of SuperPWA**
|
17 |
+
> We are looking for your input to decide on the future of SuperPWA. If you wish to acquire SuperPWA as a whole and continue it's development or if you are interested in a premium version of the plugin with extended features, [please fill in the form and let us know](https://superpwa.com/superpwa-2-1/?utm_source=wordpress.org&utm_medium=description-future).
|
18 |
+
|
19 |
Progressive Web Apps (PWA) is a new technology that combines the best of mobile web and the best of mobile apps to create a superior mobile web experience. They are installed on the phone like a normal app (web app) and can be accessed from the home screen.
|
20 |
|
21 |
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!
|
181 |
|
182 |
== Changelog ==
|
183 |
|
184 |
+
= 2.1 =
|
185 |
+
* Date: [29.May.2020](https://superpwa.com/superpwa-2-1/?utm_source=wordpress.org&utm_medium=changelog)
|
186 |
+
* Tested with WordPress 5.4.1.
|
187 |
+
* Enhancement: Removed the WordPress admin notice suggesting to add SuperPWA manifest to OneSignal. [#114] (https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/114)
|
188 |
+
* Enhancement: Updated fallback value in superpwa_get_display() to match the default value in superpwa_get_settings().
|
189 |
+
* Enhancement: UTM Tracking Add-on: Added default values for Campaign Medium and Campaign Name.
|
190 |
+
* Bug Fix: Fixed a rare PHP Notice: Array to string conversion in basic-setup.php on line 415. [#92](https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/92)
|
191 |
+
* Bug Fix: Added a check to see if WP_Plugins_List_Table class is available before using it. [#93](https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/93)
|
192 |
+
|
193 |
= 2.0.2 =
|
194 |
* Date: 16.January.2019
|
195 |
* Bug Fix: Fix fatal error in PHP versions prior to PHP 5.5. "Cant use function return value in write context".
|
313 |
|
314 |
== Upgrade Notice ==
|
315 |
|
316 |
+
= 2.1 =
|
317 |
+
* Tested with WordPress 5.4.1.
|
318 |
+
* Enhancement: Removed the WordPress admin notice suggesting to add SuperPWA manifest to OneSignal.
|
319 |
+
* Enhancement: Updated fallback value in superpwa_get_display() to match the default value in superpwa_get_settings().
|
320 |
+
* Enhancement: UTM Tracking Add-on: Added default values for Campaign Medium and Campaign Name.
|
321 |
+
* Bug Fix: Fixed a rare PHP Notice: Array to string conversion in basic-setup.php on line 415.
|
322 |
+
* Bug Fix: Added a check to see if WP_Plugins_List_Table class is available before using it.
|
323 |
+
|
324 |
= 2.0.2 =
|
325 |
* Bug Fix: Fix fatal error in PHP versions prior to PHP 5.5. "Cant use function return value in write context".
|
326 |
|
422 |
* New Feature: Set custom offline page: Select the page you want the user to see when a page that isn't in the cache is accessed and the user is offline.
|
423 |
|
424 |
= 1.0 =
|
425 |
+
* First release of the plugin.
|
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: 2.
|
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
|
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* /3rd-party/ - Functions for compatibility with 3rd party plugins and hosts.
|
22 |
* /addons/ - Bundled add-ons
|
23 |
-
* /admin/
|
24 |
* /functions/ - Functions and utilites.
|
25 |
* /includes/ - External third party classes and libraries.
|
26 |
* /languages/ - Translation files go here.
|
@@ -43,7 +43,7 @@ if ( ! defined('ABSPATH') ) exit;
|
|
43 |
* @since 1.0
|
44 |
*/
|
45 |
if ( ! defined( 'SUPERPWA_VERSION' ) ) {
|
46 |
-
define( 'SUPERPWA_VERSION' , '2.
|
47 |
}
|
48 |
|
49 |
/**
|
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: 2.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
|
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.
|
43 |
* @since 1.0
|
44 |
*/
|
45 |
if ( ! defined( 'SUPERPWA_VERSION' ) ) {
|
46 |
+
define( 'SUPERPWA_VERSION' , '2.1' );
|
47 |
}
|
48 |
|
49 |
/**
|