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 / cdn_page.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
cdn_page.php
183 lines
1 <?php
2 wp_enqueue_style('two_cdn_page_css', TENWEB_SO_URL . '/assets/css/cdn_page.css', ['two-open-sans'], TENWEB_SO_VERSION);
3 $is_paid_user = \TenWebOptimizer\OptimizerUtils::is_paid_user();
4 $cloudflare_cdn_enabled = false;
5
6 if ($is_paid_user) {
7 global $TwoSettings;
8
9 if ($TwoSettings->get_settings('cloudflare_cache_status') == 'on') {
10 $cloudflare_cdn_enabled = true;
11 }
12 }
13 $domain_id = (int) get_option(TENWEBIO_MANAGER_PREFIX . '_domain_id', 0);
14 $db_cloudflare_page = TENWEB_DASHBOARD . '/websites/' . $domain_id . '/booster/cloudflare';
15 $upgrade_link = TENWEB_DASHBOARD . '/websites/' . $domain_id . '/booster/pro/?two_comes_from=CloudflarePage';
16
17 $cloudflare_cdn_benefits = [
18 [
19 'title' => __('Enterprise CDN', 'tenweb-speed-optimizer'),
20 'desc' => __('Get ultra-fast content delivery over Cloudflare’s<br> global edge network spread in over 275 cities.
21 <br>Remove latency and improve performance.', 'tenweb-speed-optimizer')
22 ],
23 [
24 'title' => __('Full page cache', 'tenweb-speed-optimizer'),
25 'desc' => __('Enable full page caching for static pages<br> to read entirely from the cache, improving
26 <br>server response time and loading.', 'tenweb-speed-optimizer')
27 ],
28 [
29 'title' => __('Bot protection', 'tenweb-speed-optimizer'),
30 'desc' => __('Cloudflare easily identifies and mitigates all automated traffic to protect your domain<br> from bots.', 'tenweb-speed-optimizer')
31 ],
32 [
33 'title' => __('DDoS protection', 'tenweb-speed-optimizer'),
34 'desc' => __('Cloudflare protection secures websites while<br> ensuring the performance of legitimate traffic
35 <br> is not compromised.', 'tenweb-speed-optimizer')
36 ],
37 [
38 'title' => __('Mobile optimization with Mirage', 'tenweb-speed-optimizer'),
39 'desc' => __('Mirage automatically resizes the images<br> depending on the device and connection<br> of your visitors.', 'tenweb-speed-optimizer')
40 ],
41 [
42 'title' => __('Web application firewall (WAF)', 'tenweb-speed-optimizer'),
43 'desc' => __('Monitor, filter and protect data through<br> Cloudflare’s WAF. Secure your websites<br>
44 from critical threats and vulnerabilities.', 'tenweb-speed-optimizer')
45 ],
46 ];
47 ?>
48 <div class="two-wp-container">
49
50 <?php
51 if ($cloudflare_cdn_enabled) { ?>
52 <div class="two-container-with-border two-cloudflare-enabled">
53 <p class="two-cloudflare-active">
54 <span class="two-cloudflare-active-text">
55 <?php esc_html_e('Active', 'tenweb-speed-optimizer'); ?>
56 </span>
57 <span class="two-cloudflare-active-icon"></span>
58 </p>
59 <p class="two-page-main-title"><?php esc_html_e('Cloudflare Enterprise', 'tenweb-speed-optimizer'); ?></p>
60 <p class="two-page-main-desc"><?php
61 echo wp_kses(
62 __('Cloudflare Enterprise CDN has successfully been enabled on your website.
63 <br>If you wish to manage your Pro optimization settings, you can do it directly
64 <br> from your 10Web Booster dashboard.', 'tenweb-speed-optimizer'),
65 [ 'br' => [] ]
66 );
67 ?>
68 </p>
69 <div class="two-button-container-right">
70 <a class="two-green-button" href="<?php echo esc_url($db_cloudflare_page); ?>">
71 <?php esc_html_e('Manage', 'tenweb-speed-optimizer'); ?>
72 </a>
73 </div>
74 </div>
75 <?php } else { ?>
76 <div class="two-container-with-border">
77 <p class="two-page-main-title"><?php esc_html_e('Cloudflare Enterprise', 'tenweb-speed-optimizer'); ?></p>
78 <p class="two-page-main-desc"><?php
79 esc_html_e(
80 'Enable Cloudflare Enterprise CDN to improve your website PageSpeed performance.',
81 'tenweb-speed-optimizer'
82 );
83 ?>
84 </p>
85 <div class="two-cdn-tools">
86 <p class="two-main-text">
87 <b><?php esc_html_e('30%', 'tenweb-speed-optimizer'); ?></b>
88 <?php esc_html_e('higher PageSpeed score', 'tenweb-speed-optimizer'); ?>
89 <img src="<?php echo esc_url(TENWEB_SO_URL . '/assets/images/higher_PageSpeed score.svg'); ?>" alt="higher PageSpeed score">
90 </p>
91 <p class="two-main-text">
92 <b><?php esc_html_e('50%', 'tenweb-speed-optimizer'); ?></b>
93 <?php esc_html_e('faster load times', 'tenweb-speed-optimizer'); ?>
94 <img src="<?php echo esc_url(TENWEB_SO_URL . '/assets/images/faster _oad_times.svg'); ?>" alt="faster load times">
95 </p>
96 <p class="two-main-text">
97 <b><?php esc_html_e('275', 'tenweb-speed-optimizer'); ?></b>
98 <?php esc_html_e('caching locations worldwide', 'tenweb-speed-optimizer'); ?>
99 <img src="<?php echo esc_url(TENWEB_SO_URL . '/assets/images/caching_locations_worldwide.svg'); ?>" alt="caching locations worldwide">
100 </p>
101 </div>
102 <?php
103 if (\TenWebOptimizer\OptimizerUtils::is_paid_user()) { ?>
104 <div class="two-cdn-not-applied two-main-text">
105 <?php echo wp_kses(
106 __(
107 '<b>Pro optimization hasn’t been applied yet.</b>
108 You have upgraded to 10Web Booster Pro but haven’t enabled<br> the Pro optimization on your website. ',
109 'tenweb-speed-optimizer'
110 ),
111 [ 'a' => [], 'br' => [], 'b' => [] ]
112 )
113 . '<a href="' . esc_url($db_cloudflare_page) . '">' . esc_html__('Enable CDN', 'tenweb-speed-optimizer')
114 . '</a>' . esc_html__(' to enjoy the benefits.', 'tenweb-speed-optimizer'); ?>
115 </div>
116 <div class="two-button-container-right">
117 <a class="two-green-button" href="<?php echo esc_url($db_cloudflare_page); ?>">
118 <?php esc_html_e('Enable', 'tenweb-speed-optimizer'); ?>
119 </a>
120 </div>
121 <?php } else { ?>
122 <div class="two-cdn-test-main-container">
123 <div class="two-cdn-test-head">
124 <p class="two-cdn-test-head-title">
125 <?php esc_html_e('Test the impact of CDN on your website right now', 'tenweb-speed-optimizer'); ?>
126 </p>
127 <p class="two-cdn-style-line"></p>
128 </div>
129 <div class="two-cdn-test-steps">
130 <p class="two-main-text"><?php echo wp_kses(__('We will create a copy of your<br> homepage in 2 minutes', 'tenweb-speed-optimizer'), [ 'br' => []]); ?></p>
131 <p class="two-main-text"><?php echo wp_kses(__('The copy will be stored<br> on our servers with CDN', 'tenweb-speed-optimizer'), [ 'br' => []]); ?></p>
132 <p class="two-main-text"><?php echo wp_kses(__('It will not affect the original<br> version and be deleted in 1 hour', 'tenweb-speed-optimizer'), [ 'br' => []]); ?></p>
133 </div>
134 <div class="two-button-container-center">
135 <a class="two-green-button two-cdn-test-button" href="<?php echo esc_url($db_cloudflare_page); ?>">
136 <?php esc_html_e('Test the CDN', 'tenweb-speed-optimizer'); ?>
137 </a>
138 <a class="two-grey-link" href="<?php echo esc_url($upgrade_link); ?>">
139 <?php esc_html_e('Or Upgrade', 'tenweb-speed-optimizer'); ?>
140 </a>
141 </div>
142 </div>
143 <?php } ?>
144 <div class="two-cdn-benefits-main-container">
145 <div class="two-cdn-benefits-head">
146 <p class="two-cdn-benefits-head-title">
147 <?php esc_html_e('Benefits of Cloudflare Enterprise', 'tenweb-speed-optimizer'); ?>
148 </p>
149 <p class="two-cdn-style-line"></p>
150 </div>
151 <p class="two-page-main-desc"><?php
152 echo wp_kses(
153 __('Enterprise is the highest plan of Cloudflare worth $5000/mo. 10Web partnered with Cloudflare to
154 <br>provide you with all of their benefits within Booster Pro. Read more about how enterprise compares
155 <br>to free and pro ', 'tenweb-speed-optimizer'),
156 [ 'br' => [], 'a' => [] ]
157 )
158 . '<a target="_blank" href="https://www.cloudflare.com/plans/#overview">' . esc_html__('Cloudflare pricing plans.', 'tenweb-speed-optimizer')
159 . '</a>'; ?>
160 </p>
161 <div class="two-cdn-benefits">
162 <?php
163 foreach ($cloudflare_cdn_benefits as $benefit) { ?>
164 <div class="two-cdn-each-benefit">
165 <p class="two-main-text two-each-benefit-title">
166 <?php echo esc_html($benefit['title']); ?>
167 </p>
168 <p class="two-main-text">
169 <?php echo wp_kses(
170 $benefit['desc'],
171 [ 'br' => [] ]
172 ); ?>
173 </p>
174 </div>
175 <?php }
176 ?>
177 </div>
178 </div>
179 </div>
180 <?php } ?>
181
182 </div>
183