forked from szepeviktor/w3-total-cache-fixed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cdn_MaxCdn_Popup_View_Zone.php
74 lines (71 loc) · 2.42 KB
/
Cdn_MaxCdn_Popup_View_Zone.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
namespace W3TC;
if ( !defined( 'W3TC' ) )
die();
?>
<form class="w3tc_cdn_maxcdn_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_textbox_change( $details, 'url' ) ?></td>
</tr>
<tr>
<th>Compress content:</th>
<td><?php $this->render_zone_boolean_change( $details, 'compress' ) ?></td>
</tr>
<tr>
<th>Add CORS header:</th>
<td><?php $this->render_zone_boolean_change( $details, 'cors_headers' ) ?></td>
</tr>
<tr>
<th>HTTPS support:</th>
<td>
<?php if ( !is_null( $details['ssl']['current'] ) ): ?>
<strong>
<?php
$v = $details['ssl']['current'];
if ( $v == 'dedicated' )
echo 'Dedicated';
elseif ( $v == 'sni' )
echo 'SNI';
elseif ( $v == 'shared' )
echo 'Shared';
else
echo 'Not active';
?>
</strong><br />
<?php endif ?>
<?php if ( !is_null( $details['ssl']['new'] ) ): ?>
<?php Util_Ui::hidden( '', 'ssl', $details['ssl']['new'] ); ?>
<label>
<input type="radio" name="ssl" value="" checked="" /> Leave as is
</label>
<br />
<label>
<input type="radio" name="ssl" value="shared" checked="checked" />
Enable Shared HTTPS
</label>
<br />
<?php endif ?>
</td>
</tr>
</table>
<p class="submit">
<input type="button"
class="w3tc_cdn_maxcdn_configure_zone w3tc-button-save button-primary"
value="<?php _e( 'Apply', 'w3-total-cache' ); ?>" />
</p>
<?php Util_Ui::postbox_footer(); ?>
</div>
</form>