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


PHP bp_buffer_template_part函数代码示例

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


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

示例1: bmf_friends_dialog

/**
 * HTML markup for friend dialog box
 */
function bmf_friends_dialog()
{
    ?>

	<header><?php 
    _e('Friends', 'bmf');
    ?>
</header>
	<button title="Close (Esc)" type="button" class="mfp-close">×</button>
	<div class="popup-scroll">
		<?php 
    echo bp_buffer_template_part('members/members-loop');
    global $members_template;
    $total = ceil((int) $members_template->total_member_count / 20);
    if ($total > 1) {
        ?>
			<ul class="activity-list item-list">
				<li class="load-more" data-next-page-no="2" data-total-page-count="<?php 
        echo $total;
        ?>
">
					<a class="bmf-load-more" href="#"><?php 
        _e('Load More', 'bmf');
        ?>
</a>
				</li>
			</ul>
		<?php 
    }
    ?>
	</div>
	<?php 
    exit;
}
开发者ID:bruce7075,项目名称:Mutual-Buddies,代码行数:37,代码来源:bp-mutual-friends-ajax.php

示例2: single_content

 /**
  * Filter the_content with the single group template part.
  *
  * @since 1.7.0
  */
 public function single_content()
 {
     return bp_buffer_template_part('groups/single/home', null, false);
 }
开发者ID:swissspidy,项目名称:BuddyPress,代码行数:9,代码来源:bp-groups-screens.php

示例3: buatp_get_template_part

function buatp_get_template_part()
{
    return bp_buffer_template_part('buatp/index');
}
开发者ID:jfeliweb,项目名称:BuddyPress-User-Account-Type,代码行数:4,代码来源:bp-user-type-template.php

示例4: single_dummy_content

 /**
  * Filter the_content with the members' single home template part.
  *
  * @since 1.7.0
  */
 public function single_dummy_content()
 {
     return bp_buffer_template_part('members/single/home', null, false);
 }
开发者ID:igniterealtime,项目名称:community-plugins,代码行数:9,代码来源:class-bp-members-theme-compat.php

示例5: directory_content

 /**
  * Filter the_content with the Example directory template part
  *
  * @package BuddyDrive Component
  * @subpackage Screens
  * @since 1.2.0
  *
  * @uses bp_buffer_template_part()
  */
 public function directory_content()
 {
     bp_buffer_template_part(apply_filters('buddydrive_directory_template', 'buddydrive'));
 }
开发者ID:MrVibe,项目名称:buddydrive,代码行数:13,代码来源:buddydrive-item-screens.php

示例6: create_content

 /**
  * Filter the_content with the doc creation template part
  *
  * @since 1.3
  */
 public function create_content()
 {
     bp_buffer_template_part('docs/single/edit');
 }
开发者ID:adisonc,项目名称:MaineLearning,代码行数:9,代码来源:theme-bridge.php

示例7: place_home_content

 /**
  * Filter the_content with the groups index template part
  *
  * @since BuddyPress (1.7)
  */
 public function place_home_content()
 {
     bp_buffer_template_part('bp-checkins-place-home');
 }
开发者ID:socialray,项目名称:surfied-2-0,代码行数:9,代码来源:bp-checkins-screens.php

示例8: dummy_content

 /**
  * Filter the_content with either the register or activate templates.
  *
  * @since BuddyPress (1.7.0)
  */
 public function dummy_content()
 {
     if (bp_is_register_page()) {
         return bp_buffer_template_part('members/register', null, false);
     } else {
         return bp_buffer_template_part('members/activate', null, false);
     }
 }
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:13,代码来源:bp-members-screens.php

示例9: single_dummy_content

 /**
  * Filter the_content with the members' activity permalink template part
  *
  * @since BuddyPress (1.7)
  */
 public function single_dummy_content()
 {
     bp_buffer_template_part('activity/single/home');
 }
开发者ID:pyropictures,项目名称:wordpress-plugins,代码行数:9,代码来源:bp-activity-screens.php

示例10: directory_content

 /**
  * Filter the_content with bp-plugin index template part
  */
 public function directory_content()
 {
     bp_buffer_template_part('project-loop');
 }
开发者ID:codehaiku,项目名称:task-breaker,代码行数:7,代码来源:project-screens.php

示例11: content

 /**
  * Filter the_content with the activity index template part
  */
 public function content()
 {
     return bp_buffer_template_part('activity/index', null, false);
 }
开发者ID:socialray,项目名称:surfied-2-0,代码行数:7,代码来源:bp-activity-hashtags.php

示例12: dummy_content

 /**
  * Filter the_content with either the register or activate templates.
  *
  * @since BuddyPress (1.7)
  */
 public function dummy_content()
 {
     if (bp_is_register_page()) {
         bp_buffer_template_part('members/register');
     } else {
         bp_buffer_template_part('members/activate');
     }
 }
开发者ID:novichkovv,项目名称:candoweightloss,代码行数:13,代码来源:bp-members-screens.php

示例13: directory_content

 /**
  * Filter the_content with the old forum index template part
  *
  * @since BuddyPress (1.7)
  */
 public function directory_content()
 {
     bp_buffer_template_part('forums/index');
 }
开发者ID:pyropictures,项目名称:wordpress-plugins,代码行数:9,代码来源:bp-forums-screens.php

示例14: single_content

 /**
  * Filter the_content with the single group template part
  *
  * @since BuddyPress (1.7)
  */
 public function single_content()
 {
     bp_buffer_template_part('groups/single/home');
 }
开发者ID:pyropictures,项目名称:wordpress-plugins,代码行数:9,代码来源:bp-groups-screens.php

示例15: create_content

 /**
  * Filter the_content with the create screen template part
  *
  * @since BuddyPress (1.7)
  */
 public function create_content()
 {
     bp_buffer_template_part('blogs/create');
 }
开发者ID:pyropictures,项目名称:wordpress-plugins,代码行数:9,代码来源:bp-blogs-screens.php


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