当前位置: 首页>>代码示例>>PHP>>正文


PHP bb_uri函数代码示例

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


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


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