Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php global $bp;
- $user_id=$bp->displayed_user->id?$bp->displayed_user->id:$bp->loggedin_user->id;
- if(bp_is_home()|| gf_is_my_topics())
- $name=__("You","gf");
- else
- $name=bp_core_get_user_displayname ($user_id);
- if ( gf_has_forum_topics( "type=my-topics&user_id=".$user_id ) ) : ?>
- <?php do_action( 'bp_before_directory_forums_list' ) ?>
- <div id="topics-list">
- <h3><?php printf(__("Topics Started by %s","gf"),$name);?></h3>
- <ul>
- <?php while ( gf_forum_topics() ) : gf_the_forum_topic(); ?>
- <li class="<?php gf_the_topic_css_class() ?>"> <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>
- -<?php printf(__("%s replies","gf"),gf_get_the_topic_total_posts()) ?>
- -<?php printf(__("Last reply- %s ago","gf"), gf_get_the_topic_time_since_last_post()); ?>
- <div class="clear"></div>
- </li>
- <?php endwhile; ?>
- </ul>
- <div class="nav">
- <div class="clear"></div>
- <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