1
<?php if (!defined('W3TC')) die(); ?>
3
<th style="width: 300px;"><label for="cdn_cf2_key">Access key ID:</label></th>
5
<input id="cdn_cf2_key" class="w3tc-ignore-change" type="text" name="cdn.cf2.key" value="<?php echo htmlspecialchars($this->_config->get_string('cdn.cf2.key')); ?>" size="30" />
9
<th><label for="cdn_cf2_secret">Secret key:</label></th>
11
<input id="cdn_cf2_secret" class="w3tc-ignore-change" type="password" name="cdn.cf2.secret" value="<?php echo htmlspecialchars($this->_config->get_string('cdn.cf2.secret')); ?>" size="60" />
17
<?php echo w3_get_host(); ?>
18
<input id="cdn_create_container" class="button {type: 'cf2', nonce: '<?php echo wp_create_nonce('w3tc'); ?>'}" type="button" value="Create distribution" />
19
<span id="cdn_create_container_status" class="w3tc-status w3tc-process"></span>
23
<th><label for="cdn_cf2_ssl"><acronym title="Secure Sockets Layer">SSL</acronym> support:</label></th>
25
<select id="cdn_cf2_ssl" name="cdn.cf2.ssl">
26
<option value="auto"<?php selected($this->_config->get_string('cdn.cf2.ssl'), 'auto'); ?>>Auto (determine connection type automatically)</option>
27
<option value="enabled"<?php selected($this->_config->get_string('cdn.cf2.ssl'), 'enabled'); ?>>Enabled (always use SSL)</option>
28
<option value="disabled"<?php selected($this->_config->get_string('cdn.cf2.ssl'), 'disabled'); ?>>Disabled (always use HTTP)</option>
30
<br /><span class="description">Some <acronym>CDN</acronym> providers may or may not support <acronym title="Secure Sockets Layer">SSL</acronym>, contact your vendor for more information.</span>
34
<th><label for="cdn_cf2_id">Replace site's hostname with:</label></th>
36
<input id="cdn_cf2_id" type="text" name="cdn.cf2.id" value="<?php echo htmlspecialchars($this->_config->get_string('cdn.cf2.id')); ?>" size="18" style="text-align: right;" />.cloudfront.net or CNAME:
37
<?php $cnames = $this->_config->get_array('cdn.cf2.cname'); include W3TC_INC_DIR . '/options/cdn/common/cnames.php'; ?>
38
<br /><span class="description">If you have already added a <a href="http://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/index.html?CNAMEs.html" target="_blank">CNAME</a> to your <acronym title="Domain Name System">DNS</acronym> Zone, enter it here.</span>
43
<input id="cdn_test" class="button {type: 'cf2', nonce: '<?php echo wp_create_nonce('w3tc'); ?>'}" type="button" value="Test CloudFront distribution" /> <span id="cdn_test_status" class="w3tc-status w3tc-process"></span>