當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Util_Ui::action_button方法代碼示例

本文整理匯總了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>
開發者ID:eduardodomingos,項目名稱:eduardodomingos.com,代碼行數:31,代碼來源:support_us.php

示例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 
開發者ID:developmentDM2,項目名稱:Whohaha,代碼行數:30,代碼來源:edge.php


注:本文中的Util_Ui::action_button方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。