Пример #1
0
				<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' ) ?>

					<p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'gf' ) ?>" /></p>

					<?php wp_nonce_field( 'gf_forums_edit_topic' ) ?>

				</div>

			<?php else : ?>

				<div id="edit-post">
Пример #2
0
	

	<?php do_action( 'bp_before_directory_forums_list' ) ?>
	<div id="discussions">
		
		<table id="latest">
			<tbody><tr>
					<th><?php _e("Topic","gf");?> </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', 'buddypress' ) ?>"><?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>
Пример #3
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>
Пример #4
0
<div class="bcomb"><?php echo gf_get_forum_bread_crumb();?></div>
		<div class="pagination no-ajax">
                   
                
			<div id="post-count" class="pag-count">
				<?php gf_the_topic_pagination_count() ?>
			</div>

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

		<div id="topic-meta">
			<h3><?php gf_the_topic_title() ?> (<?php gf_the_topic_total_post_count() ?>)</h3>
                        <?php if(gf_get_the_topic_tag_count())  gf_the_topic_tags();
                         gf_show_add_tag_form();
                                                ?>
			<?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() ?> | <?php echo gf_get_add_remove_fav_link()?></div>
			<?php endif; ?>
		</div>

		<ul id="topic-post-list" class="item-list">
			<?php while ( gf_topic_posts() ) : gf_the_topic_post(); ?>

				<li id="post-<?php gf_the_topic_post_id() ?>">
					<div class="poster-meta">
						<a href="<?php gf_the_topic_post_poster_link() ?>">
							<?php gf_the_topic_post_poster_avatar( 'width=40&height=40' ) ?>