sbrajesh

Brajesh Singh

Feb 18th, 2011
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.59 KB | None | 0 0
  1. <?php do_action( 'bp_before_wire_post_list_content' ) ?>
  2.     <?php do_action( 'bp_before_wire_post_list_form' ) ?>
  3.  
  4.     <?php if ( bp_has_wire_posts( 'item_id=' . bp_get_wire_item_id() . '&can_post=' . bp_wire_can_post() ) ) : ?>
  5.         <?php if(!(bp_is_user_profile()&&!bp_is_home())):?>
  6.             <?php bp_wire_get_post_form() ?>
  7.         <?php endif;?>
  8.            
  9.     <div class="bp-widget">
  10.             <h4><?php bp_wire_title() ?> <span class="wire-feed"><a href="<?php echo bp_wire_get_feed_link();?>">Feed</a></span><!-- <span><a href="<?php bp_wire_see_all_link() ?>"><?php _e( "See All", "bp-wire" ) ?> &rarr;</a></span>--></h4>
  11.  
  12.         <div id="wire-post-list-content">
  13.  
  14.         <?php if ( bp_wire_needs_pagination() ) : ?>
  15.                 <div class="pagination no-ajax">
  16.  
  17.                     <div id="wire-count" class="pag-count">
  18.                         <?php bp_wire_pagination_count() ?> &nbsp;
  19.                         <span class="ajax-loader"></span>
  20.                     </div>
  21.        
  22.                 <div id="wire-pagination" class="pagination-links">
  23.                     <?php bp_wire_pagination() ?>
  24.                 </div>
  25.                 <br class='clear' />
  26.             </div>
  27.         <?php endif; ?>
  28.  
  29.         <?php do_action( 'bp_before_wire_post_list' ) ?>
  30.                
  31.         <ul id="wire-post-list" class="item-list">
  32.         <?php while ( bp_wire_posts() ) : bp_the_wire_post(); ?>
  33.            
  34.                 <li>
  35.                 <?php do_action( 'bp_before_wire_post_list_metadata' ) ?>
  36.                 <div class="item-avatar">
  37.                     <?php bp_wire_post_author_avatar("height=64&width=64") ?>
  38.                 </div>
  39.                 <div class='wire-content'>
  40.                     <div class="wire-post-metadata">
  41.                     <span class='wire-author'>
  42.                         <?php echo bp_get_wire_post_author_name();?> :
  43.                     </span>
  44.                     <span class='wire-date-del'>
  45.                         <?php printf ( __( '%1$s', "bp-wire" ), bp_get_wire_post_date()) ?>
  46.                         <?php bp_wire_delete_link() ?>
  47.                     </span>
  48.                     <?php do_action( 'bp_wire_post_list_metadata' ) ?>
  49.                    
  50.                 </div>
  51.                
  52.                 <?php do_action( 'bp_after_wire_post_list_metadata' ) ?>
  53.                 <?php do_action( 'bp_before_wire_post_list_item' ) ?>
  54.                
  55.                 <div class="wire-post-content">
  56.                     <?php bp_wire_post_content() ?>
  57.                    
  58.                     <?php do_action( 'bp_wire_post_list_item' ) ?>
  59.                 </div>
  60.                 </div>
  61.                 <?php do_action( 'bp_after_wire_post_list_item' ) ?>
  62.                 <br class="clear" />
  63.             </li>
  64.            
  65.         <?php endwhile; ?>
  66.         </ul>
  67.        
  68.         <?php do_action( 'bp_after_wire_post_list' ) ?>
  69.    
  70.     </div>
  71. </div>
  72.  
  73.  
  74.     <?php else: ?>
  75. <?php if(!bp_is_home()):?>
  76. <?php bp_wire_get_post_form() ?>
  77.     <?php endif;?> 
  78.        
  79. <div id="message" class="error">
  80.     <p><?php bp_wire_no_posts_message() ?></p>
  81. </div>
  82.    
  83. <?php endif;?>
  84.    
  85. <?php do_action( 'bp_after_wire_post_list_form' ) ?>
  86.  
  87.            
  88.  
  89.  
  90. <?php do_action( 'bp_after_wire_post_list_content' ) ?>
Add Comment
Please, Sign In to add comment