当前位置: 首页>>代码示例>>PHP>>正文


PHP Util_Ui::url方法代码示例

本文整理汇总了PHP中Util_Ui::url方法的典型用法代码示例。如果您正苦于以下问题:PHP Util_Ui::url方法的具体用法?PHP Util_Ui::url怎么用?PHP Util_Ui::url使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Util_Ui的用法示例。


在下文中一共展示了Util_Ui::url方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: render_intro

 private function render_intro($details)
 {
     $config = Dispatcher::config();
     $url_obtain_key = Util_Ui::url(array('page' => 'w3tc_dashboard', 'w3tc_cdn_maxcdn_authorize' => 'y'));
     include W3TC_DIR . '/Cdn_MaxCdnFsd_Popup_View_Intro.php';
     exit;
 }
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:7,代码来源:Cdn_MaxCdnFsd_Popup.php

示例2: notifications

 /**
  *
  *
  * @param Config  $config
  * @return string
  */
 function notifications($config)
 {
     $config_state = Dispatcher::config_state();
     if (!$config_state->get_boolean('newrelic.hide_note_pageload_slow')) {
         $pl = get_option('w3tc_nr_frontend_response_time');
         if ($pl !== false && $pl > 0.3) {
             $nr_recommends = array();
             if (!$config->get_boolean('pgcache.enabled')) {
                 $nr_recommends[] = __('Page Cache', 'w3-total-cache');
             }
             if (!$config->get_boolean('minify.enabled')) {
                 $nr_recommends[] = __('Minify', 'w3-total-cache');
             }
             if (!$config->get_boolean('cdn.enabled')) {
                 $nr_recommends[] = __('CDN', 'w3-total-cache');
             }
             if (!$config->get_boolean('browsercache.enabled')) {
                 $nr_recommends[] = __('Browser Cache and use compression', 'w3-total-cache');
             }
             if ($nr_recommends) {
                 $message = sprintf(__('Application monitoring has detected that your page load time is higher than 300ms. It is recommended that you enable the following features: %s %s', 'w3-total-cache'), implode(', ', $nr_recommends), Util_Ui::button_link('Hide this message', Util_Ui::url(array('w3tc_default_config_state' => 'y', 'key' => 'newrelic.hide_note_pageload_slow', 'value' => 'true'))));
                 return array('newrelic_recommends' => $message);
             }
         }
     }
     return array();
 }
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:33,代码来源:Extension_NewRelic_AdminNotes.php

示例3: w3tc_notes_wordpress_seo

 public static function w3tc_notes_wordpress_seo($notes)
 {
     if (!self::show_notice()) {
         return $notes;
     }
     $extension_id = 'wordpress-seo';
     $notes[$extension_id] = sprintf(__('It appears that activating the <a href="%s">Yoast SEO</a> extension for W3 Total Cache will be helpful for your site. <a class="button" href="%s">Click here</a> to try it. %s', 'w3-total-cache'), Util_Ui::admin_url('admin.php?page=w3tc_extensions#' . $extension_id), Util_Ui::url(array('w3tc_extensions_activate' => $extension_id)), Util_Ui::button_link(__('Hide this message', 'w3-total-cache'), Util_Ui::url(array('w3tc_default_config_state' => 'y', 'key' => 'wordpress_seo.hide_note_suggest_activation', 'value' => 'true'))));
     return $notes;
 }
开发者ID:eduardodomingos,项目名称:eduardodomingos.com,代码行数:9,代码来源:Extension_WordPressSeo_Plugin_Admin.php

示例4: post_submitbox_start

 /**
  * Display Purge from cache on Page/Post post.php.
  */
 function post_submitbox_start()
 {
     if (current_user_can('manage_options')) {
         global $post;
         if (!is_null($post)) {
             $url = Util_Ui::url(array('page' => 'w3tc_dashboard', 'w3tc_flush_post' => 'y', 'post_id' => $post->ID));
             echo sprintf('<div><a href="%s">%s</a></div>', $url, __('Purge from cache', 'w3-total-cache'));
         }
     }
 }
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:13,代码来源:Generic_Plugin_AdminRowActions.php

示例5: widget_form

 public function widget_form()
 {
     $c = Dispatcher::config();
     $account_hash = $c->get_string('cdn.highwinds.account_hash');
     if (empty($account_hash)) {
         include W3TC_DIR . '/Cdn_Highwinds_Widget_View_NotConfigured.php';
         return;
     }
     $url_manage = 'https://striketracker3.highwinds.com/accounts/' . $account_hash . '/configure/hosts';
     $url_analyze = 'https://striketracker3.highwinds.com/accounts/' . $account_hash . '/analyze/overview';
     $url_purge = Util_Ui::url(array('page' => 'w3tc_cdn', 'w3tc_cdn_purge' => 'y'));
     include W3TC_DIR . '/Cdn_Highwinds_Widget_View.php';
 }
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:13,代码来源:Cdn_Highwinds_Widget.php

示例6: w3tc_notes_wpml

 public static function w3tc_notes_wpml($notes)
 {
     if (!self::show_notice()) {
         return $notes;
     }
     $extension_id = 'wpml';
     $config = Dispatcher::config();
     if (!Util_Environment::is_w3tc_pro($config)) {
         $activate_text = 'Available after <a href="#" class="button-buy-plugin">upgrade</a>. ';
     } else {
         $activate_text = sprintf('<a class="button" href="%s">Click here</a> to try it. ', Util_Ui::url(array('w3tc_extensions_activate' => $extension_id)));
     }
     $notes[$extension_id] = sprintf(__('Activating the <a href="%s">WPML</a> extension for W3 Total Cache may be helpful for your site. %s%s', 'w3-total-cache'), Util_Ui::admin_url('admin.php?page=w3tc_extensions#' . $extension_id), $activate_text, Util_Ui::button_link(__('Hide this message', 'w3-total-cache'), Util_Ui::url(array('w3tc_default_config_state' => 'y', 'key' => 'wpml.hide_note_suggest_activation', 'value' => 'true'))));
     return $notes;
 }
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:15,代码来源:Extension_Wpml_Plugin_Admin.php

示例7:

<?php

namespace W3TC;

if (!defined('W3TC')) {
    die;
}
?>
<p>
	<?php 
echo Util_Ui::button_link(__('purge CDN completely', 'w3-total-cache'), Util_Ui::url(array('w3tc_cdn_flush' => 'y')));
?>
</p>
<?php 
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:14,代码来源:Cdn_Page_View_Fsd_HeaderActions.php

示例8: admin_notices

 /**
  * Run license status check and display messages
  */
 function admin_notices()
 {
     $message = '';
     $status = get_transient('w3tc_license_status');
     $set_transient = false;
     if (!$status) {
         $status = $this->update_license_status();
         $set_transient = true;
         $transient_timeout = 3600 * 24 * 5;
     }
     if ($status == 'no_key') {
     } elseif ($this->_status_is($status, 'inactive.expired')) {
         $message = sprintf(__('The W3 Total Cache license key has expired. Please renew it: %s', 'w3-total-cache'), '<input type="button" class="button-primary button-buy-plugin {nonce: \'' . wp_create_nonce('w3tc') . '\'}" value="' . __('Renew', 'w3-total-cache') . '" />');
     } elseif ($this->_status_is($status, 'invalid')) {
         $message = __('The W3 Total Cache license key you entered is not valid.', 'w3-total-cache') . '<a href="' . (is_network_admin() ? network_admin_url('admin.php?page=w3tc_general#licensing') : admin_url('admin.php?page=w3tc_general#licensing')) . '"> ' . __('Please enter it again.', 'w3-total-cache') . '</a>';
     } elseif ($this->_status_is($status, 'inactive.by_rooturi.activations_limit_not_reached')) {
         $message = __('The W3 Total Cache license key is not active for this site.', 'w3-total-cache');
     } elseif ($this->_status_is($status, 'inactive.by_rooturi')) {
         $message = __('The W3 Total Cache license key is not active for this site. ', 'w3-total-cache') . sprintf(__('You can switch your license to this website following <a class="w3tc_licensing_reset_rooturi" href="%s">this link</a>', 'w3-total-cache'), Util_Ui::url(array('page' => 'w3tc_general', 'w3tc_licensing_reset_rooturi' => 'y')));
     } elseif ($this->_status_is($status, 'inactive')) {
         $message = __('The W3 Total Cache license key is not active.', 'w3-total-cache');
     } elseif ($this->_status_is($status, 'active')) {
     } else {
         $message = __('The W3 Total Cache license key can\'t be verified.', 'w3-total-cache');
         $transient_timeout = 60;
     }
     if ($set_transient) {
         set_transient('w3tc_license_status', $status, $transient_timeout);
     }
     if ($message) {
         Util_Ui::error_box(sprintf("<p>{$message}. <a class='w3tc_licensing_check' href='%s'>" . __('check again') . '</a></p>', Util_Ui::url(array('page' => 'w3tc_general', 'w3tc_licensing_check_key' => 'y'))));
     }
     if ($this->site_inactivated) {
         Util_Ui::error_box("<p>" . __('The W3 Total Cache license key is deactivated for this site.', 'w3-total-cache') . "</p>");
     }
     if ($this->site_activated) {
         Util_Ui::error_box("<p>" . __('The W3 Total Cache license key is activated for this site.', 'w3-total-cache') . "</p>");
     }
 }
开发者ID:eduardodomingos,项目名称:eduardodomingos.com,代码行数:42,代码来源:Licensing_Plugin_Admin.php

示例9: w3tc_errors

 function w3tc_errors($errors)
 {
     $c = Dispatcher::config();
     $state = Dispatcher::config_state();
     $cdn_engine = $c->get_string('cdn.engine');
     if (Cdn_Util::is_engine_push($cdn_engine)) {
         /**
          * Show notification if upload queue is not empty
          */
         try {
             if (!($error = get_transient('w3tc_cdn_error')) && !$this->_is_queue_empty()) {
                 $errors['cdn_unsuccessful_queue'] = sprintf(__('The %s has unresolved errors. Empty the queue to restore normal operation.', 'w3-total-cache'), Util_Ui::button_popup(__('unsuccessful transfer queue', 'w3-total-cache'), 'cdn_queue'));
             } elseif ($error) {
                 $errors['cdn_generic'] = $error;
             }
         } catch (\Exception $ex) {
             $errors[] = $ex->getMessage();
             set_transient('w3tc_cdn_error', $ex->getMessage(), 30);
         }
         /**
          * Check upload settings
          */
         $upload_info = Util_Http::upload_info();
         if (!$upload_info) {
             $upload_path = get_option('upload_path');
             $upload_path = trim($upload_path);
             if (empty($upload_path)) {
                 $upload_path = WP_CONTENT_DIR . '/uploads';
                 $errors['cdn_uploads_folder_empty'] = sprintf(__('The uploads directory is not available. Default WordPress directories will be created: <strong>%s</strong>.', 'w3-total-cache'), $upload_path);
             }
             if (!Util_Environment::is_wpmu()) {
                 $errors['cdn_uploads_folder_not_found'] = sprintf(__('The uploads path found in the database (%s) is inconsistent with the actual path. Please manually adjust the upload path either in miscellaneous settings or if not using a custom path %s automatically to resolve the issue.', 'w3-total-cache'), $upload_path, Util_Ui::button_link(__('update the path', 'w3-total-cache'), Util_Ui::url(array('w3tc_config_update_upload_path' => 'y'))));
             }
         }
     }
     /**
      * Check CDN settings
      */
     $error = '';
     switch (true) {
         case $cdn_engine == 'ftp' && !count($c->get_array('cdn.ftp.domain')):
             $errors['cdn_ftp_empty'] = __('A configuration issue prevents <acronym title="Content Delivery Network">CDN</acronym> from working:
                                     The <strong>"Replace default hostname with"</strong>
                                     field cannot be empty. Enter <acronym
                                     title="Content Delivery Network">CDN</acronym>
                                     provider hostname <a href="?page=w3tc_cdn#configuration">here</a>.
                                     <em>(This is the hostname used in order to view objects
                                     in a browser.)</em>', 'w3-total-cache');
             break;
         case $cdn_engine == 's3' && ($c->get_string('cdn.s3.key') == '' || $c->get_string('cdn.s3.secret') == '' || $c->get_string('cdn.s3.bucket') == ''):
             $error = __('The <strong>"Access key", "Secret key" and "Bucket"</strong> fields cannot be empty.', 'w3-total-cache');
             break;
         case $cdn_engine == 'cf' && ($c->get_string('cdn.cf.key') == '' || $c->get_string('cdn.cf.secret') == '' || $c->get_string('cdn.cf.bucket') == '' || $c->get_string('cdn.cf.id') == '' && !count($c->get_array('cdn.cf.cname'))):
             $error = __('The <strong>"Access key", "Secret key", "Bucket" and "Replace default hostname with"</strong> fields cannot be empty.', 'w3-total-cache');
             break;
         case $cdn_engine == 'cf2' && ($c->get_string('cdn.cf2.key') == '' || $c->get_string('cdn.cf2.secret') == '' || $c->get_string('cdn.cf2.id') == '' && !count($c->get_array('cdn.cf2.cname'))):
             $error = __('The <strong>"Access key", "Secret key" and "Replace default hostname with"</strong> fields cannot be empty.', 'w3-total-cache');
             break;
         case $cdn_engine == 'rscf' && ($c->get_string('cdn.rscf.user') == '' || $c->get_string('cdn.rscf.key') == '' || $c->get_string('cdn.rscf.container') == ''):
             $error = __('The <strong>"Username", "API key", "Container" and "Replace default hostname with"</strong> fields cannot be empty.', 'w3-total-cache');
             break;
         case $cdn_engine == 'azure' && ($c->get_string('cdn.azure.user') == '' || $c->get_string('cdn.azure.key') == '' || $c->get_string('cdn.azure.container') == ''):
             $error = __('The <strong>"Account name", "Account key" and "Container"</strong> fields cannot be empty.', 'w3-total-cache');
             break;
         case $cdn_engine == 'mirror' && !count($c->get_array('cdn.mirror.domain')):
             $error = __('The <strong>"Replace default hostname with"</strong> field cannot be empty.', 'w3-total-cache');
             break;
         case $cdn_engine == 'netdna':
             $fields = array();
             if ($c->get_string('cdn.netdna.authorization_key') == '') {
                 $fields[] = '"' . __('Authorization key', 'w3-total-cache') . '"';
             }
             if (!count($c->get_array('cdn.netdna.domain'))) {
                 $fields[] = '"' . __('Replace default hostname with', 'w3-total-cache') . '"';
             }
             if ($fields) {
                 $error = sprintf(__('The <strong>%s</strong> field(s) cannot be empty.', 'w3-total-cache'), implode(__(' and ', 'w3-total-cache'), $fields));
             }
             if ($c->get_string('cdn.netdna.authorization_key') != '' && sizeof(explode('+', $c->get_string('cdn.netdna.authorization_key'))) != 3) {
                 $error .= __('The <strong>"Authorization key"</strong> is not correct.', 'w3-total-cache');
             } elseif ($c->get_integer('cdn.netdna.zone_id', 0) <= 0) {
                 $error .= __('You need to select / create a pull zone.', 'w3-total-cache');
             }
             break;
         case $cdn_engine == 'maxcdn':
             $fields = array();
             if ($c->get_string('cdn.maxcdn.authorization_key') == '') {
                 $fields[] = '"' . __('Authorization key', 'w3-total-cache') . '"';
             }
             if (!count($c->get_array('cdn.maxcdn.domain'))) {
                 $fields[] = '"' . __('Replace default hostname with', 'w3-total-cache') . '"';
             }
             if ($fields) {
                 $error = sprintf(__('The <strong>%s</strong> field(s) cannot be empty.', 'w3-total-cache'), implode(__(' and ', 'w3-total-cache'), $fields));
             }
             if ($c->get_string('cdn.maxcdn.authorization_key') != '' && sizeof(explode('+', $c->get_string('cdn.maxcdn.authorization_key'))) != 3) {
                 $error .= __('The <strong>"Authorization key"</strong> is not correct.', 'w3-total-cache');
             } elseif ($c->get_integer('cdn.maxcdn.zone_id', 0) <= 0) {
                 $error .= __('You need to select / create a pull zone.', 'w3-total-cache');
             }
//.........这里部分代码省略.........
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:101,代码来源:Cdn_AdminNotes.php

示例10: w3tc_notes

 /**
  *
  *
  * @param Config  $config
  * @return string
  */
 function w3tc_notes($notes)
 {
     $c = Dispatcher::config();
     $state = Dispatcher::config_state();
     $state_master = Dispatcher::config_state_master();
     $state_note = Dispatcher::config_state_note();
     /**
      * Check wp-content permissions
      */
     if (!W3TC_WIN && !$state_master->get_boolean('common.hide_note_wp_content_permissions')) {
         $wp_content_mode = Util_File::get_file_permissions(WP_CONTENT_DIR);
         if ($wp_content_mode > 0755) {
             $notes['generic_wp_content_writeable'] = sprintf(__('<strong>%s</strong> is write-able. When finished installing the plugin, change the permissions back to the default: <strong>chmod 755 %s</strong>. Permissions are currently %s. %s', 'w3-total-cache'), WP_CONTENT_DIR, WP_CONTENT_DIR, base_convert(Util_File::get_file_permissions(WP_CONTENT_DIR), 10, 8), Util_Ui::button_hide_note2(array('w3tc_default_config_state_master' => 'y', 'key' => 'common.hide_note_wp_content_permissions', 'value' => 'true')));
         }
     }
     /**
      * Check Zlib extension
      */
     if (!$state_master->get_boolean('common.hide_note_no_zlib') && !function_exists('gzencode')) {
         $notes['no_zlib'] = sprintf(__('Unfortunately the PHP installation is incomplete, the <strong>zlib module is missing</strong>. This is a core PHP module. Notify the server administrator. %s', 'w3-total-cache'), Util_Ui::button_hide_note2(array('w3tc_default_config_state_master' => 'y', 'key' => 'common.hide_note_no_zlib', 'value' => 'true')));
     }
     /**
      * Check if Zlib output compression is enabled
      */
     if (!$state_master->get_boolean('common.hide_note_zlib_output_compression') && Util_Environment::is_zlib_enabled()) {
         $notes['zlib_output_compression'] = sprintf(__('Either the PHP configuration, web server configuration or a script in the WordPress installation has <strong>zlib.output_compression</strong> enabled.<br />Please locate and disable this setting to ensure proper HTTP compression behavior. %s', 'w3-total-cache'), Util_Ui::button_hide_note2(array('w3tc_default_config_state_master' => 'y', 'key' => 'common.hide_note_zlib_output_compression', 'value' => 'true')));
     }
     if ($state_master->get_boolean('common.show_note.nginx_restart_required')) {
         $cf = Dispatcher::component('CacheFlush');
         $notes['nginx_restart_required'] = sprintf(__('nginx.conf rules have been updated. Please restart nginx server to provide a consistent user experience. %s', 'w3-total-cache'), Util_Ui::button_hide_note2(array('w3tc_default_config_state_master' => 'y', 'key' => 'common.show_note.nginx_restart_required', 'value' => 'false')));
     }
     /**
      * Preview mode
      */
     if ($c->is_preview()) {
         $notes['preview_mode'] = sprintf(__('Preview mode is active: Changed settings will not take effect until preview mode is %s or %s.', 'w3-total-cache'), Util_Ui::button_link(__('deploy', 'w3-total-cache'), Util_Ui::url(array('w3tc_config_preview_deploy' => 'y'))), Util_Ui::button_link(__('disable', 'w3-total-cache'), Util_Ui::url(array('w3tc_config_preview_disable' => 'y')))) . '<br /><span class="description">' . sprintf(__('To preview any changed settings (without deploying): %s', 'w3-total-cache'), Util_Ui::preview_link()) . '</span>';
     }
     /**
      * Show notification after plugin activate/deactivate
      */
     if ($state_note->get('common.show_note.plugins_updated') && !is_network_admin()) {
         $texts = array();
         if ($c->get_boolean('pgcache.enabled')) {
             $texts[] = Util_Ui::button_link(__('empty the page cache', 'w3-total-cache'), Util_Ui::url(array('w3tc_flush_posts' => 'y')));
         }
         if ($c->get_boolean('minify.enabled')) {
             $texts[] = sprintf(__('check the %s to maintain the desired user experience', 'w3-total-cache'), Util_Ui::button_link(__('minify settings', 'w3-total-cache'), Util_Ui::url(array('w3tc_default_config_state_note' => 'y', 'key' => 'common.show_note.plugins_updated', 'value' => 'false'))));
         }
         if (count($texts)) {
             $notes['some_plugins_activated'] = sprintf(__('One or more plugins have been activated or deactivated, please %s. %s', 'w3-total-cache'), implode(__(' and ', 'w3-total-cache'), $texts), Util_Ui::button_hide_note2(array('w3tc_default_config_state_note' => 'y', 'key' => 'common.show_note.plugins_updated', 'value' => 'false')));
         }
     }
     /**
      * Show notification when flush_statics needed
      */
     if ($c->get_boolean('browsercache.enabled') && $state_note->get('common.show_note.flush_statics_needed') && !is_network_admin() && !$c->is_preview()) {
         $notes['flush_statics_needed'] = sprintf(__('The setting change(s) made either invalidate the cached data or modify the behavior of the site. %s now to provide a consistent user experience. %s', 'w3-total-cache'), Util_Ui::button_link('Empty the static files cache', Util_Ui::url(array('w3tc_flush_statics' => 'y'))), Util_Ui::button_hide_note2(array('w3tc_default_config_state_note' => 'y', 'key' => 'common.show_note.flush_statics_needed', 'value' => 'false')));
     }
     /**
      * Show notification when flush_posts needed
      */
     if ($state_note->get('common.show_note.flush_posts_needed') && !is_network_admin() && !$c->is_preview() && !isset($notes['flush_statics_needed'])) {
         $cf = Dispatcher::component('CacheFlush');
         if ($cf->flushable_posts()) {
             $notes['flush_posts_needed'] = sprintf(__('The setting change(s) made either invalidate the cached data or modify the behavior of the site. %s now to provide a consistent user experience. %s', 'w3-total-cache'), Util_Ui::button_link('Empty the page cache', Util_Ui::url(array('w3tc_flush_posts' => 'y'))), Util_Ui::button_hide_note2(array('w3tc_default_config_state_note' => 'y', 'key' => 'common.show_note.flush_posts_needed', 'value' => 'false')));
         }
     }
     return $notes;
 }
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:75,代码来源:Generic_AdminNotes.php

示例11: w3tc_notes_genesis_theme

 public static function w3tc_notes_genesis_theme($notes)
 {
     if (!self::show_notice()) {
         return $notes;
     }
     $extension_id = 'genesis.theme';
     $notes[$extension_id] = sprintf(__('Activating the <a href="%s">Genesis Theme</a> extension for W3 Total Cache may be helpful for your site. <a href="%s">Click here</a> to try it. %s', 'w3-total-cache'), Util_Ui::admin_url('admin.php?page=w3tc_extensions#' . $extension_id), Util_Ui::url(array('w3tc_extensions_activate' => $extension_id)), Util_Ui::button_link(__('Hide this message', 'w3-total-cache'), Util_Ui::url(array('w3tc_default_config_state' => 'y', 'key' => 'genesis.theme.hide_note_suggest_activation', 'value' => 'true'))));
     return $notes;
 }
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:9,代码来源:Extension_Genesis_Plugin_Admin.php

示例12: w3tc_admin_bar_menu

 public function w3tc_admin_bar_menu($menu_items)
 {
     $menu_items['20910.system_opcache'] = array('id' => 'w3tc_flush_opcache', 'parent' => 'w3tc_flush', 'title' => __('Opcode Cache', 'w3-total-cache'), 'href' => Util_Ui::url(array('page' => 'w3tc_dashboard', 'w3tc_opcache_flush' => '')));
     return $menu_items;
 }
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:5,代码来源:SystemOpCache_Plugin_Admin.php

示例13: w3tc_notes

 function w3tc_notes($notes)
 {
     $state_note = Dispatcher::config_state();
     /**
      * Show notification when minify needs to be emptied
      */
     if ($state_note->get_boolean('minify.show_note.need_flush') && !is_network_admin() && !$this->_config->is_preview()) {
         $notes['minify_flush_needed'] = sprintf(__('The setting change(s) made either invalidate the cached data or modify the behavior of the site. %s now to provide a consistent user experience.', 'w3-total-cache'), Util_Ui::button_link(__('Empty the minify cache', 'w3-total-cache'), Util_Ui::url(array('w3tc_flush_minify' => 'y'))));
     }
     return $notes;
 }
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:11,代码来源:Minify_Plugin_Admin.php

示例14: _e

<?php

namespace W3TC;

if (!defined('W3TC')) {
    die;
}
?>
<div id="w3tc-edge-mode">
    <div class="w3tc-overlay-logo"></div>
    <header>
    </header>
    <div class="content">
    <p><strong><?php 
_e('Enable "Edge Mode" to opt-in to pre-release features or simply close this window to continue to enjoy bug fixes, security fixes and stable updates only.', 'w3-total-cache');
?>
</strong></p>
    <p><?php 
_e('We want to ensure that those who are interested in ongoing performance optimizations always have access to the latest functionality and optimization techniques. Those who enable edge mode should have experience in troubleshooting WordPress installations.', 'w3-total-cache');
?>
</p>
    </div>
    <div class="w3tc_overlay_footer">
        <?php 
echo Util_Ui::action_button(__('Enable Edge Mode', 'w3-total-cache'), Util_Ui::url(array('w3tc_edge_mode_enable' => 'y')), "btn w3tc-size image btn-default palette-turquoise");
?>
        <input type="button" class="btn w3tc-size btn-default outset palette-light-grey w3tc_lightbox_close" value="Cancel">
    </div>
</div>
<?php 
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:30,代码来源:edge.php

示例15: __

Util_Ui::config_item(array('key' => 'common.track_usage', 'control' => 'checkbox', 'checkbox_label' => __('Anonymously track usage to improve product quality', 'w3-total-cache'), 'style' => '2'));
?>

            <?php 
do_action('w3tc_settings_general_boxarea_miscellaneous_content');
?>
            <?php 
if (is_network_admin() || !Util_Environment::is_wpmu()) {
    ?>
            <tr id="edge_mode">
                <th colspan="2">
                    <?php 
    if (!Util_Environment::is_w3tc_edge($this->_config)) {
        echo '<a href="' . Util_Ui::url(array('w3tc_edge_mode_enable' => 'y')) . '"><strong>' . __('Enable Edge mode', 'w3-total-cache') . '</strong></a>';
    } else {
        echo '<a href="' . Util_Ui::url(array('w3tc_edge_mode_disable' => 'y')) . '"><strong>' . __('Disable Edge mode', 'w3-total-cache') . '</strong></a>';
    }
    ?>
                    <br /><span class="description"><?php 
    _e('Enable this to try out new functionality under development. Might cause issues on some sites.', 'w3-total-cache');
    ?>
</span>
                </th>
            </tr>
            <?php 
}
?>
        </table>

        <?php 
Util_Ui::button_config_save('general_misc');
开发者ID:eduardodomingos,项目名称:eduardodomingos.com,代码行数:31,代码来源:general.php


注:本文中的Util_Ui::url方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。