Esempio n. 1
0
<?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() ?>/">&larr; <?php _e( 'Back to Forum', 'gf' ) ?></a> &nbsp; <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' ) ?>
Esempio n. 2
0
				<?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' ) ?>
						</a>
						<?php echo sprintf( __( '%s said %s ago:', 'gf' ), gf_get_the_topic_post_poster_name(), gf_get_the_topic_post_time_since() ) ?>
					</div>

					<div class="post-content">