- Timestamp:
- 04/23/2015 05:08:50 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/forum/topic.php
r9604 r9786 1 <?php do_action( 'bp_before_group_forum_topic' ); ?> 1 <?php 2 3 /** 4 * Fires at the top of the group forum topic template. 5 * 6 * @since BuddyPress (1.2.4) 7 */ 8 do_action( 'bp_before_group_forum_topic' ); ?> 2 9 3 10 <form action="<?php bp_forum_topic_action(); ?>" method="post" id="forum-topic-form" class="standard-form"> … … 5 12 <ul> 6 13 <?php if ( is_user_logged_in() ) : ?> 7 14 8 15 <li> 9 16 <a href="<?php bp_forum_topic_new_reply_link(); ?>" class="new-reply-link"><?php _e( 'New Reply', 'buddypress' ); ?></a> 10 17 </li> 11 18 12 19 <?php endif; ?> 13 20 14 21 <?php if ( bp_forums_has_directory() ) : ?> 15 22 16 23 <li> 17 24 <a href="<?php bp_forums_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress' ); ?></a> 18 25 </li> 19 26 20 27 <?php endif; ?> 21 28 22 29 </ul> 23 30 </div> 24 31 25 32 <div id="topic-meta"> 26 33 <h3><?php bp_the_topic_title(); ?> (<?php bp_the_topic_total_post_count(); ?>)</h3> 27 34 28 35 <?php if ( bp_forum_topic_has_tags() ) : ?> 29 36 30 37 <div class="topic-tags"> 31 38 32 39 <?php _e( 'Topic tags:', 'buddypress' ); ?> <?php bp_forum_topic_tag_list(); ?> 33 34 </div> 35 40 41 </div> 42 36 43 <?php endif; ?> 37 44 38 45 <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?> 39 46 40 47 <div class="last admin-links"> 41 48 42 49 <?php bp_the_topic_admin_links(); ?> 43 44 </div> 45 50 51 </div> 52 46 53 <?php endif; ?> 47 48 <?php do_action( 'bp_group_forum_topic_meta' ); ?> 49 54 55 <?php 56 57 /** 58 * Fires at the end of the group forum topic meta markup. 59 * 60 * @since BuddyPress (1.2.5) 61 */ 62 do_action( 'bp_group_forum_topic_meta' ); ?> 63 50 64 </div> 51 65 … … 69 83 </div> 70 84 71 <?php do_action( 'bp_before_group_forum_topic_posts' ); ?> 85 <?php 86 87 /** 88 * Fires before the listing of the group forum topic posts. 89 * 90 * @since BuddyPress (1.2.4) 91 */ 92 do_action( 'bp_before_group_forum_topic_posts' ); ?> 72 93 73 94 <ul id="topic-post-list" class="item-list" role="main"> … … 91 112 <?php endif; ?> 92 113 93 <?php do_action( 'bp_group_forum_post_meta' ); ?> 114 <?php 115 116 /** 117 * Fires inside the group forum post meta markup. 118 * 119 * @since BuddyPress (1.2.5) 120 */ 121 do_action( 'bp_group_forum_post_meta' ); ?> 94 122 95 123 <a href="#post-<?php bp_the_topic_post_id(); ?>" title="<?php esc_attr_e( 'Permanent link to this post', 'buddypress' ); ?>">#</a> … … 100 128 </ul><!-- #topic-post-list --> 101 129 102 <?php do_action( 'bp_after_group_forum_topic_posts' ); ?> 130 <?php 131 132 /** 133 * Fires before the listing of the group forum topic posts. 134 * 135 * @since BuddyPress (1.2.4) 136 */ 137 do_action( 'bp_after_group_forum_topic_posts' ); ?> 103 138 104 139 <div class="pagination no-ajax"> … … 115 150 116 151 <?php else: ?> 117 152 118 153 <div id="message" class="info"> 119 154 <p><?php _e( 'There are no posts for this topic.', 'buddypress' ); ?></p> 120 155 </div> 121 156 122 157 <?php endif;?> 123 158 … … 135 170 <?php endif; ?> 136 171 137 <?php do_action( 'groups_forum_new_reply_before' ); ?> 172 <?php 173 174 /** 175 * Fires before the display of the group forum new reply section. 176 * 177 * @since BuddyPress (1.0.0) 178 */ 179 do_action( 'groups_forum_new_reply_before' ); ?> 138 180 139 181 <h4><?php _e( 'Add a reply:', 'buddypress' ); ?></h4> … … 145 187 </div> 146 188 147 <?php do_action( 'groups_forum_new_reply_after' ); ?> 189 <?php 190 191 /** 192 * Fires after the display of the group forum new reply section. 193 * 194 * @since BuddyPress (1.0.0) 195 */ 196 do_action( 'groups_forum_new_reply_after' ); ?> 148 197 149 198 <?php wp_nonce_field( 'bp_forums_new_reply' ); ?> … … 164 213 </form><!-- #forum-topic-form --> 165 214 166 <?php do_action( 'bp_after_group_forum_topic' ); ?> 215 <?php 216 217 /** 218 * Fires at the end of the group forum topic template. 219 * 220 * @since BuddyPress (1.2.4) 221 */ 222 do_action( 'bp_after_group_forum_topic' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.