Update HTML indents to soft tabs (2 spaces)

This commit is contained in:
Max Myers 2016-11-01 11:25:21 -04:00
parent a9e60bc26f
commit fa9f307dfe
29 changed files with 630 additions and 635 deletions

100
404.php
View File

@ -4,74 +4,76 @@
* @package understrap * @package understrap
*/ */
get_header(); ?> get_header();
?>
<div class="wrapper" id="404-wrapper"> <div class="wrapper" id="404-wrapper">
<div id="content" class="container">
<div class="row"> <div id="content" class="container">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main"> <div class="row">
<section class="error-404 not-found"> <div id="primary" class="content-area">
<header class="page-header">
<h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'understrap' ); ?></h1> <main id="main" class="site-main" role="main">
</header><!-- .page-header -->
<div class="page-content"> <section class="error-404 not-found">
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'understrap' ); ?></p> <header class="page-header">
<?php get_search_form(); ?> <h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'understrap' ); ?></h1>
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?> </header><!-- .page-header -->
<?php if ( understrap_categorized_blog() ) : // Only show the widget if site has multiple categories. ?> <div class="page-content">
<div class="widget widget_categories"> <p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'understrap' ); ?></p>
<h2 class="widget-title"><?php _e( 'Most Used Categories', 'understrap' ); ?></h2> <?php get_search_form(); ?>
<ul> <?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget --> <?php if ( understrap_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<?php endif; ?>
<?php <div class="widget widget_categories">
/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'understrap' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>
<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?> <h2 class="widget-title"><?php _e( 'Most Used Categories', 'understrap' ); ?></h2>
</div><!-- .page-content --> <ul>
<?php
</section><!-- .error-404 --> wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</main><!-- #main --> </div><!-- .widget -->
</div><!-- #primary --> <?php endif; ?>
<?php
/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'understrap' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>
<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
</div><!-- .page-content -->
</section><!-- .error-404 -->
</main><!-- #main -->
</div><!-- #primary -->
</div> <!-- .row -->
</div><!-- Container end -->
</div> <!-- .row -->
</div><!-- Container end -->
</div><!-- Wrapper end --> </div><!-- Wrapper end -->
<?php get_footer(); ?> <?php get_footer(); ?>

View File

@ -7,58 +7,59 @@
* @package understrap * @package understrap
*/ */
get_header(); ?> get_header();
?>
<div class="wrapper" id="archive-wrapper"> <div class="wrapper" id="archive-wrapper">
<div id="content" class="container">
<div class="row"> <div id="content" class="container">
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<main id="main" class="site-main" role="main">
<?php if ( have_posts() ) : ?> <div class="row">
<header class="page-header"> <div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>
</header><!-- .page-header -->
<?php /* Start the Loop */ ?> <main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php <?php if ( have_posts() ) : ?>
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'loop-templates/content', get_post_format() );
?>
<?php endwhile; ?> <header class="page-header">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>
</header><!-- .page-header -->
<?php the_posts_navigation(); ?> <?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php else : ?> <?php
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'loop-templates/content', get_post_format() );
?>
<?php get_template_part( 'loop-templates/content', 'none' ); ?> <?php endwhile; ?>
<?php endif; ?> <?php the_posts_navigation(); ?>
</main><!-- #main --> <?php else : ?>
</div><!-- #primary -->
<?php get_sidebar(); ?> <?php get_template_part( 'loop-templates/content', 'none' ); ?>
<?php endif; ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div> <!-- .row --> </div> <!-- .row -->
</div><!-- Container end --> </div><!-- Container end -->
</div><!-- Wrapper end --> </div><!-- Wrapper end -->
<?php get_footer(); ?> <?php get_footer(); ?>

View File

@ -6,80 +6,81 @@
* *
* @package understrap * @package understrap
*/ */
get_header(); ?> get_header();
?>
<div class="wrapper" id="author-wrapper"> <div class="wrapper" id="author-wrapper">
<div id="content" class="container">
<div class="row"> <div id="content" class="container">
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<main id="main" class="site-main" role="main">
<header class="page-header author-header">
<?php
$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
?>
<h1><?php esc_html_e( 'About:', 'understrap' ); ?> <?php echo $curauth->nickname; ?></h1> <div class="row">
<?php if ( ! empty( $curauth->ID ) ) : ?> <div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<?php echo get_avatar($curauth->ID); ?>
<?php endif; ?>
<dl> <main id="main" class="site-main" role="main">
<?php if ( ! empty( $curauth->user_url ) ) : ?>
<dt><?php esc_html_e( 'Website', 'understrap' ); ?></dt>
<dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
<?php endif; ?>
<?php if ( ! empty( $curauth->user_description ) ) : ?> <header class="page-header author-header">
<dt><?php esc_html_e( 'Profile', 'understrap' ); ?></dt>
<dd><?php echo $curauth->user_description; ?></dd>
<?php endif; ?>
</dl>
<h2><?php esc_html_e( 'Posts by', 'understrap' ); ?> <?php echo $curauth->nickname; ?>:</h2>
</header><!-- .page-header -->
<ul>
<!-- The Loop -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
<?php the_title(); ?></a>,
<?php the_time('d M Y'); ?> in <?php the_category('&');?>
</li>
<?php endwhile; ?>
<?php the_posts_navigation(); ?> <?php
$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
?>
<?php else : ?> <h1><?php esc_html_e( 'About:', 'understrap' ); ?> <?php echo $curauth->nickname; ?></h1>
<?php get_template_part( 'loop-templates/content', 'none' ); ?> <?php if ( ! empty( $curauth->ID ) ) : ?>
<?php echo get_avatar($curauth->ID); ?>
<?php endif; ?>
<?php endif; ?> <dl>
<?php if ( ! empty( $curauth->user_url ) ) : ?>
<!-- End Loop --> <dt><?php esc_html_e( 'Website', 'understrap' ); ?></dt>
<dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
</ul> <?php endif; ?>
</main><!-- #main --> <?php if ( ! empty( $curauth->user_description ) ) : ?>
<dt><?php esc_html_e( 'Profile', 'understrap' ); ?></dt>
</div><!-- #primary --> <dd><?php echo $curauth->user_description; ?></dd>
<?php endif; ?>
</dl>
<?php get_sidebar(); ?> <h2><?php esc_html_e( 'Posts by', 'understrap' ); ?> <?php echo $curauth->nickname; ?>:</h2>
</header><!-- .page-header -->
<ul>
<!-- The Loop -->
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
<?php the_title(); ?></a>,
<?php the_time('d M Y'); ?> in <?php the_category('&');?>
</li>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
<?php endif; ?>
<!-- End Loop -->
</ul>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div> <!-- .row -->
</div><!-- Container end -->
</div> <!-- .row -->
</div><!-- Container end -->
</div><!-- Wrapper end --> </div><!-- Wrapper end -->
<?php get_footer(); ?> <?php get_footer(); ?>

View File

@ -14,70 +14,70 @@
* return early without loading the comments. * return early without loading the comments.
*/ */
if ( post_password_required() ) { if ( post_password_required() ) {
return; return;
} }
?> ?>
<div id="comments" class="comments-area"> <div id="comments" class="comments-area">
<?php // You can start editing here -- including this comment! ?> <?php // You can start editing here -- including this comment! ?>
<?php if ( have_comments() ) : ?> <?php if ( have_comments() ) : ?>
<h2 class="comments-title"> <h2 class="comments-title">
<?php <?php
printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'understrap' ), printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'understrap' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?> ?>
</h2> </h2>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-above" class="comment-navigation" role="navigation"> <nav id="comment-nav-above" class="comment-navigation" role="navigation">
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'understrap' ); ?></h1> <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'understrap' ); ?></h1>
<?php if ( get_previous_comments_link() ) { ?> <?php if ( get_previous_comments_link() ) { ?>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'understrap' ) ); ?></div> <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'understrap' ) ); ?></div>
<?php } <?php } if ( get_next_comments_link() ) { ?>
if ( get_next_comments_link() ) { ?> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'understrap' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'understrap' ) ); ?></div> <?php } ?>
<?php } ?> </nav><!-- #comment-nav-above -->
</nav><!-- #comment-nav-above --> <?php endif; // check for comment navigation ?>
<?php endif; // check for comment navigation ?>
<ol class="comment-list"> <ol class="comment-list">
<?php <?php
wp_list_comments( array( wp_list_comments( array(
'style' => 'ol', 'style' => 'ol',
'short_ping' => true, 'short_ping' => true,
) ); ) );
?> ?>
</ol><!-- .comment-list --> </ol><!-- .comment-list -->
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-below" class="comment-navigation" role="navigation"> <nav id="comment-nav-below" class="comment-navigation" role="navigation">
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'understrap' ); ?></h1> <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'understrap' ); ?></h1>
<?php if ( get_previous_comments_link() ) { ?> <?php if ( get_previous_comments_link() ) { ?>
<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'understrap' ) ); ?></div> <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'understrap' ) );?></div>
<?php } <?php } if ( get_next_comments_link() ) { ?>
if ( get_next_comments_link() ) { ?> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'understrap' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'understrap' ) ); ?></div> <?php } ?>
<?php } ?> </nav><!-- #comment-nav-below -->
</nav><!-- #comment-nav-below --> <?php endif; // check for comment navigation ?>
<?php endif; // check for comment navigation ?>
<?php endif; // have_comments() ?> <?php endif; // have_comments() ?>
<?php <?php
// If comments are closed and there are comments, let's leave a little note, shall we? // If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?> ?>
<p class="no-comments"><?php _e( 'Comments are closed.', 'understrap' ); ?></p>
<?php endif; ?>
<?php <p class="no-comments"><?php _e( 'Comments are closed.', 'understrap' ); ?></p>
/* Loads the comment-form.php template
/* get_template_part('comment-form');
*/
?>
<?php comment_form(); ?> <?php endif; ?>
<?php
/* Loads the comment-form.php template
/* get_template_part('comment-form');
*/
?>
<?php comment_form(); ?>
</div><!-- #comments --> </div><!-- #comments -->

View File

@ -6,41 +6,42 @@
* *
* @package understrap * @package understrap
*/ */
$the_theme = wp_get_theme(); $the_theme = wp_get_theme();
?> ?>
<?php get_sidebar('footerfull'); ?> <?php get_sidebar('footerfull'); ?>
<div class="wrapper" id="wrapper-footer"> <div class="wrapper" id="wrapper-footer">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<footer id="colophon" class="site-footer" role="contentinfo"> <footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-info"> <div class="site-info">
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'understrap' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'understrap' ), 'WordPress' ); ?></a> <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'understrap' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'understrap' ), 'WordPress' ); ?></a>
<span class="sep"> | </span> <span class="sep"> | </span>
<?php printf( __( 'Theme: %1$s by %2$s.', 'understrap' ), $the_theme->get( 'Name' ), '<a href="http://understrap.com/" rel="designer">understrap.com</a>' ); ?> <?php printf( __( 'Theme: %1$s by %2$s.', 'understrap' ), $the_theme->get( 'Name' ), '<a href="http://understrap.com/" rel="designer">understrap.com</a>' ); ?>
(<?php printf( __( 'Version: %1$s', 'understrap' ), $the_theme->get( 'Version' ) ); ?>) (<?php printf( __( 'Version: %1$s', 'understrap' ), $the_theme->get( 'Version' ) ); ?>)
</div><!-- .site-info --> </div><!-- .site-info -->
</footer><!-- #colophon --> </footer><!-- #colophon -->
</div><!--col end --> </div><!--col end -->
</div><!-- row end --> </div><!-- row end -->
</div><!-- container end --> </div><!-- container end -->
</div><!-- wrapper end --> </div><!-- wrapper end -->
</div><!-- #page --> </div><!-- #page -->
<?php wp_footer(); ?> <?php wp_footer(); ?>
</body> </body>

View File

@ -62,7 +62,6 @@ require get_template_directory() . '/inc/bootstrap-wp-navwalker.php';
*/ */
require get_template_directory() . '/inc/bootstrap-wp-gallery.php'; require get_template_directory() . '/inc/bootstrap-wp-gallery.php';
/** /**
* Load WooCommerce functions. * Load WooCommerce functions.
*/ */

View File

@ -6,72 +6,62 @@
* *
* @package understrap * @package understrap
*/ */
?><!DOCTYPE html> ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>> <html <?php language_attributes(); ?>>
<head> <head>
<meta charset="<?php bloginfo( 'charset' ); ?>"> <meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>"> <meta name="apple-mobile-web-app-title" content="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>">
<link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?> <?php wp_head(); ?>
</head> </head>
<body <?php body_class(); ?>> <body <?php body_class(); ?>>
<div id="page" class="hfeed site"> <div id="page" class="hfeed site">
<!-- ******************* The Navbar Area ******************* --> <!-- ******************* The Navbar Area ******************* -->
<div class="wrapper-fluid wrapper-navbar" id="wrapper-navbar"> <div class="wrapper-fluid wrapper-navbar" id="wrapper-navbar">
<a class="skip-link screen-reader-text sr-only" href="#content"><?php _e( 'Skip to content', 'understrap' ); ?></a>
<nav class="navbar navbar-dark bg-inverse site-navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"> <a class="skip-link screen-reader-text sr-only" href="#content"><?php _e( 'Skip to content', 'understrap' ); ?></a>
<div class="container"> <nav class="navbar navbar-dark bg-inverse site-navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
<div class="container">
<div class="navbar-header"> <div class="navbar-header">
<!-- .navbar-toggle is used as the toggle for collapsed navbar content --> <!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
<button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target=".exCollapsingNavbar" aria-controls="exCollapsingNavbar" aria-expanded="false" aria-label="Toggle navigation">&#9776;</button>
<button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target=".exCollapsingNavbar" aria-controls="exCollapsingNavbar" aria-expanded="false" aria-label="Toggle navigation"> <!-- Your site title as branding in the menu -->
&#9776; <?php if (!has_custom_logo()) { ?>
</button> <a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
<?php } else { the_custom_logo(); } ?><!-- end custom logo -->
<!-- Your site title as branding in the menu --> </div>
<?php if (!has_custom_logo()) { ?>
<a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
<?php } else { the_custom_logo(); } ?><!-- end custom logo -->
</div> <!-- The WordPress Menu goes here -->
<?php wp_nav_menu(
array(
'theme_location' => 'primary',
'container_class' => 'collapse navbar-toggleable-xs exCollapsingNavbar',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => '',
'menu_id' => 'main-menu',
'walker' => new wp_bootstrap_navwalker()
)
); ?>
<!-- The WordPress Menu goes here --> </div> <!-- .container -->
<?php wp_nav_menu(
array( </nav><!-- .site-navigation -->
'theme_location' => 'primary',
'container_class' => 'collapse navbar-toggleable-xs exCollapsingNavbar',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => '',
'menu_id' => 'main-menu',
'walker' => new wp_bootstrap_navwalker()
)
); ?>
</div> <!-- .container -->
</nav><!-- .site-navigation -->
</div><!-- .wrapper-navbar end --> </div><!-- .wrapper-navbar end -->

View File

@ -11,64 +11,61 @@
* @package understrap * @package understrap
*/ */
get_header(); ?> get_header();
<?php if ( is_front_page() && is_home() ) {
if ( is_front_page() && is_home() ) { get_sidebar('hero');
get_sidebar('hero'); get_sidebar('statichero');
} else {
get_sidebar('statichero');
} else {
// Do nothing...or? // Do nothing...or?
} }
?> ?>
<div class="wrapper" id="wrapper-index"> <div class="wrapper" id="wrapper-index">
<div id="content" class="container">
<div class="row"> <div id="content" class="container">
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<main id="main" class="site-main" role="main">
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?> <div class="row">
<?php while ( have_posts() ) : the_post(); ?> <div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<?php <main id="main" class="site-main" role="main">
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'loop-templates/content', get_post_format() );
?>
<?php endwhile; ?> <?php if ( have_posts() ) : ?>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( 'loop-templates/content', 'none' ); ?> <?php /* Start the Loop */ ?>
<?php endif; ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .row --> <?php while ( have_posts() ) : the_post(); ?>
</div><!-- Container end --> <?php
/* Include the Post-Format-specific template for the content.
</div><!-- Wrapper end --> * If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'loop-templates/content', get_post_format() );
?>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
<?php endif; ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .row -->
</div><!-- Container end -->
</div><!-- Wrapper end -->
<?php get_footer(); ?> <?php get_footer(); ?>

View File

@ -6,5 +6,4 @@
*/ */
?> ?>
<?php the_content(); ?> <?php the_content(); ?>

View File

@ -6,5 +6,4 @@
*/ */
?> ?>
<?php the_content(); ?> <?php the_content(); ?>

View File

@ -11,31 +11,31 @@
<article id="post-0" class="post no-results not-found"> <article id="post-0" class="post no-results not-found">
<header class="page-header"> <header class="page-header">
<h2 class="page-title"><?php _e( 'Nothing Found', 'understrap' ); ?></h2> <h2 class="page-title"><?php _e( 'Nothing Found', 'understrap' ); ?></h2>
</header><!-- .page-header --> </header><!-- .page-header -->
<div class="page-content"> <div class="page-content">
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'understrap' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p> <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'understrap' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
<?php elseif ( is_search() ) : ?> <?php elseif ( is_search() ) : ?>
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'understrap' ); ?></p> <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'understrap' ); ?></p>
<?php get_search_form(); ?> <?php get_search_form(); ?>
<?php else : ?> <?php else : ?>
<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'understrap' ); ?></p> <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'understrap' ); ?></p>
<?php get_search_form(); ?> <?php get_search_form(); ?>
<?php endif; ?> <?php endif; ?>
</div><!-- .page-content -->
</div><!-- .page-content -->
</article><!-- .no-results --> </article><!-- .no-results -->

View File

@ -8,31 +8,31 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header"> <header class="entry-header">
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?> <?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
</header><!-- .entry-header --> </header><!-- .entry-header -->
<?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?> <?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?>
<div class="entry-content">
<?php the_content(); ?> <div class="entry-content">
<?php <?php the_content(); ?>
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content --> <?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
'after' => '</div>',
) );
?>
<footer class="entry-footer"> </div><!-- .entry-content -->
<?php edit_post_link( __( 'Edit', 'understrap' ), '<span class="edit-link">', '</span>' ); ?> <footer class="entry-footer">
</footer><!-- .entry-footer --> <?php edit_post_link( __( 'Edit', 'understrap' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## --> </article><!-- #post-## -->

View File

@ -6,32 +6,32 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header"> <header class="entry-header">
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php if ( 'post' == get_post_type() ) : ?> <?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta"> <div class="entry-meta">
<?php understrap_posted_on(); ?> <?php understrap_posted_on(); ?>
</div><!-- .entry-meta --> </div><!-- .entry-meta -->
<?php endif; ?> <?php endif; ?>
</header><!-- .entry-header --> </header><!-- .entry-header -->
<div class="entry-summary"> <div class="entry-summary">
<?php the_excerpt(); ?> <?php the_excerpt(); ?>
</div><!-- .entry-summary --> </div><!-- .entry-summary -->
<footer class="entry-footer"> <footer class="entry-footer">
<?php understrap_entry_footer(); ?> <?php understrap_entry_footer(); ?>
</footer><!-- .entry-footer --> </footer><!-- .entry-footer -->
</article><!-- #post-## --> </article><!-- #post-## -->

View File

@ -6,37 +6,37 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header"> <header class="entry-header">
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?> <?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
<div class="entry-meta"> <div class="entry-meta">
<?php understrap_posted_on(); ?> <?php understrap_posted_on(); ?>
</div><!-- .entry-meta --> </div><!-- .entry-meta -->
</header><!-- .entry-header --> </header><!-- .entry-header -->
<?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?> <?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?>
<div class="entry-content">
<?php the_content(); ?> <div class="entry-content">
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content --> <?php the_content(); ?>
<footer class="entry-footer"> <?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
'after' => '</div>',
) );
?>
<?php understrap_entry_footer(); ?> </div><!-- .entry-content -->
</footer><!-- .entry-footer --> <footer class="entry-footer">
<?php understrap_entry_footer(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## --> </article><!-- #post-## -->

View File

@ -10,31 +10,31 @@
<article id="<?php echo strtolower( $post->post_title ); ?>" <?php post_class(); ?>> <article id="<?php echo strtolower( $post->post_title ); ?>" <?php post_class(); ?>>
<header class="entry-header"> <header class="entry-header">
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?> <?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
</header><!-- .entry-header --> </header><!-- .entry-header -->
<?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?> <?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?>
<div class="entry-content"> <div class="entry-content">
<?php the_content(); ?> <?php the_content(); ?>
<?php <?php
wp_link_pages( array( wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ), 'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
'after' => '</div>', 'after' => '</div>',
) ); ) );
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
<footer class="entry-footer"> <footer class="entry-footer">
<?php edit_post_link( __( 'Edit', 'understrap' ), '<span class="edit-link">', '</span>' ); ?> <?php edit_post_link( __( 'Edit', 'understrap' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer --> </footer><!-- .entry-footer -->
</article><!-- #post-## --> </article><!-- #post-## -->

View File

@ -5,42 +5,42 @@
?> ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php if ( 'post' == get_post_type() ) : ?> <header class="entry-header">
<div class="entry-meta"> <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php understrap_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?> <?php if ( 'post' == get_post_type() ) : ?>
</header><!-- .entry-header -->
<?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?> <div class="entry-meta">
<?php understrap_posted_on(); ?>
<div class="entry-content"> </div><!-- .entry-meta -->
<?php <?php endif; ?>
the_excerpt();
?>
<?php </header><!-- .entry-header -->
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-footer"> <?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?>
<?php understrap_entry_footer(); ?> <div class="entry-content">
</footer><!-- .entry-footer --> <?php
the_excerpt();
</article><!-- #post-## --> ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php understrap_entry_footer(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->

View File

@ -7,10 +7,9 @@
* @package understrap * @package understrap
*/ */
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html <?php language_attributes(); ?>> <html <?php language_attributes(); ?>>
<head> <head>
<meta charset="<?php bloginfo('charset'); ?>"> <meta charset="<?php bloginfo('charset'); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
@ -20,13 +19,13 @@
<link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php wp_head(); ?> <?php wp_head(); ?>
</head> </head>
<body> <body>
<?php while (have_posts()) : the_post(); ?> <?php while (have_posts()) : the_post(); ?>
<?php get_template_part('loop-templates/content', 'blank'); ?> <?php get_template_part('loop-templates/content', 'blank'); ?>
<?php endwhile; // end of the loop. ?> <?php endwhile; // end of the loop. ?>
<?php wp_footer();?> <?php wp_footer();?>
</body> </body>
</html> </html>

View File

@ -7,12 +7,13 @@
* @package understrap * @package understrap
*/ */
get_header(); ?> get_header();
?>
<?php while ( have_posts() ) : the_post(); ?> <?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'loop-templates/content', 'empty' ); ?> <?php get_template_part( 'loop-templates/content', 'empty' ); ?>
<?php endwhile; // end of the loop. ?> <?php endwhile; // end of the loop. ?>
<?php get_footer(); ?> <?php get_footer(); ?>

View File

@ -7,37 +7,38 @@
* @package understrap * @package understrap
*/ */
get_header(); ?> get_header();
?>
<div class="wrapper" id="full-width-page-wrapper"> <div class="wrapper" id="full-width-page-wrapper">
<div id="content" class="container">
<div id="primary" class="col-md-12 content-area">
<main id="main" class="site-main" role="main"> <div id="content" class="container">
<?php while ( have_posts() ) : the_post(); ?> <div id="primary" class="col-md-12 content-area">
<?php get_template_part( 'loop-templates/content', 'page' ); ?> <main id="main" class="site-main" role="main">
<?php <?php while ( have_posts() ) : the_post(); ?>
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || get_comments_number() ) :
comments_template(); <?php get_template_part( 'loop-templates/content', 'page' ); ?>
endif;
?>
<?php endwhile; // end of the loop. ?> <?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- Container end -->
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- Container end -->
</div><!-- Wrapper end --> </div><!-- Wrapper end -->
<?php get_footer(); ?> <?php get_footer(); ?>

View File

@ -7,46 +7,46 @@
* @package understrap * @package understrap
*/ */
get_header(); ?> get_header();
?>
<?php <?php
/* /*
* Exclude the posts page from being shown in this layout. * Exclude the posts page from being shown in this layout.
* Order pages by their order number. * Order pages by their order number.
*/ */
$exclude = get_option( 'page_for_posts' ); $exclude = get_option( 'page_for_posts' );
$args = array( $args = array(
'post_type' => 'page', 'post_type' => 'page',
'post__not_in' => array( $exclude ), 'post__not_in' => array( $exclude ),
'orderby' => 'menu_order', 'orderby' => 'menu_order',
'order' => 'ASC' 'order' => 'ASC'
); );
$qry = new WP_Query( $args );
$qry = new WP_Query( $args );
?> ?>
<div class="wrapper" id="full-width-page-wrapper"> <div class="wrapper" id="full-width-page-wrapper">
<div id="content" class="container"> <div id="content" class="container">
<div id="primary" class="col-md-12 content-area"> <div id="primary" class="col-md-12 content-area">
<main id="main" class="site-main" role="main"> <main id="main" class="site-main" role="main">
<?php if ( have_posts() ): while ( $qry->have_posts() ): $qry->the_post() ?> <?php if ( have_posts() ): while ( $qry->have_posts() ): $qry->the_post() ?>
<div class="page"> <div class="page">
<?php get_template_part( 'loop-templates/content', 'verticalpage' ); ?> <?php get_template_part( 'loop-templates/content', 'verticalpage' ); ?>
</div> </div>
<?php wp_reset_postdata(); //reset custom query?> <?php wp_reset_postdata(); //reset custom query?>
<?php endwhile; endif; ?> <?php endwhile; endif; ?>
</main><!-- #main --> </main><!-- #main -->
</div><!-- #primary --> </div><!-- #primary -->
</div><!-- Container end --> </div><!-- Container end -->
</div><!-- Wrapper end --> </div><!-- Wrapper end -->

View File

@ -10,41 +10,42 @@
* @package understrap * @package understrap
*/ */
get_header(); ?> get_header();
?>
<div class="wrapper" id="page-wrapper"> <div class="wrapper" id="page-wrapper">
<div id="content" class="container">
<div class="row"> <div id="content" class="container">
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?> <div class="row">
<?php get_template_part( 'loop-templates/content', 'page' ); ?> <div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<?php <main id="main" class="site-main" role="main">
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // end of the loop. ?> <?php while ( have_posts() ) : the_post(); ?>
</main><!-- #main --> <?php get_template_part( 'loop-templates/content', 'page' ); ?>
</div><!-- #primary --> <?php
// If comments are open or we have at least one comment, load up the comment template
<?php get_sidebar(); ?> if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .row -->
</div><!-- Container end -->
</div><!-- .row -->
</div><!-- Container end -->
</div><!-- Wrapper end --> </div><!-- Wrapper end -->
<?php get_footer(); ?> <?php get_footer(); ?>

View File

@ -5,57 +5,58 @@
* @package understrap * @package understrap
*/ */
get_header(); ?> get_header();
?>
<div class="wrapper search-wrapper"> <div class="wrapper search-wrapper">
<div class="container">
<div class="row"> <div class="container">
<section id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<main id="main" class="site-main" role="main">
<?php if ( have_posts() ) : ?> <div class="row">
<header class="page-header"> <section id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'understrap' ), '<span>' . get_search_query() . '</span>' ); ?></h1> <main id="main" class="site-main" role="main">
</header><!-- .page-header -->
<?php /* Start the Loop */ ?> <?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php <header class="page-header">
/**
* 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; ?> <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'understrap' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
<?php the_posts_navigation(); ?> </header><!-- .page-header -->
<?php else : ?> <?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'loop-templates/content', 'none' ); ?> <?php
/**
* 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 endif; ?> <?php endwhile; ?>
</main><!-- #main --> <?php the_posts_navigation(); ?>
</section><!-- #primary -->
<?php get_sidebar(); ?> <?php else : ?>
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
<?php endif; ?>
</main><!-- #main -->
</section><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .row -->
</div><!-- Container end -->
</div><!-- .row -->
</div><!-- Container end -->
</div><!-- Wrapper end --> </div><!-- Wrapper end -->
<?php get_footer(); ?> <?php get_footer(); ?>

View File

@ -5,12 +5,13 @@
* @package understrap * @package understrap
*/ */
?> ?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<label for="s" class="assistive-text"><?php _e( 'Search', 'understrap' ); ?></label> <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<div class="input-group"> <label for="s" class="assistive-text"><?php _e( 'Search', 'understrap' ); ?></label>
<input type="text" class="field form-control" name="s" id="s" placeholder="<?php esc_attr_e( 'Search &hellip;', 'understrap' ); ?>" /> <div class="input-group">
<span class="input-group-btn"> <input type="text" class="field form-control" name="s" id="s" placeholder="<?php esc_attr_e( 'Search &hellip;', 'understrap' ); ?>" />
<input type="submit" class="submit btn btn-primary" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'understrap' ); ?>" /> <span class="input-group-btn">
</span> <input type="submit" class="submit btn btn-primary" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'understrap' ); ?>" />
</div> </span>
</form> </div>
</form>

View File

@ -1,11 +1,11 @@
<?php if ( is_active_sidebar( 'footerfull' ) ): ?> <?php if ( is_active_sidebar( 'footerfull' ) ): ?>
<!-- ******************* The Hero Widget Area ******************* --> <!-- ******************* The Hero Widget Area ******************* -->
<div class="wrapper" id="wrapper-footer-full"> <div class="wrapper" id="wrapper-footer-full">
<?php dynamic_sidebar( 'footerfull' ); ?> <?php dynamic_sidebar( 'footerfull' ); ?>
</div><!-- #wrapper-footer-full --> </div><!-- #wrapper-footer-full -->
<?php endif; ?> <?php endif; ?>

View File

@ -1,15 +1,15 @@
<?php if ( is_active_sidebar( 'hero' ) ): ?> <?php if ( is_active_sidebar( 'hero' ) ): ?>
<!-- ******************* The Hero Widget Area ******************* --> <!-- ******************* The Hero Widget Area ******************* -->
<div class="wrapper" id="wrapper-hero"> <div class="wrapper" id="wrapper-hero">
<div class="owl-carousel"> <div class="owl-carousel">
<?php dynamic_sidebar( 'hero' ); ?> <?php dynamic_sidebar( 'hero' ); ?>
</div><!-- .owl-carousel --> </div><!-- .owl-carousel -->
</div><!-- #wrapper-hero --> </div><!-- #wrapper-hero -->
<?php endif; ?> <?php endif; ?>

View File

@ -1,11 +1,11 @@
<?php if ( is_active_sidebar( 'statichero' ) ): ?> <?php if ( is_active_sidebar( 'statichero' ) ): ?>
<!-- ******************* The Hero Widget Area ******************* --> <!-- ******************* The Hero Widget Area ******************* -->
<div class="wrapper" id="wrapper-static-hero">
<?php dynamic_sidebar( 'statichero' ); ?> <div class="wrapper" id="wrapper-static-hero">
</div><!-- #wrapper-static-hero --> <?php dynamic_sidebar( 'statichero' ); ?>
</div><!-- #wrapper-static-hero -->
<?php endif; ?> <?php endif; ?>

View File

@ -6,12 +6,12 @@
*/ */
if ( ! is_active_sidebar( 'sidebar-1' ) ) { if ( ! is_active_sidebar( 'sidebar-1' ) ) {
return; return;
} }
?> ?>
<div id="secondary" class="col-md-4 widget-area" role="complementary"> <div id="secondary" class="col-md-4 widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-1' ); ?> <?php dynamic_sidebar( 'sidebar-1' ); ?>
</div><!-- #secondary --> </div><!-- #secondary -->

View File

@ -5,42 +5,43 @@
* @package understrap * @package understrap
*/ */
get_header(); ?> get_header();
?>
<div class="wrapper" id="single-wrapper"> <div class="wrapper" id="single-wrapper">
<div id="content" class="container">
<div class="row"> <div id="content" class="container">
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?> <div class="row">
<?php get_template_part( 'loop-templates/content', 'single' ); ?> <div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<?php the_post_navigation(); ?> <main id="main" class="site-main" role="main">
<?php <?php while ( have_posts() ) : the_post(); ?>
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // end of the loop. ?>
</main><!-- #main --> <?php get_template_part( 'loop-templates/content', 'single' ); ?>
</div><!-- #primary --> <?php the_post_navigation(); ?>
<?php get_sidebar(); ?> <?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .row -->
</div><!-- Container end -->
</div><!-- .row -->
</div><!-- Container end -->
</div><!-- Wrapper end --> </div><!-- Wrapper end -->
<?php get_footer(); ?> <?php get_footer(); ?>

View File

@ -10,40 +10,41 @@
* @package understrap * @package understrap
*/ */
get_header(); ?> get_header();
?>
<div class="wrapper" id="woocommerce-wrapper"> <div class="wrapper" id="woocommerce-wrapper">
<div class="container">
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<main id="main" class="site-main" role="main">
<!-- The WooCommerce loop --> <div class="container">
<?php <div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
if (is_singular('product')) {
woocommerce_content(); <main id="main" class="site-main" role="main">
} else { <!-- The WooCommerce loop -->
//For ANY product archive. <?php
//Product taxonomy, product search or /shop landing page etc. if (is_singular('product')) {
woocommerce_get_template('archive-product.php');
woocommerce_content();
}
?> } else {
//For ANY product archive.
//Product taxonomy, product search or /shop landing page etc.
woocommerce_get_template('archive-product.php');
}
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- Container end -->
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- Container end -->
</div><!-- Wrapper end --> </div><!-- Wrapper end -->
<?php get_footer(); ?> <?php get_footer(); ?>