本文整理汇总了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;
}
示例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);
}
示例3: buatp_get_template_part
function buatp_get_template_part()
{
return bp_buffer_template_part('buatp/index');
}
示例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);
}
示例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'));
}
示例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');
}
示例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');
}
示例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);
}
}
示例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');
}
示例10: directory_content
/**
* Filter the_content with bp-plugin index template part
*/
public function directory_content()
{
bp_buffer_template_part('project-loop');
}
示例11: content
/**
* Filter the_content with the activity index template part
*/
public function content()
{
return bp_buffer_template_part('activity/index', null, false);
}
示例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');
}
}
示例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');
}
示例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');
}
示例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');
}