Making WordPress.org

Changeset 1065


Ignore:
Timestamp:
12/23/2014 08:25:08 PM (9 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Move Explanations below Parameters

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
Files:
2 edited

Legend:

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

    r1062 r1065  
    5151    */ ?>
    5252
    53     <?php
    54     $explanation = get_explanation_field( 'post_content', get_the_ID() );
    55     if ( $explanation ) :
    56         ?>
    57         <hr/>
    58         <section class="explanation">
    59             <h2><?php _e( 'Explanation', 'wporg' ); ?></h2>
    60             <?php echo apply_filters( 'the_content', apply_filters( 'get_the_content', $explanation ) ); ?>
    61         </section>
    62     <?php endif; ?>
    63 
    6453    <?php if ( $params = get_params() ) : ?>
    6554    <hr/>
     
    9079        </dl>
    9180    </section>
     81    <?php endif; ?>
     82
     83    <?php
     84    $explanation = get_explanation_field( 'post_content', get_the_ID() );
     85    if ( $explanation ) :
     86        ?>
     87        <hr/>
     88        <section class="explanation">
     89            <h2><?php _e( 'Explanation', 'wporg' ); ?></h2>
     90            <?php echo apply_filters( 'the_content', apply_filters( 'get_the_content', $explanation ) ); ?>
     91        </section>
    9292    <?php endif; ?>
    9393
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-wp-parser-hook.php

    r1057 r1065  
    4343        */ ?>
    4444
    45         <?php
    46         $explanation = get_explanation_field( 'post_content', get_the_ID() );
    47         if ( $explanation ) :
    48             ?>
    49             <hr/>
    50             <section class="explanation">
    51                 <h2><?php _e( 'Explanation', 'wporg' ); ?></h2>
    52                 <?php echo apply_filters( 'the_content', apply_filters( 'get_the_content', $explanation ) ); ?>
    53             </section>
    54         <?php endif; ?>
    55 
    5645        <?php if ( $params = get_params() ) : ?>
    5746
     
    8473        <?php endif; ?>
    8574
     75        <?php
     76        $explanation = get_explanation_field( 'post_content', get_the_ID() );
     77        if ( $explanation ) :
     78            ?>
     79            <hr/>
     80            <section class="explanation">
     81                <h2><?php _e( 'Explanation', 'wporg' ); ?></h2>
     82                <?php echo apply_filters( 'the_content', apply_filters( 'get_the_content', $explanation ) ); ?>
     83            </section>
     84        <?php endif; ?>
     85
    8686        <?php /*
    8787        <hr/>
Note: See TracChangeset for help on using the changeset viewer.