Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( gf_has_forum_topics( ) ) : ?>
- <?php do_action( 'bp_before_directory_forums_list' ) ?>
- <div id="discussions">
- <h3><?php _e("Latest Discussions","gf");?></h3>
- <table id="latest">
- <tbody><tr>
- <th><?php _e("Topic","gf");?><?php if(gf_current_user_can_create_topic()):?>— <a class="new-topic" href="#new_form"><?php _e("Add New","gf");?> »</a><?php endif;?></th>
- <th><?php _e("Posts","gf");?></th>
- <!-- <th>Voices</th> -->
- <th><?php _e("Last Poster","gf");?></th>
- <th><?php _e("Freshness","gf");?></th>
- <th><?php _e("Forum");?></th>
- </tr>
- <?php while ( gf_forum_topics() ) : gf_the_forum_topic(); ?>
- <tr class="<?php gf_the_topic_css_class() ?>">
- <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>
- <td class="num"><?php gf_the_topic_total_posts() ?></td>
- <!-- <td class="num">8</td> -->
- <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>
- <div class="poster-name"><?php gf_the_topic_last_poster_name() ?></div>
- </td>
- <td class="num"><a href="#"><?php gf_the_topic_time_since_last_post() ?></a></td>
- <td class="forum-name"><?php echo get_forum_name(gf_get_the_topic_forum_id());?></td>
- </tr>
- <?php endwhile; ?>
- </tbody>
- </table>
- <div class="nav">
- <div id="post-count" class="pag-count">
- <?php gf_forum_pagination_count() ?>
- </div>
- <div class="pagination-links" id="topic-pag">
- <?php gf_forum_pagination() ?>
- </div>
- </div>
- </div><!-- end of discussion -->
- <?php do_action( 'bp_after_directory_forums_list' ) ?>
- <?php else: ?>
- <div id="message" class="info">
- <p><?php _e( 'Sorry, there were no forum topics found.', 'gf' ) ?></p>
- </div>
- <?php endif;?>
Add Comment
Please, Sign In to add comment