Advertisement
Guest User

Untitled

a guest
Nov 13th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.27 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * Template Name: BuddyPress - Activity Directory
  5. *
  6. * @package BuddyPress
  7. * @subpackage Theme
  8. */
  9.  
  10. ?>
  11.  
  12. <?php get_header(); ?>
  13.  
  14. <?php if (get_option('professional_integration_single_top') <> '' && get_option('professional_integrate_singletop_enable') == 'on') echo(get_option('professional_integration_single_top')); ?>
  15.  
  16. <div id="content-top" class="top-alt"></div>
  17. <div id="content" class="clearfix content-alt">
  18. <div id="content-area">
  19. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  20. <?php get_template_part('includes/breadcrumbs'); ?>
  21.  
  22. <?php if (get_option('professional_integration_single_top') <> '' && get_option('professional_integrate_singletop_enable') == 'on') echo(get_option('professional_integration_single_top')); ?>
  23.  
  24. <div class="entry clearfix post">
  25.  
  26. <?php do_action( 'bp_before_directory_activity' ); ?>
  27.  
  28. <?php if ( !is_user_logged_in() ) : ?>
  29.  
  30. <h3><?php _e( 'Site Activity', 'buddypress' ); ?></h3>
  31.  
  32. <?php endif; ?>
  33.  
  34. <?php do_action( 'bp_before_directory_activity_content' ); ?>
  35.  
  36. <?php if ( is_user_logged_in() ) : ?>
  37.  
  38. <?php locate_template( array( 'activity/post-form.php'), true ); ?>
  39.  
  40. <?php endif; ?>
  41.  
  42. <?php do_action( 'template_notices' ); ?>
  43.  
  44. <div class="item-list-tabs activity-type-tabs" role="navigation">
  45. <ul>
  46. <?php do_action( 'bp_before_activity_type_tab_all' ); ?>
  47.  
  48. <li class="selected" id="activity-all"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/'; ?>" title="<?php _e( 'The public activity for everyone on this site.', 'buddypress' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_site_member_count() ); ?></a></li>
  49.  
  50. <?php if ( is_user_logged_in() ) : ?>
  51.  
  52. <?php do_action( 'bp_before_activity_type_tab_friends' ) ?>
  53.  
  54. <?php if ( bp_is_active( 'friends' ) ) : ?>
  55.  
  56. <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
  57.  
  58. <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ); ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li>
  59.  
  60. <?php endif; ?>
  61.  
  62. <?php endif; ?>
  63.  
  64. <?php do_action( 'bp_before_activity_type_tab_groups' ) ?>
  65.  
  66. <?php if ( bp_is_active( 'groups' ) ) : ?>
  67.  
  68. <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
  69.  
  70. <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/'; ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ); ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
  71.  
  72. <?php endif; ?>
  73.  
  74. <?php endif; ?>
  75.  
  76. <?php do_action( 'bp_before_activity_type_tab_favorites' ); ?>
  77.  
  78. <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
  79.  
  80. <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/'; ?>" title="<?php _e( "The activity I've marked as a favorite.", 'buddypress' ); ?>"><?php printf( __( 'My Favorites <span>%s</span>', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
  81.  
  82. <?php endif; ?>
  83.  
  84. <?php do_action( 'bp_before_activity_type_tab_mentions' ); ?>
  85.  
  86. <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?>" title="<?php _e( 'Activity that I have been mentioned in.', 'buddypress' ); ?>"><?php _e( 'Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><?php printf( __( '<span>%s new</span>', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ); ?></strong><?php endif; ?></a></li>
  87.  
  88. <?php endif; ?>
  89.  
  90. <?php do_action( 'bp_activity_type_tabs' ); ?>
  91. </ul>
  92. </div><!-- .item-list-tabs -->
  93.  
  94. <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
  95. <ul>
  96. <li class="feed"><a href="<?php bp_sitewide_activity_feed_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
  97.  
  98. <?php do_action( 'bp_activity_syndication_options' ); ?>
  99.  
  100. <li id="activity-filter-select" class="last">
  101. <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>
  102. <select id="activity-filter-by">
  103. <option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option>
  104. <option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option>
  105.  
  106. <?php if ( bp_is_active( 'blogs' ) ) : ?>
  107.  
  108. <option value="new_blog_post"><?php _e( 'Posts', 'buddypress' ); ?></option>
  109. <option value="new_blog_comment"><?php _e( 'Comments', 'buddypress' ); ?></option>
  110.  
  111. <?php endif; ?>
  112.  
  113. <?php if ( bp_is_active( 'forums' ) ) : ?>
  114.  
  115. <option value="new_forum_topic"><?php _e( 'Forum Topics', 'buddypress' ); ?></option>
  116. <option value="new_forum_post"><?php _e( 'Forum Replies', 'buddypress' ); ?></option>
  117.  
  118. <?php endif; ?>
  119.  
  120. <?php if ( bp_is_active( 'groups' ) ) : ?>
  121.  
  122. <option value="created_group"><?php _e( 'New Groups', 'buddypress' ); ?></option>
  123. <option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option>
  124.  
  125. <?php endif; ?>
  126.  
  127. <?php if ( bp_is_active( 'friends' ) ) : ?>
  128.  
  129. <option value="friendship_accepted,friendship_created"><?php _e( 'Friendships', 'buddypress' ); ?></option>
  130.  
  131. <?php endif; ?>
  132.  
  133. <option value="new_member"><?php _e( 'New Members', 'buddypress' ); ?></option>
  134.  
  135. <?php do_action( 'bp_activity_filter_options' ); ?>
  136.  
  137. </select>
  138. </li>
  139. </ul>
  140. </div><!-- .item-list-tabs -->
  141.  
  142. <?php do_action( 'bp_before_directory_activity_list' ); ?>
  143.  
  144. <div class="activity" role="main">
  145.  
  146. <?php locate_template( array( 'activity/activity-loop.php' ), true ); ?>
  147.  
  148. </div><!-- .activity -->
  149.  
  150. <?php do_action( 'bp_after_directory_activity_list' ); ?>
  151.  
  152. <?php do_action( 'bp_directory_activity_content' ); ?>
  153.  
  154. <?php do_action( 'bp_after_directory_activity_content' ); ?>
  155.  
  156. <?php do_action( 'bp_after_directory_activity' ); ?>
  157.  
  158. <?php the_content(); ?>
  159. <?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','Professional').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  160. <?php edit_post_link(esc_html__('Edit this page','Professional')); ?>
  161.  
  162. </div> <!-- end .entry -->
  163.  
  164. <?php if (get_option('professional_integration_single_bottom') <> '' && get_option('professional_integrate_singlebottom_enable') == 'on') echo(get_option('professional_integration_single_bottom')); ?>
  165.  
  166. <?php if (get_option('professional_show_pagescomments') == 'on') comments_template('', true); ?>
  167. <?php endwhile; endif; ?>
  168. </div> <!-- end #content-area -->
  169.  
  170. <?php get_sidebar(); ?>
  171.  
  172. </div> <!-- end #content -->
  173. <div id="content-bottom" class="bottom-alt"></div>
  174.  
  175. <?php get_footer(); ?>
  176.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement