本文整理匯總了PHP中Util_Ui::config_item_engine方法的典型用法代碼示例。如果您正苦於以下問題:PHP Util_Ui::config_item_engine方法的具體用法?PHP Util_Ui::config_item_engine怎麽用?PHP Util_Ui::config_item_engine使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Util_Ui
的用法示例。
在下文中一共展示了Util_Ui::config_item_engine方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _e
Util_Ui::postbox_footer();
?>
<?php
Util_Ui::postbox_header('Object Cache', '', 'object_cache');
Util_Ui::config_overloading_button(array('key' => 'objectcache.configuration_overloaded'));
?>
<p><?php
_e('Enable object caching to further reduce execution time for common operations.', 'w3-total-cache');
?>
</p>
<table class="form-table">
<?php
Util_Ui::config_item(array('key' => 'objectcache.enabled', 'control' => 'checkbox', 'checkbox_label' => __('Enable', 'w3-total-cache'), 'description' => __('Object caching greatly increases performance for highly dynamic sites that use the <a href="http://codex.wordpress.org/Class_Reference/WP_Object_Cache" target="_blank">Object Cache <acronym title="Application Programming Interface">API</acronym></a>.', 'w3-total-cache')));
Util_Ui::config_item_engine(array('key' => 'objectcache.engine'));
?>
</table>
<?php
Util_Ui::button_config_save('general_objectcache', '<input type="submit" name="w3tc_flush_objectcache" value="' . __('Empty cache', 'w3-total-cache') . '" ' . ($objectcache_enabled ? '' : ' disabled="disabled" ') . ' class="button" />');
?>
<?php
Util_Ui::postbox_footer();
?>
<?php
Util_Ui::postbox_header(__('Browser Cache', 'w3-total-cache'), '', 'browser_cache');
Util_Ui::config_overloading_button(array('key' => 'browsercache.configuration_overloaded'));
?>
<p><?php
示例2: array
<?php
namespace W3TC;
if (!defined('W3TC')) {
die;
}
Util_Ui::postbox_header('Fragment Cache', '', 'fragment_cache');
?>
<p>Enable fragment caching reduce execution time for common operations.</p>
<table class="form-table">
<?php
Util_Ui::config_item_engine(array('key' => array('fragmentcache', 'engine'), 'label' => __('Fragment Cache Method:', 'w3-total-cache'), 'empty_value' => true));
?>
</table>
<?php
Util_Ui::button_config_save('general_feedburner', '<input type="submit" name="w3tc_flush_fragmentcache" value="' . __('Empty cache', 'w3-total-cache') . '" class="button" />');
Util_Ui::postbox_footer();