• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP bp_buffer_template_part函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: registration_form

 /**
  * Display the BuddyPress registration form instead of the default
  * Membership2 registration form.
  *
  * @since  1.0.0
  * @return string HTML code of the registration form or empty string to use
  *                the default form.
  */
 public function registration_form($code)
 {
     global $bp;
     if (self::buddypress_active()) {
         // Add Membership2 fields to the form so we know what comes next.
         $this->add_action('bp_custom_signup_steps', 'membership_fields');
         // Redirect everything after the submit button to output buffer...
         $this->add_action('bp_after_registration_submit_buttons', 'catch_nonce_field', 9999);
         // Tell BuddyPress that we want the registration form.
         $bp->signup->step = 'request-details';
         // Get the BuddyPress registration page.
         $code = bp_buffer_template_part('members/register', null, false);
         // Don't add <p> tags, the form is already formatted!
         remove_filter('the_content', 'wpautop');
     }
     return $code;
 }
开发者ID:jsandlin85,项目名称:SkylineSports,代码行数:25,代码来源:class-ms-addon-buddypress.php


示例17: create_content

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


示例18: directory_content

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


示例19: directory_content

 /**
  * Filter the_content with either the register or activate templates.
  *
  * @since BuddyPress (1.7)
  */
 public function directory_content()
 {
     if (mpp_is_gallery_component()) {
         return bp_buffer_template_part('mediapress/default/buddypress/directory/index', null, false);
     }
 }
开发者ID:markc,项目名称:mediapress,代码行数:11,代码来源:mpp-theme-compat.php


示例20: directory_content

 public function directory_content()
 {
     bp_buffer_template_part('members/single/home');
     bp_buffer_template_part('members/single/articles');
 }
开发者ID:Dannypid,项目名称:Tinymce-social-articles-1.8,代码行数:5,代码来源:social-articles-screens.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP bp_button函数代码示例发布时间:2022-05-24
下一篇:
PHP bp_blogs_update_blogmeta函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap