Esempio n. 1
0
<div class="bcomb"><?php echo gf_get_forum_bread_crumb();?></div>

<div id="discussions">
<?php if ( gf_has_forums() ) : ?>
<h2><?php _e('Forums','gf'); ?></h2>
<table id="forumlist">

<tr>
	<th><?php _e('Main Theme','gf'); ?></th>
	<th><?php _e('Topics','gf'); ?></th>
	<th><?php _e('Posts','gf'); ?></th>
</tr>
<?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() ?>
Esempio n. 2
0
<div class="forums">
<!--list forums-->
	<?php if ( gf_has_forums('child_of='.gf_get_root_forum_id()) ) : ?>
	<h2><?php _e('Manage Forums','gf'); ?></h2>
	<ul id="forumlist">
	<?php while ( gf_forum() ) : ?>
	<?php global $gf_forums_loop,$gf_current_forum;//print_r($bb_forums_loop);echo "breakkkk<br/><br />";?>
		<?php if (bb_get_forum_is_category()) : ?>
		<li <?php gf_forum_class('bb-category'); ?>>
			<?php gf_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a>
			<br /><?php forum_description( array( 'before' => '<small> &#8211; ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?>
		<div class="row-actions"><a href="<?php echo gf_get_forum_permalink($gf_current_forum->forum_id);?>"><?php _e("View","gf");?></a>|<a href="<?php echo gf_get_forum_edit_link($gf_current_forum->forum_id);?>"><?php _e("Edit","gf");?></a>|<a href="<?php echo gf_get_forum_delete_link($gf_current_forum->forum_id);?>"><?php _e("Delete","gf");?></a></div>	
		</li>
<?php continue; endif; ?>
	<li <?php gf_forum_class(); ?>>
		<?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>' ); ?>
	<div class="row-actions"><a href="<?php echo gf_get_forum_permalink($gf_current_forum->forum_id);?>"><?php _e("View","gf");?></a>|<a href="<?php echo gf_get_forum_edit_link($gf_current_forum->forum_id);?>"><?php _e("Edit","gf");?></a>|<a href="<?php echo gf_get_forum_delete_link($gf_current_forum->forum_id);?>"><?php _e("Delete","gf");?></a></div>	
	</li>
<?php endwhile; ?>
</ul>
<?php endif; //gf_forums() ?>
<!-- Load the Create forum form--> 
<?php locate_template(array("gf/admin/create-forum.php"),true);?>
</div>