This repository has been archived by the owner on Feb 23, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Cdn_MaxCdn_Popup_View_Zones.php
53 lines (48 loc) · 1.7 KB
/
Cdn_MaxCdn_Popup_View_Zones.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
namespace W3TC;
if ( !defined( 'W3TC' ) )
die();
?>
<form class="w3tc_cdn_maxcdn_form" method="post">
<?php
Util_Ui::hidden( '', 'api_key', $details['api_key'] );
?>
<div class="metabox-holder">
<?php Util_Ui::postbox_header( __( 'Select zone to use', 'w3-total-cache' ) ); ?>
<table class="form-table">
<tr>
<td>Zone:</td>
<td>
<?php
if ( count( $details['zones'] ) > 15 )
echo '<div style="width: 100%; height: 300px; overflow-y: scroll">';
?>
<?php foreach ( $details['zones'] as $zone ): ?>
<label>
<input name="zone_id" type="radio" class="w3tc-ignore-change"
value="<?php echo $zone['id'] ?>" />
<?php echo $zone['name'] ?>
(<?php echo $zone['cdn_url'] ?>)
</label><br />
<?php endforeach ?>
<label>
<input name="zone_id" type="radio" class="w3tc-ignore-change" value=""
/>
Add new zone:
</label>
<input name="zone_new_name" type="text" class="w3tc-ignore-change" />
<?php
if ( count( $details['zones'] ) > 15 )
echo '</div>';
?>
</td>
</tr>
</table>
<p class="submit">
<input type="button"
class="w3tc_cdn_maxcdn_view_zone w3tc-button-save button-primary"
value="<?php _e( 'Apply', 'w3-total-cache' ); ?>" />
</p>
<?php Util_Ui::postbox_footer(); ?>
</div>
</form>