Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <style type="text/css">
- .td-lastpost a img {float:none; vertical-align:-7px; position:relative; left:3px;}
- </style>
- <?php
- global $bp, $forum_template;
- if ( bp_has_forum_topics( 'type=active&user_id' . $bp->loggedin_user->id ) ) : ?>
- <h3 class="widgettitle">Show: <a href="http://buddypress.org/support/topics/">By Latest Post</a> | <a href="http://buddypress.org/support/topics/grouped/">By Group</a> | My Topics</h3>
- <div class="pagination">
- <div id="post-count" class="pag-count">
- <?php bp_forum_pagination_count() ?>
- </div>
- <div class="pagination-links" id="topic-pag">
- <?php bp_forum_pagination() ?>
- </div>
- </div>
- <?php do_action( 'bp_before_directory_forums_list' ) ?>
- <table class="forum zebra">
- <thead>
- <tr>
- <th id="th-title" style="width: 60%"><?php _e( 'Topic Title', 'buddypress' ) ?></th>
- <?php if ( !bp_is_group_forum() ) : ?>
- <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th>
- <?php endif; ?>
- <th id="th-lastpost"><?php _e( 'Last Post', 'buddypress' ) ?></th>
- <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?>
- </tr>
- </thead>
- <tbody>
- <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>
- <tr class="<?php bp_the_topic_css_class() ?>">
- <td class="td-title">
- <a href="<?php echo bp_core_get_user_domain(bp_get_the_topic_poster_id()); ?>"><?php echo bp_the_topic_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a>
- <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>"><?php bp_the_topic_title() ?></a>
- (<?php bp_the_topic_total_posts() ?>)
- <div class="topic-meta">
- Started by <?php bp_the_topic_poster_name(); ?>
- <!--in <a href="<?php bp_the_topic_object_permalink() ?>" title="<?php bp_the_topic_object_name() ?>"><?php bp_the_topic_object_name() ?></a>-->
- </div>
- </td>
- <?php if ( !bp_is_group_forum() ) : ?>
- <td class="td-group">
- <a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a>
- <div class="object-name"><a href="<?php bp_the_topic_object_permalink() ?>" title="<?php bp_the_topic_object_name() ?>"><?php bp_the_topic_object_name() ?></a></div>
- </td>
- <?php endif; ?>
- <td class="td-lastpost">
- <a href="<?php echo $bp->root_domain . '/' . BP_GROUPS_SLUG . '/' . $forum_template->topic->object_slug . '/forum/topic/' . $forum_template->topic->topic_slug . '/#post-'. $forum_template->topic->topic_last_post_id; ?>"><?php bp_the_topic_time_since_last_post() ?> ago</a><br />by <a href="<?php echo bp_core_get_user_domain($forum_template->topic->topic_last_poster); ?>"><?php echo bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a> <a href="<?php echo bp_core_get_user_domain($forum_template->topic->topic_last_poster); ?>"><?php bp_the_topic_last_poster_name(); ?></a>
- </td>
- <?php do_action( 'bp_directory_forums_extra_cell' ) ?>
- </tr>
- <?php do_action( 'bp_directory_forums_extra_row' ) ?>
- <?php endwhile; ?>
- </tbody>
- </table>
- <?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.', 'buddypress' ) ?></p>
- </div>
- <?php endif;?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement