Making WordPress.org

Changeset 902


Ignore:
Timestamp:
10/11/2014 05:01:14 AM (11 years ago)
Author:
nacin
Message:

Make P2: New /core/components/ template.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/archive-component.php

    r329 r902  
    2020
    2121        the_content();
    22         ?>
    23         <p id="toggle-compact-components"><label><input type="checkbox" /> Expanded view</label></p>
    24         <?php if ( have_posts() ) : ?>
     22        if ( have_posts() ) :
     23            echo '<table>';
     24            while ( have_posts() ) : the_post();
     25                do_action( 'component_table_row', get_post() );
     26            endwhile;
     27            echo '</table>';
     28        endif;
    2529
    26             <?php while ( have_posts() ) : the_post(); ?>
    27                 <div class="component-info">
    28                     <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
    29                     <?php the_content(); ?>
    30                 </div>
    31             <?php endwhile; ?>
    32 
    33         <?php endif; ?>
    34     <?php
    3530        $cache = ob_get_clean();
    3631        set_transient( 'trac_components_page', $cache, 300 );
    3732        echo $cache;
    3833    }
    39     ?>
     34?>
    4035
    4136    </div> <!-- main -->
Note: See TracChangeset for help on using the changeset viewer.