Ejemplo n.º 1
0
<?php while ( gf_forum() ) : ?>
<?php global $gf_forums_loop,$gf_current_forum;?>
<?php if (bb_get_forum_is_category()) : ?>
<tr<?php gf_forum_class('bb-category'); ?>>
	<td colspan="3"><?php gf_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_permalink(); ?>"><?php forum_name(); ?></a>
	<br />
	<?php forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
</tr>
<?php continue; endif; ?>
<tr<?php gf_forum_class(); ?>>
	<td><?php gf_forum_pad( '<div class="nest">' ); ?><a href="<?php gf_forum_permalink(); ?>"><?php gf_forum_name(); ?></a>
	<br />
	<?php gf_forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
	<td class="num"><?php echo gf_get_forum_topic_count($gf_current_forum->forum_id); ?></td>
        <td class="num"><?php echo gf_get_forum_posts_count($gf_current_forum->forum_id); ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; // gf_forums() ?>

<?php locate_template(array("gf/topics-loop.php"),true);?>

<?php if(gf_current_user_can_create_topic())locate_template(array("gf/topic-new.php"),true);?>

<div id="view-links">
   <?php if(is_user_logged_in()):?>
    <a href="<?php echo gf_get_unreplied_topics_link();?>" > <?php _e("View all unreplied Topics","gf");?></a>
    <?php endif;?>

</div>
</div><!--- end of discussions-->
Ejemplo n.º 2
0
<?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()):?>&mdash; <a class="new-topic" href="#new_form"><?php _e("Add New","gf");?> &raquo;</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>
				</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>
						</tr>
				<?php endwhile; ?>
			</tbody>
		</table>
		<div class="nav">
			<div id="post-count" class="pag-count">
					<?php gf_forum_pagination_count() ?>