~clint-fewbar/charms/oneiric/omgubuntu-wp/trunk

« back to all changes in this revision

Viewing changes to files/wordpress/wp-content/plugins/w3-total-cache/inc/options/cdn/cf2.php

  • Committer: Marco Ceppi
  • Date: 2012-03-19 14:27:51 UTC
  • Revision ID: marco@ceppi.net-20120319142751-xvn4zfl0rq99r00p
First revision of OMG charm

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php if (!defined('W3TC')) die(); ?>
 
2
<tr>
 
3
        <th style="width: 300px;"><label for="cdn_cf2_key">Access key ID:</label></th>
 
4
        <td>
 
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" />
 
6
        </td>
 
7
</tr>
 
8
<tr>
 
9
        <th><label for="cdn_cf2_secret">Secret key:</label></th>
 
10
        <td>
 
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" />
 
12
        </td>
 
13
</tr>
 
14
<tr>
 
15
        <th>Origin:</th>
 
16
        <td>
 
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>
 
20
        </td>
 
21
</tr>
 
22
<tr>
 
23
        <th><label for="cdn_cf2_ssl"><acronym title="Secure Sockets Layer">SSL</acronym> support:</label></th>
 
24
        <td>
 
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>
 
29
                </select>
 
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>
 
31
        </td>
 
32
</tr>
 
33
<tr>
 
34
        <th><label for="cdn_cf2_id">Replace site's hostname with:</label></th>
 
35
        <td>
 
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>
 
39
        </td>
 
40
</tr>
 
41
<tr>
 
42
        <th colspan="2">
 
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>
 
44
    </th>
 
45
</tr>