本文整理汇总了PHP中Util_Ui::action_button方法的典型用法代码示例。如果您正苦于以下问题:PHP Util_Ui::action_button方法的具体用法?PHP Util_Ui::action_button怎么用?PHP Util_Ui::action_button使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Util_Ui
的用法示例。
在下文中一共展示了Util_Ui::action_button方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: urlencode
</div>
</label>
</li>
<li>
<label>Send a tweet:<br />
<?php
$tweet_url = 'http://twitter.com/home/?status=' . urlencode(W3TC_SUPPORT_US_TWEET);
echo Util_Ui::action_button(__('Tell Your Friends', 'w3-total-cache'), $tweet_url, "btn w3tc-size image btn-default palette-twitter", true);
?>
</label>
</li>
<li>
<label>
Login to wordpress.org to give us a great rating:<br>
<?php
echo Util_Ui::action_button(__('Login & Rate Us', 'w3-total-cache'), W3TC_SUPPORT_US_RATE_URL, "btn w3tc-size image btn-default palette-wordpress", true);
?>
</label>
</li>
</ul>
<p>
<label class="w3tc_signup_email" for="email">You can also sign up for our newsletter:<br />
<input id="email" name="email" type="text" class="form-control w3tc-size" value="<?php
esc_attr_e($email);
?>
"></label><br />
<input type="checkbox" name="signmeup" id="signmeup" class="css-checkbox" value="1" checked="checked" /><label for="signmeup" class="css-label"> <?php
_e('Yes, sign me up.', 'w3-total-cache');
?>
</label>
</p>
示例2: _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