Changeset 3193 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/index.php
- Timestamp:
- 05/20/2016 05:16:55 PM (8 years ago)
- 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
-
Property
svn:ignore
set to
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/index.php
r3075 r3193 1 1 <?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 2 15 namespace WordPressdotorg\Plugin_Directory\Theme; 3 16 4 get_header(); 5 ?> 17 get_header(); ?> 6 18 7 <?php get_template_part( 'filter-bar' ); ?>19 <main id="main" class="site-main" role="main"> 8 20 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> 10 28 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; 14 31 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(); 27 35 28 </div> 36 get_template_part( 'template-parts/plugin', 'index' ); 37 endwhile; 29 38 30 </div> 31 </div> 39 the_posts_pagination(); 32 40 33 <?php get_template_part( 'pagination-bar' ); ?> 41 else : 42 get_template_part( 'template-parts/content', 'none' ); 43 endif; 44 ?> 34 45 35 <br class="clear" /> 46 </main><!-- #main --> 47 36 48 <?php 37 49 get_footer();
Note: See TracChangeset
for help on using the changeset viewer.