PluginProbe
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript / 4.0.16
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript v4.0.16
4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.0.30 4.0.29 4.0.28 4.0.27 4.0.26 4.0.24 4.0.25 4.0.23 4.0.22 4.0.21 4.0.19 4.0.18 4.0.17 4.0.16 1.9.3 1.9.4 1.9.5 1.9.6 All 170 releases
searchpro / admin / intro-page.php

intro-page.php in BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript 4.0.16, at admin/intro-page.php

156 lines 8.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH'))
3 exit;
4
5 do_action('berqwp_notices');
6 ?>
7 <!--<link rel="preconnect" href="https://fonts.googleapis.com">
8 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9 <link href="https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500&display=swap" rel="stylesheet">
10 <link rel="stylesheet" href="<?php echo esc_attr(optifer_URL . '/admin/css/style.css?v=' . BERQWP_VERSION); ?>">-->
11
12 <div class="wrap">
13 <h1 style="display:none">BerqWP</h1>
14 <div></div>
15 <div id="berqwp-intro">
16 <h2 class="title">Automate performance optimization with just a few clicks</h2>
17
18 <?php if (berqwp_is_license_managed_by_network()): ?>
19 <div style="text-align: center; padding: 20px;">
20 <p style="font-size: 16px;">The license key for this plugin is managed at the <strong>Network Admin</strong> level.</p>
21 <?php if (current_user_can('manage_network_options')): ?>
22 <p><a href="<?php echo esc_url(network_admin_url('admin.php?page=berqwp-network')); ?>" class="button button-primary" style="font-size: 14px; padding: 8px 20px;">Go to Network Settings</a></p>
23 <?php else: ?>
24 <p>Please contact your network administrator to activate the license.</p>
25 <?php endif; ?>
26 </div>
27 <?php else: ?>
28
29 <form class="berqwp-onboard-form" action="" method="post" autocomplete="off">
30 <?php wp_nonce_field('berqwp_save_settings', 'berqwp_save_nonce'); ?>
31 <input type="hidden" name="berqwp_intro_page" value="1">
32 <div class="optimization-method-block">
33 <h3>Choose Optimization Method:</h3>
34 <p>Run optimization locally for free, or use BerqWP cloud for better performance and full feature access.</p>
35 <div class="optimization-method-options">
36 <input type="radio" id="berqwp-om-local" name="berqwp_optimization_method" value="local">
37 <label for="berqwp-om-local" class="optimization-method">
38 <div class="icon">
39 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-server-icon lucide-server">
40 <rect width="20" height="8" x="2" y="2" rx="2" ry="2" />
41 <rect width="20" height="8" x="2" y="14" rx="2" ry="2" />
42 <line x1="6" x2="6.01" y1="6" y2="6" />
43 <line x1="6" x2="6.01" y1="18" y2="18" />
44 </svg>
45 </div>
46 Optimize locally (free)
47 </label>
48 <input type="radio" id="berqwp-om-cloud" name="berqwp_optimization_method" value="cloud">
49 <label for="berqwp-om-cloud" class="optimization-method">
50 <div class="icon">
51 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cloudy-icon lucide-cloudy">
52 <path d="M17.5 12a1 1 0 1 1 0 9H9.006a7 7 0 1 1 6.702-9z" />
53 <path d="M21.832 9A3 3 0 0 0 19 7h-2.207a5.5 5.5 0 0 0-10.72.61" />
54 </svg>
55 </div>
56 BerqWP Cloud
57 </label>
58 </div>
59 </div>
60
61 <div class="continue-local" style="display: none;">
62 <div class="inner">
63 <input type="email" name="berqwp_local_user_email" placeholder="Enter your email" required>
64 <button type="submit" disabled>Continue</button>
65 </div>
66 </div>
67 <div class="continue-cloud" style="display: none;">
68 <div class="inner">
69 <input type="password" name="berqwp_license_key" placeholder="Enter your license key" autocomplete="off">
70 <button type="submit" disabled>Activate</button>
71
72 </div>
73 <?php
74 if (!empty($error)) {
75 echo wp_kses_post('<p style="color:red">' . $error . '</p>');
76 }
77 ?>
78 <p class="license-msg" style="text-align: center;">Create an account to obtain a <a href="https://berqwp.com/pricing/" target="_blank">BerqWP license key</a>.</p>
79 </div>
80 </form>
81
82 <?php endif; ?>
83 <div class="cta-btns" style="display: none;">
84 <a href="https://berqwp.com/pricing/" class="btn" target="_blank">
85 <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
86 <path
87 d="M12 8L15 13.2L18 10.5L17.3 14H6.7L6 10.5L9 13.2L12 8ZM12 4L8.5 10L3 5L5 16H19L21 5L15.5 10L12 4ZM19 18H5V19C5 19.6 5.4 20 6 20H18C18.6 20 19 19.6 19 19V18Z"
88 fill="white" />
89 </svg>
90 Purchase Premium
91 </a>
92 <a href="https://berqwp.com/free-account/" class="btn" target="_blank">
93 <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
94 <path
95 d="M20 2H4C2.9 2 2 2.9 2 4V22L6 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2ZM20 16H5.17L4 17.17V4H20V16Z"
96 fill="white" />
97 <path d="M12 15L13.57 11.57L17 10L13.57 8.43L12 5L10.43 8.43L7 10L10.43 11.57L12 15Z"
98 fill="white" />
99 </svg>
100
101 Get Free Account
102 </a>
103 </div>
104 </div>
105 </div>
106 <!--<script src="<?php echo esc_attr(optifer_URL . '/admin/js/bootstrap-slider.js?v=' . BERQWP_VERSION); ?>"></script>-->
107 <script>
108 (function($) {
109 $(document).ready(function() {
110
111 function update_optimization_method() {
112 let val = $('.optimization-method-options input[type="radio"]:checked').val();
113
114 if (val == 'local') {
115 $('#berqwp-intro .continue-local').show();
116 $('#berqwp-intro .continue-cloud').hide();
117
118 $('input[name="berqwp_local_user_email"]').prop('required', true);
119 $('input[name="berqwp_local_user_email"]').prop('disabled', false);
120 $('input[name="berqwp_license_key"]').prop('required', false);
121 }
122
123 if (val == 'cloud') {
124 $('#berqwp-intro .continue-local').hide();
125 $('#berqwp-intro .continue-cloud').show();
126
127 $('input[name="berqwp_local_user_email"]').prop('required', false);
128 $('input[name="berqwp_local_user_email"]').prop('disabled', true);
129 $('input[name="berqwp_license_key"]').prop('required', true);
130 }
131 }
132
133 update_optimization_method();
134
135 $('.optimization-method-options input[type="radio"]').on('change', update_optimization_method)
136
137 $('input[name="berqwp_license_key"]').on('change, input', function() {
138 if ($(this).val().length > 5) {
139 $('.continue-cloud button[type="submit"]').prop('disabled', false);
140 } else {
141 $('.continue-cloud button[type="submit"]').prop('disabled', true);
142 }
143 })
144
145 $('input[name="berqwp_local_user_email"]').on('change, input', function() {
146 if ($(this).val().length > 0) {
147 $('.continue-local button[type="submit"]').prop('disabled', false);
148 } else {
149 $('.continue-local button[type="submit"]').prop('disabled', true);
150 }
151 })
152
153
154 })
155 })(jQuery)
156 </script>