<?php if ( gf_has_topic_posts() ) : ?> <form action="<?php gf_forum_topic_action() ?>" method="post" id="forum-topic-form" class="standard-form"> <div id="topic-meta"> <h3><?php gf_the_topic_title() ?> (<?php gf_the_topic_total_post_count() ?>)</h3> <a class="button" href="<?php gf_forum_permalink() ?>/">← <?php _e( 'Back to Forum', 'gf' ) ?></a> <a class="button" href="<?php echo gf_get_current_topic_permalink() ?>/"><?php _e( 'Cancel', 'gf') ?></a></span> <?php if ( gf_current_user_can_admin() || gf_current_user_can_mod() || gf_get_the_topic_is_mine() ) : ?> <div class="admin-links"><?php gf_the_topic_admin_links() ?></div> <?php endif; ?> </div> <?php if ( gf_is_edit_topic() ) : ?> <div id="edit-topic"> <?php do_action( 'gf_before_edit_forum_topic' ) ?> <p><strong><?php _e( 'Edit Topic:', 'gf' ) ?></strong></p> <label for="topic_title"><?php _e( 'Title:', 'gf' ) ?></label> <input type="text" name="topic_title" id="topic_title" value="<?php gf_the_topic_title() ?>" /> <label for="topic_text"><?php _e( 'Content:', 'gf' ) ?></label> <textarea name="topic_text" id="topic_text"><?php gf_the_topic_text() ?></textarea> <?php do_action( 'gf_after_edit_forum_topic' ) ?>
<?php if ( gf_current_user_can_admin()||gf_current_user_can_mod() ) : ?> <!-- mimick bbpress dashboard--> <div class="admin"> <div class="dashboard" id="dashboard-right-now"> <h3><?php _e("Right Now","gf");?></h3> <?php $forum=bb_get_forum(gf_get_root_forum_id()); ?> <div class="table"> <table cellspacing="0" cellpadding="0"> <thead> <tr> <th>Totals</th> <th>Per Day</th> </tr> </thead> <tbody> <tr> <td><a href="<?php echo gf_get_forum_manage_link();?>"><span> <?php echo gf_get_total_forums_count();?></span> <?php _e("forums","gf");?></a></td> <td>N/A</td> </tr> <tr> <td><span><?php echo gf_get_total_topic_count();?></span> topics</td> <td><span>N/A</span> </td> </tr> <tr> <td><span><?php echo gf_get_total_posts_count();?></span> posts</td> <td><span>N/A</span> </td> </tr> <tr> <td><span><?php echo gf_get_total_tags();?></span> tags</td>