| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) exit; |
| 3 |
|
| 4 |
// cdn exclusions |
| 5 |
$cdn_exclude = get_option('berq_exclude_cdn', []); |
| 6 |
$cdn_exclude_keywords = implode("\n", $cdn_exclude); |
| 7 |
|
| 8 |
|
| 9 |
?> |
| 10 |
<div id="content-delivery-network" <?php bwp_is_tab('content-delivery-network'); ?>> |
| 11 |
<h2 class="berq-tab-title"><?php esc_html_e('Content Delivery Network (CDN)', 'searchpro'); ?></h2> |
| 12 |
<div class="berq-info-box berq-setting-group"> |
| 13 |
<div class="group-container"> |
| 14 |
<h3 class="berq-box-title <?php echo !$berqwp_can_use_cloud ? 'cloud-exclusive' : ''; ?>"><?php printf( /* translators: %s: Plugin name */ esc_html__('%s CDN', 'searchpro'), esc_html($plugin_name) ); ?></h3> |
| 15 |
<div class="berq-box-content berq-setting-toggle"> |
| 16 |
<div class="berq-option-content"> |
| 17 |
<p><?php printf( /* translators: %s: Plugin name */ esc_html__('%s CDN delivers static files instantly to enhance website performance and user experience globally.', 'searchpro'), esc_html($plugin_name) ); ?></p> |
| 18 |
</div> |
| 19 |
<?php berqwp_render_toggle('berqwp_enable_cdn', get_option('berqwp_enable_cdn')); ?> |
| 20 |
</div> |
| 21 |
</div> |
| 22 |
|
| 23 |
<div class="group-container"> |
| 24 |
<h3 class="berq-box-title"><?php esc_html_e('CDN Exclusions', 'searchpro'); ?></h3> |
| 25 |
<div class="berq-box-content"> |
| 26 |
<p><?php esc_html_e('Define keywords to exclude from the CDN (one per line).', 'searchpro'); ?></p> |
| 27 |
<textarea name="berq_exclude_cdn" cols="30" rows="10"><?php echo esc_textarea($cdn_exclude_keywords); ?></textarea> |
| 28 |
</div> |
| 29 |
</div> |
| 30 |
</div> |
| 31 |
<button type="submit" class="berqwp-save"><svg width="20" height="20" viewBox="0 0 20 20" fill="none" |
| 32 |
xmlns="http://www.w3.org/2000/svg"> |
| 33 |
<path d="M4.16663 10.8333L7.49996 14.1667L15.8333 5.83334" stroke="white" stroke-width="2" |
| 34 |
stroke-linecap="round" stroke-linejoin="round" /> |
| 35 |
</svg> |
| 36 |
<?php esc_html_e("Save changes", "searchpro"); ?></button> |
| 37 |
</div> |
| 38 |
|