Example #1
0
<?php
/*used to produce a view*/
if ( gf_has_forum_topics(gf_get_current_view()  ) ) : ?>

<?php do_action( 'bp_before_directory_forums_list' ) ?>
	<div id="topics-list">
		<h3><?php echo gf_get_current_view_description();?></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>
Example #2
0
	<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() ?>
			</div>

			<div class="pagination-links" id="topic-pag">
				<?php gf_forum_pagination() ?>
			</div>