sbrajesh

Brajesh Singh

Feb 26th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.07 KB | None | 0 0
  1. <?php if ( gf_has_forum_topics(  ) ) : ?>
  2.  
  3.    
  4.  
  5.     <?php do_action( 'bp_before_directory_forums_list' ) ?>
  6.     <div id="discussions">
  7.         <h3><?php _e("Latest Discussions","gf");?></h3>
  8.         <table id="latest">
  9.             <tbody><tr>
  10.                     <th><?php _e("Topic","gf");?><?php if(gf_current_user_can_create_topic()):?>&mdash; <a class="new-topic" href="#new_form"><?php _e("Add New","gf");?> &raquo;</a><?php endif;?></th>
  11.                     <th><?php _e("Posts","gf");?></th>
  12.                             <!-- <th>Voices</th> -->
  13.                     <th><?php _e("Last Poster","gf");?></th>
  14.                     <th><?php _e("Freshness","gf");?></th>
  15.  
  16.                                         <th><?php _e("Forum");?></th>
  17.                 </tr>
  18.                 <?php while ( gf_forum_topics() ) : gf_the_forum_topic(); ?>
  19.                         <tr class="<?php gf_the_topic_css_class() ?>">
  20.                             <td> <a class="topic-title" href="<?php gf_the_topic_permalink() ?>" title="<?php gf_the_topic_title() ?> - <?php _e( 'Permalink', 'gf' ) ?>"><?php gf_the_topic_title() ?></a></td>
  21.                             <td class="num"><?php gf_the_topic_total_posts() ?></td>
  22.                             <!-- <td class="num">8</td> -->
  23.                             <td class="last-poster"><a href="<?php gf_the_topic_permalink() ?>"><?php gf_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a>
  24.                                 <div class="poster-name"><?php gf_the_topic_last_poster_name() ?></div>
  25.                             </td>
  26.                             <td class="num"><a href="#"><?php gf_the_topic_time_since_last_post() ?></a></td>
  27.                                                         <td class="forum-name"><?php echo get_forum_name(gf_get_the_topic_forum_id());?></td>
  28.                         </tr>
  29.                 <?php endwhile; ?>
  30.             </tbody>
  31.         </table>
  32.         <div class="nav">
  33.             <div id="post-count" class="pag-count">
  34.                     <?php gf_forum_pagination_count() ?>
  35.             </div>
  36.  
  37.             <div class="pagination-links" id="topic-pag">
  38.                 <?php gf_forum_pagination() ?>
  39.             </div>
  40.  
  41.     </div>                     
  42.                    
  43.     </div><!-- end of discussion -->
  44.                    
  45.    
  46.     <?php do_action( 'bp_after_directory_forums_list' ) ?>
  47.  
  48. <?php else: ?>
  49.  
  50.     <div id="message" class="info">
  51.         <p><?php _e( 'Sorry, there were no forum topics found.', 'gf' ) ?></p>
  52.     </div>
  53.  
  54. <?php endif;?>
Add Comment
Please, Sign In to add comment