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


PHP Util_Ui::nonce_field方法代码示例

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


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

示例1: cloudflare_button_save

 private static function cloudflare_button_save($id = '')
 {
     $b1_id = 'w3tc_cloudflare_save_' . $id;
     echo '<p class="submit">';
     echo Util_Ui::nonce_field('w3tc');
     echo '<input type="submit" id="' . $b1_id . '" name="w3tc_cloudflare_save_settings" ' . ' class="w3tc-button-save button-primary" ' . ' value="' . __('Save CloudFlare settings', 'w3-total-cache') . '" />';
     echo '</p>';
 }
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:8,代码来源:Extension_CloudFlare_Page.php

示例2: _e

}
?>
</p>


<form action="admin.php?page=w3tc_cdn" method="post">
    <p><?php 
_e('Files to purge:', 'w3-total-cache');
?>
</p>
    <p>
        <textarea name="files" rows="10" cols="90"></textarea>
    </p>
    <p>
        <?php 
echo Util_Ui::nonce_field('w3tc');
?>
        <input class="button-primary" type="submit" name="w3tc_cdn_purge_files" value="<?php 
_e('Purge', 'w3-total-cache');
?>
" />
    </p>
</form>

<div class="log">
    <?php 
foreach ($results as $result) {
    ?>
        <div class="log-<?php 
    echo $result['result'] == W3TC_CDN_RESULT_OK ? 'success' : 'error';
    ?>
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:31,代码来源:cdn_purge.php

示例3: sprintf

}
include W3TC_INC_DIR . '/options/common/header.php';
?>

<form action="admin.php?page=<?php 
echo $this->_page;
?>
" method="post">
	<p>
		<?php 
echo sprintf(__('Page caching via %1$s is currently %2$s', 'w3-total-cache'), '<strong>' . Cache::engine_name($this->_config->get_string('pgcache.engine')) . '</strong>', '<span class="w3tc-' . ($pgcache_enabled ? 'enabled">' . __('enabled', 'w3-total-cache') : 'disabled">' . __('disabled', 'w3-total-cache')) . '</span>.');
?>
	</p>
	<p>
		<?php 
echo sprintf(__('To rebuild the page cache use the %s operation', 'w3-total-cache'), Util_Ui::nonce_field('w3tc') . '<input type="submit" name="w3tc_flush_pgcache" value="empty cache"' . disabled($pgcache_enabled, false, false) . ' class="button" />');
?>
	</p>
</form>

<form action="admin.php?page=<?php 
echo $this->_page;
?>
" method="post">
	<div class="metabox-holder">
		<?php 
Util_Ui::postbox_header(__('General', 'w3-total-cache'), '', 'general');
?>
		<table class="form-table">
			<tr>
				<th>
开发者ID:eduardodomingos,项目名称:eduardodomingos.com,代码行数:31,代码来源:pgcache.php

示例4: sprintf

}
?>
/*]]>*/</script>

<form action="admin.php?page=<?php 
echo $this->_page;
?>
" method="post">
    <p>
        <?php 
echo sprintf(__('Minify via %s is currently %s.', 'w3-total-cache'), Cache::engine_name($this->_config->get_string('minify.engine')), '<span class="w3tc-' . ($minify_enabled ? 'enabled">' . __('enabled', 'w3-total-cache') : 'disabled">' . __('disabled', 'w3-total-cache')) . '</span>');
?>
    </p>
    <p>
		<?php 
echo sprintf(__('To rebuild the minify cache use the %s operation.', 'w3-total-cache'), Util_Ui::nonce_field('w3tc') . '<input type="submit" name="w3tc_flush_minify" value="' . __('empty cache', 'w3-total-cache') . '"' . disabled($minify_enabled, false, false) . ' class="button" />');
?>
        <?php 
if (!$auto) {
    ?>
            <?php 
    _e('Get minify hints using the', 'w3-total-cache');
    ?>
            <input type="button" class="button button-minify-recommendations {nonce: '<?php 
    echo wp_create_nonce('w3tc');
    ?>
'}" value="<?php 
    _e('help', 'w3-total-cache');
    ?>
" />
            <?php 
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:31,代码来源:minify.php

示例5: button_config_save

    public static function button_config_save($id = '', $extra = '')
    {
        $b1_id = 'w3tc_save_options_' . $id;
        $b2_id = 'w3tc_default_save_and_flush_' . $id;
        ?>
        <p class="submit">
            <?php 
        echo Util_Ui::nonce_field('w3tc');
        ?>
            <input type="submit" id="<?php 
        echo $b1_id;
        ?>
"
                name="w3tc_save_options"
                class="w3tc-button-save button-primary"
                value="<?php 
        _e('Save all settings', 'w3-total-cache');
        ?>
" />
            <?php 
        echo $extra;
        ?>
            <?php 
        if (!is_network_admin()) {
            ?>
            <input type="submit" id="<?php 
            echo $b2_id;
            ?>
"
                name="w3tc_default_save_and_flush" style="float: right"
                class="w3tc-button-save button-primary"
                value="<?php 
            _e('Save Settings & Purge Caches', 'w3-total-cache');
            ?>
" />
            <?php 
        }
        ?>
        </p>
        <?php 
    }
开发者ID:developmentDM2,项目名称:Whohaha,代码行数:41,代码来源:Util_Ui.php


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