• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP bb_uri函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中bb_uri函数的典型用法代码示例。如果您正苦于以下问题:PHP bb_uri函数的具体用法?PHP bb_uri怎么用?PHP bb_uri使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: bb_ksd_configuration_page

function bb_ksd_configuration_page()
{
    ?>
<h2><?php 
    _e('Akismet Settings');
    ?>
</h2>
<?php 
    do_action('bb_admin_notices');
    ?>

<form class="settings" method="post" action="<?php 
    bb_uri('bb-admin/admin-base.php', array('plugin' => 'bb_ksd_configuration_page'), BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
    ?>
">
	<fieldset>
		<p><?php 
    printf(__('For many people, <a href="%s">Akismet</a> will greatly reduce or even completely eliminate the spam you get on your site. If one does happen to get through, simply mark it as "spam" and Akismet will learn from the mistakes.'), 'http://akismet.com/');
    ?>
</p>

<?php 
    $after = '';
    if (false !== ($key = bb_get_option('akismet_key'))) {
        if (bb_akismet_verify_key($key)) {
            $after = __('This key is valid');
        } else {
            bb_delete_option('akismet_key');
        }
    }
    bb_option_form_element('akismet_key', array('title' => __('WordPress.com API Key'), 'attributes' => array('maxlength' => 12), 'after' => $after, 'note' => sprintf(__('If you don\'t have a WordPress.com API Key, you can get one at <a href="%s">WordPress.com</a>'), 'http://wordpress.com/api-keys/')));
    bb_option_form_element('akismet_stats', array('title' => __('Enable stats page'), 'type' => 'checkbox', 'options' => array(1 => __('Create a page that shows spam statistics.')), 'note' => __('This page will be viewable by moderators or higher.')));
    ?>

	</fieldset>
	<fieldset class="submit">
		<?php 
    bb_nonce_field('options-akismet-update');
    ?>
		<input type="hidden" name="action" value="update-akismet-settings" />
		<input class="submit" type="submit" name="submit" value="<?php 
    _e('Save Changes');
    ?>
" />
	</fieldset>
</form>
<?php 
}
开发者ID:laiello,项目名称:cartonbank,代码行数:48,代码来源:akismet.php


示例2: tag_form

function tag_form($args = null)
{
    $defaults = array('topic' => 0, 'submit' => __('Add &raquo;'), 'list_id' => 'tags-list');
    $args = wp_parse_args($args, $defaults);
    extract($args, EXTR_SKIP);
    if (!($topic = get_topic(get_topic_id($topic)))) {
        return false;
    }
    if (!bb_current_user_can('edit_tag_by_on', bb_get_current_user_info('id'), $topic->topic_id)) {
        return false;
    }
    global $page;
    ?>

<form id="tag-form" method="post" action="<?php 
    bb_uri('tag-add.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
    ?>
" class="add:<?php 
    echo esc_attr($list_id);
    ?>
:">
	<p>
		<input name="tag" type="text" id="tag" />
		<input type="hidden" name="id" value="<?php 
    echo $topic->topic_id;
    ?>
" />
		<input type="hidden" name="page" value="<?php 
    echo $page;
    ?>
" />
		<?php 
    bb_nonce_field('add-tag_' . $topic->topic_id);
    ?>
		<input type="submit" name="submit" id="tagformsub" value="<?php 
    echo esc_attr($submit);
    ?>
" />
	</p>
</form>

<?php 
}
开发者ID:abc2mit,项目名称:abc2mit.github.io,代码行数:43,代码来源:functions.bb-template.php


示例3: bb_uri

	<?php 
    }
    ?>

				</tbody>

<?php 
}
?>

			</table>
		</div>

		<div class="versions">
			<p class="theme"><a class="button" href="<?php 
bb_uri('bb-admin/themes.php', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN);
?>
"><?php 
_e('Change Theme');
?>
</a><?php 
printf(__('Theme <a href="%1$s">%2$s</a>'), bb_get_uri('bb-admin/themes.php', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN), bb_get_current_theme_data('Name'));
?>
</p>
			<p class="bbpress"><?php 
printf(__('You are using <span class="b">bbPress %s</span>'), bb_get_option('version'));
?>
</p>
		</div>
	</div>
开发者ID:un1coin,项目名称:ovn-space,代码行数:30,代码来源:index.php


示例4: bb_nonce_field

		<?php 
bb_nonce_field('options-permalinks-update');
?>
		<input type="hidden" name="action" value="update" />
		<input class="submit" type="submit" name="submit" value="<?php 
_e('Save Changes');
?>
" />
	</fieldset>
</form>

<?php 
if ($manual_instructions) {
    ?>
<form class="settings" method="post" action="<?php 
    bb_uri('bb-admin/options-permalinks.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
    ?>
">
	<fieldset>
		<p>
			<?php 
    _e('If your <code>.htaccess</code> file were <a href="http://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn&#8217;t so these are the mod_rewrite rules you should have in your <code>.htaccess</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all.');
    ?>
		</p>
		<textarea dir="ltr" id="rewrite-rules" class="readonly" readonly="readonly" rows="6"><?php 
    echo esc_html(trim($file_source_rules));
    ?>
</textarea>
	</fieldset>
</form>
开发者ID:laiello,项目名称:cartonbank,代码行数:30,代码来源:options-permalinks.php


示例5: bb_get_admin_header

$bb_admin_body_class = ' bb-admin-settings';
bb_get_admin_header();
?>

<div class="wrap">

<h2><?php 
_e('Reading Settings');
?>
</h2>
<?php 
do_action('bb_admin_notices');
?>

<form class="settings" method="post" action="<?php 
bb_uri('bb-admin/options-reading.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
?>
">
	<fieldset>
<?php 
foreach ($reading_options as $option => $args) {
    bb_option_form_element($option, $args);
}
?>
	</fieldset>
	<fieldset class="submit">
		<?php 
bb_nonce_field('options-reading-update');
?>
		<input type="hidden" name="action" value="update" />
		<input class="submit" type="submit" name="submit" value="<?php 
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:options-reading.php


示例6: recount

			<li>After Converting:

                <ul>
                    <li>Do a recount (by going to bbPress Admin Section -> <a href="<?php 
        bb_uri('bb-admin/tools-recount.php');
        ?>
">Tools</a>, check all options and press recount button) to get the posts/topics/etc counts in sync.</li>
                    <li>Delete this script if not needed or set W2BC_DISABLE_SCRIPT constant to true in the script.</li>
                </ul>

            </li>

			<li>
                <strong>Note</strong>: All the current bbPress forum users would be deleted.
                Prior to migrating users, go to bbPress Admin Section -> Settings -> <a href="<?php 
        bb_uri('bb-admin/options-wordpress.php');
        ?>
">WordPress Integration</a> and map the user roles and <em>delete</em> any other options on that page except the salt options if they are there (by just removing the values and saving the options).
                <strong>If you don't, the script might actually delete the WordPress user tables.</strong>
                Proceed to <a href="w2bc.php?mode=users">migrating users</a>!

                <?php 
        if (defined('W2BC_ALLOW_SYNC') && W2BC_ALLOW_SYNC == true) {
            ?>
					Or you may straight away go to <a href="w2bc.php?mode=users">converting posts to topics</a> (their categories to forums, tags, and comments to replies) or to <a href="w2bc.php?mode=replies">syncing comments to replies</a>.
                <?php 
        }
        ?>
            </li>

		</ul>
开发者ID:markc,项目名称:wordpress-to-bbpress-converter,代码行数:31,代码来源:w2bc.php


示例7: _e

					</fieldset>
				</form>
			</div>
		</div>
<?php 
        break;
    case 'error':
        ?>
		<div class="open">
			<h2><?php 
        _e('Database upgrade failed');
        ?>
</h2>
			<div>
				<form action="<?php 
        bb_uri('bb-admin/upgrade.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
        ?>
" method="post">
					<p class="error">
						<?php 
        _e('The upgrade process seems to have failed. Check the upgrade messages below for more information.<br /><br />Attempting to go to the admin area without resolving the listed errors will return you to this upgrade page.');
        ?>
					</p>
					<fieldset>
						<?php 
        bb_nonce_field('bbpress-upgrader');
        ?>
						<?php 
        echo $forced_input;
        ?>
						<label class="has-label for-toggle" for="upgrade_log_container_toggle" style="margin-bottom: 1.9em;">
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:31,代码来源:upgrade.php


示例8: nxt_referer_field

			<?php 
nxt_referer_field();
?>
		</td>
	</tr>
</table>

</fieldset>
</form>

<h2 id="passwordrecovery"><?php 
_e('Password Recovery');
?>
</h2>
<form method="post" action="<?php 
bb_uri('bb-reset-password.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS);
?>
">
<fieldset>
	<p><?php 
_e('To recover your password, enter your information below.');
?>
</p>
	<table>
		<tr valign="top" class="form-field">
			<th scope="row">
				<label for="user_login_reset_password"><?php 
_e('Username');
?>
</label>
			</th>
开发者ID:nxtclass,项目名称:NXTClass,代码行数:31,代码来源:login.php


示例9: _e

</a> &raquo; <?php 
_e('Register');
?>
</div>

<h2 id="register" role="main"><?php 
_e('Registration');
?>
</h2>

<?php 
if (!bb_is_user_logged_in()) {
    ?>

<form method="post" action="<?php 
    bb_uri('register.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS);
    ?>
">

<fieldset>
<legend><?php 
    _e('Create a DHAnswers ID');
    ?>
 <span id="reg-or">or</span></legend>

<p><?php 
    _e("Your password will be emailed to the address you provide.");
    ?>
</p>

<?php 
开发者ID:achorg,项目名称:DH-Answers,代码行数:31,代码来源:register.php


示例10: bb_uri

</a> |
		<a<?php 
echo $plugin_nav_class['inactive'];
?>
 href="<?php 
bb_uri('bb-admin/plugins.php', array('plugin_request' => 'inactive'), BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN);
?>
"><?php 
printf(__('Inactive <span class="count">(%d)</span>'), $plugin_count_inactive);
?>
</a> |
		<a<?php 
echo $plugin_nav_class['autoload'];
?>
 href="<?php 
bb_uri('bb-admin/plugins.php', array('plugin_request' => 'autoload'), BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN);
?>
"><?php 
printf(__('Autoloaded <span class="count">(%d)</span>'), $plugin_count_autoload);
?>
</a>
	</div>

<?php 
if ($requested_plugins) {
    ?>
 

	<table id="plugins-list" class="widefat">
		<thead>
			<tr>
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:plugins.php


示例11: bb_uri

<form class="search-form" role="search" action="<?php 
bb_uri('search.php', null, BB_URI_CONTEXT_FORM_ACTION);
?>
" method="get">
	<p>
		<label class="hidden" for="q"><?php 
_e('Search:');
?>
</label>
		<input class="text" type="text" size="14" maxlength="100" name="q" id="q" />
		<input class="submit" type="submit" value="<?php 
echo esc_attr__('Search &raquo;');
?>
" />
	</p>
</form>
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:16,代码来源:search-form.php


示例12: li_configuration_page

function li_configuration_page()
{
    ?>
<h2><?php 
    _e('Linkedin Connect Settings');
    ?>
</h2>
<?php 
    do_action('bb_admin_notices');
    ?>
<form class="settings" method="post" action="<?php 
    bb_uri('bb-admin/admin-base.php', array('plugin' => 'li_configuration_page'), BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
    ?>
">
	<p>A LinkedIn Application ID and Secret Key are needed. These can be obtained from <a href="https://www.linkedin.com/secure/developer">Linkedin developer pages</a>.</p>
	<p>Remember to check that OAuth 2.0 support is enabled. This setting is located under Advanced-tab of your LinkedIn application page.</p>
	<fieldset class="submit">
<?php 
    bb_option_form_element('li_app_id', array('title' => __('LinkedIn Application ID'), 'attributes' => array('maxlength' => 20), 'after' => '[Alphanumeric] Example: aQw3728er2'));
    bb_option_form_element('li_secret', array('title' => __('Linkedin Application Secret'), 'attributes' => array('maxlength' => 40), 'after' => "[Alphanumeric] Example: abcdef123456abcdef123456abcdef123456"));
    bb_option_form_element('li_displayname_from', array('title' => __('Set as Display Name'), 'type' => 'select', 'options' => array(0 => __('Full Name'), 1 => __('First Name'), 2 => __('Last Name')), 'after' => "The users Display Name will be set to this value as provided by LinkedIn"));
    bb_option_form_element('li_allow_useredit', array('title' => __('Allow User Edit'), 'type' => 'checkbox', 'options' => array(1 => __('Allow users to edit their own profile information, such as first name, last name and display name'))));
    bb_option_form_element('li_request_email', array('title' => __('Request Real Email'), 'type' => 'checkbox', 'options' => array(1 => __('Request users real email address from LinkedIn (user must accept this). A dummy email is set to new users if this is disabled.'))));
    bb_option_form_element('li_hide_post_login', array('title' => __('Hide login in post form'), 'type' => 'checkbox', 'options' => array(1 => __('Hide the "You must login to reply" in post-form for non-logged in users. This links to the traditional login page otherwise, which LinkedIn Connected users cannot use.'))));
    bb_option_form_element('li_get_jquery', array('title' => __('Include jQuery (require version 1.6+)'), 'type' => 'checkbox', 'options' => array(1 => __('Includes latest jQuery API from Google APIs.'))));
    ?>
		<?php 
    bb_nonce_field('options-liconnect-update');
    ?>
		<input type="hidden" name="action" value="update-li-settings" />
		<input class="submit" type="submit" name="submit" value="<?php 
    _e('Save Changes');
    ?>
" />
	</fieldset>
</form>
<?php 
}
开发者ID:nma,项目名称:linkedin-connect,代码行数:38,代码来源:connect.php


示例13: nospamuser_admin

function nospamuser_admin()
{
    $settings = bb_get_option('nospamuser-settings');
    $options = array('days' => array('title' => __('Maximum days', 'nospamuser'), 'note' => __('Any possible spammer that was last active over this many days ago will be allowed through.', 'nospamuser'), 'class' => 'short', 'value' => $settings['days']), 'min_occur' => array('title' => __('Minimum frequency', 'nospamuser'), 'note' => __('Any possible spammer that do not have at least this many reports will be allowed through.', 'nospamuser'), 'class' => 'short', 'value' => $settings['min_occur']), 'max_occur' => array('title' => __('Maximum frequency', 'nospamuser'), 'note' => __('Possible spammers that have at least this many reports will be disallowed in adaptive mode. This also affects agressive mode, where spammers with at least this many reports will be blocked even if the maximum days prerequisite is not met.', 'nospamuser'), 'class' => 'short', 'value' => $settings['max_occur']), 'api_key' => array('title' => __('Stop Forum Spam API key', 'nospamuser'), 'note' => __('Required to submit spammers to Stop Forum Spam. <a href="http://www.stopforumspam.com/signup">Get a Stop Forum Spam API key here</a>.', 'nospamuser'), 'class' => array('code', 'long'), 'value' => $settings['api_key']), 'recaptcha_mode' => array('title' => __('reCAPTCHA mode', 'nospamuser'), 'note' => __('All modes except aggressive require reCAPTCHA public and private keys.', 'nospamuser'), 'type' => 'radio', 'options' => array('aggressive' => __('<strong>Aggressive:</strong> Never allow possible spammers to override blocks.', 'nospamuser'), 'adaptive' => __('<strong>Adaptive:</strong> Allow possible spammers between the minimum and maximum frequency to override blocks.', 'nospamuser'), 'friendly' => __('<strong>Friendly:</strong> Allow all possible spammers to override blocks.', 'nospamuser')), 'value' => $settings['recaptcha_mode']), 'recaptcha_pub' => array('title' => __('reCAPTCHA public key', 'nospamuser'), 'note' => sprintf(__('<a href="%s">Get it here</a>.', 'nospamuser'), 'http://recaptcha.net/api/getkey?domain=' . urlencode($_SERVER['SERVER_NAME']) . '&app=bb-NoSpamUser'), 'class' => array('code', 'long'), 'value' => $settings['recaptcha_pub']), 'recaptcha_priv' => array('title' => __('reCAPTCHA private key', 'nospamuser'), 'note' => sprintf(__('<a href="%s">Get it here</a>.', 'nospamuser'), 'http://recaptcha.net/api/getkey?domain=' . urlencode($_SERVER['SERVER_NAME']) . '&app=bb-NoSpamUser'), 'class' => array('code', 'long'), 'value' => $settings['recaptcha_priv']), 'stats-public' => array('title' => __('Public statistics', 'nospamuser'), 'type' => 'radio', 'options' => array(0 => __('Keep all statistics private', 'nospamuser'), 1 => sprintf(__('Display the number of caught spammers on the <a href="%s">statistics page</a>.', 'nospamuser'), bb_get_uri('statistics.php'))), 'value' => $settings['stats-public'] ? $settings['stats-public'] : 0));
    ?>
<h2><?php 
    _e('bb-NoSpamUser', 'nospamuser');
    ?>
</h2>
<?php 
    do_action('bb_admin_notices');
    ?>
<form class="settings" method="post" action="<?php 
    bb_uri('bb-admin/admin-base.php', array('plugin' => 'nospamuser_admin'), BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
    ?>
">
	<fieldset>
<?php 
    foreach ($options as $option => $args) {
        bb_option_form_element($option, $args);
    }
    ?>
	</fieldset>
	<fieldset class="submit">
		<?php 
    bb_nonce_field('nospamuser-admin');
    ?>
		<input class="submit" type="submit" name="submit" value="<?php 
    _e('Save Changes');
    ?>
" />
	</fieldset>
</form>
<?php 
    if ($blocks = (int) bb_get_option('nospamuser-blocks')) {
        ?>
<div style="font-size: .75em; position: absolute; bottom: 50px; right: 5px"><?php 
        printf(_n('%s spammer blocked by bb-NoSpamUser', '%s spammers blocked by bb-NoSpamUser', $blocks, 'nospamuser'), bb_number_format_i18n($blocks));
        ?>
</div>
<?php 
    }
}
开发者ID:achorg,项目名称:DH-Answers,代码行数:43,代码来源:bb-nospamuser.php


示例14: _e

	<h3><?php 
_e('User Integration');
?>
</h3>
	<p><?php 
_e('Usually, you will have to specify both cookie integration and user database integration settings. Make sure you have a "User role map" setup above before trying to add user integration.');
?>
</p>
	<p><?php 
_e('<em><strong>Note:</strong> changing the settings below may cause you to be logged out!</em>');
?>
</p>
</div>

<form class="settings" method="post" action="<?php 
bb_uri('bb-admin/options-nxtclass.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
?>
">
	<fieldset>
		<legend><?php 
_e('Cookies');
?>
</legend>
		<p><?php 
_e('Cookie sharing allows users to log in to either your bbPress or your NXTClass site, and have access to both.');
?>
</p>
	<?php 
foreach ($cookie_options as $option => $args) {
    bb_option_form_element($option, $args);
}
开发者ID:nxtclass,项目名称:NXTClass,代码行数:31,代码来源:options-nxtclass.php


示例15: bb_get_admin_header

$bb_admin_body_class = ' bb-admin-settings';
bb_get_admin_header();
?>

<div class="wrap">

<h2><?php 
_e('General Settings');
?>
</h2>
<?php 
do_action('bb_admin_notices');
?>

<form class="settings" method="post" action="<?php 
bb_uri('bb-admin/options-general.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
?>
">
	<fieldset>
<?php 
foreach ($general_options as $option => $args) {
    bb_option_form_element($option, $args);
}
foreach ($time_options as $option => $args) {
    bb_option_form_element($option, $args);
}
?>
	</fieldset>
	<fieldset class="submit">
		<?php 
bb_nonce_field('options-general-update');
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:options-general.php


示例16: _e

                ?>
</a></dd>
				</dl>
<?php 
                if ($bb_install->data[3]['form']['keymaster_user_type']['value'] == 'bbPress') {
                    ?>
				<p><?php 
                    _e('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you. If you lose it, you will have to delete the tables from the database yourself, and re-install bbPress.');
                    ?>
</p>
<?php 
                }
            }
            ?>
				<form action="<?php 
            bb_uri(null, null, BB_URI_CONTEXT_FORM_ACTION);
            ?>
">
					<fieldset>
<?php 
            $bb_install->input_toggle('toggle_4');
            ?>
						<div class="toggle" id="toggle_4_target" style="display:none;">
<?php 
            if ($bb_install->data[4]['form']['error_log']['value']) {
                $bb_install->textarea('error_log');
            }
            $bb_install->textarea('installation_log');
            ?>
						</div>
					</fieldset>
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:31,代码来源:install.php


示例17: bb_uri

<form class="login" method="post" action="<?php 
bb_uri('bb-login.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS);
?>
">
	<p>
		<?php 
printf(__('<a href="%1$s">Register</a> or log in - <a href="%2$s">lost password?</a>'), bb_get_uri('register.php', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_USER_FORMS), bb_get_uri('bb-login.php', array('action' => 'lostpassword'), BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_USER_FORMS));
?>

	</p>
	<div>
		<label>
			<?php 
_e('Username');
?>
<br />
			<input name="log" type="text" id="quick_user_login" size="13" maxlength="40" value="<?php 
if (!is_bool($user_login)) {
    echo $user_login;
}
?>
" tabindex="10" />
		</label>
		<label>
			<?php 
_e('Password');
?>
<br />
			<input name="pwd" type="password" id="quick_password" size="13" maxlength="40" tabindex="11" />
		</label>
		<input name="redirect_to" type="hidden" value="<?php 
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:31,代码来源:login-form.php


示例18: bb_forum_form

function bb_forum_form($forum_id = 0)
{
    $forum_id = (int) $forum_id;
    if ($forum_id && !($forum = bb_get_forum($forum_id))) {
        return;
    }
    $forum_name = '';
    $forum_slug = '';
    $forum_description = '';
    $forum_position = '';
    if ($forum_id) {
        $forum_name = get_forum_name($forum_id);
        $forum_slug = apply_filters('editable_slug', $forum->forum_slug);
        $forum_description = get_forum_description($forum_id);
        $forum_position = get_forum_position($forum_id);
        $legend = __('Edit Forum');
        $submit = __('Save Changes');
        $action = 'update';
    } else {
        $legend = __('Add Forum');
        $submit = __('Add Forum');
        $action = 'add';
    }
    $forum_options = array('forum_name' => array('title' => __('Name'), 'value' => $forum_name), 'forum_slug' => array('title' => __('Slug'), 'value' => $forum_slug), 'forum_desc' => array('title' => __('Description'), 'value' => $forum_description, 'class' => 'long'), 'forum_parent' => array('title' => __('Parent'), 'type' => 'select', 'options' => bb_get_forum_dropdown(array('cut_branch' => $forum_id, 'id' => 'forum_parent', 'none' => true, 'selected' => $forum_id ? get_forum_parent($forum_id) : 0, 'disable_categories' => 0, 'options_only' => true))), 'forum_order' => array('title' => __('Position'), 'value' => $forum_position, 'class' => 'short'), 'forum_is_category' => array('title' => __('Category'), 'type' => 'checkbox', 'options' => array(1 => array('label' => __('Make this forum a category'), 'value' => bb_get_forum_is_category($forum_id))), 'note' => __('Categories are forums where new topics cannot be created. Categories usually contain a group of sub-forums.')));
    if (!$forum_id) {
        unset($forum_options['forum_slug']);
        unset($forum_options['forum_order']);
    }
    ?>
<form class="settings" method="post" id="<?php 
    echo $action;
    ?>
-forum" action="<?php 
    bb_uri('bb-admin/bb-forum.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
    ?>
" class="add:forum-list: forum-form">
	<fieldset>
		<legend><?php 
    echo $legend;
    ?>
</legend>
<?php 
    foreach ($forum_options as $option => $args) {
        bb_option_form_element($option, $args);
    }
    ?>
		<fieldset class="submit">
<?php 
    if ($forum_id) {
        ?>
			<input type="hidden" name="forum_id" value="<?php 
        echo $forum_id;
        ?>
" />
<?php 
    }
    ?>
			<?php 
    bb_nonce_field('order-forums', 'order-nonce');
    ?>
			<?php 
    bb_nonce_field($action . '-forum');
    ?>
			<input type="hidden" name="action" value="<?php 
    echo $action;
    ?>
" />
			<input class="submit" type="submit" name="submit" value="<?php 
    echo $submit;
    ?>
" />
		</fieldset>
	</fieldset>
</form>
<?php 
}
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:76,代码来源:functions.bb-admin.php


示例19: bb_admin_notice

        bb_admin_notice($messages);
    }
}
$bb_admin_body_class = ' bb-admin-tools';
bb_get_admin_header();
?>
<h2><?php 
_e('Tools');
?>
</h2>
<?php 
do_action('bb_admin_notices');
?>

<form class="settings" method="post" action="<?php 
bb_uri('bb-admin/tools-recount.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
?>
">
	<fieldset>
		<legend><?php 
_e('Re-count');
?>
</legend>
		<p><?php 
_e('To minimize database queries, bbPress keeps it\'s own count of various items like posts in each topic and topics in each forum. Occasionally these internal counters may become incorrect, you can manually re-count these items using this form.');
?>
</p>
		<p><?php 
_e('You can also clean out some stale items here, like empty tags.');
?>
</p>
开发者ID:nxtclass,项目名称:NXTClass,代码行数:31,代码来源:tools-recount.php


示例20: bb_get_header

<?php

bb_get_header();
?>

<div class="bbcrumb"><a href="<?php 
bb_uri();
?>
"><?php 
bb_option('name');
?>
</a> &raquo; <a href="<?php 
user_profile_link($user_id);
?>
"><?php 
echo get_user_display_name($user_id);
?>
</a> &raquo; <?php 
_e('Profile');
?>
</div>

<div class="vcard" role="main">

<?php 
if ($avatar = bb_get_avatar($user->ID)) {
    ?>
<div id="useravatar"><?php 
    echo $avatar;
    ?>
</div>
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:profile.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP bbcode函数代码示例发布时间:2022-05-24
下一篇:
PHP bb_update_usermeta函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap