forked from crowdfavorite-mirrors/wp-w3-total-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cdn_CloudFrontFsd_Popup_View_Distribution.php
executable file
·60 lines (57 loc) · 2.35 KB
/
Cdn_CloudFrontFsd_Popup_View_Distribution.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
<?php
namespace W3TC;
if ( !defined( 'W3TC' ) )
die();
?>
<form class="w3tc_popup_form" method="post">
<?php
Util_Ui::hidden( '', 'access_key', $details['access_key'] );
Util_Ui::hidden( '', 'secret_key', $details['secret_key'] );
Util_Ui::hidden( '', 'distribution_id', $details['distribution_id'] );
Util_Ui::hidden( '', 'distribution_comment', $details['distribution_comment'] );
?>
<div class="metabox-holder">
<?php Util_Ui::postbox_header( __( 'Configure distribution', 'w3-total-cache' ) ); ?>
<table class="form-table">
<tr>
<th>Distribution:</th>
<td><?php echo $details['distribution_comment'] ?></td>
</tr>
<tr>
<th>Origin:</th>
<td><?php $this->render_zone_ip_change( $details, 'origin' ) ?><br />
<span class="description">
Create DNS record pointing to your WordPress host IP.
CloudFront will use this host to grab your content.
It can not be your real domain name, since you will
point it to CloudFront's IP. For example for myblog.com
create origin.myblog.com and point it to the same IP
as myblog.com
</span>
</td>
</tr>
<tr>
<th>Alias Domain:</th>
<td><?php $this->render_zone_value_change( $details, 'alias' ) ?></td>
</tr>
<tr>
<th>Forward Cookies:</th>
<td><?php $this->render_zone_boolean_change( $details, 'forward_cookies' ) ?></td>
</tr>
<tr>
<th>Forward Query String:</th>
<td><?php $this->render_zone_boolean_change( $details, 'forward_querystring' ) ?></td>
</tr>
<tr>
<th>Forward Host Header:</th>
<td><?php $this->render_zone_boolean_change( $details, 'forward_host' ) ?></td>
</tr>
</table>
<p class="submit">
<input type="button"
class="w3tc_cdn_cloudfront_fsd_configure_distribution w3tc-button-save button-primary"
value="<?php _e( 'Apply', 'w3-total-cache' ); ?>" />
</p>
<?php Util_Ui::postbox_footer(); ?>
</div>
</form>