Changeset 868 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/comments.php
- Timestamp:
- 09/23/2014 06:30:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/comments.php
r768 r868 40 40 * See wporg_developer_comment() in inc/template-tags.php for more. 41 41 */ 42 wp_list_comments( array( 'callback' => 'wporg_developer_ example' ) );42 wp_list_comments( array( 'callback' => 'wporg_developer_user_note' ) ); 43 43 ?> 44 44 </ol><!-- .comment-list --> … … 54 54 <?php endif; // have_comments() ?> 55 55 56 <?php if ( DevHub\can_user_post_ example( false, get_the_ID() ) ) : ?>56 <?php if ( DevHub\can_user_post_note( false, get_the_ID() ) ) : ?> 57 57 58 <p id="add- example" style="display:none;"><a href=""><?php _e( 'Have an example to add?', 'wporg' ); ?></a></p>58 <p id="add-user-note" style="display:none;"><a href=""><?php _e( 'Have a note to contribute?', 'wporg' ); ?></a></p> 59 59 60 60 <?php comment_form( array( 61 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Add Example', 'noun', 'wporg' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', 62 'comment_notes_after' => '<p class="examples-are-gpl">' . 61 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Add Note', 'noun', 'wporg' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', 62 'comment_notes_after' => '<p>' . 63 __( 'Notes should supplement code reference entries, for example examples, tips, explanations, use-cases, and best practices.', 'wporg' ) . 64 '</p><p>' . 65 __( 'Do not use this form for support requests, discussions, spam, bug reports, complaints, or self-promotion. Entries of this nature will be deleted.', 'wporg' ) . 66 '</p><p>' . 67 sprintf( __( 'You can enter text and code. Code should be wrapped in the %s shortcode.', 'wporg' ), '[code][/code]' ) . 68 '</p><p class="user-notes-are-gpl">' . 63 69 sprintf( __( '<strong>NOTE:</strong> All contributions are licensed under <a href="%s">GFDL</a> and are moderated before appearing on the site.', 'wporg' ), 'https://gnu.org/licenses/fdl.html' ) . 64 '</p><p>' .65 __( 'The entirety of your submission is considered a code example. Any included non-code text should be formatted as code comments.', 'wporg' ) .66 70 '</p>', 67 'label_submit' => __( 'Add Example', 'wporg' ),68 'must_log_in' => '<p>' . sprintf( __( 'You must <a href="%s">log in</a> before being able to submit an example.', 'wporg' ), 'https://wordpress.org/support/bb-login.php' ) . '</p>',71 'label_submit' => __( 'Add Note', 'wporg' ), 72 'must_log_in' => '<p>' . sprintf( __( 'You must <a href="%s">log in</a> before being able to contribute a note.', 'wporg' ), 'https://wordpress.org/support/bb-login.php' ) . '</p>', 69 73 'title_reply' => '', //'Add Example' 70 74 ) ); ?>
Note: See TracChangeset
for help on using the changeset viewer.