Esempio n. 1
0
    ?>
'}" type="button" value="<?php 
    _e('importing attachments into the Media Library', 'w3-total-cache');
    ?>
" />.
	Check <input id="cdn_queue" class="button {nonce: '<?php 
    echo wp_create_nonce('w3tc');
    ?>
'}" type="button" value="<?php 
    _e('unsuccessful file transfers', 'w3-total-cache');
    ?>
" /> <?php 
    _e('if some objects appear to be missing.', 'w3-total-cache');
    ?>
	<?php 
    if (Cdn_Util::can_purge($cdn_engine)) {
        ?>
	<input id="cdn_purge" class="button {nonce: '<?php 
        echo wp_create_nonce('w3tc');
        ?>
'}" type="button" value="<?php 
        _e('Purge', 'w3-total-cache');
        ?>
" /> <?php 
        _e('objects from the <acronym title="Content Delivery Network">CDN</acronym> if needed.', 'w3-total-cache');
        ?>
	<?php 
    }
    ?>
	<input id="cdn_rename_domain" class="button {nonce: '<?php 
    echo wp_create_nonce('w3tc');
Esempio n. 2
0
 public function w3tc_admin_bar_menu($menu_items)
 {
     $cdn_engine = $this->_config->get_string('cdn.engine');
     if (Cdn_Util::can_purge_all($cdn_engine)) {
         $menu_items['20710.cdn'] = array('id' => 'w3tc_cdn_flush_all', 'parent' => 'w3tc_flush', 'title' => __('CDN: All', 'w3-total-cache'), 'href' => wp_nonce_url(network_admin_url('admin.php?page=w3tc_cdn&amp;w3tc_flush_cdn'), 'w3tc'));
     }
     if (Cdn_Util::can_purge($cdn_engine)) {
         $menu_items['20790.cdn'] = array('id' => 'w3tc_cdn_flush', 'parent' => 'w3tc_flush', 'title' => __('CDN: Manual Purge', 'w3-total-cache'), 'href' => wp_nonce_url(network_admin_url('admin.php?page=w3tc_cdn&amp;w3tc_cdn_purge'), 'w3tc'), 'meta' => array('onclick' => "w3tc_popupadmin_bar(this.href); return false"));
     }
     return $menu_items;
 }