PluginProbe ʕ •ᴥ•ʔ
10Web Booster – Website speed optimization, Cache & Page Speed optimizer / trunk
10Web Booster – Website speed optimization, Cache & Page Speed optimizer vtrunk
2.33.0 2.30.5 2.30.7 2.30.9 2.31.10 2.31.8 2.32.11 2.32.21 2.32.3 2.32.4 2.32.7 2.6.31 2.6.40 2.6.42 2.6.7 2.7.37 2.7.44 2.7.47 2.8.18 2.8.19 2.8.32 2.8.34 2.8.35 2.9.23 2.9.24 2.9.25 2.9.27 v2.27.4 trunk 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.17 2.0.18 2.0.21 2.0.22 2.0.25 2.0.26 2.0.27 2.0.3 2.0.7 2.0.9 2.10.46 2.10.65 2.10.66 2.10.68 2.11.41 2.11.42 2.11.43 2.12.15 2.12.21 2.12.22 2.12.23 2.12.26 2.13.37 2.13.40 2.13.41 2.13.42 2.13.44 2.13.45 2.13.47 2.14.49 2.14.50 2.15.18 2.17.21 2.17.23 2.18.17 2.19.44 2.19.45 2.19.46 2.19.49 2.2.12 2.2.15 2.2.16 2.2.18 2.2.8 2.20.31 2.20.32 2.20.33 2.21.11 2.21.12 2.21.16 2.21.25 2.22.32 2.23.13 2.23.15 2.23.16 2.23.18 2.24.12 2.24.14 2.24.18 2.25.14 2.26.6 2.28.10 2.28.13 2.28.14 2.28.7 2.29.1 2.29.2 2.29.3 2.3.0 2.3.1 2.3.2 2.3.3 2.30.18
tenweb-speed-optimizer / views / settings_basic.php
tenweb-speed-optimizer / views Last commit date
templates 2 years ago autoupdate_banner.php 2 years ago cdn_page.php 2 years ago customer_support.php 2 years ago deactivation_popup.php 2 years ago post_custom_column.php 2 years ago referral_program_page.php 2 years ago settings_basic.php 11 months ago settings_connect.php 3 years ago settings_view.php 1 year ago two_black_friday.php 3 years ago two_header.php 3 years ago white_label_view.php 2 years ago
settings_basic.php
463 lines
1 <?php
2
3 $two_disconnect_nonce = wp_create_nonce('two_disconnect_nonce');
4 $two_domain_id = get_site_option('tenweb_domain_id');
5 $two_manage_url = trim(TENWEB_DASHBOARD, '/') . '/websites/' . $two_domain_id . '/booster/frontend' . '?from_plugin=' . \TenWebOptimizer\OptimizerUtils::FROM_PLUGIN;
6 $two_upgrade_link = trim(TENWEB_DASHBOARD, '/') . '/upgrade-plan' . '?from_plugin=' . \TenWebOptimizer\OptimizerUtils::FROM_PLUGIN;
7 $two_upgrade_link_pricing = trim(TENWEB_DASHBOARD, '/') . '/upgrade-plan' . '?from_plugin=' . \TenWebOptimizer\OptimizerUtils::FROM_PLUGIN;
8 $two_wp_plugin_url = 'https://wordpress.org/support/plugin/tenweb-speed-optimizer/';
9 $two_disconnect_link = get_admin_url() . 'admin.php?page=two_settings_page&two_disconnect=1&nonce=' . $two_disconnect_nonce;
10 $two_current_user = wp_get_current_user();
11 $username = get_site_option(TENWEB_PREFIX . '_user_info') ? get_site_option(TENWEB_PREFIX . '_user_info')['client_info']['name'] : $two_current_user->display_name;
12 $two_flow_finished = get_option('two_flow_status') != 1 ? true : false;
13 $db_cloudflare_page = TENWEB_DASHBOARD . '/websites/' . $two_domain_id . '/booster/cloudflare';
14
15 if (\TenWebOptimizer\OptimizerUtils::is_paid_user()) {
16 $two_plan_name = __('Paid Plan', 'tenweb-speed-optimizer');
17
18 if (TENWEB_SO_HOSTED_ON_10WEB) {
19 $two_plan_description_1 = __('The plugin is now optimizing your website.', 'tenweb-speed-optimizer');
20 $two_plan_description_2 = __('', 'tenweb-speed-optimizer');
21 } else {
22 $two_plan_description_1 = __('The plugin is now optimizing your website.', 'tenweb-speed-optimizer');
23 $two_plan_description_2 = __('Manage optimization settings and assign custom rules from the ' . TWO_SO_ORGANIZATION_NAME . ' dashboard.', 'tenweb-speed-optimizer');
24
25 if (strtolower(TWO_SO_ORGANIZATION_NAME) != '10web') {
26 $two_plan_description_2 = '';
27 }
28 }
29 $two_contact_text = __('Please contact our support via', 'tenweb-speed-optimizer');
30 $two_contact_link_text = __('Live Chat', 'tenweb-speed-optimizer');
31 $two_contact_link = $two_manage_url . '&open=livechat';
32 $full_cont = 'two-full-width';
33 $half_cont = 'two-half-width';
34 } else {
35 $two_plan_name = __('Free Plan', 'tenweb-speed-optimizer');
36 $two_plan_description_1 = __('The plugin is now optimizing your website.', 'tenweb-speed-optimizer');
37 $two_plan_description_2 = __('Manage optimization settings from the ' . TWO_SO_ORGANIZATION_NAME . ' dashboard.', 'tenweb-speed-optimizer');
38
39 if (strtolower(TWO_SO_ORGANIZATION_NAME) != '10web') {
40 $two_plan_description_2 = '';
41 }
42 $two_contact_text = __('Please create a topic in', 'tenweb-speed-optimizer');
43 $two_contact_link_text = __('WordPress.org', 'tenweb-speed-optimizer');
44 $two_contact_link = $two_wp_plugin_url;
45 $full_cont = '';
46 $half_cont = '';
47 }
48 $two_finish_opt_url = add_query_arg(['two_setup' => 1], get_home_url());
49 $compressed_pages = count(\TenWebOptimizer\OptimizerUtils::getCriticalPages());
50 $images_count = \TenWebWpTransients\OptimizerTransients::get('two_images_count');
51 $compressed_iamges = (!empty($images_count) && isset($images_count['optimized_images_count'])) ? (int) $images_count['optimized_images_count'] : '';
52 $empty_images_count_transient = empty($images_count) ? 'two-settings-basic two_empty_images_count' : '';
53 $free_plan_limit = 6;
54
55 if ($compressed_pages >= $free_plan_limit) {
56 $reached_the_limit = 'two-reached-limit';
57 $limit_text = __('You have reached the Free plan limit.', 'tenweb-speed-optimizer');
58 } else {
59 $reached_the_limit = '';
60 $left_pages = $free_plan_limit - $compressed_pages;
61 $single = __('You can optimize %d more page within%sthe Free Plan limit.', 'tenweb-speed-optimizer');
62 $plural = __('You can optimize %d more pages within%sthe Free Plan limit.', 'tenweb-speed-optimizer');
63 $limit_text = wp_sprintf(_n($single, $plural, $left_pages, 'photo-gallery'), $left_pages, '<br />');
64 }
65 ?>
66 <script>
67 jQuery(document).ready(function() {
68 jQuery('.two-faq-item').on('click', function() {
69 jQuery(this).toggleClass('active');
70 });
71 jQuery('.two-disconnect-link a').on('click', function() {
72 jQuery('.two-disconnect-popup').appendTo('body').addClass('open');
73 return false;
74 });
75 jQuery('.two-button-cancel, .two-close-img').on('click', function() {
76 jQuery('.two-disconnect-popup').removeClass('open');
77 return false;
78 });
79 });
80 </script>
81 <div class="two-container connected" dir="ltr">
82 <?php include_once 'two_header.php'; ?>
83 <div class="two-body-container">
84 <?php
85 global $TwoSettings;
86
87 if (!TENWEB_SO_HOSTED_ON_10WEB && $TwoSettings->get_settings('cloudflare_cache_status') != 'on'
88 && strtolower(TWO_SO_ORGANIZATION_NAME) === '10web' && \TenWebOptimizer\OptimizerUtils::is_paid_user()) { ?>
89 <div class="two-cdn-not-applied two-main-text">
90 <?php echo wp_kses(
91 __(
92 '<b>Pro optimization hasn’t been applied yet.</b>
93 You have upgraded to 10Web Booster Pro but haven’t enabled<br> the Pro optimization on your website. ',
94 'tenweb-speed-optimizer'
95 ),
96 [ 'a' => [], 'br' => [], 'b' => [] ]
97 )
98 . '<a href="' . esc_url($db_cloudflare_page) . '">' . esc_html__('Enable CDN', 'tenweb-speed-optimizer')
99 . '</a>' . esc_html__(' to enjoy the benefits.', 'tenweb-speed-optimizer'); ?>
100 </div>
101 <?php }
102
103 if ($two_flow_finished) {
104 ?>
105 <div class="two-body">
106 <div class="two-greeting">
107 <img src="<?php echo esc_url(TENWEB_SO_URL); ?>/assets/images/waving_hand.png" alt="Hey" class="two-waving-hand"/>
108 <?php if (TENWEB_SO_HOSTED_ON_10WEB) { ?>
109 <?php _e('Hey there!', 'tenweb-speed-optimizer'); ?>
110 <?php } else {?>
111 <?php if (strtolower(TWO_SO_ORGANIZATION_NAME) != '10web') { ?>
112 <?php echo esc_html(sprintf(__('Hey %s!', 'tenweb-speed-optimizer'), $username, $two_plan_name)); ?>
113 <?php } else { ?>
114 <?php echo esc_html(sprintf(__('Hey %s! You are on a %s.', 'tenweb-speed-optimizer'), $username, $two_plan_name)); ?>
115 <?php }?>
116 <?php } ?>
117 </div>
118 <div class="two-plugin-status">
119 <?php if (TENWEB_SO_HOSTED_ON_10WEB) { ?>
120 <?php _e(esc_html(TWO_SO_ORGANIZATION_NAME) . ' Booster is Active', 'tenweb-speed-optimizer'); ?>
121 <?php } else {?>
122 <?php _e(esc_html(TWO_SO_ORGANIZATION_NAME) . ' Booster is Active', 'tenweb-speed-optimizer'); ?>
123 <?php } ?>
124 </div>
125 <div class="two-plugin-description">
126 <?php echo esc_html($two_plan_description_1); ?>
127 <br/>
128 <?php echo esc_html($two_plan_description_2); ?>
129 </div>
130 <?php if (!TENWEB_SO_HOSTED_ON_10WEB && strtolower(TWO_SO_ORGANIZATION_NAME) === '10web') { ?>
131 <a href="<?php echo esc_url($two_manage_url); ?>" target="_blank"
132 class="two-button two-button-green"><?php _e('MANAGE', 'tenweb-speed-optimizer'); ?></a>
133 <?php } ?>
134 <?php if (strtolower(TWO_SO_ORGANIZATION_NAME) !== '10web') { ?>
135 <a href="#" target="_blank"
136 class="two-button two-button-green two_clear_cache two_cache_button">
137 <?php _e('Clear Cache', 'tenweb-speed-optimizer'); ?>
138 </a>
139 <?php } ?>
140 </div>
141 <?php
142 } else {
143 ?>
144 <div class="two-body">
145 <div class="two-not-finished-notice">
146 <?php _e('Optimization not finished', 'tenweb-speed-optimizer'); ?>
147 </div>
148 <div class="two-plugin-status">
149 <?php _e('Complete your website optimization.', 'tenweb-speed-optimizer'); ?>
150 </div>
151 <div class="two-plugin-description">
152 <?php _e('Your website wasn’t optimized.', 'tenweb-speed-optimizer'); ?>
153 <br/>
154 <?php _e('Please <a href="' . esc_url(TENWEB_DASHBOARD) . '?flow_contact_us=1' . '">contact our support team</a> to complete the optimization.', 'tenweb-speed-optimizer'); ?>
155 <br/>
156 <?php _e('If you already have, we’ll be in touch soon.', 'tenweb-speed-optimizer'); ?>
157 </div>
158 <?php if (!TENWEB_SO_HOSTED_ON_10WEB) { ?>
159 <a href="<?php echo esc_url($two_finish_opt_url); ?>" target="_blank" class="two-button two-button-green">
160 <?php _e('FINISH OPTIMIZATION', 'tenweb-speed-optimizer'); ?>
161 </a>
162 <?php } ?>
163 </div>
164 <?php
165 }
166
167 if ((!TENWEB_SO_HOSTED_ON_10WEB && strtolower(TWO_SO_ORGANIZATION_NAME) === '10web')) {
168 if ($two_flow_finished) {
169 $score = get_option('two-front-page-speed');
170
171 $reanalyze_button_status_previous = false;
172 $reanalyze_button_status_current = false;
173
174 if (!empty($score)) {
175 if (isset($score['current_score']) && isset($score['current_score']['status'])
176 && $score['current_score']['status'] == 'inprogress') {
177 $reanalyze_button_status_current = true;
178 }
179
180 if (isset($score['previous_score']) && isset($score['previous_score']['status'])
181 && $score['previous_score']['status'] == 'inprogress') {
182 $reanalyze_button_status_previous = true;
183 }
184 }
185 $post_id = 'front_page'; // phpcs:ignore ?>
186 <div class="two-optimized-homepage-and-available-pro-container two-any-reanalyzing-score-section <?php echo esc_attr($full_cont); ?>" data-id="<?php echo esc_attr($post_id); ?>">
187 <div class="two-section-with-border two-optimized-homepage-container <?php echo esc_attr($full_cont); ?>">
188 <div class="two-optimized-homepage-header">
189 <p class="two-settings_title">
190 <?php _e('Your optimized homepage score:', 'tenweb-speed-optimizer'); ?>
191 </p>
192 <p class="two-settings_title two-cache-link two_clear_cache">
193 <?php _e('Clear cache', 'tenweb-speed-optimizer'); ?>
194 </p>
195 </div>
196 <div class="two-homepage-scores two_score_block">
197 <div class="two_score_block_left">
198 <p class="two_score_block_title"><?php _e('Before optimization', 'tenweb-speed-optimizer'); ?></p>
199 <?php if (empty($score) || !isset($score['previous_score'])
200 || !isset($score['previous_score']['desktop_score']) || $reanalyze_button_status_previous) {
201 $no_old_scores = 'two-no-scores';
202 } ?>
203 <div class="two_score_container_both two-old-scores <?php echo isset($no_old_scores) ? esc_html($no_old_scores) : ''; ?>"
204 data-no-score-for="<?php echo $reanalyze_button_status_current ? esc_attr($post_id) : ''; ?>">
205 <div class="two_score_container two_score_container_mobile_old">
206 <div class="two-score-circle two_circle_with_bg" data-score="<?php echo isset($no_old_scores) ? '' : (int) $score['previous_score']['mobile_score']; ?>" data-size="40"
207 data-thickness="2" data-id="mobile">
208 <span class="two-score-circle-animated"></span>
209 </div>
210 <div class="two_score_info">
211 <p><?php _e('Mobile score', 'tenweb-speed-optimizer'); ?></p>
212 <p><?php _e('Load time: ', 'tenweb-speed-optimizer'); ?>
213 <span class="two_load_time"><?php echo isset($no_old_scores) ? '' : esc_html($score['previous_score']['mobile_tti'] . __('s', 'tenweb-speed-optimizer')); ?></span></p>
214 </div>
215 </div>
216 <div class="two_score_container two_score_container_desktop_old">
217 <div class="two-score-circle two_circle_with_bg" data-score="<?php echo isset($no_old_scores) ? '' : (int) $score['previous_score']['desktop_score']; ?>" data-size="40"
218 data-thickness="2" data-id="desktop">
219 <span class="two-score-circle-animated"></span>
220 </div>
221 <div class="two_score_info">
222 <p><?php _e('Desktop score', 'tenweb-speed-optimizer'); ?></p>
223 <p><?php _e('Load time: ', 'tenweb-speed-optimizer'); ?>
224 <span class="two_load_time"><?php echo isset($no_old_scores) ? '' : esc_html($score['previous_score']['desktop_tti'] . __('s', 'tenweb-speed-optimizer')); ?></span></p>
225 </div>
226 </div>
227 <?php if ($post_id != '') { ?>
228 <a onclick="<?php echo 'two_reanalyze_score(this)'; ?>" data-from-wp-admin="1" data-post_id="<?php echo esc_attr($post_id); ?>" target="_blank"
229 data-initiator="admin-bar" class="two_reanalyze_link <?php echo $reanalyze_button_status_previous ? 'two-hidden' : ''; ?>">
230 </a>
231 <span class="two-page-speed two-optimizing <?php echo $reanalyze_button_status_previous ? '' : 'two-hidden'; ?>"></span>
232 <?php } ?>
233 </div>
234 </div>
235 <div class="two_score_block_right">
236 <p class="two_score_block_title"><?php echo sprintf(__('After %s optimization', 'tenweb-speed-optimizer'), esc_html(TWO_SO_ORGANIZATION_NAME) . ' Booster'); ?></p>
237 <?php if (empty($score) || !isset($score['current_score'])
238 || !isset($score['current_score']['desktop_score']) || $reanalyze_button_status_current) {
239 $no_new_scores = 'two-no-scores';
240 } ?>
241 <div class="two_score_container_both two-new-scores <?php echo isset($no_new_scores) ? esc_html($no_new_scores) : ''; ?>"
242 data-no-score-for="<?php echo $reanalyze_button_status_current ? esc_attr($post_id) : ''; ?>">
243 <div class="two_score_container two_score_container_mobile">
244 <div class="two-score-circle two_circle_with_bg" data-score="<?php echo isset($no_new_scores) ? '' : (int) $score['current_score']['mobile_score']; ?>" data-size="40"
245 data-thickness="2" data-id="mobile">
246 <span class="two-score-circle-animated"></span>
247 </div>
248 <div class="two_score_info">
249 <p><?php _e('Mobile score', 'tenweb-speed-optimizer'); ?></p>
250 <p><?php _e('Load time: ', 'tenweb-speed-optimizer'); ?>
251 <span class="two_load_time"><?php echo isset($no_new_scores) ? '' : esc_html($score['current_score']['mobile_tti'] . __('s', 'tenweb-speed-optimizer')); ?></span></p>
252 </div>
253 </div>
254 <div class="two_score_container two_score_container_desktop">
255 <div class="two-score-circle two_circle_with_bg" data-score="<?php echo isset($no_new_scores) ? '' : (int) $score['current_score']['desktop_score']; ?>" data-size="40"
256 data-thickness="2" data-id="desktop">
257 <span class="two-score-circle-animated"></span>
258 </div>
259 <div class="two_score_info">
260 <p><?php _e('Desktop score', 'tenweb-speed-optimizer'); ?></p>
261 <p><?php _e('Load time: ', 'tenweb-speed-optimizer'); ?>
262 <span class="two_load_time"><?php echo isset($no_new_scores) ? '' : esc_html($score['current_score']['desktop_tti'] . __('s', 'tenweb-speed-optimizer')); ?></span></p>
263 </div>
264 </div>
265 <?php if ($post_id != '') { ?>
266 <a onclick="<?php echo 'two_reanalyze_score(this)'; ?>" data-from-wp-admin="1" data-post_id="<?php echo esc_attr($post_id); ?>" target="_blank"
267 data-initiator="admin-bar" class="two_reanalyze_link <?php echo $reanalyze_button_status_current ? 'two-hidden' : ''; ?>">
268 </a>
269 <span class="two-page-speed two-optimizing <?php echo $reanalyze_button_status_current ? '' : 'two-hidden'; ?>"></span>
270 <?php } ?>
271 </div>
272 </div>
273 </div>
274 <div class="two_reanalyze_container">
275 <span class="two-page-speed two-optimizing <?php echo $reanalyze_button_status_current ? '' : 'two-hidden'; ?>"></span>
276 <a onclick="two_reanalyze_score(this)" data-from-wp-admin="1" data-post_id="front_page"
277 data-initiator="admin-bar" class="two_reanalyze_button">
278 <?php $reanalyze_button_status_current ? _e('Reanalyzing...', 'tenweb-speed-optimizer') : _e('Reanalyze', 'tenweb-speed-optimizer'); ?>
279 </a>
280 </div>
281 <?php
282 if (!\TenWebOptimizer\OptimizerUtils::is_paid_user()) {
283 ?>
284 <div class="two-optimized-homepage-notice <?php echo esc_attr($reached_the_limit); ?>">
285 <div>
286 <?php echo wp_kses_post($limit_text); ?>
287 </div>
288 <?php if (!\TenWebOptimizer\OptimizerUtils::is_paid_user() && $reached_the_limit == 'two-reached-limit') { ?>
289 <div><?php _e('6 of 6', 'tenweb-speed-optimizer'); ?></div>
290 <div class="two-line_container"></div>
291 <?php } ?>
292 </div>
293 <?php
294 } ?>
295 <div class="two-optimiziation-info">
296 <div class="two-optimized-page">
297 <p class="two-settings_title two-title-with-dot">
298 <?php _e('Optimized pages', 'tenweb-speed-optimizer'); ?>
299 </p>
300 <p class="two-settings_title">
301 <?php
302 $terms_count = (int) get_terms(['fields' => 'count', 'hide_empty' => false]);
303 $total_pages = wp_count_posts('page')->publish + wp_count_posts('post')->publish + $terms_count;
304
305 if (\TenWebOptimizer\OptimizerUtils::is_paid_user()) {
306 echo sprintf(__('%d of %d', 'tenweb-speed-optimizer'), esc_html($total_pages), esc_html($total_pages));
307 } else {
308 echo sprintf(__('%d of %d', 'tenweb-speed-optimizer'), esc_html($compressed_pages), esc_html($total_pages));
309 } ?>
310 </p>
311 </div>
312 <div class="two-optimized-images">
313 <p class="two-settings_title two-title-with-dot">
314 <?php _e('Optimized images', 'tenweb-speed-optimizer'); ?>
315 </p>
316 <p class="two-settings_title <?php echo esc_attr($empty_images_count_transient); ?>">
317 <?php echo esc_html($compressed_iamges); ?>
318 </p>
319 </div>
320 </div>
321 </div>
322 <?php
323 if (!\TenWebOptimizer\OptimizerUtils::is_paid_user()) {
324 $current_ts = time();
325 $deadline_ts = mktime(0, 0, 0, 11, 29, 2022);
326 $black_friday_on = true;
327
328 if ($current_ts > $deadline_ts) {
329 $black_friday_on = false;
330 }
331
332 if ($black_friday_on) {
333 $black_friday_upgrade_button = $two_upgrade_link_pricing . '?two_comes_from=MainPageUpgradeButton';
334 $black_friday_total_pages = (int) $total_pages;
335 $black_friday_total_images = (int) $images_count['total_images_count']; ?>
336 <div class="two-section-with-border two-get-pro-container two_black_friday_offer">
337 <?php require __DIR__ . '/two_black_friday.php'; ?>
338 </div>
339 <?php
340 } else { ?>
341 <div class="two-section-with-border two-get-pro-container">
342 <p class="two-settings_title">
343 <?php _e('Achieve more with Booster Pro', 'tenweb-speed-optimizer'); ?>
344 </p>
345 <div class="two-available-pro-listing">
346 <ul class="two-available-pro-list">
347 <li class="two-available-pro-list-each-diamond two-settings_title">
348 <?php _e('Full frontend optimization', 'tenweb-speed-optimizer'); ?>
349 </li>
350 <li class="two-available-pro-list-each-point two-settings_title">
351 <?php $total_images_count = (is_array($images_count) && isset($images_count['total_images_count'])) ? (int) $images_count['total_images_count'] : 0; ?>
352 <?php echo esc_html(sprintf(__('%s pages and all %s images', 'tenweb-speed-optimizer'), (int) $total_pages, $total_images_count)); ?>
353 </li>
354 <li class="two-available-pro-list-each-diamond two-settings_title">
355 <?php _e('Optimization of unlimited new pages and images', 'tenweb-speed-optimizer'); ?>
356 </li>
357 <li class="two-available-pro-list-each-diamond two-settings_title">
358 <?php _e('Pro optimization with Cloudflare CDN', 'tenweb-speed-optimizer'); ?>
359 </li>
360 <li class="two-available-pro-list-each-point two-settings_title">
361 <?php _e('50% faster load times', 'tenweb-speed-optimizer'); ?>
362 </li>
363 <li class="two-available-pro-list-each-point two-settings_title">
364 <?php _e('30% higher PageSpeed score', 'tenweb-speed-optimizer'); ?>
365 </li>
366 <li class="two-available-pro-list-each-point two-settings_title">
367 <?php _e('275 caching locations worldwide', 'tenweb-speed-optimizer'); ?>
368 </li>
369 <li class="two-available-pro-list-each-point two-settings_title">
370 <?php _e('DDoS protection and WAF', 'tenweb-speed-optimizer'); ?>
371 </li>
372 <li class="two-available-pro-list-each-point two-settings_title">
373 <?php _e('Full page caching', 'tenweb-speed-optimizer'); ?>
374 </li>
375 <li class="two-available-pro-list-each-point two-settings_title">
376 <?php _e('SSL certificate', 'tenweb-speed-optimizer'); ?>
377 </li>
378 <li class="two-available-pro-list-each-diamond two-settings_title">
379 <?php _e('Automatic caching and cache warmup', 'tenweb-speed-optimizer'); ?>
380 </li>
381 <li class="two-available-pro-list-each-diamond two-settings_title">
382 <?php _e('24/7 priority customer support', 'tenweb-speed-optimizer'); ?>
383 </li>
384 </ul>
385 </div>
386 <div class="two-available-pro-button-container">
387 <a href="<?php echo esc_url($two_upgrade_link) . '&two_comes_from=MainPageUpgradeButton'; ?>"
388 class="two-button two-button-green two-available-pro-button"><?php _e('Upgrade', 'tenweb-speed-optimizer'); ?></a>
389 </div>
390 </div>
391 <?php
392 }
393 } ?>
394 </div>
395 <?php
396 } ?>
397 <div class="two-disconnect-link">
398 <img src="<?php echo esc_url(TENWEB_SO_URL); ?>/assets/images/check_solid.svg" alt="Connected" class="two-connected-img" />
399 <b><?php _e('Site is connected', 'tenweb-speed-optimizer'); ?></b>
400 <a href="<?php echo esc_url($two_disconnect_link); ?>"><?php _e('Disconnect from ' . esc_html(TWO_SO_ORGANIZATION_NAME), 'tenweb-speed-optimizer'); ?></a>
401 </div>
402 <div class="two-wp-link">
403 <b><?php _e('Have a question?', 'tenweb-speed-optimizer'); ?></b>
404 <span><?php echo esc_html($two_contact_text); ?> <a href="<?php echo esc_url($two_contact_link); ?>" target="_blank"><?php echo esc_html($two_contact_link_text); ?></a></span>
405 </div>
406 <?php
407 $image_optimzier_active = true;
408 $disconnect_title = __('Disconnect ' . TWO_SO_ORGANIZATION_NAME . ' Booster', 'tenweb-speed-optimizer');
409 $disconnect_desc = __('Disconnecting a website from 10Web will rollback all optimization <br>
410 and caching configurations and negatively affect your PageSpeed.', 'tenweb-speed-optimizer');
411
412 if (is_plugin_active('image-optimizer-wd/tenweb-image-optimizer.php')) {
413 $image_optimzier_active = false;
414 $disconnect_title = __('Disconnect website from ' . TWO_SO_ORGANIZATION_NAME, 'tenweb-speed-optimizer');
415 $disconnect_desc = __('If you disconnect your website from 10Web, you will lose both the IO <br>
416 and Speed Booster plugins, resulting in the loss of your website optimization. <br>
417 If you no longer want to use this plugin, deactivate it from the plugins list.', 'tenweb-speed-optimizer');
418 } ?>
419 <div class="two-disconnect-popup">
420 <div class="two-disconnect-popup-body">
421 <div class="two-disconnect-popup-title">
422 <?php echo esc_html($disconnect_title); ?>
423 </div>
424 <div class="two-disconnect-popup-content">
425 <p>
426 <?php echo wp_kses_post($disconnect_desc); ?>
427 </p>
428 <?php
429 if ($image_optimzier_active) {
430 ?>
431 <p>
432 <?php _e('By disconnecting you will revert the following:', 'tenweb-speed-optimizer'); ?>
433 </p>
434 <div class="two-disconnect-popup-list">
435 <p>
436 <?php _e('PageSpeed score', 'tenweb-speed-optimizer'); ?>
437 </p>
438 <p>
439 <?php _e('Improved Core Web Vitals', 'tenweb-speed-optimizer'); ?>
440 </p>
441 <p>
442 <?php _e('Image optimization', 'tenweb-speed-optimizer'); ?>
443 </p>
444 <p>
445 <?php _e('Caching', 'tenweb-speed-optimizer'); ?>
446 </p>
447 </div>
448 <?php
449 } ?>
450 </div>
451 <div class="two-disconnect-popup-button-container">
452 <a href="#" class="two-button two-disconnect-popup-button two-button-cancel"><?php _e('Cancel', 'tenweb-speed-optimizer'); ?></a>
453 <a href="<?php echo esc_url($two_disconnect_link); ?>" class="two-button two-disconnect-popup-button two-button-disconnect"><?php _e('Disconnect', 'tenweb-speed-optimizer'); ?></a>
454 </div>
455 <img src="<?php echo esc_url(TENWEB_SO_URL); ?>/assets/images/close.svg" alt="Close" class="two-close-img" />
456 </div>
457 </div>
458 <?php
459 }
460 ?>
461 </div>
462 </div>
463