Cdn_MaxCdnFsd_Popup_View_Zone.php
1.87 KB
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
54
55
<?php
namespace W3TC;
if ( !defined( 'W3TC' ) )
die();
?>
<form class="w3tc_popup_form" method="post">
<?php
Util_Ui::hidden( '', 'api_key', $details['api_key'] );
Util_Ui::hidden( '', 'zone_id', $details['zone_id'] );
Util_Ui::hidden( '', 'name', $details['name'] );
?>
<div class="metabox-holder">
<?php Util_Ui::postbox_header( __( 'Configure zone', 'w3-total-cache' ) ); ?>
<table class="form-table">
<tr>
<th>Name:</th>
<td><?php echo $details['name'] ?></td>
</tr>
<tr>
<th>Origin URL:</th>
<td><?php $this->render_zone_value_change( $details, 'url' ) ?></td>
</tr>
<tr>
<th>Origin IP:</th>
<td><?php $this->render_zone_ip_change( $details, 'ip' ) ?><br />
<span class="description">IP of your WordPress host</span>
</td>
</tr>
<tr>
<th>Origin IP Resolution:</th>
<td><?php $this->render_zone_boolean_change( $details, 'dns_check' ) ?></td>
</tr>
<tr>
<th>Ignore Cache Control:</th>
<td><?php $this->render_zone_boolean_change( $details, 'dns_check' ) ?></td>
</tr>
<tr>
<th>CDN Domain:</th>
<td>
<?php $this->render_zone_value_change( $details, 'custom_domain' ) ?><br />
<span class="description">Domain CDN will handle</span>
</td>
</tr>
</table>
<p class="submit">
<input type="button"
class="w3tc_cdn_maxcdn_fsd_configure_zone w3tc-button-save button-primary"
value="<?php _e( 'Apply', 'w3-total-cache' ); ?>" />
</p>
<?php Util_Ui::postbox_footer(); ?>
</div>
</form>