本文整理匯總了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