private static function cloudflare_button_save($id = '')
 {
     $b1_id = 'w3tc_cloudflare_save_' . $id;
     echo '<p class="submit">';
     echo Util_Ui::nonce_field('w3tc');
     echo '<input type="submit" id="' . $b1_id . '" name="w3tc_cloudflare_save_settings" ' . ' class="w3tc-button-save button-primary" ' . ' value="' . __('Save CloudFlare settings', 'w3-total-cache') . '" />';
     echo '</p>';
 }
Example #2
0
}
?>
</p>


<form action="admin.php?page=w3tc_cdn" method="post">
    <p><?php 
_e('Files to purge:', 'w3-total-cache');
?>
</p>
    <p>
        <textarea name="files" rows="10" cols="90"></textarea>
    </p>
    <p>
        <?php 
echo Util_Ui::nonce_field('w3tc');
?>
        <input class="button-primary" type="submit" name="w3tc_cdn_purge_files" value="<?php 
_e('Purge', 'w3-total-cache');
?>
" />
    </p>
</form>

<div class="log">
    <?php 
foreach ($results as $result) {
    ?>
        <div class="log-<?php 
    echo $result['result'] == W3TC_CDN_RESULT_OK ? 'success' : 'error';
    ?>
}
include W3TC_INC_DIR . '/options/common/header.php';
?>

<form action="admin.php?page=<?php 
echo $this->_page;
?>
" method="post">
	<p>
		<?php 
echo sprintf(__('Page caching via %1$s is currently %2$s', 'w3-total-cache'), '<strong>' . Cache::engine_name($this->_config->get_string('pgcache.engine')) . '</strong>', '<span class="w3tc-' . ($pgcache_enabled ? 'enabled">' . __('enabled', 'w3-total-cache') : 'disabled">' . __('disabled', 'w3-total-cache')) . '</span>.');
?>
	</p>
	<p>
		<?php 
echo sprintf(__('To rebuild the page cache use the %s operation', 'w3-total-cache'), Util_Ui::nonce_field('w3tc') . '<input type="submit" name="w3tc_flush_pgcache" value="empty cache"' . disabled($pgcache_enabled, false, false) . ' class="button" />');
?>
	</p>
</form>

<form action="admin.php?page=<?php 
echo $this->_page;
?>
" method="post">
	<div class="metabox-holder">
		<?php 
Util_Ui::postbox_header(__('General', 'w3-total-cache'), '', 'general');
?>
		<table class="form-table">
			<tr>
				<th>
Example #4
0
}
?>
/*]]>*/</script>

<form action="admin.php?page=<?php 
echo $this->_page;
?>
" method="post">
    <p>
        <?php 
echo sprintf(__('Minify via %s is currently %s.', 'w3-total-cache'), Cache::engine_name($this->_config->get_string('minify.engine')), '<span class="w3tc-' . ($minify_enabled ? 'enabled">' . __('enabled', 'w3-total-cache') : 'disabled">' . __('disabled', 'w3-total-cache')) . '</span>');
?>
    </p>
    <p>
		<?php 
echo sprintf(__('To rebuild the minify cache use the %s operation.', 'w3-total-cache'), Util_Ui::nonce_field('w3tc') . '<input type="submit" name="w3tc_flush_minify" value="' . __('empty cache', 'w3-total-cache') . '"' . disabled($minify_enabled, false, false) . ' class="button" />');
?>
        <?php 
if (!$auto) {
    ?>
            <?php 
    _e('Get minify hints using the', 'w3-total-cache');
    ?>
            <input type="button" class="button button-minify-recommendations {nonce: '<?php 
    echo wp_create_nonce('w3tc');
    ?>
'}" value="<?php 
    _e('help', 'w3-total-cache');
    ?>
" />
            <?php 
Example #5
0
    public static function button_config_save($id = '', $extra = '')
    {
        $b1_id = 'w3tc_save_options_' . $id;
        $b2_id = 'w3tc_default_save_and_flush_' . $id;
        ?>
        <p class="submit">
            <?php 
        echo Util_Ui::nonce_field('w3tc');
        ?>
            <input type="submit" id="<?php 
        echo $b1_id;
        ?>
"
                name="w3tc_save_options"
                class="w3tc-button-save button-primary"
                value="<?php 
        _e('Save all settings', 'w3-total-cache');
        ?>
" />
            <?php 
        echo $extra;
        ?>
            <?php 
        if (!is_network_admin()) {
            ?>
            <input type="submit" id="<?php 
            echo $b2_id;
            ?>
"
                name="w3tc_default_save_and_flush" style="float: right"
                class="w3tc-button-save button-primary"
                value="<?php 
            _e('Save Settings & Purge Caches', 'w3-total-cache');
            ?>
" />
            <?php 
        }
        ?>
        </p>
        <?php 
    }