本文整理汇总了PHP中bp_get_displayed_user_nav函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_get_displayed_user_nav函数的具体用法?PHP bp_get_displayed_user_nav怎么用?PHP bp_get_displayed_user_nav使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_get_displayed_user_nav函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: widget_community_nav
//.........这里部分代码省略.........
echo site_url();
?>
/<?php
echo BP_FORUMS_SLUG;
?>
/" title="<?php
_e('Forums', 'cc');
?>
"><?php
_e('Forums', 'cc');
?>
</a>
</li>
<?php
}
?>
<?php
}
?>
<?php
if (bp_is_active('blogs') && is_multisite()) {
?>
<li<?php
if (bp_is_blogs_component()) {
?>
class="selected"<?php
}
?>
>
<a href="<?php
echo site_url();
?>
/<?php
echo BP_BLOGS_SLUG;
?>
/" title="<?php
_e('Blogs', 'cc');
?>
"><?php
_e('Blogs', 'cc');
?>
</a>
</li>
<?php
}
?>
</ul>
<?php
if (bp_is_single_item() || bp_is_user()) {
?>
<?php
if (bp_is_group()) {
?>
<div id="community-single-nav" class="widget-title" >
<ul class="item-list">
<h3 class="widgettitle"><?php
_e('@ Group', 'cc');
?>
</h3>
<?php
bp_get_options_nav();
?>
<?php
do_action('bp_group_options_nav');
?>
</ul>
</div>
<?php
}
?>
<?php
if (bp_is_user()) {
?>
<div id="community-single-nav" class="widget-title" >
<ul class="item-list">
<h3 class="widgettitle"><?php
_e('@ Member', 'cc');
?>
</h3>
<?php
bp_get_displayed_user_nav();
?>
<?php
do_action('bp_group_options_nav');
?>
</ul>
</div>
<?php
}
?>
<?php
}
?>
</div>
<?php
}
示例2: get_header
<?php get_header() ?>
<div id="content">
<div class="padder">
<?php do_action( 'bp_before_member_home_content' ) ?>
<div id="item-header">
<?php locate_template( array( 'members/single/member-header.php' ), true ) ?>
</div><!-- #item-header -->
<div id="item-nav">
<div class="item-list-tabs no-ajax" id="object-nav">
<ul>
<?php bp_get_displayed_user_nav() ?>
<?php do_action( 'bp_members_directory_member_types' ) ?>
</ul>
</div>
</div><!-- #item-nav -->
<div id="item-body">
<?php do_action( 'bp_before_member_body' ) ?>
<?php
if(bp_flickr_is_settings())
locate_template( array( 'flickr/settings.php' ), true );
else
locate_template( array( 'flickr/flickr.php' ), true );
?>
示例3: bp_get_displayed_user_nav
?>
</div>
<!-- #item-header -->
</div>
<?php
}
?>
<div class="col-sm-12">
<div id="item-nav">
<div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
<ul class="responsive-tabs">
<?php
bp_get_displayed_user_nav();
?>
<?php
do_action('bp_member_options_nav');
?>
</ul>
</div>
</div>
<!-- #item-nav -->
</div>
<div id="item-body" role="main" class="col-sm-12">
示例4: before_member_home_content
/**
* members home: add the sidebars and their default widgets to the members header
*
* located: members/home.php do_action( 'bp_before_member_home_content' )
*
* @package Custom Community
* @since 1.8.3
*/
function before_member_home_content()
{
global $cap;
if ($cap->bp_profile_header == false || $cap->bp_profile_header == 'on' || $cap->bp_profile_header == __('on', 'cc')) {
?>
<div id="item-header">
<?php
if (!dynamic_sidebar('memberheader')) {
?>
<?php
locate_template(array('members/single/member-header.php'), true);
?>
<?php
}
?>
<div class="clear"></div>
<?php
if (is_active_sidebar('memberheaderleft')) {
?>
<div class="widgetarea cc-widget span4">
<?php
dynamic_sidebar('memberheaderleft');
?>
</div>
<?php
}
?>
<?php
if (is_active_sidebar('memberheadercenter')) {
?>
<div class="<?php
if (!is_active_sidebar('memberheaderleft')) {
echo 'style="group-header-left';
}
?>
widgetarea cc-widget span4">
<?php
dynamic_sidebar('memberheadercenter');
?>
</div>
<?php
}
?>
<?php
if (is_active_sidebar('memberheaderright')) {
?>
<div class="widgetarea cc-widget cc-widget-right span4">
<?php
dynamic_sidebar('memberheaderright');
?>
</div>
<?php
}
?>
</div>
<?php
} else {
?>
<div id="item-header">
<h2 class="fn"><a href="<?php
bp_user_link();
?>
"><?php
bp_displayed_user_fullname();
?>
</a> <span class="highlight">@<?php
bp_displayed_user_username();
?>
<span>?</span></span></h2>
</div>
<?php
}
?>
<?php
if ($cap->bp_default_navigation == true) {
?>
<div id="item-nav">
<div class="item-list-tabs no-ajax" id="object-nav">
<ul>
<?php
bp_get_displayed_user_nav();
?>
<?php
do_action('bp_member_options_nav');
?>
</ul>
</div>
</div><!-- #item-nav -->
//.........这里部分代码省略.........