Changeset 3119 for branches/plugin/bbp-admin/bbp-replies.php
- Timestamp:
- 05/08/2011 09:05:44 AM (15 years ago)
- File:
-
- 1 edited
-
branches/plugin/bbp-admin/bbp-replies.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-admin/bbp-replies.php
r3097 r3119 53 53 $this->_setup_globals(); 54 54 $this->_setup_actions(); 55 $this->_setup_help(); 55 56 } 56 57 … … 109 110 // Setup the post type for this admin component 110 111 $this->post_type = bbp_get_reply_post_type(); 112 } 113 114 /** 115 * Contextual help for replies 116 * 117 * @since bbPress (r3119) 118 * @access private 119 */ 120 function _setup_help() { 121 122 // Prevent debug notices 123 $contextual_help = ''; 124 125 /** New/Edit **********************************************************/ 126 127 $bbp_contextual_help[] = __( 'The reply title field and the big reply editing area are fixed in place, but you can reposition all the other boxes using drag and drop, and can minimize or expand them by clicking the title bar of the box. Use the Screen Options tab to unhide more boxes (Reply Attributes, Slug) or to choose a 1- or 2-column layout for this screen.', 'bbpress' ); 128 $bbp_contextual_help[] = __( '<strong>Title</strong> - Enter a title for your reply. After you enter a title, you will see the permalink below, which you can edit.', 'bbpress' ); 129 $bbp_contextual_help[] = __( '<strong>Post editor</strong> - Enter the text for your reply. There are two modes of editing: Visual and HTML. Choose the mode by clicking on the appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last icon in the row to get a second row of controls. The screen icon just before that allows you to expand the edit box to full screen. The HTML mode allows you to enter raw HTML along with your forum text. You can insert media files by clicking the icons above the post editor and following the directions.', 'bbpress' ); 130 $bbp_contextual_help[] = __( '<strong>Reply Attributes</strong> - Select the attributes that your reply should have. The Parent Topic dropdown determines the parent topic that the reply belongs to.', 'bbpress' ); 131 $bbp_contextual_help[] = __( '<strong>Publish</strong> - The Publish box will allow you to save your reply as Draft or Pending Review. You may Preview your reply before it is published as well. The Visibility will determine whether the reply is Public, Password protected (requiring a password on the site to view) or Private (only the author will have access to it). Replies may be published immediately by clicking the dropdown, or at a specific date and time by clicking the Edit link.', 'bbpress' ); 132 $bbp_contextual_help[] = __( '<strong>Revisions</strong> - Revisions show past versions of the saved reply. Each revision can be compared to the current version, or another revision. Revisions can also be restored to the current version.', 'bbpress' ); 133 $bbp_contextual_help[] = __( '<strong>For more information:</strong>', 'bbpress' ); 134 $bbp_contextual_help[] = 135 '<ul>' . 136 '<li>' . __( '<a href="http://bbpress.org/documentation/">bbPress Documentation</a>', 'bbpress' ) . '</li>' . 137 '<li>' . __( '<a href="http://bbpress.org/forums/">bbPress Support Forums</a>', 'bbpress' ) . '</li>' . 138 '</ul>' ; 139 140 // Wrap each help item in paragraph tags 141 foreach( $bbp_contextual_help as $paragraph ) 142 $contextual_help .= '<p>' . $paragraph . '</p>'; 143 144 // Add help 145 add_contextual_help( bbp_get_reply_post_type(), $contextual_help ); 146 147 // Reset 148 $contextual_help = $bbp_contextual_help = ''; 149 150 /** Post Rows *********************************************************/ 151 152 $bbp_contextual_help[] = __( 'This screen displays the replies created on your site.', 'bbpress' ); 153 $bbp_contextual_help[] = __( 'You can customize the display of this screen in a number of ways:', 'bbpress' ); 154 $bbp_contextual_help[] = 155 '<ul>' . 156 '<li>' . __( 'You can hide/display columns based on your needs (Forum, Topic, Author, and Created) and decide how many replies to list per screen using the Screen Options tab.') . '</li>' . 157 '<li>' . __( 'You can filter the list of replies by reply status using the text links in the upper left to show All, Published, Pending Review, Draft, or Trashed topics. The default view is to show all replies.') . '</li>' . 158 '<li>' . __( 'You can view replies in a simple title list or with an excerpt. Choose the view you prefer by clicking on the icons at the top of the list on the right.') . '</li>' . 159 '<li>' . __( 'You can refine the list to show only replies from a specific month by using the dropdown menus above the replies list. Click the Filter button after making your selection.') . '</li>' . 160 '<li>' . __( 'You can also show only replies from a specific parent forum by using the parent forum dropdown above the replies list and selecting the parent forum. Click the Filter button after making your selection.') . '</li>' . 161 '</ul>'; 162 163 $bbp_contextual_help[] = __( 'Hovering over a row in the replies list will display action links that allow you to manage your reply. You can perform the following actions:', 'bbpress' ); 164 $bbp_contextual_help[] = 165 '<ul>' . 166 '<li>' . __( 'Edit takes you to the editing screen for that reply. You can also reach that screen by clicking on the reply title.', 'bbpress' ) . '</li>' . 167 '<li>' . __( 'Trash removes your reply from this list and places it in the trash, from which you can permanently delete it.', 'bbpress' ) . '</li>' . 168 '<li>' . __( 'View will take you to your live reply to view the reply.', 'bbpress' ) . '</li>' . 169 '<li>' . __( 'Spam will mark the topic as spam, preventing further replies to it and removing it from the site’s public view.', 'bbpress' ) . '</li>' . 170 '</ul>'; 171 172 $bbp_contextual_help[] = __( 'You can also edit multiple replies at once. Select the replies you want to edit using the checkboxes, select Edit from the Bulk Actions menu and click Apply. You will be able to change the metadata for all selected replies at once. To remove a reply from the grouping, just click the x next to its name in the Bulk Edit area that appears.', 'bbpress' ); 173 $bbp_contextual_help[] = __( 'The Bulk Actions menu may also be used to delete multiple replies at once. Select Delete from the dropdown after making your selection.', 'bbpress' ); 174 $bbp_contextual_help[] = __( '<strong>For more information:</strong>', 'bbpress' ); 175 $bbp_contextual_help[] = 176 '<ul>' . 177 '<li>' . __( '<a href="http://bbpress.org/documentation/">bbPress Documentation</a>', 'bbpress' ) . '</li>' . 178 '<li>' . __( '<a href="http://bbpress.org/forums/">bbPress Support Forums</a>', 'bbpress', 'bbpress' ) . '</li>' . 179 '</ul>'; 180 181 // Wrap each help item in paragraph tags 182 foreach( $bbp_contextual_help as $paragraph ) 183 $contextual_help .= '<p>' . $paragraph . '</p>'; 184 185 // Add help 186 add_contextual_help( 'edit-' . bbp_get_reply_post_type(), $contextual_help ); 111 187 } 112 188
Note: See TracChangeset
for help on using the changeset viewer.