本文整理汇总了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();