Making WordPress.org


Ignore:
Timestamp:
05/20/2016 05:16:55 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Paint roller work is done, let's bring out the brushes.

Props mapk, hugobaeta.
See #1719.

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

Legend:

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

    • Property svn:ignore set to
      node_modules
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/index.php

    r3075 r3193  
    11<?php
     2/**
     3 * The main template file.
     4 *
     5 * This is the most generic template file in a WordPress theme
     6 * and one of the two required files for a theme (the other being style.css).
     7 * It is used to display a page when nothing more specific matches a query.
     8 * E.g., it puts together the home page when no home.php file exists.
     9 *
     10 * @link https://codex.wordpress.org/Template_Hierarchy
     11 *
     12 * @package WordPressdotorg\Plugin_Directory\Theme
     13 */
     14
    215namespace WordPressdotorg\Plugin_Directory\Theme;
    316
    4 get_header();
    5 ?>
     17get_header(); ?>
    618
    7 <?php get_template_part( 'filter-bar' ); ?>
     19    <main id="main" class="site-main" role="main">
    820
    9 <?php get_template_part( 'pagination-bar' ); ?>
     21    <?php
     22        if ( have_posts() ) :
     23            if ( is_home() && ! is_front_page() ) :
     24    ?>
     25        <header>
     26            <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
     27        </header>
    1028
    11 <div class="wrapper">
    12     <div class="col-12" itemscope itemtype="http://schema.org/SoftwareApplication">
    13         <?php get_template_part( 'view-intro' ); ?>
     29    <?php
     30            endif;
    1431
    15         <div class="plugin-group">
    16        
    17         <?php
    18             if ( have_posts() ) {
    19                 while ( have_posts() ) {
    20                     the_post();
    21                     get_template_part( 'plugin-card' );
    22                 }
    23             } else {
    24                 echo '<p class="no-plugin-results">No plugins match your request.</p>';
    25             }
    26         ?>
     32            /* Start the Loop */
     33            while ( have_posts() ) :
     34                the_post();
    2735
    28         </div>
     36                get_template_part( 'template-parts/plugin', 'index' );
     37            endwhile;
    2938
    30     </div>
    31 </div>
     39            the_posts_pagination();
    3240
    33 <?php get_template_part( 'pagination-bar' ); ?>
     41        else :
     42            get_template_part( 'template-parts/content', 'none' );
     43        endif;
     44    ?>
    3445
    35 <br class="clear" />
     46    </main><!-- #main -->
     47
    3648<?php
    3749get_footer();
Note: See TracChangeset for help on using the changeset viewer.