Ejemplo n.º 1
0
<?php

if (!defined('W3TC')) {
    die;
}
include W3TC_INC_DIR . '/options/common/header.php';
?>

<p>
    <?php 
echo sprintf(__('The plugin is currently <span class="w3tc-%s">%s</span> in <strong>%s</strong> mode.', 'w3-total-cache'), $enabled ? "enabled" : "disabled", $enabled ? __('enabled', 'w3-total-cache') : __('disabled', 'w3-total-cache'), w3_w3tc_release_version());
?>
</p>

<form id="w3tc_dashboard" action="admin.php?page=<?php 
echo $this->_page;
?>
" method="post">
    <p>
        Perform a
        <input type="button" class="button button-self-test {nonce: '<?php 
echo wp_create_nonce('w3tc');
?>
'}" value="<?php 
_e('compatibility check', 'w3-total-cache');
?>
" />,
        <?php 
echo $this->nonce_field('w3tc');
?>
        <input id="flush_all" class="button" type="submit" name="w3tc_flush_all" value="<?php 
Ejemplo n.º 2
0
<?php

if (!defined('W3TC')) {
    die;
}
include W3TC_INC_DIR . '/options/common/header.php';
?>

<p>
    <?php 
echo sprintf(__('The plugin is currently <span class="w3tc-%s">%s</span> in <strong>%s%s</strong> mode.', 'w3-total-cache'), $enabled ? "enabled" : "disabled", $enabled ? __('enabled', 'w3-total-cache') : __('disabled', 'w3-total-cache'), w3_w3tc_release_version($this->_config), w3tc_edge_mode() ? __(' edge', 'w3-total-cache') : '');
?>
</p>
<form id="w3tc_dashboard" action="admin.php?page=<?php 
echo $this->_page;
?>
" method="post">
    <p>
        Perform a
        <input type="button" class="button button-self-test {nonce: '<?php 
echo wp_create_nonce('w3tc');
?>
'}" value="<?php 
_e('compatibility check', 'w3-total-cache');
?>
" />,
        <?php 
echo $this->nonce_field('w3tc');
?>
        <input id="flush_all" class="button" type="submit" name="w3tc_flush_all" value="<?php 
_e('empty all caches', 'w3-total-cache');