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


PHP bbp_tab_index函数代码示例

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


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

示例1: checkbox

    static function checkbox()
    {
        ?>
		<p>
			<input name="bbp_private_reply" id="bbp_private_reply" type="checkbox"<?php 
        checked('1', self::is_private(bbp_get_reply_id()));
        ?>
 value="1" tabindex="<?php 
        bbp_tab_index();
        ?>
" />
			<?php 
        if (bbp_is_reply_edit() && get_the_author_meta('ID') != bbp_get_current_user_id()) {
            ?>
				<label for="bbp_private_reply"><?php 
            _e('Set author\'s post as private.', 'bbp_private_replies');
            ?>
</label>
			<?php 
        } else {
            ?>
				<label for="bbp_private_reply"><?php 
            _e('Set as private reply', 'bbp_private_replies');
            ?>
</label>
			<?php 
        }
        ?>
		</p>
<?php 
    }
开发者ID:082net,项目名称:bbpresskr,代码行数:31,代码来源:secret.php

示例2: _e

							<?php 
    }
    ?>

						</fieldset>

						<div class="bbp-template-notice error">
							<p><?php 
    _e('<strong>WARNING:</strong> This process cannot be undone.', 'bbpress');
    ?>
</p>
						</div>

						<div class="bbp-submit-wrapper">
							<button type="submit" tabindex="<?php 
    bbp_tab_index();
    ?>
" id="bbp_move_reply_submit" name="bbp_move_reply_submit" class="button submit"><?php 
    _e('Submit', 'bbpress');
    ?>
</button>
						</div>
					</div>

					<?php 
    bbp_move_reply_form_fields();
    ?>

				</fieldset>
			</form>
		</div>
开发者ID:vinodhip,项目名称:Function-22-Website,代码行数:31,代码来源:form-reply-move.php

示例3: _e

<div>
    <label for="signature"><?php _e("Forum Signature", "gd-bbpress-tools"); ?></label>
    <textarea name="signature" id="signature" rows="5" cols="30" tabindex="<?php bbp_tab_index(); ?>"><?php echo esc_attr($_signature); ?></textarea><br/>
    <span class="description">
        <?php echo sprintf(__("Signature length is limited to %s characters.", "gd-bbpress-tools"), $this->max_length); ?><br/>
        <?php do_action('bbp_user_edit_signature_info'); ?>
    </span>
</div>
开发者ID:niamherinoc,项目名称:rctractors,代码行数:8,代码来源:signature_buddypress.php

示例4: add_search_page_search_form

    /**
     * Render a special "new search" form on top of the search results page.
     */
    public function add_search_page_search_form()
    {
        ?>
		<div class="search-page-search-form search-page-search-form-top">
			<h2><?php 
        echo __('Need a new search?', 'Avada');
        ?>
</h2>
			<p><?php 
        echo __('If you didn\'t find what you were looking for, try a new search!', 'Avada');
        ?>
</p>
			<form role="search" method="get" class="bbp-search-form seach-form searchform" action="<?php 
        bbp_search_url();
        ?>
">
				<div class="search-table">
					<label class="screen-reader-text hidden" for="bbp_search"><?php 
        _e('Search for:', 'bbpress');
        ?>
</label>
					<input type="hidden" name="action" value="bbp-search-request" />
					<div class="search-field">
						<input tabindex="<?php 
        bbp_tab_index();
        ?>
" type="text" value="<?php 
        echo esc_attr(bbp_get_search_terms());
        ?>
" placeholder="<?php 
        _e('Search the Forum...', 'Avada');
        ?>
" name="bbp_search" id="bbp_search" />
					</div>
					<div class="search-button">
						<input tabindex="<?php 
        bbp_tab_index();
        ?>
" class="fusion-button button submit" type="submit" id="bbp_search_submit" value="&#xf002;" />
					</div>
				</div>
			</form>
		</div>
		<?php 
    }
开发者ID:agiper,项目名称:wordpress,代码行数:48,代码来源:class-avada-layout-bbpress.php

示例5: widget

    /**
     * Displays the output, the login form
     *
     * @since bbPress (r2827)
     *
     * @param mixed $args Arguments
     * @param array $instance Instance
     * @uses apply_filters() Calls 'bbp_login_widget_title' with the title
     * @uses get_template_part() To get the login/logged in form
     */
    public function widget($args = array(), $instance = array())
    {
        // Get widget settings
        $settings = $this->parse_settings($instance);
        // Typical WordPress filter
        $settings['title'] = apply_filters('widget_title', $settings['title'], $instance, $this->id_base);
        // bbPress filters
        $settings['title'] = apply_filters('bbp_login_widget_title', $settings['title'], $instance, $this->id_base);
        $settings['register'] = apply_filters('bbp_login_widget_register', $settings['register'], $instance, $this->id_base);
        $settings['lostpass'] = apply_filters('bbp_login_widget_lostpass', $settings['lostpass'], $instance, $this->id_base);
        echo $args['before_widget'];
        if (!empty($settings['title'])) {
            echo $args['before_title'] . $settings['title'] . $args['after_title'];
        }
        if (!is_user_logged_in()) {
            ?>
			<form method="post" action="<?php 
            bbp_wp_login_action(array('context' => 'login_post'));
            ?>
" class="bbp-login-form">
				<fieldset>
					<legend><?php 
            _e('Log In', 'bbpress');
            ?>
</legend>

					<div class="bbp-username form-group">
						<label for="user_login" class="sr-only"><?php 
            _e('Username', 'bbpress');
            ?>
: </label>
						<div class="input-group">
							<span class="input-group-addon">
								<span class="glyphicon ipt-icomoon-user"></span>
							</span>
							<input placeholder="<?php 
            _e('Username', 'bbpress');
            ?>
" class="form-control" type="text" name="log" value="<?php 
            bbp_sanitize_val('user_login', 'text');
            ?>
" size="20" id="user_login" tabindex="<?php 
            bbp_tab_index();
            ?>
" />
						</div>
					</div>

					<div class="bbp-password form-group">
						<label for="user_pass" class="sr-only"><?php 
            _e('Password', 'bbpress');
            ?>
: </label>
						<div class="input-group">
							<span class="input-group-addon">
								<span class="glyphicon ipt-icomoon-console"></span>
							</span>
							<input placeholder="<?php 
            _e('Password', 'bbpress');
            ?>
" class="form-control" type="password" name="pwd" value="<?php 
            bbp_sanitize_val('user_pass', 'password');
            ?>
" size="20" id="user_pass" tabindex="<?php 
            bbp_tab_index();
            ?>
" />
						</div>
					</div>

					<?php 
            do_action('login_form');
            ?>

					<div class="bbp-remember-me checkbox">
						<input type="checkbox" name="rememberme" value="forever" <?php 
            checked(bbp_get_sanitize_val('rememberme', 'checkbox'), true, true);
            ?>
 id="rememberme" tabindex="<?php 
            bbp_tab_index();
            ?>
" />
						<label for="rememberme"><?php 
            _e('Remember Me', 'bbpress');
            ?>
</label>
					</div>

					<div class="bbp-submit-wrapper btn-group">
						<?php 
//.........这里部分代码省略.........
开发者ID:andychoi,项目名称:k-knowledgebase-theme-wp,代码行数:101,代码来源:class-ipt-kb-bbp-login-widget.php

示例6: widget

    /**
     * Displays the output, the login form
     *
     * @since bbPress (r2827)
     *
     * @param mixed $args Arguments
     * @param array $instance Instance
     * @uses apply_filters() Calls 'bbp_login_widget_title' with the title
     * @uses get_template_part() To get the login/logged in form
     */
    public function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('bbp_login_widget_title', $instance['title']);
        $register = apply_filters('bbp_login_widget_register', $instance['register']);
        $lostpass = apply_filters('bbp_login_widget_lostpass', $instance['lostpass']);
        echo $before_widget;
        if (!empty($title)) {
            echo $before_title . $title . $after_title;
        }
        if (!is_user_logged_in()) {
            ?>

			<form method="post" action="<?php 
            bbp_wp_login_action(array('context' => 'login_post'));
            ?>
" class="bbp-login-form">
				<fieldset>
					<legend><?php 
            _e('Log In', 'bbpress');
            ?>
</legend>

					<div class="bbp-username">
						<label for="user_login"><?php 
            _e('Username', 'bbpress');
            ?>
: </label>
						<input type="text" name="log" value="<?php 
            bbp_sanitize_val('user_login', 'text');
            ?>
" size="20" id="user_login" tabindex="<?php 
            bbp_tab_index();
            ?>
" />
					</div>

					<div class="bbp-password">
						<label for="user_pass"><?php 
            _e('Password', 'bbpress');
            ?>
: </label>
						<input type="password" name="pwd" value="<?php 
            bbp_sanitize_val('user_pass', 'password');
            ?>
" size="20" id="user_pass" tabindex="<?php 
            bbp_tab_index();
            ?>
" />
					</div>

					<div class="bbp-remember-me">
						<input type="checkbox" name="rememberme" value="forever" <?php 
            checked(bbp_get_sanitize_val('rememberme', 'checkbox'), true, true);
            ?>
 id="rememberme" tabindex="<?php 
            bbp_tab_index();
            ?>
" />
						<label for="rememberme"><?php 
            _e('Remember Me', 'bbpress');
            ?>
</label>
					</div>

					<div class="bbp-submit-wrapper">

						<?php 
            do_action('login_form');
            ?>

						<button type="submit" name="user-submit" id="user-submit" tabindex="<?php 
            bbp_tab_index();
            ?>
" class="button submit user-submit"><?php 
            _e('Log In', 'bbpress');
            ?>
</button>

						<?php 
            bbp_user_login_fields();
            ?>

					</div>

					<?php 
            if (!empty($register) || !empty($lostpass)) {
                ?>

						<div class="bbp-login-links">
//.........这里部分代码省略.........
开发者ID:rmccue,项目名称:bbPress,代码行数:101,代码来源:bbp-core-widgets.php

示例7: print_meta_fields

    static function print_meta_fields($topic_id = 0)
    {
        $topic_id = bbp_get_topic_id($topic_id);
        $forum_id = bbp_get_forum_id(bbp_get_topic_forum_id($topic_id));
        $meta = self::meta_params($forum_id);
        if (empty($meta)) {
            return;
        }
        foreach ($meta as $m) {
            $value = $topic_id ? get_post_meta($topic_id, 'bbpmeta_' . $m['key'], true) : '';
            ?>
		<p>
			<label for="bbpmeta_<?php 
            echo $m['key'];
            ?>
"><?php 
            echo $m['label'];
            ?>
:</label><br />
			<input type="text" id="bbpmeta_<?php 
            echo $m['key'];
            ?>
" name="bbpmeta[<?php 
            echo $m['key'];
            ?>
]" tabindex="<?php 
            bbp_tab_index();
            ?>
" value="<?php 
            esc_attr_e($value);
            ?>
" />
		</p>
		<?php 
        }
    }
开发者ID:082net,项目名称:bbpresskr,代码行数:36,代码来源:meta.php

示例8: widget

    /**
     * Displays the output, the login form
     * 
     * @param mixed $args Arguments
     * @param array $instance Instance
     * @uses apply_filters() Calls 'bbp_login_widget_title' with the title
     * @uses get_template_part() To get the login/logged in form
     */
    public function widget($args = array(), $instance = array())
    {
        // Get widget settings
        $settings = $this->parse_settings($instance);
        // Typical WordPress filter
        $settings['title'] = apply_filters('widget_title', $settings['title'], $instance, $this->id_base);
        // bbPress filters
        $settings['title'] = apply_filters('bbp_login_widget_title', $settings['title'], $instance, $this->id_base);
        $settings['register'] = apply_filters('bbp_login_widget_register', $settings['register'], $instance, $this->id_base);
        $settings['lostpass'] = apply_filters('bbp_login_widget_lostpass', $settings['lostpass'], $instance, $this->id_base);
        echo $args['before_widget'];
        if (!empty($settings['title'])) {
            echo $args['before_title'] . $settings['title'] . $args['after_title'];
        }
        if (!is_user_logged_in()) {
            ?>

			<form method="post" action="<?php 
            bbp_wp_login_action(array('context' => 'login_post'));
            ?>
" class="bbp-login-form widget-login">
				<fieldset>
				
					<legend><?php 
            _e('Log In', 'bbpress');
            ?>
</legend>

					<div class="bbp-username input-group">
						<i class="fa fa-user"></i>
						<input type="text" name="log" value="<?php 
            bbp_sanitize_val('user_login', 'text');
            ?>
" size="20" id="user_login" tabindex="<?php 
            bbp_tab_index();
            ?>
" 
							placeholder="<?php 
            echo esc_attr_x('Your Username', 'bbPress', 'bunyad-widgets');
            ?>
" />
					</div>

					<div class="bbp-password input-group">
						<i class="fa fa-lock"></i>
						<input type="password" name="pwd" value="<?php 
            bbp_sanitize_val('user_pass', 'password');
            ?>
" size="20" id="user_pass" tabindex="<?php 
            bbp_tab_index();
            ?>
" 
							placeholder="<?php 
            echo esc_attr_x('Your Password', 'bbPress', 'bunyad-widgets');
            ?>
"/>
					</div>

					<div class="bbp-submit-wrapper">

						<?php 
            if (!empty($settings['lostpass'])) {
                ?>

								<a href="<?php 
                echo esc_url($settings['lostpass']);
                ?>
" title="<?php 
                esc_attr_e('Lost password?', 'bbpress');
                ?>
" class="bbp-lostpass-link lost-pass-modal"><?php 
                _e('Lost password?', 'bbpress');
                ?>
</a>

							<?php 
            }
            ?>

						<?php 
            do_action('login_form');
            ?>

						<button type="submit" name="user-submit" id="user-submit" tabindex="<?php 
            bbp_tab_index();
            ?>
" class="button submit user-submit"><?php 
            _e('Log In', 'bbpress');
            ?>
</button>

						<?php 
//.........这里部分代码省略.........
开发者ID:silverbux,项目名称:smartmag-magazine-wordpress,代码行数:101,代码来源:widget-bbp-login.php

示例9: do_action

							</div>
						</fieldset>

						<?php do_action( 'bbp_theme_after_reply_form_revisions' ); ?>

					<?php endif; ?>

					<?php do_action( 'bbp_theme_before_reply_form_submit_wrapper' ); ?>

					<div class="bbp-submit-wrapper">

						<?php do_action( 'bbp_theme_before_reply_form_submit_button' ); ?>

						<?php bbp_cancel_reply_to_link(); ?>

						<button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>

						<?php do_action( 'bbp_theme_after_reply_form_submit_button' ); ?>

					</div>

					<?php do_action( 'bbp_theme_after_reply_form_submit_wrapper' ); ?>

				</div>

				<?php bbp_reply_form_fields(); ?>

			</fieldset>

			<?php do_action( 'bbp_theme_after_reply_form' ); ?>
开发者ID:niamherinoc,项目名称:rctractors,代码行数:30,代码来源:form-reply.php

示例10: bbp_is_user_home

<h2 class="entry-title"><?php bbp_is_user_home() ? _e("Your Forum Signature", "gd-bbpress-tools") : _e("User Forum Signature", "gd-bbpress-tools"); ?></h2>
<fieldset class="bbp-form">
    <legend><?php bbp_is_user_home() ? _e("Your Forum Signature", "gd-bbpress-tools") : _e("User Forum Signature", "gd-bbpress-tools"); ?></legend>
    <?php do_action('bbp_user_edit_before_signature'); ?>
    <div>
        <label for="signature"><?php _e("Signature", "gd-bbpress-tools"); ?></label>
        <fieldset class="bbp-form password">
            <textarea name="signature" id="signature" rows="5" cols="30" tabindex="<?php bbp_tab_index(); ?>" style="width: 100%;"><?php echo esc_attr($_signature); ?></textarea>
            <span class="description">
                <?php echo sprintf(__("Signature length is limited to %s characters.", "gd-bbpress-tools"), $this->max_length); ?><br/>
                <?php do_action('bbp_user_edit_signature_info'); ?>
            </span>
        </fieldset>
    </div>
    <?php do_action('bbp_user_edit_after_signature'); ?>
</fieldset>
开发者ID:niamherinoc,项目名称:rctractors,代码行数:16,代码来源:signature_bbpress.php


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