<div id="forums-content" class="forums"> <?php if(gf_is_forum_admin()) locate_template(array("gf/admin/home.php"),true); else if(gf_is_forum_topic_edit()) locate_template(array("gf/topic-edit.php"),true); else if(gf_is_topic()) locate_template(array("gf/topic.php"),true); else if(gf_is_tag()) locate_template(array("gf/tag.php"),true); else if(gf_is_search()) locate_template(array("gf/search.php"),true); else if(gf_is_view()) locate_template(array("gf/view.php"),true); else if(gf_is_my_topics()) locate_template(array("gf/my-topics.php"),true); else locate_template(array("gf/forum.php"),true); ?> </div> <?php do_action( 'gf_directory_forums_content' ) ?> <?php do_action( 'gf_after_directory_forums_content' ) ?> </div><!-- .padder -->
<?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>