/**
 * 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
0
 /**
  * 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);
 }
function buatp_get_template_part()
{
    return bp_buffer_template_part('buatp/index');
}
 /**
  * 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
0
 /**
  * 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
0
 /**
  * Filter the_content with the doc creation template part
  *
  * @since 1.3
  */
 public function create_content()
 {
     bp_buffer_template_part('docs/single/edit');
 }
Пример #7
0
 /**
  * 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
0
 /**
  * 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);
     }
 }
 /**
  * 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
0
 /**
  * Filter the_content with bp-plugin index template part
  */
 public function directory_content()
 {
     bp_buffer_template_part('project-loop');
 }
Пример #11
0
 /**
  * Filter the_content with the activity index template part
  */
 public function content()
 {
     return bp_buffer_template_part('activity/index', null, false);
 }
 /**
  * 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');
     }
 }
 /**
  * Filter the_content with the old forum index template part
  *
  * @since BuddyPress (1.7)
  */
 public function directory_content()
 {
     bp_buffer_template_part('forums/index');
 }
 /**
  * Filter the_content with the single group template part
  *
  * @since BuddyPress (1.7)
  */
 public function single_content()
 {
     bp_buffer_template_part('groups/single/home');
 }
 /**
  * Filter the_content with the create screen template part
  *
  * @since BuddyPress (1.7)
  */
 public function create_content()
 {
     bp_buffer_template_part('blogs/create');
 }
 /**
  * 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;
 }
Пример #17
0
 /**
  * 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);
 }
Пример #18
0
 /**
  * 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);
 }
Пример #19
0
 /**
  * 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);
     }
 }
 public function directory_content()
 {
     bp_buffer_template_part('members/single/home');
     bp_buffer_template_part('members/single/articles');
 }