File: /homepages/4/d4297730999/htdocs/wordpress/wp-content/plugins/fasthosts-performance/inc/settings.php
<?php
/**
* Settings page.
*
* @package Fasthosts-Performance
*/
/* Quit */
use Fasthosts\Performance\Helper;
defined( 'ABSPATH' ) || exit;
?>
<form method="post" action="options.php">
<?php settings_fields( 'fasthosts-performance' ); ?>
<table class="form-table">
<tr>
<th scope="row">
<label for="fasthosts_performance_cache_expires"><?php esc_html_e( 'Cache', 'fasthosts-performance' ); ?></label>
</th>
<td>
<fieldset>
<label for="fasthosts_performancecaching_enabled">
<input type="checkbox" name="fasthosts-performance[caching_enabled]" id="fasthosts_performancecaching_enabled" value="1"
<?php
checked( '1', $options['caching_enabled'] );
echo Helper::has_conflicting_caching_plugins() ? ' disabled ' : '';
?>
/>
<?php esc_html_e( 'Enable caching feature', 'fasthosts-performance' ); ?>
</label>
</fieldset>
</td>
</tr>
<tr>
<th scope="row">
<label for="fasthosts_performancecache_expires"><?php esc_html_e( 'Cache expiration', 'fasthosts-performance' ); ?></label>
</th>
<td>
<input type="number" min="0" step="1" name="fasthosts-performance[cache_expires]" id="fasthosts_performancecache_expires" value="<?php echo esc_attr( $options['cache_expires'] ); ?>" class="small-text"/>
<?php esc_html_e( 'Hours', 'fasthosts-performance' ); ?>
<p class="description">
<?php
printf(
/* translators: Placeholder is the trash icon itself as dashicon */
esc_html__( 'Flush the cache by clicking the button below or the %1$s icon in the admin bar.', 'fasthosts-performance' ),
'<span class="dashicons dashicons-trash" aria-hidden="true"></span><span class="screen-reader-text">"' . esc_html__( 'Flush the fasthosts-performance cache', 'fasthosts-performance' ) . '"</span>'
);
?>
</p>
<?php
$flush_cache_url = wp_nonce_url( add_query_arg( '_fasthosts-performance', 'flush' ), '_fasthosts_performance_flush_nonce' );
?>
<p>
<a class="button button-secondary" href="<?php echo esc_url( $flush_cache_url ); ?>">
<?php esc_html_e( 'Flush cache now', 'fasthosts-performance' ); ?>
</a>
</p>
</td>
</tr>
<tr>
<th scope="row">
<?php esc_html_e( 'Cache exceptions', 'fasthosts-performance' ); ?>
</th>
<td>
<fieldset>
<label for="fasthosts_performance_without_ids">
<input type="text" name="fasthosts-performance[without_ids]" id="fasthosts_performance_without_ids" placeholder="<?php esc_attr_e( 'e.g. 1, 2, 3', 'fasthosts-performance' ); ?>"
value="<?php echo esc_attr( $options['without_ids'] ); ?>"/>
<?php esc_html_e( 'Post/Page IDs', 'fasthosts-performance' ); ?>
</label>
<br/>
<label for="fasthosts_performance_without_agents">
<input type="text" name="fasthosts-performance[without_agents]" id="fasthosts_performance_without_agents" placeholder="<?php esc_attr_e( 'e.g. MSIE 6, Opera', 'fasthosts-performance' ); ?>"
value="<?php echo esc_attr( $options['without_agents'] ); ?>"/>
<?php esc_html_e( 'Browser User Agents', 'fasthosts-performance' ); ?>
</label>
</fieldset>
</td>
</tr>
</table>
<?php submit_button(); ?>
</form>