本文整理汇总了PHP中bb_option函数的典型用法代码示例。如果您正苦于以下问题:PHP bb_option函数的具体用法?PHP bb_option怎么用?PHP bb_option使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bb_option函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: terms_of_service_get
function terms_of_service_get()
{
bb_send_headers();
bb_get_header();
?>
<h3 class="bbcrumb"><a href="<?php
bb_option('uri');
?>
"><?php
bb_option('name');
?>
</a> » <?php
_e('Terms of Service');
?>
</h3>
<div class="indent">
<h2 id="register"><?php
_e('Terms of Service');
?>
</h2>
<div id="terms_of_service" style="padding:0.5em 1em 1em 1em; margin:0em 3em; background: #eee; color: #000;">
<?php
@readfile(rtrim(dirname(__FILE__), ' /\\') . '/terms-of-service.html');
echo '</div></div>';
bb_get_footer();
exit;
}
示例2: bb_get_header
<?php
bb_get_header();
?>
<div class="bbcrumb"><a href="<?php
bb_uri();
?>
"><?php
bb_option('name');
?>
</a> » <a href="<?php
user_profile_link($user_id);
?>
"><?php
echo get_user_display_name($user_id);
?>
</a> » <?php
_e('Profile');
?>
</div>
<div class="vcard" role="main">
<?php
if ($avatar = bb_get_avatar($user->ID)) {
?>
<div id="useravatar"><?php
echo $avatar;
?>
</div>
示例3: printf
<?php
/**
* @author Perberos perberos@gmail.com
*
* @package OpenGame
* @version 0.01
* @copyright (c) 2008 Ugamela
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
?>
<div id="footer">
<p><?php
printf(__('%1$s is proudly powered by <a href="%2$s">bbPress</a>.'), bb_option('name'), "http://bbpress.org");
?>
OpenGame theme by <a href="http://ugamela.com/" target="_new">Ugamela</a><br>
<!-- If you remove/edit the copyright, a cat will eat your finger. -->
Page generated in <?php
bb_timer_stop(1);
?>
- <?php
echo $bbdb->num_queries;
?>
queries</p>
</div>
<?php
do_action('bb_foot', '');
?>
</body>
</html>
示例4: wp_referer_field
<?php
wp_referer_field();
?>
</td>
</tr>
</table>
</form>
<?php
if ($user_exists) {
?>
<br/>
<hr />
<br/>
<form method="post" action="<?php
bb_option('uri');
?>
bb-reset-password.php">
<p><?php
_e('If you would like to recover the password for this account, you may use the following button to start the recovery process:');
?>
<br />
<input name="user_login" type="hidden" value="<?php
echo $user_login;
?>
" /><br/>
<input type="submit" value="<?php
echo attribute_escape(__('Recover Password'));
?>
" /></p>
</form>
示例5: option
function option($option)
{
bb_log_deprecated('function', __FUNCTION__, 'bb_option');
return bb_option($option);
}
示例6: bb_uri
?>
">
<div id="wrapper">
<div id="header" role="banner">
<h1><a href="<?php
bb_uri();
?>
"><?php
bb_option('name');
?>
</a></h1>
<?php
if (bb_get_option('description')) {
?>
<p class="description"><?php
bb_option('description');
?>
</p><?php
}
?>
<?php
if (!in_array(bb_get_location(), array('login-page', 'register-page'))) {
login_form();
}
?>
<div class="search">
<?php
search_form();
?>
示例7: oip_login_form
function oip_login_form()
{
global $openid_options;
?>
<h2 id="register"><?php
_e('OpenID Login');
?>
</h2>
<form method="post" action="<?php
bb_option('uri');
?>
bb-login.php">
<fieldset>
<?php
if (isset($_GET['openid_error'])) {
echo "<div onclick='this.style.display=\"none\"' style='margin:0 0 1em 0; color:#000;width:75%;overflow:hidden;padding:3px 10px;background:#FFF6BF;border:1px solid #FFD324;'>" . substr(addslashes(strip_tags($_GET['openid_error'], "<br>")), 0, 200) . "</div>";
}
?>
<table>
<tr valign="top">
<th scope="row"><?php
_e('OpenID');
?>
</th>
<td><input style="width:50%;padding-left:20px;background: #fff url(<?php
echo $openid_options['icon'];
?>
) no-repeat 2px 50%;" name="openid_identity" type="text" id="openid_identity"></td>
</tr>
</table>
</fieldset>
</form>
<?php
}