phpcs fixes

This commit is contained in:
Jason King 2017-04-15 21:58:12 +09:30 committed by GitHub
parent a84377a360
commit fd998cce3d
1 changed files with 20 additions and 50 deletions

View File

@ -1,74 +1,44 @@
<?php <?php
/** /**
* The template for displaying search results pages. * Sidebar - hero setup.
* *
* @package understrap * @package understrap
*/ */
get_header();
$container = get_theme_mod( 'understrap_container_type' );
$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
?> ?>
<div class="wrapper" id="search-wrapper"> <?php if ( is_active_sidebar( 'hero' ) ) : ?>
<div class="<?php echo esc_html( $container ); ?>" id="content" tabindex="-1"> <!-- ******************* The Hero Widget Area ******************* -->
<div class="row"> <div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<!-- Do the left sidebar check and opens the primary div --> <div class="carousel-inner" role="listbox">
<?php get_template_part( 'global-templates/left-sidebar-check', 'none' ); ?>
<main class="site-main" id="main"> <?php dynamic_sidebar( 'hero' ); ?>
<?php if ( have_posts() ) : ?> </div>
<header class="page-header"> <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
/* translators:*/
<h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'understrap' ),
'<span>' . get_search_query() . '</span>' ); ?></h1>
</header><!-- .page-header --> <span class="carousel-control-prev-icon" aria-hidden="true"></span>
<?php /* Start the Loop */ ?> <span class="sr-only">Previous</span>
<?php while ( have_posts() ) : the_post(); ?>
<?php </a>
/**
* Run the loop for the search to output the results.
* If you want to overload this in a child theme then include a file
* called content-search.php and that will be used instead.
*/
get_template_part( 'loop-templates/content', 'search' );
?>
<?php endwhile; ?> <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
<?php else : ?> <span class="carousel-control-next-icon" aria-hidden="true"></span>
<?php get_template_part( 'loop-templates/content', 'none' ); ?> <span class="sr-only">Next</span>
</a>
</div><!-- .carousel -->
<?php endif; ?> <?php endif; ?>
</main><!-- #main --> <script>
jQuery( ".carousel-item" ).first().addClass( "active" );
<!-- The pagination component --> </script>
<?php understrap_pagination(); ?>
</div><!-- #primary -->
<!-- Do the right sidebar check -->
<?php if ( 'right' === $sidebar_pos || 'both' === $sidebar_pos ) : ?>
<?php get_sidebar( 'right' ); ?>
<?php endif; ?>
</div><!-- .row -->
</div><!-- Container end -->
</div><!-- Wrapper end -->
<?php get_footer(); ?>