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


PHP bp_displayed_user_fullname函数代码示例

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


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

示例1: bp_members_activity_feed

/**
 * Hook member activity feed to <head>.
 *
 * @since 1.5.0
 */
function bp_members_activity_feed()
{
    if (!bp_is_active('activity') || !bp_is_user()) {
        return;
    }
    ?>

	<link rel="alternate" type="application/rss+xml" title="<?php 
    bloginfo('name');
    ?>
 | <?php 
    bp_displayed_user_fullname();
    ?>
 | <?php 
    _e('Activity RSS Feed', 'buddypress');
    ?>
" href="<?php 
    bp_member_activity_feed_link();
    ?>
" />

<?php 
}
开发者ID:mawilliamson,项目名称:wordpress,代码行数:28,代码来源:bp-members-template.php

示例2: bp_displayed_user_avatar

		<?php 
bp_displayed_user_avatar('type=full');
?>

	</a>
</div><!-- #item-header-avatar -->

<div id="item-header-content">

	<h2>
		<a href="<?php 
bp_displayed_user_link();
?>
"><?php 
bp_displayed_user_fullname();
?>
</a>
	</h2>

	<span class="user-nicename">@<?php 
bp_displayed_user_username();
?>
</span>
	<span class="activity"><?php 
bp_last_activity(bp_displayed_user_id());
?>
</span>

	<?php 
do_action('bp_before_member_header_meta');
开发者ID:raminjan,项目名称:logicalbones_hug,代码行数:30,代码来源:member-header.php

示例3: bloginfo

		<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

		<title><?php bp_page_title() ?></title>

		<?php do_action( 'bp_head' ) ?>

		<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

		<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

		<?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?>
			<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />
		<?php endif; ?>

		<?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>
			<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" />
		<?php endif; ?>

		<?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>
			<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" />
		<?php endif; ?>

		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
		<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />

		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

		<?php wp_head(); ?>

	</head>
开发者ID:n-sane,项目名称:zaroka,代码行数:30,代码来源:header.php

示例4: profile_questions_loop

function profile_questions_loop()
{
    global $dwqa_options;
    $submit_question_link = get_permalink($dwqa_options['pages']['submit-question']);
    $questions = get_posts(array('posts_per_page' => 1, 'author' => bp_displayed_user_id(), 'post_type' => 'dwqa-question'));
    if (!empty($questions)) {
        ?>
      <div class="dwqa-container">
        <div class="dwqa-list-question">
          <div class="dw-question" id="archive-question">
            <?php 
        foreach ($questions as $q) {
            ?>
            <article id="question-18267" class="dwqa-question">
                <header class="dwqa-header">
                    <a class="dwqa-title" href="<?php 
            echo get_post_permalink($q->ID);
            ?>
" title="Permalink to <?php 
            echo $q->post_title;
            ?>
" rel="bookmark"><?php 
            echo $q->post_title;
            ?>
</a>
                    <div class="dwqa-meta">
                        <?php 
            dwqa_question_print_status($q->ID);
            ?>
                        <span><?php 
            echo get_the_time('M d, Y, g:i a', $q->ID);
            ?>
</span>
                        &nbsp;&nbsp;&bull;&nbsp;&nbsp;
                        <?php 
            echo get_the_term_list($q->ID, 'dwqa-question_category', '<span>Category: ', ', ', '</span>');
            ?>
 
                    </div>
                </header>
            </article>
            <?php 
        }
        ?>
          </div>
        </div>
      </div>
    <?php 
    } else {
        ?>
    <div class="info" id="message">
      <?php 
        if (get_current_user_id() == bp_displayed_user_id()) {
            ?>
        Why don't you have question for us. <a href="<?php 
            echo $submit_question_link;
            ?>
">Start asking</a>!
      <?php 
        } else {
            ?>
        <p><strong><?php 
            bp_displayed_user_fullname();
            ?>
</strong> has not asked any question.</p>
      <?php 
        }
        ?>
    </div>
    <?php 
    }
}
开发者ID:linkinf88k,项目名称:dw-question-answer,代码行数:72,代码来源:buddypress.php

示例5: bplf_feed_secondary_title

/**
 * Outputs the secondary title. Used in the second part of the <title> attribute.
 *
 * @since 1.1
 * @author r-a-y
 */
function bplf_feed_secondary_title()
{
    global $this_bp_feed;
    switch ($this_bp_feed) {
        case 'member_comments':
        case 'member_blog_posts':
        case 'member_updates':
        case 'friendships':
        case 'member_topics':
        case 'member_replies':
        case 'member_forums':
            bp_displayed_user_fullname();
            break;
        case 'group_updates':
        case 'group_topics':
        case 'group_replies':
        case 'group_forums':
        case 'group_membership':
            echo bp_get_current_group_name();
            break;
        case 'forum_topic':
            global $bplf_topic;
            echo $bplf_topic->topic_title;
            break;
    }
}
开发者ID:r-a-y,项目名称:bp-lotsa-feeds,代码行数:32,代码来源:bp-lotsa-feeds.php

示例6: 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 -->
//.........这里部分代码省略.........
开发者ID:paulmedwal,项目名称:edxforumspublic,代码行数:101,代码来源:theme-generator.php

示例7: do_action

<?php do_action( 'bp_before_member_header' ) ?>

<div id="item-header-avatar">
	<a href="<?php bp_user_link() ?>">
		<?php bp_displayed_user_avatar( 'type=full' ) ?>
	</a>
</div><!-- #item-header-avatar -->

<div id="item-header-content">

	<h2 class="fn"><a href="<?php bp_displayed_user_link() ?>"><?php bp_displayed_user_fullname() ?></a> <span class="highlight">@<?php bp_displayed_user_username() ?> <span>?</span></span></h2>
	<span class="activity"><?php bp_last_activity( bp_displayed_user_id() ) ?></span>

	<?php do_action( 'bp_before_member_header_meta' ) ?>

	<div id="item-meta">
		<?php if ( function_exists( 'bp_activity_latest_update' ) ) : ?>
			<div id="latest-update">
				<?php bp_activity_latest_update( bp_displayed_user_id() ) ?>
			</div>
		<?php endif; ?>

		<div id="item-buttons">

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

		</div><!-- #item-buttons -->

		<?php
		 /***
		  * If you'd like to show specific profile fields here use:
开发者ID:n-sane,项目名称:zaroka,代码行数:31,代码来源:member-header.php


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