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


PHP bbp_favorites_permalink函数代码示例

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


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

示例1: bbp_favorites_permalink

					</span>
				</li>

				<?php 
if (bbp_is_favorites_active()) {
    ?>
					<li class="<?php 
    if (bbp_is_favorites()) {
        ?>
current<?php 
    }
    ?>
">
						<span class="bbp-user-favorites-link">
							<a href="<?php 
    bbp_favorites_permalink();
    ?>
" title="<?php 
    printf(esc_attr__("%s's Favorites", 'bbpress'), bbp_get_displayed_user_field('display_name'));
    ?>
"><?php 
    _e('Favorites', 'bbpress');
    ?>
</a>
						</span>
					</li>
				<?php 
}
?>

				<?php 
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:user-details.php

示例2: bbp_user_topics_created_url

                 <!-- <a href="<?php 
    bbp_user_topics_created_url($current_user->ID);
    ?>
"><?php 
    _e('Topics Started', 'magzilla');
    ?>
</a>
                 <a href="<?php 
    bbp_user_replies_created_url($current_user->ID);
    ?>
"><?php 
    _e('Replies Created', 'magzilla');
    ?>
</a>
                 <a href="<?php 
    bbp_favorites_permalink($current_user->ID);
    ?>
"><?php 
    _e('Favorites', 'magzilla');
    ?>
</a>
                 <a href="<?php 
    bbp_subscriptions_permalink($current_user->ID);
    ?>
"><?php 
    _e('Subscriptions', 'magzilla');
    ?>
</a> -->

            <?php 
} else {
开发者ID:phuthuytinhoc,项目名称:Demo1,代码行数:31,代码来源:widget_in.php

示例3: bbp_user_replies_created_url

</a>
                </div>

                <div class="cb-block"><i class="icon-comments"></i>
                    <a href="<?php 
    bbp_user_replies_created_url($cb_author_id);
    ?>
"><?php 
    _e('Replies Created', 'bbpress');
    ?>
</a>
                </div>

                <div class="cb-block"><i class="icon-heart"></i>
                    <a href="<?php 
    bbp_favorites_permalink($cb_author_id);
    ?>
"><?php 
    _e('Favorites', 'bbpress');
    ?>
</a>
                </div>

                <div class="cb-block"><i class="icon-bookmark"></i>
                    <a href="<?php 
    bbp_subscriptions_permalink($cb_author_id);
    ?>
"><?php 
    _e('Subscriptions', 'bbpress');
    ?>
</a>
开发者ID:luskyj89,项目名称:mt-wordpress,代码行数:31,代码来源:widget_in.php

示例4: widget


//.........这里部分代码省略.........
            ?>
</a>
					<?php 
            bbp_logout_link();
            ?>
				</div>

				<div class="clearfix"></div>

				<div class="list-group">
					<a href="<?php 
            bbp_user_profile_url(bbp_get_current_user_id());
            ?>
" class="list-group-item bbp-user-forum-role <?php 
            if (bbp_is_user_home() && bbp_is_single_user_profile()) {
                echo 'active';
            }
            ?>
">
						<span class="glyphicon ipt-icomoon-user4"></span> <?php 
            printf(__('%s Forum Role', 'ipt_kb'), '<span class="badge">' . bbp_get_user_display_role(bbp_get_current_user_id()) . '</span>');
            ?>
					</a>
					<a href="<?php 
            bbp_user_topics_created_url(bbp_get_current_user_id());
            ?>
" class="list-group-item bbp-user-topic-count <?php 
            if (bbp_is_user_home() && bbp_is_single_user_topics()) {
                echo 'active';
            }
            ?>
">
						<span class="glyphicon ipt-icomoon-bubbles4"></span> <?php 
            printf(__('%s Topics Started', 'ipt_kb'), '<span class="badge">' . bbp_get_user_topic_count_raw(bbp_get_current_user_id()) . '</span>');
            ?>
					</a>
					<a href="<?php 
            bbp_user_replies_created_url(bbp_get_current_user_id());
            ?>
" class="list-group-item bbp-user-reply-count <?php 
            if (bbp_is_user_home() && bbp_is_single_user_replies()) {
                echo 'active';
            }
            ?>
">
						<span class="glyphicon ipt-icomoon-reply"></span> <?php 
            printf(__('%s Replies Created', 'ipt_kb'), '<span class="badge">' . bbp_get_user_reply_count_raw(bbp_get_current_user_id()) . '</span>');
            ?>
					</a>
					<?php 
            if (bbp_is_favorites_active()) {
                ?>
					<a href="<?php 
                bbp_favorites_permalink(bbp_get_current_user_id());
                ?>
" class="list-group-item bbp-user-favorite-count <?php 
                if (bbp_is_user_home() && bbp_is_favorites()) {
                    echo 'active';
                }
                ?>
" title="<?php 
                printf(esc_attr__("Your Favorites", 'ipt_kb'));
                ?>
">
						<span class="glyphicon ipt-icomoon-heart"></span> <?php 
                printf(__('%s Favorites', 'ipt_kb'), '<span class="badge">' . count(bbp_get_user_favorites_topic_ids(bbp_get_current_user_id())) . '</span>');
                ?>
					</a>
					<?php 
            }
            ?>
					<?php 
            if (bbp_is_subscriptions_active()) {
                ?>
					<a href="<?php 
                bbp_subscriptions_permalink(bbp_get_current_user_id());
                ?>
" class="list-group-item bbp-user-subscribe-count <?php 
                if (bbp_is_user_home() && bbp_is_subscriptions()) {
                    echo 'active';
                }
                ?>
" title="<?php 
                printf(esc_attr__("Your Subscriptions", 'ipt_kb'));
                ?>
">
						<span class="glyphicon ipt-icomoon-bookmarks"></span> <?php 
                printf(__('%s Subscriptions', 'ipt_kb'), '<span class="badge">' . count(bbp_get_user_subscribed_topic_ids(bbp_get_current_user_id())) . '</span>');
                ?>
					</a>
					<?php 
            }
            ?>
				</div>
			</div>

		<?php 
        }
        echo $args['after_widget'];
    }
开发者ID:andychoi,项目名称:k-knowledgebase-theme-wp,代码行数:101,代码来源:class-ipt-kb-bbp-login-widget.php

示例5: test_bbp_favorites_permalink

 /**
  * @covers ::bbp_favorites_permalink
  */
 public function test_bbp_favorites_permalink()
 {
     // Pretty permalinks
     $this->set_permalink_structure('/%postname%/');
     $favorites_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/favorites/';
     // Output.
     $this->expectOutputString($favorites_url);
     bbp_favorites_permalink($this->keymaster_id);
     ob_clean();
     // Ugly permalinks
     $this->set_permalink_structure();
     $favorites_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&#038;bbp_favs=favorites';
     // Output.
     $this->expectOutputString($favorites_url);
     bbp_favorites_permalink($this->keymaster_id);
 }
开发者ID:CompositeUK,项目名称:clone.bbPress,代码行数:19,代码来源:user.php

示例6: widget


//.........这里部分代码省略.........
            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>

				</fieldset>
			</form>
			
			<?php 
            if (!empty($settings['register'])) {
                ?>
				
			<div class="bbp-register-info"><?php 
                _ex("Don't have an account?", 'bbPress', 'bunyad-widgets');
                ?>
				<a href="<?php 
                echo esc_url($settings['register']);
                ?>
" class="register-modal"><?php 
                _ex('Register Now!', 'bbPress', 'bunyad-widgets');
                ?>
</a>
			</div>
							
			<?php 
            }
            ?>
			

		<?php 
        } else {
            ?>

			<div class="bbp-logged-in">
				<a href="<?php 
            bbp_user_profile_url(bbp_get_current_user_id());
            ?>
" class="submit user-submit"><?php 
            echo get_avatar(bbp_get_current_user_id(), '60');
            ?>
</a>
				<div class="content">
				
				<?php 
            _ex('Welcome back, ', 'bbPress', 'bunyad-widgets');
            ?>
				<?php 
            bbp_user_profile_link(bbp_get_current_user_id());
            ?>
				
				<ol class="links">
					<li><a href="<?php 
            bbp_user_profile_edit_url(bbp_get_current_user_id());
            ?>
">
						<?php 
            _ex('Edit Profile', 'bbPress', 'bunyad-widgets');
            ?>
</a></li>
					<li><a href="<?php 
            bbp_subscriptions_permalink(bbp_get_current_user_id());
            ?>
">
						<?php 
            _ex('Subscriptions', 'bbPress', 'bunyad-widgets');
            ?>
</a></li>
					<li><a href="<?php 
            bbp_favorites_permalink(bbp_get_current_user_id());
            ?>
">
						<?php 
            _ex('Favorites', 'bbPress', 'bunyad-widgets');
            ?>
</a></li>
				</ol>

				<?php 
            bbp_logout_link();
            ?>
				
				</div>
			</div>

		<?php 
        }
        echo $args['after_widget'];
    }
开发者ID:silverbux,项目名称:smartmag-magazine-wordpress,代码行数:101,代码来源:widget-bbp-login.php

示例7: _ex

    ?>
">
							<?php 
    _ex('Edit Profile', 'bbPress', 'bunyad');
    ?>
</a></li>
						<li><a href="<?php 
    bbp_subscriptions_permalink(bbp_get_current_user_id());
    ?>
">
							<?php 
    _ex('Subscriptions', 'bbPress', 'bunyad');
    ?>
</a></li>
						<li><a href="<?php 
    bbp_favorites_permalink(bbp_get_current_user_id());
    ?>
">
							<?php 
    _ex('Favorites', 'bbPress', 'bunyad');
    ?>
</a></li>
					</ol>
	
					<?php 
    bbp_logout_link();
    ?>
					
					</div>
				</div>
			
开发者ID:silverbux,项目名称:smartmag-magazine-wordpress,代码行数:30,代码来源:auth-modal.php


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