_s: Formatting changes:
- Reduce element comments to either the element id or the first element class. - Tabs > Spaces. - Improve adherence to formatting guidelines.
This commit is contained in:
parent
c7f2b7a1ee
commit
c4f2aa32ce
18 changed files with 301 additions and 307 deletions
32
search.php
32
search.php
|
@ -8,32 +8,32 @@
|
|||
|
||||
get_header(); ?>
|
||||
|
||||
<section id="primary" class="content-area">
|
||||
<div id="content" class="site-content" role="main">
|
||||
<section id="primary" class="content-area">
|
||||
<div id="content" class="site-content" role="main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', '_s' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
|
||||
</header><!-- .page-header -->
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', '_s' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<?php /* Start the Loop */ ?>
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<?php /* Start the Loop */ ?>
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<?php get_template_part( 'content', 'search' ); ?>
|
||||
<?php get_template_part( 'content', 'search' ); ?>
|
||||
|
||||
<?php endwhile; ?>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php _s_content_nav( 'nav-below' ); ?>
|
||||
<?php _s_content_nav( 'nav-below' ); ?>
|
||||
|
||||
<?php else : ?>
|
||||
<?php else : ?>
|
||||
|
||||
<?php get_template_part( 'no-results', 'search' ); ?>
|
||||
<?php get_template_part( 'no-results', 'search' ); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- #content .site-content -->
|
||||
</section><!-- #primary .content-area -->
|
||||
</div><!-- #content -->
|
||||
</section><!-- #primary -->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
Loading…
Add table
Add a link
Reference in a new issue