| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
* Settings page template |
| 5 |
* |
| 6 |
* @package PoweredCache |
| 7 |
* @subpackage PoweredCache/Settings |
| 8 |
*/ |
| 9 |
|
| 10 |
// Exit if accessed directly |
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; |
| 13 |
} |
| 14 |
|
| 15 |
?> |
| 16 |
|
| 17 |
<div class="meta-box-sortables ui-sortable"> |
| 18 |
|
| 19 |
<div class="postbox"> |
| 20 |
<div class="inside"> |
| 21 |
<table class="form-table"> |
| 22 |
<tbody> |
| 23 |
<tr> |
| 24 |
<th scope="row"><label for="powered_cache_remove_query_string"><?php _e( 'Remove query string', 'powered-cache' ); ?></label></th> |
| 25 |
<td> |
| 26 |
<label><input type="checkbox" <?php checked( powered_cache_get_option( 'remove_query_string' ), 1 ); ?> id="powered_cache_remove_query_string" name="powered_cache_settings[remove_query_string]" value="1"> |
| 27 |
<?php _e( 'Remove query strings from CSS & JS resources', 'powered-cache' ); ?> |
| 28 |
(<a target="_blank" href="http://docs.poweredcache.com/article/11-advanced-caching-options#remove-query-string">?</a>) |
| 29 |
</label> |
| 30 |
</td> |
| 31 |
</tr> |
| 32 |
<tr> |
| 33 |
<th scope="row"><label for="powered_cache_rejected_user_agents"><?php _e( 'Rejected user agents', 'powered-cache' ); ?></label></th> |
| 34 |
<td> |
| 35 |
<textarea id="powered_cache_rejected_user_agents" name="powered_cache_settings[rejected_user_agents]" cols="50" rows="5"><?php echo powered_cache_get_option( 'rejected_user_agents' ); ?></textarea><br> |
| 36 |
<span class="description"><?php _e( 'Never send cache pages for these user agents.', 'powered-cache' ); ?></span> |
| 37 |
(<a target="_blank" target="_blank" href="http://docs.poweredcache.com/article/11-advanced-caching-options#rejected-agents">?</a>) |
| 38 |
</td> |
| 39 |
</tr> |
| 40 |
<tr> |
| 41 |
<th scope="row"><label for="powered_cache_rejected_cookies"><?php _e( 'Rejected cookies', 'powered-cache' ); ?></label></th> |
| 42 |
<td> |
| 43 |
<textarea id="powered_cache_rejected_cookies" name="powered_cache_settings[rejected_cookies]" cols="50" rows="5"><?php echo powered_cache_get_option( 'rejected_cookies' ); ?></textarea><br> |
| 44 |
<span class="description"><?php _e( 'Never cache pages that use the specified cookies.', 'powered-cache' ); ?></span> |
| 45 |
(<a target="_blank" href="http://docs.poweredcache.com/article/11-advanced-caching-options#rejected-cookies">?</a>) |
| 46 |
</td> |
| 47 |
</tr> |
| 48 |
<tr> |
| 49 |
<th scope="row"><label for="powered_cache_rejected_uri"><?php _e( 'Never cache the following pages', 'powered-cache' ); ?></label></th> |
| 50 |
<td> |
| 51 |
<textarea id="powered_cache_rejected_uri" name="powered_cache_settings[rejected_uri]" cols="50" rows="5"><?php echo powered_cache_get_option( 'rejected_uri' ); ?></textarea><br> |
| 52 |
<span class="description"><?php _e( 'Ignore the specified pages / directories. Supports regex.', 'powered-cache' ); ?></span> |
| 53 |
(<a target="_blank" href="http://docs.poweredcache.com/article/11-advanced-caching-options#rejected-pages">?</a>) |
| 54 |
</td> |
| 55 |
</tr> |
| 56 |
<tr> |
| 57 |
<th scope="row"><label for="powered_cache_accepted_query_strings"><?php _e( 'Accepted query strings', 'powered-cache' ); ?></label></th> |
| 58 |
<td> |
| 59 |
<textarea id="powered_cache_accepted_query_strings" name="powered_cache_settings[accepted_query_strings]" cols="50" rows="5"><?php echo powered_cache_get_option( 'accepted_query_strings' ); ?></textarea><br> |
| 60 |
<span class="description"><?php _e( 'Enter GET parameters line by line.', 'powered-cache' ); ?></span> |
| 61 |
(<a target="_blank" href="http://docs.poweredcache.com/article/11-advanced-caching-options#allowed-query-strings">?</a>) |
| 62 |
</td> |
| 63 |
</tr> |
| 64 |
<tr> |
| 65 |
<th scope="row"><label for="powered_cache_purge_additional_pages"><?php _e( 'Purge Additional Pages', 'powered-cache' ); ?></label></th> |
| 66 |
<td> |
| 67 |
<textarea id="powered_cache_purge_additional_pages" name="powered_cache_settings[purge_additional_pages]" cols="50" rows="5"><?php echo powered_cache_get_option( 'purge_additional_pages' ); ?></textarea><br> |
| 68 |
<span class="description"><?php _e( 'Enter pages line by line.', 'powered-cache' ); ?></span> |
| 69 |
(<a target="_blank" href="http://docs.poweredcache.com/article/11-advanced-caching-options#purge-additional-pages">?</a>) |
| 70 |
</td> |
| 71 |
</tr> |
| 72 |
|
| 73 |
</tbody> |
| 74 |
</table> |
| 75 |
|
| 76 |
</div> |
| 77 |
<!-- .inside --> |
| 78 |
|
| 79 |
</div> |
| 80 |
<!-- .postbox --> |
| 81 |
|
| 82 |
</div> |
| 83 |
|