Super Progressive Web Apps - Version 2.1.5

Version Description

  • Date: 06.January.2021 Enhancement: Added the support of google analytics #149 Enhancement: Disabling Add to home screen #150 Enhancement: Support for Yandex manifest #146 Enhancement: Addex Quick action (shortcut) feature for PWA #147 Enhancement: Improve user interface #142 Enhancement: Added the tutorial link for Call To Action and Android APK APP Generator #145
Download this release

Release Info

Developer superpwa
Plugin Icon 128x128 Super Progressive Web Apps
Version 2.1.5
Comparing to
See all releases

Code changes from version 2.1.4 to 2.1.5

3rd-party/yandex.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * yandex integration
4
+ *
5
+ * @link https://wordpress.org/plugins/onesignal-free-web-push-notifications/
6
+ *
7
+ * @since 1.6
8
+ *
9
+ * @function superpwa_yandex_manifest_support() Add array of yandex to SuperPWA manifest as per https://yandex.ru/dev/turboapps/doc/dev/manifest.html
10
+ */
11
+
12
+ add_filter( 'superpwa_manifest', 'superpwa_yandex_manifest_support' );
13
+ function superpwa_yandex_manifest_support( $manifest ){
14
+
15
+ // Get Settings
16
+ $settings = superpwa_get_settings();
17
+ if( isset($settings['yandex_support']) && $settings['yandex_support']==1 ){
18
+ $manifest['yandex'] = array(
19
+ 'manifest_version' => 1,
20
+ 'app_version' => SUPERPWA_VERSION,
21
+ 'cache' => array(
22
+ 'resources'=> array('/style.css'),
23
+ 'ignored_query_params'=> array(),
24
+ )
25
+ );
26
+ }
27
+
28
+ return $manifest;
29
+ }
admin/admin-ui-render-addons.php CHANGED
@@ -73,6 +73,7 @@ function superpwa_get_addons( $slug = false ) {
73
  'type' => 'addon_pro',
74
  'icon' => 'call-to-action.png',
75
  'link' => admin_url('admin.php?page=superpwa-upgrade'),
 
76
  'admin_link' => admin_url('admin.php?page=superpwa-call-to-action'),
77
  'admin_link_text' => __( 'Customize Settings &rarr;', 'super-progressive-web-apps' ),
78
  'admin_link_target' => 'admin',
@@ -84,6 +85,7 @@ function superpwa_get_addons( $slug = false ) {
84
  'type' => 'addon_pro',
85
  'icon' => 'android-apk-app.png',
86
  'link' => admin_url('admin.php?page=superpwa-upgrade'),
 
87
  'admin_link' => admin_url('admin.php?page=superpwa-android-apk-app'),
88
  'admin_link_text' => __( 'Customize Settings &rarr;', 'super-progressive-web-apps' ),
89
  'admin_link_target' => 'admin',
@@ -201,7 +203,13 @@ function superpwa_addons_interface_render() {
201
  </a>
202
  </li>
203
  <li>
204
- <a href="<?php echo $addon['link'] . (($addon['admin_link_target'] === 'external')?'?utm_source=superpwa-plugin&utm_medium=addon-card': ''); ?>" target="_blank" aria-label="<?php printf( __( 'More information about %s', 'super-progressive-web-apps' ), $addon['name'] ); ?>" data-title="<?php echo $addon['name']; ?>"><?php _e( 'More Details', 'super-progressive-web-apps' ); ?></a>
 
 
 
 
 
 
205
  </li>
206
  </ul>
207
  </div>
@@ -245,7 +253,7 @@ function superpwa_addons_interface_render() {
245
 
246
  <div class="superpwa-newsletter-form" style="margin: 18px 10px 0px;">
247
 
248
- <form method="post" action="https://superpwa.com/newsletter/" target="_blank">
249
  <fieldset>
250
 
251
  <input name="newsletter-email" value="<?php $user = wp_get_current_user(); echo esc_attr( $user->user_email ); ?>" placeholder="<?php _e( 'Enter your email', 'super-progressive-web-apps' ); ?>" style="width: 60%; margin-left: 0px;" type="email">
@@ -547,4 +555,27 @@ function superpwa_addons_handle_deactivation() {
547
  wp_redirect( admin_url( 'admin.php?page=superpwa-addons&deactivated=1&addon=' . $_GET['addon'] ) );
548
  exit;
549
  }
550
- add_action( 'admin_post_superpwa_deactivate_addon', 'superpwa_addons_handle_deactivation' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  'type' => 'addon_pro',
74
  'icon' => 'call-to-action.png',
75
  'link' => admin_url('admin.php?page=superpwa-upgrade'),
76
+ 'more_link' => 'https://superpwa.com/doc/call-to-action-cta-add-on-for-superpwa/',
77
  'admin_link' => admin_url('admin.php?page=superpwa-call-to-action'),
78
  'admin_link_text' => __( 'Customize Settings &rarr;', 'super-progressive-web-apps' ),
79
  'admin_link_target' => 'admin',
85
  'type' => 'addon_pro',
86
  'icon' => 'android-apk-app.png',
87
  'link' => admin_url('admin.php?page=superpwa-upgrade'),
88
+ 'more_link' => 'https://superpwa.com/doc/android-apk-app-generator-add-on-for-superpwa/',
89
  'admin_link' => admin_url('admin.php?page=superpwa-android-apk-app'),
90
  'admin_link_text' => __( 'Customize Settings &rarr;', 'super-progressive-web-apps' ),
91
  'admin_link_target' => 'admin',
203
  </a>
204
  </li>
205
  <li>
206
+ <?php
207
+ $link = $addon['link'] . (($addon['admin_link_target'] === 'external')?'?utm_source=superpwa-plugin&utm_medium=addon-card': '');
208
+ if(isset($addon['more_link'])){
209
+ $link = $addon['more_link'] . (($addon['admin_link_target'] === 'external')?'?utm_source=superpwa-plugin&utm_medium=addon-card': '');
210
+ }
211
+ ?>
212
+ <a href="<?php echo $link; ?>" target="_blank" aria-label="<?php printf( __( 'More information about %s', 'super-progressive-web-apps' ), $addon['name'] ); ?>" data-title="<?php echo $addon['name']; ?>"><?php _e( 'More Details', 'super-progressive-web-apps' ); ?></a>
213
  </li>
214
  </ul>
215
  </div>
253
 
254
  <div class="superpwa-newsletter-form" style="margin: 18px 10px 0px;">
255
 
256
+ <form method="post" action="https://superpwa.com/newsletter/" target="_blank" id="superpwa_newsletter">
257
  <fieldset>
258
 
259
  <input name="newsletter-email" value="<?php $user = wp_get_current_user(); echo esc_attr( $user->user_email ); ?>" placeholder="<?php _e( 'Enter your email', 'super-progressive-web-apps' ); ?>" style="width: 60%; margin-left: 0px;" type="email">
555
  wp_redirect( admin_url( 'admin.php?page=superpwa-addons&deactivated=1&addon=' . $_GET['addon'] ) );
556
  exit;
557
  }
558
+ add_action( 'admin_post_superpwa_deactivate_addon', 'superpwa_addons_handle_deactivation' );
559
+
560
+ /**
561
+ * Handle newsletter submit
562
+ *
563
+ *
564
+ * @since 2.1.5
565
+ */
566
+ function superpwa_newsletter_submit(){
567
+ global $current_user;
568
+ $api_url = 'http://magazine3.company/wp-json/api/central/email/subscribe';
569
+ $api_params = array(
570
+ 'name' => esc_attr($current_user->display_name),
571
+ 'email'=> sanitize_text_field($_POST['email']),
572
+ 'website'=> sanitize_text_field( get_site_url() ),
573
+ 'type'=> 'superpwa'
574
+ );
575
+ $response = wp_remote_post( $api_url, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
576
+ $response = wp_remote_retrieve_body( $response );
577
+ echo json_encode(array('status'=>200, 'message'=>'Submitted ', 'response'=> $response));
578
+ die;
579
+ }
580
+ add_action( 'wp_ajax_superpwa_newsletter_submit', 'superpwa_newsletter_submit' );
581
+ add_action( 'wp_ajax_nopriv_superpwa_newsletter_submit', 'superpwa_newsletter_submit' );
admin/admin-ui-render-settings.php CHANGED
@@ -18,6 +18,7 @@
18
  * @function superpwa_manifest_status_cb() Manifest Status
19
  * @function superpwa_sw_status_cb() Service Worker Status
20
  * @function superpwa_https_status_cb() HTTPS Status
 
21
  * @function superpwa_admin_interface_render() Admin interface renderer
22
  */
23
 
@@ -399,6 +400,81 @@ function superpwa_https_status_cb() {
399
  }
400
  }
401
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
402
  /**
403
  * Admin interface renderer
404
  *
@@ -423,7 +499,8 @@ function superpwa_admin_interface_render() {
423
  }
424
 
425
  ?>
426
-
 
427
  <div class="wrap">
428
  <h1>Super Progressive Web Apps <sup><?php echo SUPERPWA_VERSION; ?></sup></h1>
429
 
@@ -431,21 +508,40 @@ function superpwa_admin_interface_render() {
431
  <?php
432
  // Output nonce, action, and option_page fields for a settings page.
433
  settings_fields( 'superpwa_settings_group' );
434
-
435
- // Basic Application Settings
436
- do_settings_sections( 'superpwa_basic_settings_section' ); // Page slug
437
-
438
- // Status
439
- do_settings_sections( 'superpwa_pwa_status_section' ); // Page slug
440
-
441
- // Output save settings button
442
- echo '<style>.submit{float:left;}</style>';
443
- submit_button( __('Save Settings', 'super-progressive-web-apps') );
444
- if(!defined('SUPERPWA_PRO_VERSION')){
445
- echo '<a class="button" style="background: black;color: white;margin: 30px 0px 0px 25px;" href="'.admin_url('admin.php?page=superpwa-upgrade').'" target="_blank">Go PRO</a>';
446
- }
447
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
  </form>
449
  </div>
 
450
  <?php
451
- }
18
  * @function superpwa_manifest_status_cb() Manifest Status
19
  * @function superpwa_sw_status_cb() Service Worker Status
20
  * @function superpwa_https_status_cb() HTTPS Status
21
+ * @function superpwa_disable_add_to_home_cb() Disable Add to home
22
  * @function superpwa_admin_interface_render() Admin interface renderer
23
  */
24
 
400
  }
401
  }
402
 
403
+
404
+ /**
405
+ * Admin can disable the add to home bar
406
+ *
407
+ * @since 2.1.4
408
+ */
409
+ function superpwa_disable_add_to_home_cb() {
410
+ // Get Settings
411
+ $settings = superpwa_get_settings();
412
+ ?><input type="checkbox" name="superpwa_settings[disable_add_to_home]" id="superpwa_settings[disable_add_to_home]" value="1"
413
+ <?php if ( isset( $settings['disable_add_to_home'] ) ) { checked( '1', $settings['disable_add_to_home'] ); } ?>>
414
+ <label for="superpwa_settings[disable_add_to_home]"><?php _e('Remove default banner', 'super-progressive-web-apps') ?></label>
415
+ <br>
416
+ <?php
417
+ }
418
+
419
+ /**
420
+ * App Shortcut link Dropdown
421
+ *
422
+ * @since 1.2
423
+ */
424
+ function superpwa_app_shortcut_link_cb() {
425
+
426
+ // Get Settings
427
+ $settings = superpwa_get_settings(); ?>
428
+
429
+ <fieldset>
430
+
431
+ <!-- WordPress Pages Dropdown -->
432
+ <label for="superpwa_settings[shortcut_url]">
433
+ <?php echo wp_dropdown_pages( array(
434
+ 'name' => 'superpwa_settings[shortcut_url]',
435
+ 'echo' => 0,
436
+ 'show_option_none' => __( 'Select Page' ),
437
+ 'option_none_value' => '0',
438
+ 'selected' => isset($settings['shortcut_url']) ? $settings['shortcut_url'] : '',
439
+ )); ?>
440
+ </label>
441
+
442
+ <p class="description">
443
+ <?php echo __( 'Specify the page to load when the application is launched via Shortcut.', 'super-progressive-web-apps' ); ?>
444
+ </p>
445
+ </fieldset>
446
+
447
+ <?php
448
+ }
449
+
450
+ /**
451
+ * Enable or disable the yandex support
452
+ *
453
+ * @since 2.1.4
454
+ */
455
+ function superpwa_yandex_support_cb() {
456
+ // Get Settings
457
+ $settings = superpwa_get_settings();
458
+ ?><input type="checkbox" name="superpwa_settings[yandex_support]" id="superpwa_settings[yandex_support]" value="1"
459
+ <?php if ( isset( $settings['yandex_support'] ) ) { checked( '1', $settings['yandex_support'] ); } ?>>
460
+ <br>
461
+ <?php
462
+ }
463
+ /**
464
+ * Enable or disable the analytics support
465
+ *
466
+ * @since 2.1.5
467
+ */
468
+ function superpwa_analytics_support_cb() {
469
+ // Get Settings
470
+ $settings = superpwa_get_settings();
471
+ ?><input type="checkbox" name="superpwa_settings[analytics_support]" id="superpwa_settings[analytics_support]" value="1"
472
+ <?php if ( isset( $settings['analytics_support'] ) ) { checked( '1', $settings['analytics_support'] ); } ?>>
473
+ <br>
474
+ <?php
475
+ }
476
+
477
+
478
  /**
479
  * Admin interface renderer
480
  *
499
  }
500
 
501
  ?>
502
+ <style type="text/css">.spwa-tab {overflow: hidden;border: 1px solid #ccc;background-color: #f1f1f1;}.spwa-tab a {background-color: inherit;text-decoration: none;float: left;border: none;outline: none;cursor: pointer;padding: 14px 16px;transition: 0.3s; }.spwa-tab a:hover {background-color: #ddd; }.spwa-tab a.active {background-color: #ccc;}.spwa-tabcontent {display: none;padding: 6px 12px;border-top: none; animation: fadeEffect 1s; } @keyframes fadeEffect { from {opacity: 0;} to {opacity: 1;} }</style>
503
+
504
  <div class="wrap">
505
  <h1>Super Progressive Web Apps <sup><?php echo SUPERPWA_VERSION; ?></sup></h1>
506
 
508
  <?php
509
  // Output nonce, action, and option_page fields for a settings page.
510
  settings_fields( 'superpwa_settings_group' );
 
 
 
 
 
 
 
 
 
 
 
 
 
511
  ?>
512
+ <div class="spwa-tab">
513
+ <a id="spwa-default" class="spwa-tablinks" onclick="openCity(event, 'settings')">Settings</a>
514
+ <a class="spwa-tablinks" onclick="openCity(event, 'advance')">Advance</a>
515
+ </div>
516
+ <div id="settings" class="spwa-tabcontent">
517
+ <?php
518
+ // Basic Application Settings
519
+ do_settings_sections( 'superpwa_basic_settings_section' ); // Page slug
520
+
521
+ // Status
522
+ do_settings_sections( 'superpwa_pwa_status_section' ); // Page slug
523
+ // Output save settings button
524
+ echo '<style>.submit{float:left;}</style>';
525
+ submit_button( __('Save Settings', 'super-progressive-web-apps') );
526
+ if(!defined('SUPERPWA_PRO_VERSION')){
527
+ echo '<a class="button" style="background: black;color: white;margin: 30px 0px 0px 25px;" href="'.admin_url('admin.php?page=superpwa-upgrade').'" target="_blank">Go PRO</a>';
528
+ }
529
+ ?>
530
+ </div>
531
+ <div id="advance" class="spwa-tabcontent">
532
+ <?php
533
+ // Advance
534
+ do_settings_sections( 'superpwa_pwa_advance_section' ); // Page slug
535
+ // Output save settings button
536
+ echo '<style>.submit{float:left;}</style>';
537
+ submit_button( __('Save Settings', 'super-progressive-web-apps') );
538
+ if(!defined('SUPERPWA_PRO_VERSION')){
539
+ echo '<a class="button" style="background: black;color: white;margin: 30px 0px 0px 25px;" href="'.admin_url('admin.php?page=superpwa-upgrade').'" target="_blank">Go PRO</a>';
540
+ }
541
+ ?>
542
+ </div>
543
  </form>
544
  </div>
545
+ <script type="text/javascript">function openCity(evt, cityName) {var i, tabcontent, tablinks;tabcontent = document.getElementsByClassName("spwa-tabcontent");for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } tablinks = document.getElementsByClassName("spwa-tablinks"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", ""); } document.getElementById(cityName).style.display = "block"; evt.currentTarget.className += " active"; }document.getElementById("spwa-default").click();</script>
546
  <?php
547
+ }
admin/admin-ui-render-upgrade.php CHANGED
@@ -1,297 +1,297 @@
1
- <?php
2
- /**
3
- * Upgrade to pro Settings UI
4
- *
5
- * @since 1.7
6
- *
7
- * @function superpwa_upgread_pro_interface_render() Add-Ons UI renderer
8
- */
9
-
10
- // Exit if accessed directly
11
- if ( ! defined( 'ABSPATH' ) ) exit;
12
-
13
- function superpwa_upgread_pro_interface_render(){
14
- // Authentication
15
- if ( ! current_user_can( 'manage_options' ) ) {
16
- return;
17
- }
18
-
19
- ?>
20
- <link rel='stylesheet' href='<?php echo SUPERPWA_PATH_SRC . 'admin/css/upgrade-ui.css?ver='.SUPERPWA_VERSION ?>' media='all' />
21
-
22
- <div class="wrap">
23
- <!-- Add-Ons UI -->
24
- <div class="wp-list-table widefat addon-install">
25
-
26
- <div id="the-list">
27
- <?php
28
- if(defined('SUPERPWA_PRO_VERSION')){
29
- do_action("admin_upgrade_license_page");
30
- }else{ ?>
31
-
32
-
33
- <div class="fp-wr">
34
- <div class="sp-fp-img">
35
- <span class="sp_ov"></span>
36
- </div>
37
- <div class="sp-fp-cnt">
38
- <h1><?php _e( 'Upgrade to SuperPWA Pro'); ?></h1>
39
- <p><?php _e( 'Take your PWA to the next level with SuperPWA PRO version.', 'super-progressive-web-apps' ); ?></p>
40
- <a class="buy" href="#upgrade"><?php _e( 'Purchase now', 'super-progressive-web-apps' ); ?></a>
41
- </div>
42
- <div class="pvf">
43
- <div class="ext">
44
- <div class="ex-1 e-1">
45
- <h4><?php _e( 'Premium Features', 'super-progressive-web-apps' ); ?></h4>
46
- <p><?php _e( 'The premium features of SuperPWA enhances your app and takes it to a next level to help you reach more engagement and personalization with your user.', 'super-progressive-web-apps' ); ?></p>
47
- </div>
48
- <div class="ex-1 e-2">
49
- <h4><?php _e( 'Continuous Innovation', 'super-progressive-web-apps' ); ?></h4>
50
- <p><?php _e( 'We are planning to continiously build premium features and release them. We have a roadmap and we listen to our customers to turn their feedback into reality.', 'super-progressive-web-apps' ); ?></p>
51
- </div>
52
- <div class="ex-1 e-3">
53
- <h4><?php _e( 'Tech Support', 'super-progressive-web-apps' ); ?></h4>
54
- <p><?php _e( 'Get private ticketing help from our full-time technical staff & developers who helps you with the technical issues.', 'super-progressive-web-apps' ); ?></p>
55
- </div>
56
- </div><!-- /. ext -->
57
- <div class="pvf-cnt">
58
- <div class="pvf-tlt">
59
- <h2><?php _e( 'Compare Pro vs. Free Version', 'super-progressive-web-apps' ); ?></h2>
60
- <span><?php _e( 'See what you\'ll get with the professional version', 'super-progressive-web-apps' ); ?></span>
61
- </div>
62
- <div class="pvf-cmp">
63
- <div class="fr">
64
- <h1>FREE</h1>
65
- <div class="fr-fe">
66
- <div class="fe-1">
67
- <h4><?php _e( 'Continious Development', 'super-progressive-web-apps' ); ?></h4>
68
- <p><?php _e( 'We take bug reports and feature requests seriously. We’re continiously developing &amp; improve this product for last 2 years with passion and love.', 'super-progressive-web-apps' ); ?></p>
69
- </div>
70
- <div class="fe-1">
71
- <h4><?php _e( '50+ Features', 'super-progressive-web-apps' ); ?></h4>
72
- <p><?php _e( 'We\'re constantly expanding the plugin and make it more useful. We have wide variety of features which will fit any use-case.', 'super-progressive-web-apps' ); ?></p>
73
- </div>
74
- </div><!-- /. fr-fe -->
75
- </div><!-- /. fr -->
76
- <div class="pr">
77
- <h1>PRO</h1>
78
- <div class="pr-fe">
79
- <span><?php _e( 'Everything in Free, and:', 'super-progressive-web-apps' ); ?></span>
80
- <div class="fet">
81
- <div class="fe-2">
82
- <div class="fe-t">
83
- <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/tick.png' ?>">
84
- <h4><?php _e( 'Call to Action feature', 'super-progressive-web-apps' ); ?></h4>
85
- </div>
86
- <p><?php _e( 'Easily gives notification banner your users to Add to Homescreen on website.', 'super-progressive-web-apps' ); ?></p>
87
- </div>
88
- <div class="fe-2">
89
- <div class="fe-t">
90
- <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/tick.png' ?>">
91
- <h4><?php _e( 'Advanced Tech Support', 'super-progressive-web-apps' ); ?></h4>
92
- </div>
93
- <p><?php _e( 'High skilled team will go above & beyond to help you with issues.', 'super-progressive-web-apps' ); ?></p>
94
- </div>
95
-
96
- <div class="fe-2">
97
- <div class="fe-t">
98
- <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/tick.png' ?>">
99
- <h4>Android APK APP Generator</h4>
100
- </div>
101
- <p>Easily generate Android APP (APK package) of your current PWA website.</p>
102
- </div>
103
-
104
- <div class="fe-2">
105
- <div class="fe-t">
106
- <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/tick.png' ?>">
107
- <h4>Continious Updates</h4>
108
- </div>
109
- <p>We're continiously updating our premium features and releasing them.</p>
110
- </div>
111
- <div class="fe-2">
112
- <div class="fe-t">
113
- <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/tick.png' ?>">
114
- <h4>Innovation</h4>
115
- </div>
116
- <p>Be the first one to get the innovative features that we build in the future.</p>
117
- </div>
118
- <div class="fe-2">
119
- <div class="fe-t">
120
- <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/tick.png' ?>">
121
- <h4>Documentation</h4>
122
- </div>
123
- <p>We create tutorials for every possible feature and keep it updated for you.</p>
124
- </div>
125
- </div><!-- /. fet -->
126
- <div class="pr-btn">
127
- <a href="#upgrade">Upgrade to Pro</a>
128
- </div><!-- /. pr-btn -->
129
- </div><!-- /. pr-fe -->
130
- </div><!-- /.pr -->
131
- </div><!-- /. pvf-cmp -->
132
- </div><!-- /. pvf-cnt -->
133
- <div id="upgrade" class="amp-upg">
134
- <div class="upg-t">
135
- <h2>Let's Upgrade Your PWA</h2>
136
- <span>Choose your plan and upgrade in minutes!</span>
137
- </div>
138
- <div class="sp-pri-lst">
139
- <div class="pri-tb">
140
- <a href="https://superpwa.com/checkout?edd_action=add_to_cart&download_id=666&edd_options[price_id]=1" target="_blank">
141
- <h5>PERSONAL</h5>
142
- <span class="d-amt"><sup>$</sup>99</span>
143
- <span class="amt"><sup>$</sup>99</span>
144
- <span class="s-amt">(Save $59)</span>
145
- <span class="bil">Billed Annually</span>
146
- <span class="s">1 Site License</span>
147
- <span class="e">Tech Support</span>
148
- <span class="f">1 year Updates </span>
149
- <span class="sp-sv">Pro Features </span>
150
- <span class="pri-by">Buy Now</span>
151
- </a>
152
- </div>
153
- <div class="pri-tb rec">
154
- <a href="https://superpwa.com/checkout?edd_action=add_to_cart&download_id=666&edd_options[price_id]=2" target="_blank">
155
- <h5>MULTIPLE</h5>
156
- <span class="d-amt"><sup>$</sup>129</span>
157
- <span class="amt"><sup>$</sup>129</span>
158
- <span class="s-amt">(Save $79)</span>
159
- <span class="bil">Billed Annually</span>
160
- <span class="s">3 Site License</span>
161
- <span class="e">Tech Support</span>
162
- <span class="f">1 year Updates</span>
163
- <span class="sp-sv">Save 78%</span>
164
- <span class="pri-by">Buy Now</span>
165
- <span class="sp-rcm">RECOMMENDED</span>
166
- </a>
167
- </div>
168
- <div class="pri-tb">
169
- <a href="https://superpwa.com/checkout?edd_action=add_to_cart&download_id=666&edd_options[price_id]=3" target="_blank">
170
- <h5>WEBMASTER</h5>
171
- <span class="d-amt"><sup>$</sup>199</span>
172
- <span class="amt"><sup>$</sup>199</span>
173
- <span class="s-amt">(Save $99)</span>
174
- <span class="bil">Billed Annually</span>
175
- <span class="s">10 Site License</span>
176
- <span class="e">Tech Support</span>
177
- <span class="f">Pro Features</span>
178
- <span class="sp-sv">Save 83%</span>
179
- <span class="pri-by">Buy Now</span>
180
- </a>
181
- </div>
182
- <div class="pri-tb">
183
- <a href="https://superpwa.com/checkout?edd_action=add_to_cart&download_id=666&edd_options[price_id]=4" target="_blank">
184
- <h5>FREELANCER</h5>
185
- <span class="d-amt"><sup>$</sup>249</span>
186
- <span class="amt"><sup>$</sup>249</span>
187
- <span class="s-amt">(Save $119)</span>
188
- <span class="bil">Billed Annually</span>
189
- <span class="s">25 Site License</span>
190
- <span class="e">Tech Support</span>
191
- <span class="f">Pro Features</span>
192
- <span class="sp-sv">Save 90%</span>
193
- <span class="pri-by">Buy Now</span>
194
- </a>
195
- </div>
196
- <div class="pri-tb">
197
- <a href="https://superpwa.com/checkout?edd_action=add_to_cart&download_id=666&edd_options[price_id]=5" target="_blank">
198
- <h5>AGENCY</h5>
199
- <span class="d-amt"><sup>$</sup>499</span>
200
- <span class="amt"><sup>$</sup>499</span>
201
- <span class="s-amt">(Save $199)</span>
202
- <span class="bil">Billed Annually</span>
203
- <span class="s">Unlimited Site</span>
204
- <span class="e">E-mail support</span>
205
- <span class="f">Pro Features</span>
206
- <span class="sp-sv">UNLIMITED</span>
207
- <span class="pri-by">Buy Now</span>
208
- </a>
209
- </div>
210
- <div class="pri-tb">
211
- <a href="https://superpwa.com/checkout?edd_action=add_to_cart&download_id=666&edd_options[price_id]=6" target="_blank">
212
- <h5>LIFETIME</h5>
213
- <span class="d-amt"><sup>$</sup>999</span>
214
- <span class="amt"><sup>$</sup>999</span>
215
- <span class="s-amt">(Save $199)</span>
216
- <span class="bil">Billed Annually</span>
217
- <span class="s">Unlimited Site</span>
218
- <span class="e">Tech Support</span>
219
- <span class="f">Pro Features</span>
220
- <span class="sp-sv">UNLIMITED</span>
221
- <span class="pri-by">Buy Now</span>
222
- </a>
223
- </div>
224
- </div><!-- /.pri-lst -->
225
- <div class="tru-us">
226
- <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/rating.png' ?>">
227
- <h2>Used by more than 40000+ Users!</h2>
228
- <p>More than 40k Websites, Blogs &amp; E-Commerce shops are powered by our SuperPWA making it the #1 Independent PWA plugin in WordPress.</p>
229
- <a href="https://wordpress.org/support/plugin/super-progressive-web-apps/reviews/?filter=5" target="_blank">Read The Reviews</a>
230
- </div>
231
- </div><!--/ .amp-upg -->
232
- <div class="ampfaq">
233
- <h4>Frequently Asked Questions</h4>
234
- <div class="faq-lst">
235
- <div class="lt">
236
- <ul>
237
- <li>
238
- <span>Is there a setup fee?</span>
239
- <p>No. There are no setup fees on any of our plans</p>
240
- </li>
241
- <li>
242
- <span>What's the time span for your contracts?</span>
243
- <p>All the plans are year-to-year which are subscribed annually except for lifetime plan.</p>
244
- </li>
245
- <li>
246
- <span>What payment methods are accepted?</span>
247
- <p>We accepts PayPal and Credit Card payments.</p>
248
- </li>
249
- <li>
250
- <span>Do you offer support if I need help?</span>
251
- <p>Yes! Top-notch customer support for our paid customers is key for a quality product, so we’ll do our very best to resolve any issues you encounter via our support page.</p>
252
- </li>
253
- <li>
254
- <span>Can I use the plugins after my subscription is expired?</span>
255
- <p>Yes, you can use the plugins but you will not get future updates for those plugins.</p>
256
- </li>
257
- </ul>
258
- </div>
259
- <div class="rt">
260
- <ul>
261
- <li>
262
- <span>Can I cancel my membership at any time?</span>
263
- <p>Yes. You can cancel your membership by contacting us.</p>
264
- </li>
265
- <li>
266
- <span>Can I change my plan later on?</span>
267
- <p>Yes. You can upgrade your plan by contacting us.</p>
268
- </li>
269
- <li>
270
- <span>Do you offer refunds?</span>
271
- <p>You are fully protected by our 100% Money Back Guarantee Unconditional. If during the next 14 days you experience an issue that makes the plugin unusable and we are unable to resolve it, we’ll happily offer a full refund.</p>
272
- </li>
273
- <li>
274
- <span>Do I get updates for the premium plugin?</span>
275
- <p>Yes, you will get updates for all the premium plugins until your subscription is active.</p>
276
- </li>
277
- </ul>
278
- </div>
279
- </div><!-- /.faq-lst -->
280
- <div class="f-cnt">
281
- <span>I have other pre-sale questions, can you help?</span>
282
- <p>All the plans are year-to-year which are subscribed annually.</p>
283
- <a href="https://superpwa.com/contact/'?utm_source=superpwa-plugin&utm_medium=addon-card'">Contact a Human</a>
284
- </div><!-- /.f-cnt -->
285
- </div><!-- /.faq -->
286
- </div><!-- /. pvf -->
287
- </div>
288
- <?php } ?>
289
-
290
-
291
-
292
-
293
- </div>
294
- </div>
295
- </div>
296
- <?php
297
- }
1
+ <?php
2
+ /**
3
+ * Upgrade to pro Settings UI
4
+ *
5
+ * @since 1.7
6
+ *
7
+ * @function superpwa_upgread_pro_interface_render() Add-Ons UI renderer
8
+ */
9
+
10
+ // Exit if accessed directly
11
+ if ( ! defined( 'ABSPATH' ) ) exit;
12
+
13
+ function superpwa_upgread_pro_interface_render(){
14
+ // Authentication
15
+ if ( ! current_user_can( 'manage_options' ) ) {
16
+ return;
17
+ }
18
+
19
+ ?>
20
+ <link rel='stylesheet' href='<?php echo SUPERPWA_PATH_SRC . 'admin/css/upgrade-ui.css?ver='.SUPERPWA_VERSION ?>' media='all' />
21
+
22
+ <div class="wrap">
23
+ <!-- Add-Ons UI -->
24
+ <div class="wp-list-table widefat addon-install">
25
+
26
+ <div id="the-list">
27
+ <?php
28
+ if(defined('SUPERPWA_PRO_VERSION')){
29
+ do_action("admin_upgrade_license_page");
30
+ }else{ ?>
31
+
32
+
33
+ <div class="fp-wr">
34
+ <div class="sp-fp-img">
35
+ <span class="sp_ov"></span>
36
+ </div>
37
+ <div class="sp-fp-cnt">
38
+ <h1><?php _e( 'Upgrade to SuperPWA Pro'); ?></h1>
39
+ <p><?php _e( 'Take your PWA to the next level with SuperPWA PRO version.', 'super-progressive-web-apps' ); ?></p>
40
+ <a class="buy" href="#upgrade"><?php _e( 'Purchase now', 'super-progressive-web-apps' ); ?></a>
41
+ </div>
42
+ <div class="pvf">
43
+ <div class="ext">
44
+ <div class="ex-1 e-1">
45
+ <h4><?php _e( 'Premium Features', 'super-progressive-web-apps' ); ?></h4>
46
+ <p><?php _e( 'The premium features of SuperPWA enhances your app and takes it to a next level to help you reach more engagement and personalization with your user.', 'super-progressive-web-apps' ); ?></p>
47
+ </div>
48
+ <div class="ex-1 e-2">
49
+ <h4><?php _e( 'Continuous Innovation', 'super-progressive-web-apps' ); ?></h4>
50
+ <p><?php _e( 'We are planning to continiously build premium features and release them. We have a roadmap and we listen to our customers to turn their feedback into reality.', 'super-progressive-web-apps' ); ?></p>
51
+ </div>
52
+ <div class="ex-1 e-3">
53
+ <h4><?php _e( 'Tech Support', 'super-progressive-web-apps' ); ?></h4>
54
+ <p><?php _e( 'Get private ticketing help from our full-time technical staff & developers who helps you with the technical issues.', 'super-progressive-web-apps' ); ?></p>
55
+ </div>
56
+ </div><!-- /. ext -->
57
+ <div class="pvf-cnt">
58
+ <div class="pvf-tlt">
59
+ <h2><?php _e( 'Compare Pro vs. Free Version', 'super-progressive-web-apps' ); ?></h2>
60
+ <span><?php _e( 'See what you\'ll get with the professional version', 'super-progressive-web-apps' ); ?></span>
61
+ </div>
62
+ <div class="pvf-cmp">
63
+ <div class="fr">
64
+ <h1>FREE</h1>
65
+ <div class="fr-fe">
66
+ <div class="fe-1">
67
+ <h4><?php _e( 'Continious Development', 'super-progressive-web-apps' ); ?></h4>
68
+ <p><?php _e( 'We take bug reports and feature requests seriously. We’re continiously developing &amp; improve this product for last 2 years with passion and love.', 'super-progressive-web-apps' ); ?></p>
69
+ </div>
70
+ <div class="fe-1">
71
+ <h4><?php _e( '50+ Features', 'super-progressive-web-apps' ); ?></h4>
72
+ <p><?php _e( 'We\'re constantly expanding the plugin and make it more useful. We have wide variety of features which will fit any use-case.', 'super-progressive-web-apps' ); ?></p>
73
+ </div>
74
+ </div><!-- /. fr-fe -->
75
+ </div><!-- /. fr -->
76
+ <div class="pr">
77
+ <h1>PRO</h1>
78
+ <div class="pr-fe">
79
+ <span><?php _e( 'Everything in Free, and:', 'super-progressive-web-apps' ); ?></span>
80
+ <div class="fet">
81
+ <div class="fe-2">
82
+ <div class="fe-t">
83
+ <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/tick.png' ?>">
84
+ <h4><?php _e( 'Call to Action feature', 'super-progressive-web-apps' ); ?></h4>
85
+ </div>
86
+ <p><?php _e( 'Easily gives notification banner your users to Add to Homescreen on website.', 'super-progressive-web-apps' ); ?></p>
87
+ </div>
88
+ <div class="fe-2">
89
+ <div class="fe-t">
90
+ <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/tick.png' ?>">
91
+ <h4><?php _e( 'Advanced Tech Support', 'super-progressive-web-apps' ); ?></h4>
92
+ </div>
93
+ <p><?php _e( 'High skilled team will go above & beyond to help you with issues.', 'super-progressive-web-apps' ); ?></p>
94
+ </div>
95
+
96
+ <div class="fe-2">
97
+ <div class="fe-t">
98
+ <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/tick.png' ?>">
99
+ <h4>Android APK APP Generator</h4>
100
+ </div>
101
+ <p>Easily generate Android APP (APK package) of your current PWA website.</p>
102
+ </div>
103
+
104
+ <div class="fe-2">
105
+ <div class="fe-t">
106
+ <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/tick.png' ?>">
107
+ <h4>Continious Updates</h4>
108
+ </div>
109
+ <p>We're continiously updating our premium features and releasing them.</p>
110
+ </div>
111
+ <div class="fe-2">
112
+ <div class="fe-t">
113
+ <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/tick.png' ?>">
114
+ <h4>Innovation</h4>
115
+ </div>
116
+ <p>Be the first one to get the innovative features that we build in the future.</p>
117
+ </div>
118
+ <div class="fe-2">
119
+ <div class="fe-t">
120
+ <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/tick.png' ?>">
121
+ <h4>Documentation</h4>
122
+ </div>
123
+ <p>We create tutorials for every possible feature and keep it updated for you.</p>
124
+ </div>
125
+ </div><!-- /. fet -->
126
+ <div class="pr-btn">
127
+ <a href="#upgrade">Upgrade to Pro</a>
128
+ </div><!-- /. pr-btn -->
129
+ </div><!-- /. pr-fe -->
130
+ </div><!-- /.pr -->
131
+ </div><!-- /. pvf-cmp -->
132
+ </div><!-- /. pvf-cnt -->
133
+ <div id="upgrade" class="amp-upg">
134
+ <div class="upg-t">
135
+ <h2>Let's Upgrade Your PWA</h2>
136
+ <span>Choose your plan and upgrade in minutes!</span>
137
+ </div>
138
+ <div class="sp-pri-lst">
139
+ <div class="pri-tb">
140
+ <a href="https://superpwa.com/checkout?edd_action=add_to_cart&download_id=666&edd_options[price_id]=1" target="_blank">
141
+ <h5>PERSONAL</h5>
142
+ <span class="d-amt"><sup>$</sup>99</span>
143
+ <span class="amt"><sup>$</sup>99</span>
144
+ <span class="s-amt">(Save $59)</span>
145
+ <span class="bil">Billed Annually</span>
146
+ <span class="s">1 Site License</span>
147
+ <span class="e">Tech Support</span>
148
+ <span class="f">1 year Updates </span>
149
+ <span class="sp-sv">Pro Features </span>
150
+ <span class="pri-by">Buy Now</span>
151
+ </a>
152
+ </div>
153
+ <div class="pri-tb rec">
154
+ <a href="https://superpwa.com/checkout?edd_action=add_to_cart&download_id=666&edd_options[price_id]=2" target="_blank">
155
+ <h5>MULTIPLE</h5>
156
+ <span class="d-amt"><sup>$</sup>129</span>
157
+ <span class="amt"><sup>$</sup>129</span>
158
+ <span class="s-amt">(Save $79)</span>
159
+ <span class="bil">Billed Annually</span>
160
+ <span class="s">3 Site License</span>
161
+ <span class="e">Tech Support</span>
162
+ <span class="f">1 year Updates</span>
163
+ <span class="sp-sv">Save 78%</span>
164
+ <span class="pri-by">Buy Now</span>
165
+ <span class="sp-rcm">RECOMMENDED</span>
166
+ </a>
167
+ </div>
168
+ <div class="pri-tb">
169
+ <a href="https://superpwa.com/checkout?edd_action=add_to_cart&download_id=666&edd_options[price_id]=3" target="_blank">
170
+ <h5>WEBMASTER</h5>
171
+ <span class="d-amt"><sup>$</sup>199</span>
172
+ <span class="amt"><sup>$</sup>199</span>
173
+ <span class="s-amt">(Save $99)</span>
174
+ <span class="bil">Billed Annually</span>
175
+ <span class="s">10 Site License</span>
176
+ <span class="e">Tech Support</span>
177
+ <span class="f">Pro Features</span>
178
+ <span class="sp-sv">Save 83%</span>
179
+ <span class="pri-by">Buy Now</span>
180
+ </a>
181
+ </div>
182
+ <div class="pri-tb">
183
+ <a href="https://superpwa.com/checkout?edd_action=add_to_cart&download_id=666&edd_options[price_id]=4" target="_blank">
184
+ <h5>FREELANCER</h5>
185
+ <span class="d-amt"><sup>$</sup>249</span>
186
+ <span class="amt"><sup>$</sup>249</span>
187
+ <span class="s-amt">(Save $119)</span>
188
+ <span class="bil">Billed Annually</span>
189
+ <span class="s">25 Site License</span>
190
+ <span class="e">Tech Support</span>
191
+ <span class="f">Pro Features</span>
192
+ <span class="sp-sv">Save 90%</span>
193
+ <span class="pri-by">Buy Now</span>
194
+ </a>
195
+ </div>
196
+ <div class="pri-tb">
197
+ <a href="https://superpwa.com/checkout?edd_action=add_to_cart&download_id=666&edd_options[price_id]=5" target="_blank">
198
+ <h5>AGENCY</h5>
199
+ <span class="d-amt"><sup>$</sup>499</span>
200
+ <span class="amt"><sup>$</sup>499</span>
201
+ <span class="s-amt">(Save $199)</span>
202
+ <span class="bil">Billed Annually</span>
203
+ <span class="s">Unlimited Site</span>
204
+ <span class="e">E-mail support</span>
205
+ <span class="f">Pro Features</span>
206
+ <span class="sp-sv">UNLIMITED</span>
207
+ <span class="pri-by">Buy Now</span>
208
+ </a>
209
+ </div>
210
+ <div class="pri-tb">
211
+ <a href="https://superpwa.com/checkout?edd_action=add_to_cart&download_id=666&edd_options[price_id]=6" target="_blank">
212
+ <h5>LIFETIME</h5>
213
+ <span class="d-amt"><sup>$</sup>999</span>
214
+ <span class="amt"><sup>$</sup>999</span>
215
+ <span class="s-amt">(Save $199)</span>
216
+ <span class="bil">Billed Annually</span>
217
+ <span class="s">Unlimited Site</span>
218
+ <span class="e">Tech Support</span>
219
+ <span class="f">Pro Features</span>
220
+ <span class="sp-sv">UNLIMITED</span>
221
+ <span class="pri-by">Buy Now</span>
222
+ </a>
223
+ </div>
224
+ </div><!-- /.pri-lst -->
225
+ <div class="tru-us">
226
+ <img src="<?php echo SUPERPWA_PATH_SRC . 'admin/img/rating.png' ?>">
227
+ <h2>Used by more than 40000+ Users!</h2>
228
+ <p>More than 40k Websites, Blogs &amp; E-Commerce shops are powered by our SuperPWA making it the #1 Independent PWA plugin in WordPress.</p>
229
+ <a href="https://wordpress.org/support/plugin/super-progressive-web-apps/reviews/?filter=5" target="_blank">Read The Reviews</a>
230
+ </div>
231
+ </div><!--/ .amp-upg -->
232
+ <div class="ampfaq">
233
+ <h4>Frequently Asked Questions</h4>
234
+ <div class="faq-lst">
235
+ <div class="lt">
236
+ <ul>
237
+ <li>
238
+ <span>Is there a setup fee?</span>
239
+ <p>No. There are no setup fees on any of our plans</p>
240
+ </li>
241
+ <li>
242
+ <span>What's the time span for your contracts?</span>
243
+ <p>All the plans are year-to-year which are subscribed annually except for lifetime plan.</p>
244
+ </li>
245
+ <li>
246
+ <span>What payment methods are accepted?</span>
247
+ <p>We accepts PayPal and Credit Card payments.</p>
248
+ </li>
249
+ <li>
250
+ <span>Do you offer support if I need help?</span>
251
+ <p>Yes! Top-notch customer support for our paid customers is key for a quality product, so we’ll do our very best to resolve any issues you encounter via our support page.</p>
252
+ </li>
253
+ <li>
254
+ <span>Can I use the plugins after my subscription is expired?</span>
255
+ <p>Yes, you can use the plugins but you will not get future updates for those plugins.</p>
256
+ </li>
257
+ </ul>
258
+ </div>
259
+ <div class="rt">
260
+ <ul>
261
+ <li>
262
+ <span>Can I cancel my membership at any time?</span>
263
+ <p>Yes. You can cancel your membership by contacting us.</p>
264
+ </li>
265
+ <li>
266
+ <span>Can I change my plan later on?</span>
267
+ <p>Yes. You can upgrade your plan by contacting us.</p>
268
+ </li>
269
+ <li>
270
+ <span>Do you offer refunds?</span>
271
+ <p>You are fully protected by our 100% Money Back Guarantee Unconditional. If during the next 14 days you experience an issue that makes the plugin unusable and we are unable to resolve it, we’ll happily offer a full refund.</p>
272
+ </li>
273
+ <li>
274
+ <span>Do I get updates for the premium plugin?</span>
275
+ <p>Yes, you will get updates for all the premium plugins until your subscription is active.</p>
276
+ </li>
277
+ </ul>
278
+ </div>
279
+ </div><!-- /.faq-lst -->
280
+ <div class="f-cnt">
281
+ <span>I have other pre-sale questions, can you help?</span>
282
+ <p>All the plans are year-to-year which are subscribed annually.</p>
283
+ <a href="https://superpwa.com/contact/'?utm_source=superpwa-plugin&utm_medium=addon-card'">Contact a Human</a>
284
+ </div><!-- /.f-cnt -->
285
+ </div><!-- /.faq -->
286
+ </div><!-- /. pvf -->
287
+ </div>
288
+ <?php } ?>
289
+
290
+
291
+
292
+
293
+ </div>
294
+ </div>
295
+ </div>
296
+ <?php
297
+ }
admin/admin-ui-setup.php CHANGED
@@ -29,7 +29,7 @@ function superpwa_add_menu_links() {
29
 
30
  // Settings page - Same as main menu page
31
  add_submenu_page( 'superpwa', __( 'Super Progressive Web Apps', 'super-progressive-web-apps' ), __( 'Settings', 'super-progressive-web-apps' ), 'manage_options', 'superpwa', 'superpwa_admin_interface_render', 60);
32
-
33
  // Add-Ons page
34
  add_submenu_page( 'superpwa', __( 'Super Progressive Web Apps', 'super-progressive-web-apps' ), __( 'Add-ons', 'super-progressive-web-apps' ), 'manage_options', 'superpwa-addons', 'superpwa_addons_interface_render', 70);
35
 
@@ -201,6 +201,48 @@ function superpwa_register_settings() {
201
  'superpwa_pwa_status_section', // Page slug
202
  'superpwa_pwa_status_section' // Settings Section ID
203
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
  }
205
  add_action( 'admin_init', 'superpwa_register_settings' );
206
 
@@ -289,6 +331,7 @@ function superpwa_get_settings() {
289
  'display' => 1,
290
  'is_static_manifest'=> 0,
291
  'is_static_sw' => 0,
 
292
  );
293
 
294
  $settings = get_option( 'superpwa_settings', $defaults );
29
 
30
  // Settings page - Same as main menu page
31
  add_submenu_page( 'superpwa', __( 'Super Progressive Web Apps', 'super-progressive-web-apps' ), __( 'Settings', 'super-progressive-web-apps' ), 'manage_options', 'superpwa', 'superpwa_admin_interface_render', 60);
32
+
33
  // Add-Ons page
34
  add_submenu_page( 'superpwa', __( 'Super Progressive Web Apps', 'super-progressive-web-apps' ), __( 'Add-ons', 'super-progressive-web-apps' ), 'manage_options', 'superpwa-addons', 'superpwa_addons_interface_render', 70);
35
 
201
  'superpwa_pwa_status_section', // Page slug
202
  'superpwa_pwa_status_section' // Settings Section ID
203
  );
204
+
205
+
206
+ //Advance Page
207
+ // PWA Advance settings
208
+ add_settings_section(
209
+ 'superpwa_pwa_advance_section', // ID
210
+ __return_false(), // Title
211
+ '__return_false', // Callback Function
212
+ 'superpwa_pwa_advance_section' // Page slug
213
+ );
214
+ // Disabling "Add to home screen"
215
+ add_settings_field(
216
+ 'superpwa_disable_add_to_home', // ID
217
+ __('Disabling "Add to home screen"', 'super-progressive-web-apps'), // Title
218
+ 'superpwa_disable_add_to_home_cb', // CB
219
+ 'superpwa_pwa_advance_section', // Page slug
220
+ 'superpwa_pwa_advance_section' // Settings Section ID
221
+ );
222
+ // App shortcuts
223
+ add_settings_field(
224
+ 'superpwa_app_shortcut', // ID
225
+ __('App shortcuts link', 'super-progressive-web-apps'), // Title
226
+ 'superpwa_app_shortcut_link_cb', // CB
227
+ 'superpwa_pwa_advance_section', // Page slug
228
+ 'superpwa_pwa_advance_section' // Settings Section ID
229
+ );
230
+ // Yandex Support
231
+ add_settings_field(
232
+ 'superpwa_yandex_support_shortcut', // ID
233
+ __('Yandex support', 'super-progressive-web-apps'), // Title
234
+ 'superpwa_yandex_support_cb', // CB
235
+ 'superpwa_pwa_advance_section', // Page slug
236
+ 'superpwa_pwa_advance_section' // Settings Section ID
237
+ );
238
+ // Analytics support
239
+ add_settings_field(
240
+ 'superpwa_analytics_support_shortcut', // ID
241
+ __('Offline analytics ', 'super-progressive-web-apps'), // Title
242
+ 'superpwa_analytics_support_cb', // CB
243
+ 'superpwa_pwa_advance_section', // Page slug
244
+ 'superpwa_pwa_advance_section' // Settings Section ID
245
+ );
246
  }
247
  add_action( 'admin_init', 'superpwa_register_settings' );
248
 
331
  'display' => 1,
332
  'is_static_manifest'=> 0,
333
  'is_static_sw' => 0,
334
+ 'disable_add_to_home'=> 0,
335
  );
336
 
337
  $settings = get_option( 'superpwa_settings', $defaults );
admin/css/upgrade-ui.css CHANGED
@@ -1,611 +1,611 @@
1
- #the-list{position: relative;}
2
- .fp-wr {
3
- width: 95%;
4
- margin: 0 auto;
5
- position: relative
6
- }
7
-
8
- .sp-fp-img {
9
- width: 100%;
10
- margin: 0 auto;
11
- text-align: center;
12
- position: relative;
13
- line-height: 0;
14
- height: 300px;
15
- }
16
-
17
- .fp-img img {
18
- position: relative
19
- }
20
-
21
- .sp_ov {
22
- background: linear-gradient(to right, #f4a7c9, #b168ff);
23
- bottom: 0;
24
- left: 0;
25
- position: absolute;
26
- right: 0;
27
- top: 0;
28
- border-radius: 10px
29
- }
30
-
31
- .sp-fp-cnt {
32
- position: absolute;
33
- top: 40px;
34
- bottom: 0;
35
- left: 40px;
36
- right: 40px;
37
- margin: 0 auto;
38
- text-align: center
39
- }
40
-
41
- .sp-fp-cnt h1 {
42
- font-size: 56px;
43
- color: #ffffff;
44
- font-weight: 600;
45
- text-shadow: 2px 2px 0px rgb(0 0 0 / 0.75);
46
- }
47
-
48
- .sp-fp-cnt p {
49
- margin-top: 10px;
50
- color: rgb(0 0 0 / 70%);
51
- font-size: 18px;
52
- padding: 0 100px;
53
- line-height: 1.4;
54
- }
55
-
56
- .sp-fp-cnt .buy {
57
- background-color: #ffe258 !important;
58
- background: linear-gradient(to right, #fdfc35, #ffe258) !important;
59
- border-radius: 3px !important;
60
- border-width: 0px !important;
61
- font-weight: 400;
62
- color: #524a1b !important;
63
- font-size: 17px !important;
64
- padding: 0.6rem 1.2rem;
65
- font-size: 1.25rem;
66
- line-height: 2;
67
- }
68
- .sp-fp-cnt .buy:hover{
69
- box-shadow: 0px 2px 2px #999;
70
- background: linear-gradient(to left, #fdfc35, #ffe258) !important;
71
- }
72
- .pvf {
73
- position: relative;
74
- top: -16px;
75
- border: 1px solid #eee;
76
- padding-bottom: 40px
77
- }
78
-
79
- .ext {
80
- display: grid;
81
- grid-template-columns: 1fr 1fr 1fr;
82
- background: #f9f9f9;
83
- padding: 45px 0 45px 25px
84
- }
85
-
86
- .ex-1 {
87
- width: 250px
88
- }
89
-
90
- .ex-1 h4 {
91
- margin: 15px 0 12px 0;
92
- font-size: 18px;
93
- color: #222;
94
- font-weight: 500
95
- }
96
-
97
- .ex-1 p {
98
- font-size: 14px;
99
- color: #555;
100
- font-weight: 400;
101
- margin: 0
102
- }
103
-
104
- .e-1 img {
105
- width: 65px!important
106
- }
107
-
108
- .e-2 img {
109
- width: 45px!important
110
- }
111
-
112
- .e-3 img {
113
- width: 49px!important
114
- }
115
-
116
- .pvf-cnt {
117
- width: 100%;
118
- display: inline-block
119
- }
120
-
121
- .pvf-tlt {
122
- text-align: center;
123
- width: 100%;
124
- margin: 70px 0 60px 0
125
- }
126
-
127
- .pvf-tlt h2 {
128
- font-size: 36px;
129
- line-height: 1.4;
130
- color: #000;
131
- font-weight: 500;
132
- margin: 0
133
- }
134
-
135
- .pvf-tlt span {
136
- font-size: 16px;
137
- color: #000;
138
- margin-top: 15px;
139
- display: inline-block;
140
- position: relative;
141
- top: 4px
142
- }
143
-
144
- .pvf-cmp {
145
- display: grid;
146
- grid-template-columns: 1fr 2fr
147
- }
148
-
149
- .fr {
150
- border-right: 1px solid #eee
151
- }
152
-
153
- .fr h1,
154
- .pr h1 {
155
- font-size: 36px;
156
- font-weight: 700;
157
- line-height: 1.5;
158
- border-bottom: 1px solid #efefef;
159
- padding: 0 0 20px 35px
160
- }
161
-
162
- .pr h1 {
163
- padding-left: 50px
164
- }
165
-
166
- .fr-fe {
167
- color: #222;
168
- padding-top: 10px
169
- }
170
-
171
- .fe-1 {
172
- padding: 22px 35px 35px 35px
173
- }
174
-
175
- .fe-1 h4 {
176
- margin: 0 0 10px 0;
177
- font-size: 20px;
178
- line-height: 1.4;
179
- font-weight: 400;
180
- color: #000
181
- }
182
-
183
- .fe-1 p {
184
- font-size: 15px;
185
- line-height: 1.4;
186
- margin: 0;
187
- color: #333
188
- }
189
-
190
- .pr-fe {
191
- padding: 34px 35px 35px 35px
192
- }
193
-
194
- .pr-fe span {
195
- font-family: georgia;
196
- font-size: 16px;
197
- font-weight: 700;
198
- color: #000;
199
- font-style: italic;
200
- line-height: 1.3
201
- }
202
-
203
- .fet {
204
- width: 100%;
205
- display: grid;
206
- grid-template-columns: 1fr 1fr;
207
- grid-gap: 25px;
208
- margin-top: 40px
209
- }
210
-
211
- .fe-2 {
212
- color: #222
213
- }
214
-
215
- .fe-t img {
216
- width: 22px!important;
217
- display: inline-block;
218
- vertical-align: middle
219
- }
220
-
221
- .fe-t h4 {
222
- margin: 0;
223
- display: inline-block;
224
- vertical-align: middle;
225
- font-size: 19px;
226
- color: #000;
227
- font-weight: 400;
228
- line-height: 1.4;
229
- padding-left: 8px
230
- }
231
-
232
- .fe-2 p {
233
- font-size: 15px;
234
- line-height: 1.4;
235
- margin: 0;
236
- color: #555;
237
- padding-top: 8px
238
- }
239
-
240
- .pr-btn {
241
- width: 100%;
242
- display: inline-block;
243
- text-align: center;
244
- margin: 50px 0 25px 0
245
- }
246
-
247
- .pr-btn a {
248
- text-decoration: none;
249
- color: #fff;
250
- padding: 12px 35px 17px 35px;
251
- display: inline-block;
252
- border-radius: 5px;
253
- font-size: 28px;
254
- font-weight: 500;
255
- line-height: 1.2;
256
- background: -webkit-linear-gradient(to right, #f988bb, #9853e2);
257
- font-weight: 600;
258
- background: #eb3349;
259
- background: linear-gradient(to right, #f988bb, #9853e2);
260
- margin-top: 0;
261
- box-shadow: 0 .15em .65em 0 rgba(0, 0, 0, .25)
262
- }
263
-
264
- .amp-upg {
265
- background: #f5f5f5;
266
- padding: 60px 10px 0 10px
267
- }
268
-
269
- .upg-t {
270
- text-align: center;
271
- color: #222
272
- }
273
-
274
- .upg-t h2 {
275
- margin: 0;
276
- font-size: 35px;
277
- color: #060606;
278
- line-height: 1.3;
279
- font-weight: 500
280
- }
281
-
282
- .upg-t>span {
283
- font-size: 14px;
284
- line-height: 1.2;
285
- margin-top: 15px;
286
- display: inline-block;
287
- color: #666
288
- }
289
-
290
- .sp-pri-lst {
291
- width: 100%;
292
- display: grid;
293
- grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
294
- margin-top: 70px;
295
- grid-gap: 1px;
296
- box-shadow: 0 10px 15px 1px #ddd
297
- }
298
-
299
- .pri-tb {
300
- background: #fff;
301
- text-align: center;
302
- border: 1px solid #f9f9f9;
303
- position: relative
304
- }
305
-
306
- .pri-tb:hover {
307
- border: 1px solid #b168ff
308
- }
309
-
310
- .pri-tb a:hover .pri-by {
311
- background: #b168ff
312
- }
313
- .pri-tb a:hover .amt {
314
- color: #7241a7
315
- }
316
-
317
- .pri-tb a {
318
- display: inline-block;
319
- text-decoration: none;
320
- color: #222;
321
- padding: 20px 12px
322
- }
323
-
324
- .pri-tb h5 {
325
- margin: 0 0 20px 0;
326
- font-size: 13px;
327
- line-height: 1.2;
328
- letter-spacing: 2px;
329
- font-weight: 400;
330
- color: #000
331
- }
332
-
333
- .pri-tb span {
334
- display: inline-block
335
- }
336
-
337
- .pri-tb .amt {
338
- font-size: 40px;
339
- color: #b168ff;
340
- font-weight: 500;
341
- margin-bottom: 20px;
342
- display: block
343
- }
344
-
345
- .pri-tb .d-amt {
346
- font-size: 24px;
347
- color: #666;
348
- font-weight: 500;
349
- margin-bottom: 15px;
350
- display: none;
351
- text-decoration: line-through
352
- }
353
-
354
- .d-amt sup {
355
- line-height: 0;
356
- position: relative;
357
- top: 7px
358
- }
359
-
360
- .pri-tb .s-amt {
361
- font-size: 13px;
362
- color: #4caf50;
363
- font-weight: 500;
364
- margin-bottom: 10px;
365
- display: none
366
- }
367
-
368
- .pri-tb .amt sup {
369
- font-size: 22px;
370
- padding: 0 4px 0 0;
371
- position: relative;
372
- top: 7px
373
- }
374
-
375
- .pri-tb .bil {
376
- color: #aaa;
377
- font-size: 12px;
378
- margin-bottom: 20px
379
- }
380
-
381
- .pri-tb .e,
382
- .pri-tb .f,
383
- .pri-tb .s {
384
- font-size: 14px;
385
- margin-bottom: 15px;
386
- color: #3b4750
387
- }
388
-
389
- .pri-tb .sp-sv {
390
- display: none;
391
- font-size: 12px;
392
- color: #fff;
393
- background: #4caf50;
394
- margin: 0 auto;
395
- padding: 1px 7px 2px 7px;
396
- border-radius: 45px
397
- }
398
-
399
- .pri-by {
400
- font-size: 15px;
401
- line-height: 1.2;
402
- background: #333;
403
- border-radius: 2px;
404
- padding: 9px 18px 10px 18px;
405
- display: inline-block;
406
- color: #fff;
407
- margin-top: 29px;
408
- font-weight: 500
409
- }
410
-
411
- .sp-pri-lst .rec {
412
- box-shadow: 0 1px 40px 0 #ccc;
413
- background: #fff;
414
- z-index: 9;
415
- margin-top: -20px;
416
- position: relative
417
- }
418
-
419
- .sp-pri-lst .rec:hover .sp-rcm {
420
- background: #b168ff;
421
- color: #fff
422
- }
423
-
424
- .sp-pri-lst .rec .pri-by {
425
- background: #b168ff
426
- }
427
-
428
- .sp-rcm {
429
- background: linear-gradient(to right, #fdfc35, #ffe258);
430
- color: #7b6c23;
431
- position: absolute;
432
- top: -20px;
433
- left: 0;
434
- right: -1px;
435
- bottom: auto;
436
- padding: 2px 0;
437
- font-size: 11px;
438
- letter-spacing: 2px
439
- }
440
-
441
- .tru-us {
442
- text-align: center;
443
- padding: 60px 0;
444
- margin: 0 auto;
445
- font-size: 16px;
446
- color: #222
447
- }
448
-
449
- .tru-us h2 {
450
- margin: 20px 0 0 0;
451
- font-size: 28px;
452
- font-weight: 500
453
- }
454
-
455
- .tru-us p {
456
- font-size: 17px;
457
- margin: 19px 15% 18px 15%;
458
- color: #666;
459
- line-height: 29px
460
- }
461
-
462
- .tru-us a {
463
- font-size: 18px;
464
- color: #489bff;
465
- text-decoration: none;
466
- font-weight: 400
467
- }
468
-
469
- .ampfaq {
470
- width: 100%;
471
- margin: 25px 0
472
- }
473
-
474
- .ampfaq h4 {
475
- margin: 0;
476
- text-align: center;
477
- font-size: 20px;
478
- font-weight: 500;
479
- color: #333
480
- }
481
-
482
- .faq-lst {
483
- margin-top: 50px;
484
- display: grid;
485
- grid-template-columns: 1fr 1fr
486
- }
487
-
488
- .lt {
489
- padding-left: 50px
490
- }
491
-
492
- .lt,
493
- .rt {
494
- width: 70%
495
- }
496
-
497
- .lt ul,
498
- .rt ul {
499
- margin: 0
500
- }
501
-
502
- .lt ul li,
503
- .rt ul li {
504
- color: #222;
505
- margin-bottom: 30px!important
506
- }
507
-
508
- .lt span,
509
- .rt span {
510
- font-size: 17px;
511
- font-weight: 500;
512
- margin-bottom: 6px;
513
- display: inline-block
514
- }
515
-
516
- .lt p,
517
- .rt p {
518
- font-size: 15px;
519
- margin: 0
520
- }
521
-
522
- .f-cnt {
523
- text-align: center;
524
- margin-top: 20px;
525
- color: #222
526
- }
527
-
528
- .f-cnt span {
529
- font-size: 17px;
530
- margin: 8px 0;
531
- font-weight: 500
532
- }
533
-
534
- .f-cnt p {
535
- font-size: 15px;
536
- margin: 6px 0
537
- }
538
-
539
- .f-cnt a {
540
- background: #333;
541
- color: #fff;
542
- padding: 15px 30px;
543
- text-decoration: none;
544
- font-size: 18px;
545
- font-weight: 500;
546
- display: inline-block;
547
- margin-top: 15px
548
- }
549
-
550
- @media(max-width:1366px) {
551
- .amp-upg {
552
- padding: 60px 0 0 0
553
- }
554
- .sp-fp-cnt p {
555
-
556
- line-height: 35px;
557
- font-size: 18px;
558
-
559
- }
560
- }
561
-
562
- @media(max-width:1280px) {
563
- .sp-fp-cnt {
564
- top: 1.3%
565
- }
566
- }
567
-
568
- @media(max-width:768px) {
569
- .ext {
570
- grid-template-columns: 1fr;
571
- grid-gap: 30px 0;
572
- padding: 30px
573
- }
574
- .pvf-tlt h2 {
575
- font-size: 26px
576
- }
577
- .pvf-cmp {
578
- grid-template-columns: 1fr
579
- }
580
- .pr-btn a {
581
- font-size: 22px
582
- }
583
- .sp-pri-lst {
584
- grid-template-columns: 1fr 1fr 1fr
585
- }
586
- .sp-fp-cnt p {
587
- line-height: 1.5;
588
- font-size: 16px;
589
- margin-top: 15px;
590
- padding: 0 20px
591
- }
592
- .sp-fp-cnt .buy {
593
- font-size: 16px;
594
- padding: 8px 30px
595
- }
596
- .sp-fp-cnt {
597
- top: 15px
598
- }
599
- .sp-fp-cnt h1 {
600
- font-size: 30px
601
- }
602
- .ex-1 {
603
- width: 100%
604
- }
605
- .faq-lst {
606
- grid-template-columns: 1fr
607
- }
608
- .rt {
609
- padding-left: 50px
610
- }
611
- }
1
+ #the-list{position: relative;}
2
+ .fp-wr {
3
+ width: 95%;
4
+ margin: 0 auto;
5
+ position: relative
6
+ }
7
+
8
+ .sp-fp-img {
9
+ width: 100%;
10
+ margin: 0 auto;
11
+ text-align: center;
12
+ position: relative;
13
+ line-height: 0;
14
+ height: 300px;
15
+ }
16
+
17
+ .fp-img img {
18
+ position: relative
19
+ }
20
+
21
+ .sp_ov {
22
+ background: linear-gradient(to right, #f4a7c9, #b168ff);
23
+ bottom: 0;
24
+ left: 0;
25
+ position: absolute;
26
+ right: 0;
27
+ top: 0;
28
+ border-radius: 10px
29
+ }
30
+
31
+ .sp-fp-cnt {
32
+ position: absolute;
33
+ top: 40px;
34
+ bottom: 0;
35
+ left: 40px;
36
+ right: 40px;
37
+ margin: 0 auto;
38
+ text-align: center
39
+ }
40
+
41
+ .sp-fp-cnt h1 {
42
+ font-size: 56px;
43
+ color: #ffffff;
44
+ font-weight: 600;
45
+ text-shadow: 2px 2px 0px rgb(0 0 0 / 0.75);
46
+ }
47
+
48
+ .sp-fp-cnt p {
49
+ margin-top: 10px;
50
+ color: rgb(0 0 0 / 70%);
51
+ font-size: 18px;
52
+ padding: 0 100px;
53
+ line-height: 1.4;
54
+ }
55
+
56
+ .sp-fp-cnt .buy {
57
+ background-color: #ffe258 !important;
58
+ background: linear-gradient(to right, #fdfc35, #ffe258) !important;
59
+ border-radius: 3px !important;
60
+ border-width: 0px !important;
61
+ font-weight: 400;
62
+ color: #524a1b !important;
63
+ font-size: 17px !important;
64
+ padding: 0.6rem 1.2rem;
65
+ font-size: 1.25rem;
66
+ line-height: 2;
67
+ }
68
+ .sp-fp-cnt .buy:hover{
69
+ box-shadow: 0px 2px 2px #999;
70
+ background: linear-gradient(to left, #fdfc35, #ffe258) !important;
71
+ }
72
+ .pvf {
73
+ position: relative;
74
+ top: -16px;
75
+ border: 1px solid #eee;
76
+ padding-bottom: 40px
77
+ }
78
+
79
+ .ext {
80
+ display: grid;
81
+ grid-template-columns: 1fr 1fr 1fr;
82
+ background: #f9f9f9;
83
+ padding: 45px 0 45px 25px
84
+ }
85
+
86
+ .ex-1 {
87
+ width: 250px
88
+ }
89
+
90
+ .ex-1 h4 {
91
+ margin: 15px 0 12px 0;
92
+ font-size: 18px;
93
+ color: #222;
94
+ font-weight: 500
95
+ }
96
+
97
+ .ex-1 p {
98
+ font-size: 14px;
99
+ color: #555;
100
+ font-weight: 400;
101
+ margin: 0
102
+ }
103
+
104
+ .e-1 img {
105
+ width: 65px!important
106
+ }
107
+
108
+ .e-2 img {
109
+ width: 45px!important
110
+ }
111
+
112
+ .e-3 img {
113
+ width: 49px!important
114
+ }
115
+
116
+ .pvf-cnt {
117
+ width: 100%;
118
+ display: inline-block
119
+ }
120
+
121
+ .pvf-tlt {
122
+ text-align: center;
123
+ width: 100%;
124
+ margin: 70px 0 60px 0
125
+ }
126
+
127
+ .pvf-tlt h2 {
128
+ font-size: 36px;
129
+ line-height: 1.4;
130
+ color: #000;
131
+ font-weight: 500;
132
+ margin: 0
133
+ }
134
+
135
+ .pvf-tlt span {
136
+ font-size: 16px;
137
+ color: #000;
138
+ margin-top: 15px;
139
+ display: inline-block;
140
+ position: relative;
141
+ top: 4px
142
+ }
143
+
144
+ .pvf-cmp {
145
+ display: grid;
146
+ grid-template-columns: 1fr 2fr
147
+ }
148
+
149
+ .fr {
150
+ border-right: 1px solid #eee
151
+ }
152
+
153
+ .fr h1,
154
+ .pr h1 {
155
+ font-size: 36px;
156
+ font-weight: 700;
157
+ line-height: 1.5;
158
+ border-bottom: 1px solid #efefef;
159
+ padding: 0 0 20px 35px
160
+ }
161
+
162
+ .pr h1 {
163
+ padding-left: 50px
164
+ }
165
+
166
+ .fr-fe {
167
+ color: #222;
168
+ padding-top: 10px
169
+ }
170
+
171
+ .fe-1 {
172
+ padding: 22px 35px 35px 35px
173
+ }
174
+
175
+ .fe-1 h4 {
176
+ margin: 0 0 10px 0;
177
+ font-size: 20px;
178
+ line-height: 1.4;
179
+ font-weight: 400;
180
+ color: #000
181
+ }
182
+
183
+ .fe-1 p {
184
+ font-size: 15px;
185
+ line-height: 1.4;
186
+ margin: 0;
187
+ color: #333
188
+ }
189
+
190
+ .pr-fe {
191
+ padding: 34px 35px 35px 35px
192
+ }
193
+
194
+ .pr-fe span {
195
+ font-family: georgia;
196
+ font-size: 16px;
197
+ font-weight: 700;
198
+ color: #000;
199
+ font-style: italic;
200
+ line-height: 1.3
201
+ }
202
+
203
+ .fet {
204
+ width: 100%;
205
+ display: grid;
206
+ grid-template-columns: 1fr 1fr;
207
+ grid-gap: 25px;
208
+ margin-top: 40px
209
+ }
210
+
211
+ .fe-2 {
212
+ color: #222
213
+ }
214
+
215
+ .fe-t img {
216
+ width: 22px!important;
217
+ display: inline-block;
218
+ vertical-align: middle
219
+ }
220
+
221
+ .fe-t h4 {
222
+ margin: 0;
223
+ display: inline-block;
224
+ vertical-align: middle;
225
+ font-size: 19px;
226
+ color: #000;
227
+ font-weight: 400;
228
+ line-height: 1.4;
229
+ padding-left: 8px
230
+ }
231
+
232
+ .fe-2 p {
233
+ font-size: 15px;
234
+ line-height: 1.4;
235
+ margin: 0;
236
+ color: #555;
237
+ padding-top: 8px
238
+ }
239
+
240
+ .pr-btn {
241
+ width: 100%;
242
+ display: inline-block;
243
+ text-align: center;
244
+ margin: 50px 0 25px 0
245
+ }
246
+
247
+ .pr-btn a {
248
+ text-decoration: none;
249
+ color: #fff;
250
+ padding: 12px 35px 17px 35px;
251
+ display: inline-block;
252
+ border-radius: 5px;
253
+ font-size: 28px;
254
+ font-weight: 500;
255
+ line-height: 1.2;
256
+ background: -webkit-linear-gradient(to right, #f988bb, #9853e2);
257
+ font-weight: 600;
258
+ background: #eb3349;
259
+ background: linear-gradient(to right, #f988bb, #9853e2);
260
+ margin-top: 0;
261
+ box-shadow: 0 .15em .65em 0 rgba(0, 0, 0, .25)
262
+ }
263
+
264
+ .amp-upg {
265
+ background: #f5f5f5;
266
+ padding: 60px 10px 0 10px
267
+ }
268
+
269
+ .upg-t {
270
+ text-align: center;
271
+ color: #222
272
+ }
273
+
274
+ .upg-t h2 {
275
+ margin: 0;
276
+ font-size: 35px;
277
+ color: #060606;
278
+ line-height: 1.3;
279
+ font-weight: 500
280
+ }
281
+
282
+ .upg-t>span {
283
+ font-size: 14px;
284
+ line-height: 1.2;
285
+ margin-top: 15px;
286
+ display: inline-block;
287
+ color: #666
288
+ }
289
+
290
+ .sp-pri-lst {
291
+ width: 100%;
292
+ display: grid;
293
+ grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
294
+ margin-top: 70px;
295
+ grid-gap: 1px;
296
+ box-shadow: 0 10px 15px 1px #ddd
297
+ }
298
+
299
+ .pri-tb {
300
+ background: #fff;
301
+ text-align: center;
302
+ border: 1px solid #f9f9f9;
303
+ position: relative
304
+ }
305
+
306
+ .pri-tb:hover {
307
+ border: 1px solid #b168ff
308
+ }
309
+
310
+ .pri-tb a:hover .pri-by {
311
+ background: #b168ff
312
+ }
313
+ .pri-tb a:hover .amt {
314
+ color: #7241a7
315
+ }
316
+
317
+ .pri-tb a {
318
+ display: inline-block;
319
+ text-decoration: none;
320
+ color: #222;
321
+ padding: 20px 12px
322
+ }
323
+
324
+ .pri-tb h5 {
325
+ margin: 0 0 20px 0;
326
+ font-size: 13px;
327
+ line-height: 1.2;
328
+ letter-spacing: 2px;
329
+ font-weight: 400;
330
+ color: #000
331
+ }
332
+
333
+ .pri-tb span {
334
+ display: inline-block
335
+ }
336
+
337
+ .pri-tb .amt {
338
+ font-size: 40px;
339
+ color: #b168ff;
340
+ font-weight: 500;
341
+ margin-bottom: 20px;
342
+ display: block
343
+ }
344
+
345
+ .pri-tb .d-amt {
346
+ font-size: 24px;
347
+ color: #666;
348
+ font-weight: 500;
349
+ margin-bottom: 15px;
350
+ display: none;
351
+ text-decoration: line-through
352
+ }
353
+
354
+ .d-amt sup {
355
+ line-height: 0;
356
+ position: relative;
357
+ top: 7px
358
+ }
359
+
360
+ .pri-tb .s-amt {
361
+ font-size: 13px;
362
+ color: #4caf50;
363
+ font-weight: 500;
364
+ margin-bottom: 10px;
365
+ display: none
366
+ }
367
+
368
+ .pri-tb .amt sup {
369
+ font-size: 22px;
370
+ padding: 0 4px 0 0;
371
+ position: relative;
372
+ top: 7px
373
+ }
374
+
375
+ .pri-tb .bil {
376
+ color: #aaa;
377
+ font-size: 12px;
378
+ margin-bottom: 20px
379
+ }
380
+
381
+ .pri-tb .e,
382
+ .pri-tb .f,
383
+ .pri-tb .s {
384
+ font-size: 14px;
385
+ margin-bottom: 15px;
386
+ color: #3b4750
387
+ }
388
+
389
+ .pri-tb .sp-sv {
390
+ display: none;
391
+ font-size: 12px;
392
+ color: #fff;
393
+ background: #4caf50;
394
+ margin: 0 auto;
395
+ padding: 1px 7px 2px 7px;
396
+ border-radius: 45px
397
+ }
398
+
399
+ .pri-by {
400
+ font-size: 15px;
401
+ line-height: 1.2;
402
+ background: #333;
403
+ border-radius: 2px;
404
+ padding: 9px 18px 10px 18px;
405
+ display: inline-block;
406
+ color: #fff;
407
+ margin-top: 29px;
408
+ font-weight: 500
409
+ }
410
+
411
+ .sp-pri-lst .rec {
412
+ box-shadow: 0 1px 40px 0 #ccc;
413
+ background: #fff;
414
+ z-index: 9;
415
+ margin-top: -20px;
416
+ position: relative
417
+ }
418
+
419
+ .sp-pri-lst .rec:hover .sp-rcm {
420
+ background: #b168ff;
421
+ color: #fff
422
+ }
423
+
424
+ .sp-pri-lst .rec .pri-by {
425
+ background: #b168ff
426
+ }
427
+
428
+ .sp-rcm {
429
+ background: linear-gradient(to right, #fdfc35, #ffe258);
430
+ color: #7b6c23;
431
+ position: absolute;
432
+ top: -20px;
433
+ left: 0;
434
+ right: -1px;
435
+ bottom: auto;
436
+ padding: 2px 0;
437
+ font-size: 11px;
438
+ letter-spacing: 2px
439
+ }
440
+
441
+ .tru-us {
442
+ text-align: center;
443
+ padding: 60px 0;
444
+ margin: 0 auto;
445
+ font-size: 16px;
446
+ color: #222
447
+ }
448
+
449
+ .tru-us h2 {
450
+ margin: 20px 0 0 0;
451
+ font-size: 28px;
452
+ font-weight: 500
453
+ }
454
+
455
+ .tru-us p {
456
+ font-size: 17px;
457
+ margin: 19px 15% 18px 15%;
458
+ color: #666;
459
+ line-height: 29px
460
+ }
461
+
462
+ .tru-us a {
463
+ font-size: 18px;
464
+ color: #489bff;
465
+ text-decoration: none;
466
+ font-weight: 400
467
+ }
468
+
469
+ .ampfaq {
470
+ width: 100%;
471
+ margin: 25px 0
472
+ }
473
+
474
+ .ampfaq h4 {
475
+ margin: 0;
476
+ text-align: center;
477
+ font-size: 20px;
478
+ font-weight: 500;
479
+ color: #333
480
+ }
481
+
482
+ .faq-lst {
483
+ margin-top: 50px;
484
+ display: grid;
485
+ grid-template-columns: 1fr 1fr
486
+ }
487
+
488
+ .lt {
489
+ padding-left: 50px
490
+ }
491
+
492
+ .lt,
493
+ .rt {
494
+ width: 70%
495
+ }
496
+
497
+ .lt ul,
498
+ .rt ul {
499
+ margin: 0
500
+ }
501
+
502
+ .lt ul li,
503
+ .rt ul li {
504
+ color: #222;
505
+ margin-bottom: 30px!important
506
+ }
507
+
508
+ .lt span,
509
+ .rt span {
510
+ font-size: 17px;
511
+ font-weight: 500;
512
+ margin-bottom: 6px;
513
+ display: inline-block
514
+ }
515
+
516
+ .lt p,
517
+ .rt p {
518
+ font-size: 15px;
519
+ margin: 0
520
+ }
521
+
522
+ .f-cnt {
523
+ text-align: center;
524
+ margin-top: 20px;
525
+ color: #222
526
+ }
527
+
528
+ .f-cnt span {
529
+ font-size: 17px;
530
+ margin: 8px 0;
531
+ font-weight: 500
532
+ }
533
+
534
+ .f-cnt p {
535
+ font-size: 15px;
536
+ margin: 6px 0
537
+ }
538
+
539
+ .f-cnt a {
540
+ background: #333;
541
+ color: #fff;
542
+ padding: 15px 30px;
543
+ text-decoration: none;
544
+ font-size: 18px;
545
+ font-weight: 500;
546
+ display: inline-block;
547
+ margin-top: 15px
548
+ }
549
+
550
+ @media(max-width:1366px) {
551
+ .amp-upg {
552
+ padding: 60px 0 0 0
553
+ }
554
+ .sp-fp-cnt p {
555
+
556
+ line-height: 35px;
557
+ font-size: 18px;
558
+
559
+ }
560
+ }
561
+
562
+ @media(max-width:1280px) {
563
+ .sp-fp-cnt {
564
+ top: 1.3%
565
+ }
566
+ }
567
+
568
+ @media(max-width:768px) {
569
+ .ext {
570
+ grid-template-columns: 1fr;
571
+ grid-gap: 30px 0;
572
+ padding: 30px
573
+ }
574
+ .pvf-tlt h2 {
575
+ font-size: 26px
576
+ }
577
+ .pvf-cmp {
578
+ grid-template-columns: 1fr
579
+ }
580
+ .pr-btn a {
581
+ font-size: 22px
582
+ }
583
+ .sp-pri-lst {
584
+ grid-template-columns: 1fr 1fr 1fr
585
+ }
586
+ .sp-fp-cnt p {
587
+ line-height: 1.5;
588
+ font-size: 16px;
589
+ margin-top: 15px;
590
+ padding: 0 20px
591
+ }
592
+ .sp-fp-cnt .buy {
593
+ font-size: 16px;
594
+ padding: 8px 30px
595
+ }
596
+ .sp-fp-cnt {
597
+ top: 15px
598
+ }
599
+ .sp-fp-cnt h1 {
600
+ font-size: 30px
601
+ }
602
+ .ex-1 {
603
+ width: 100%
604
+ }
605
+ .faq-lst {
606
+ grid-template-columns: 1fr
607
+ }
608
+ .rt {
609
+ padding-left: 50px
610
+ }
611
+ }
admin/js/main.js CHANGED
@@ -39,4 +39,13 @@ jQuery(document).ready(function($){
39
  $('#superpwa-app-short-name-limit').css({'color': 'inherit'});
40
  }
41
  });
 
 
 
 
 
 
 
 
 
42
  });
39
  $('#superpwa-app-short-name-limit').css({'color': 'inherit'});
40
  }
41
  });
42
+ $('#superpwa_newsletter').submit(function(e){
43
+ //e.preventDefault();
44
+ var form = jQuery(this);
45
+ var email = form.find('input[name="newsletter-email"]').val();
46
+ jQuery.post(ajaxurl, {action:'superpwa_newsletter_submit',email:email},
47
+ function(data) {}
48
+ );
49
+ return true;
50
+ });
51
  });
loader.php CHANGED
@@ -17,6 +17,7 @@ require_once( SUPERPWA_PATH_ABS . 'admin/admin-ui-render-upgrade.php' );
17
 
18
  // 3rd party compatibility
19
  require_once( SUPERPWA_PATH_ABS . '3rd-party/onesignal.php' );
 
20
 
21
  // Load functions
22
  require_once( SUPERPWA_PATH_ABS . 'functions/common.php' );
17
 
18
  // 3rd party compatibility
19
  require_once( SUPERPWA_PATH_ABS . '3rd-party/onesignal.php' );
20
+ require_once( SUPERPWA_PATH_ABS . '3rd-party/yandex.php' );
21
 
22
  // Load functions
23
  require_once( SUPERPWA_PATH_ABS . 'functions/common.php' );
public/js/register-sw.js CHANGED
@@ -9,6 +9,10 @@ if ('serviceWorker' in navigator) {
9
  window.addEventListener('beforeinstallprompt', function(e){
10
  deferredPrompt = e;
11
  if(deferredPrompt != null || deferredPrompt != undefined){
 
 
 
 
12
  var a2hsBanner = document.getElementsByClassName("superpwa-sticky-banner");
13
  if(a2hsBanner.length){
14
  deferredPrompt.preventDefault();
9
  window.addEventListener('beforeinstallprompt', function(e){
10
  deferredPrompt = e;
11
  if(deferredPrompt != null || deferredPrompt != undefined){
12
+ if(superpwa_sw.disable_addtohome==1){
13
+ deferredPrompt.preventDefault();
14
+ }
15
+
16
  var a2hsBanner = document.getElementsByClassName("superpwa-sticky-banner");
17
  if(a2hsBanner.length){
18
  deferredPrompt.preventDefault();
public/manifest.php CHANGED
@@ -132,6 +132,28 @@ function superpwa_manifest_template() {
132
  $manifest['start_url'] = superpwa_get_start_url( true );
133
  $manifest['scope'] = superpwa_get_scope();
134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  /**
136
  * Values that go in to Manifest JSON.
137
  *
132
  $manifest['start_url'] = superpwa_get_start_url( true );
133
  $manifest['scope'] = superpwa_get_scope();
134
 
135
+ if(isset($settings['shortcut_url']) && $settings['shortcut_url']!=0){
136
+ $shortcut_url = get_permalink( $settings['shortcut_url'] );
137
+ $shortcut_url = superpwa_httpsify( $shortcut_url );
138
+ // AMP URL
139
+ if ( superpwa_is_amp() !== false && isset( $settings['start_url_amp'] ) && $settings['start_url_amp'] == 1 ) {
140
+ $shortcut_url = trailingslashit( $shortcut_url ) . superpwa_is_amp();
141
+ }
142
+ if(function_exists('superpwa_utm_tracking_for_start_url')){
143
+ $shortcut_url = superpwa_utm_tracking_for_start_url($shortcut_url);
144
+ }
145
+
146
+ $manifest['shortcuts'] = array(
147
+ array(
148
+ 'name'=>get_the_title( $settings['shortcut_url'] ),
149
+ 'short_name'=>get_the_title( $settings['shortcut_url'] ),
150
+ 'description'=>get_the_title( $settings['shortcut_url'] ),
151
+ 'url'=>$shortcut_url,
152
+ 'icons'=>$settings['icon']
153
+ )
154
+ );
155
+ }
156
+
157
  /**
158
  * Values that go in to Manifest JSON.
159
  *
public/sw.php CHANGED
@@ -262,6 +262,18 @@ function checkNeverCacheList(url) {
262
  }
263
  return true;
264
  }
 
 
 
 
 
 
 
 
 
 
 
 
265
  <?php return apply_filters( 'superpwa_sw_template', ob_get_clean() );
266
  }
267
 
@@ -274,9 +286,11 @@ function checkNeverCacheList(url) {
274
  */
275
  function superpwa_register_sw() {
276
 
 
277
  wp_enqueue_script( 'superpwa-register-sw', SUPERPWA_PATH_SRC . 'public/js/register-sw.js', array(), null, true );
278
  wp_localize_script( 'superpwa-register-sw', 'superpwa_sw', array(
279
  'url' => parse_url( superpwa_sw( 'src' ), PHP_URL_PATH ),
 
280
  )
281
  );
282
  }
262
  }
263
  return true;
264
  }
265
+ <?php
266
+ if(isset($settings['analytics_support']) && $settings['analytics_support']==1){
267
+ echo 'importScripts("https://storage.googleapis.com/workbox-cdn/releases/6.0.2/workbox-sw.js");
268
+ import * as googleAnalytics from \'workbox-google-analytics\';
269
+
270
+ if(googleAnalytics){
271
+ try{
272
+ googleAnalytics.initialize();
273
+ } catch (e){}
274
+ }';
275
+ }
276
+ ?>
277
  <?php return apply_filters( 'superpwa_sw_template', ob_get_clean() );
278
  }
279
 
286
  */
287
  function superpwa_register_sw() {
288
 
289
+ $settings = superpwa_get_settings();
290
  wp_enqueue_script( 'superpwa-register-sw', SUPERPWA_PATH_SRC . 'public/js/register-sw.js', array(), null, true );
291
  wp_localize_script( 'superpwa-register-sw', 'superpwa_sw', array(
292
  'url' => parse_url( superpwa_sw( 'src' ), PHP_URL_PATH ),
293
+ 'disable_addtohome' => isset($settings['disable_add_to_home'])? $settings['disable_add_to_home'] : 0,
294
  )
295
  );
296
  }
readme.txt CHANGED
@@ -184,6 +184,15 @@ Feel free to get in touch if you have any questions.
184
 
185
  == Changelog ==
186
 
 
 
 
 
 
 
 
 
 
187
  = 2.1.4 =
188
  * Date: [18.December.2020](https://superpwa.com/superpwa-2-1/?utm_source=wordpress.org&utm_medium=changelog)
189
  Bug Fix: Wrong manifest path if installed WordPress in a sub-folder #134
184
 
185
  == Changelog ==
186
 
187
+ = 2.1.5 =
188
+ * Date: [06.January.2021](https://superpwa.com/superpwa-2-1/?utm_source=wordpress.org&utm_medium=changelog)
189
+ Enhancement: Added the support of google analytics #149
190
+ Enhancement: Disabling “Add to home screen” #150
191
+ Enhancement: Support for Yandex manifest #146
192
+ Enhancement: Addex Quick action (shortcut) feature for PWA #147
193
+ Enhancement: Improve user interface #142
194
+ Enhancement: Added the tutorial link for Call To Action and Android APK APP Generator #145
195
+
196
  = 2.1.4 =
197
  * Date: [18.December.2020](https://superpwa.com/superpwa-2-1/?utm_source=wordpress.org&utm_medium=changelog)
198
  Bug Fix: Wrong manifest path if installed WordPress in a sub-folder #134
superpwa.php CHANGED
@@ -6,7 +6,7 @@
6
  * Author: SuperPWA
7
  * Author URI: https://profiles.wordpress.org/superpwa/
8
  * Contributors: SuperPWA
9
- * Version: 2.1.4
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
@@ -43,7 +43,7 @@ if ( ! defined('ABSPATH') ) exit;
43
  * @since 1.0
44
  */
45
  if ( ! defined( 'SUPERPWA_VERSION' ) ) {
46
- define( 'SUPERPWA_VERSION' , '2.1.4' );
47
  }
48
 
49
  /**
6
  * Author: SuperPWA
7
  * Author URI: https://profiles.wordpress.org/superpwa/
8
  * Contributors: SuperPWA
9
+ * Version: 2.1.5
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
43
  * @since 1.0
44
  */
45
  if ( ! defined( 'SUPERPWA_VERSION' ) ) {
46
+ define( 'SUPERPWA_VERSION' , '2.1.5' );
47
  }
48
 
49
  /**