Making WordPress.org


Ignore:
Timestamp:
06/29/2014 08:41:47 AM (10 years ago)
Author:
coffee2code
Message:

Code Reference: add ability for users to submit code examples (via comments). See #180

Viewable by all, but temporarily only submittable by members of the site.

File:
1 edited

Legend:

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

    r714 r724  
    9696        <h2><?php _e( 'Learn More', 'wporg' ); ?></h2>
    9797    </section>
    98     <hr/>
    99     <section class="examples">
    100         <h2><?php _e( 'Examples', 'wporg' ); ?></h2>
    101     </section>
    10298    */ ?>
    10399
     
    145141    <?php endif; ?>
    146142
     143    <?php if ( have_comments() || ( comments_open() && is_user_member_of_blog() ) ) : ?>
     144    <hr/>
     145    <section class="examples">
     146        <h2><?php _e( 'Examples', 'wporg' ); ?></h2>
     147        <?php get_template_part( 'code-example' ); ?>
     148    </section>
     149    <?php endif; ?>
     150
    147151<?php endif; ?>
    148152
Note: See TracChangeset for help on using the changeset viewer.