Making WordPress.org


Ignore:
Timestamp:
08/24/2016 08:22:35 PM (5 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Implement a tabbed interface for writing and previewing user contributed notes.

Also wraps form header in 'h3' tag so it appears in table of contents.

Props keesiemeijer.
See #1905.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/comments.php

    r3788 r3852  
    6666
    6767        <?php comment_form( array(
     68            'class_form'          => 'comment-form tab-container',
    6869            'comment_field'       => DevHub_User_Submitted_Content::wp_editor_comments(),
    69             'comment_notes_after' => '<p>' .
     70            'comment_notes_after' => DevHub_Note_Preview::comment_preview() .
     71                '<p>' .
    7072                __( 'Notes should supplement code reference entries, for example examples, tips, explanations, use-cases, and best practices.', 'wporg' ) .
    7173                '</p><p>' .
     
    8890        ) ); ?>
    8991
    90         <!-- Comment Preview -->
    91         <div id='comment-preview' class='comment byuser depth-1' style='display:none;'>
    92             <article class='comment-body'>
    93                 <header class='comment-meta'>
    94                     <div>
    95                         <?php _e( 'Preview', 'wporg' ); ?>
    96                         <span class='spinner' style='display:none'></span>
    97                     </div>
    98                 </header>
    99                 <div class='comment-content'></div>
    100             </article>
    101         </div>
    102 
    10392    <?php endif; ?>
    10493
Note: See TracChangeset for help on using the changeset viewer.