[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * BuddyPress - Groups Single Forum Edit. 4 * 5 * @package BuddyPress 6 * @subpackage bp-legacy 7 */ 8 9 /** 10 * Fires at the top of the group forum edit form. 11 * 12 * @since 1.2.4 13 */ 14 do_action( 'bp_before_group_forum_edit_form' ); ?> 15 16 <?php if ( bp_has_forum_topic_posts() ) : ?> 17 18 <form action="<?php bp_forum_topic_action(); ?>" method="post" id="forum-topic-form" class="standard-form"> 19 20 <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Forums secondary navigation', 'buddypress' ); ?>" role="navigation"> 21 <ul> 22 <li> 23 <a href="#post-topic-reply"><?php _e( 'Reply', 'buddypress' ); ?></a> 24 </li> 25 26 <?php if ( bp_forums_has_directory() ) : ?> 27 28 <li> 29 <a href="<?php bp_forums_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress' ); ?></a> 30 </li> 31 32 <?php endif; ?> 33 34 </ul> 35 </div> 36 37 <div id="topic-meta"> 38 <h3><?php _e( 'Edit:', 'buddypress' ); ?> <?php bp_the_topic_title(); ?> (<?php bp_the_topic_total_post_count(); ?>)</h3> 39 40 <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?> 41 42 <div class="last admin-links"> 43 44 <?php bp_the_topic_admin_links(); ?> 45 46 </div> 47 48 <?php endif; ?> 49 50 <?php 51 52 /** 53 * Fires at the end of the group forum topic meta section. 54 * 55 * @since 1.2.5 56 */ 57 do_action( 'bp_group_forum_topic_meta' ); ?> 58 59 </div> 60 61 <?php if ( bp_is_edit_topic() ) : ?> 62 63 <div id="edit-topic"> 64 65 <?php 66 67 /** 68 * Fires before the group forum topic form fields. 69 * 70 * @since 1.2.0 71 */ 72 do_action( 'bp_group_before_edit_forum_topic' ); ?> 73 74 <label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label> 75 <input type="text" name="topic_title" id="topic_title" value="<?php bp_the_topic_title(); ?>" maxlength="100" /> 76 77 <label for="topic_text"><?php _e( 'Content:', 'buddypress' ); ?></label> 78 <textarea name="topic_text" id="topic_text"><?php bp_the_topic_text(); ?></textarea> 79 80 <label for="topic_tags"><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label> 81 <input type="text" name="topic_tags" id="topic_tags" value="<?php bp_forum_topic_tag_list(); ?>" /> 82 83 <?php 84 85 /** 86 * Fires after the group forum topic form fields. 87 * 88 * @since 1.2.0 89 */ 90 do_action( 'bp_group_after_edit_forum_topic' ); ?> 91 92 <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?>" /></p> 93 94 <?php wp_nonce_field( 'bp_forums_edit_topic' ); ?> 95 96 </div> 97 98 <?php else : ?> 99 100 <div id="edit-post"> 101 102 <?php 103 104 /** 105 * Fires before the group edit forum textarea. 106 * 107 * @since 1.2.0 108 */ 109 do_action( 'bp_group_before_edit_forum_post' ); ?> 110 111 <label for="post_text" class="bp-screen-reader-text"><?php 112 /* translators: accessibility text */ 113 _e( 'Edit text', 'buddypress' ); 114 ?></label> 115 <textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text(); ?></textarea> 116 117 <?php 118 119 /** 120 * Fires after the group edit forum textarea. 121 * 122 * @since 1.2.0 123 */ 124 do_action( 'bp_group_after_edit_forum_post' ); ?> 125 126 <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?>" /></p> 127 128 <?php wp_nonce_field( 'bp_forums_edit_post' ); ?> 129 130 </div> 131 132 <?php endif; ?> 133 134 </form><!-- #forum-topic-form --> 135 136 <?php else: ?> 137 138 <div id="message" class="info"> 139 <p><?php _e( 'This topic does not exist.', 'buddypress' ); ?></p> 140 </div> 141 142 <?php endif;?> 143 144 <?php 145 146 /** 147 * Fires at the end of the group forum edit form. 148 * 149 * @since 1.2.4 150 */ 151 do_action( 'bp_after_group_forum_edit_form' );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Dec 7 01:01:35 2017 | Cross-referenced by PHPXref 0.7.1 |