Update HTML indents to soft tabs (2 spaces)
This commit is contained in:
parent
a9e60bc26f
commit
fa9f307dfe
84
404.php
84
404.php
|
@ -4,73 +4,75 @@
|
||||||
* @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 id="content" class="container">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div id="primary" class="content-area">
|
<div id="primary" class="content-area">
|
||||||
|
|
||||||
<main id="main" class="site-main" role="main">
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<section class="error-404 not-found">
|
<section class="error-404 not-found">
|
||||||
|
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
|
|
||||||
<h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', 'understrap' ); ?></h1>
|
<h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', 'understrap' ); ?></h1>
|
||||||
</header><!-- .page-header -->
|
|
||||||
|
|
||||||
<div class="page-content">
|
</header><!-- .page-header -->
|
||||||
|
|
||||||
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'understrap' ); ?></p>
|
<div class="page-content">
|
||||||
|
|
||||||
<?php get_search_form(); ?>
|
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'understrap' ); ?></p>
|
||||||
|
|
||||||
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
|
<?php get_search_form(); ?>
|
||||||
|
|
||||||
<?php if ( understrap_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
|
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
|
||||||
|
|
||||||
<div class="widget widget_categories">
|
<?php if ( understrap_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
|
||||||
|
|
||||||
<h2 class="widget-title"><?php _e( 'Most Used Categories', 'understrap' ); ?></h2>
|
<div class="widget widget_categories">
|
||||||
|
|
||||||
<ul>
|
<h2 class="widget-title"><?php _e( 'Most Used Categories', 'understrap' ); ?></h2>
|
||||||
<?php
|
|
||||||
wp_list_categories( array(
|
|
||||||
'orderby' => 'count',
|
|
||||||
'order' => 'DESC',
|
|
||||||
'show_count' => 1,
|
|
||||||
'title_li' => '',
|
|
||||||
'number' => 10,
|
|
||||||
) );
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div><!-- .widget -->
|
<ul>
|
||||||
|
<?php
|
||||||
|
wp_list_categories( array(
|
||||||
|
'orderby' => 'count',
|
||||||
|
'order' => 'DESC',
|
||||||
|
'show_count' => 1,
|
||||||
|
'title_li' => '',
|
||||||
|
'number' => 10,
|
||||||
|
) );
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<?php endif; ?>
|
</div><!-- .widget -->
|
||||||
|
|
||||||
<?php
|
<?php endif; ?>
|
||||||
/* 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' ); ?>
|
<?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" );
|
||||||
|
?>
|
||||||
|
|
||||||
</div><!-- .page-content -->
|
<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>
|
||||||
|
|
||||||
</section><!-- .error-404 -->
|
</div><!-- .page-content -->
|
||||||
|
|
||||||
</main><!-- #main -->
|
</section><!-- .error-404 -->
|
||||||
|
|
||||||
</div><!-- #primary -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
</div> <!-- .row -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div> <!-- .row -->
|
||||||
|
|
||||||
|
</div><!-- Container end -->
|
||||||
|
|
||||||
</div><!-- Wrapper end -->
|
</div><!-- Wrapper end -->
|
||||||
|
|
||||||
|
|
61
archive.php
61
archive.php
|
@ -7,57 +7,58 @@
|
||||||
* @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 id="content" class="container">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
|
<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">
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<?php
|
<?php
|
||||||
the_archive_title( '<h1 class="page-title">', '</h1>' );
|
the_archive_title( '<h1 class="page-title">', '</h1>' );
|
||||||
the_archive_description( '<div class="taxonomy-description">', '</div>' );
|
the_archive_description( '<div class="taxonomy-description">', '</div>' );
|
||||||
?>
|
?>
|
||||||
</header><!-- .page-header -->
|
</header><!-- .page-header -->
|
||||||
|
|
||||||
<?php /* Start the Loop */ ?>
|
<?php /* Start the Loop */ ?>
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/* Include the Post-Format-specific template for the content.
|
/* Include the Post-Format-specific template for the content.
|
||||||
* If you want to override this in a child theme, then include a file
|
* 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.
|
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
|
||||||
*/
|
*/
|
||||||
get_template_part( 'loop-templates/content', get_post_format() );
|
get_template_part( 'loop-templates/content', get_post_format() );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php the_posts_navigation(); ?>
|
<?php the_posts_navigation(); ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
</div> <!-- .row -->
|
</div> <!-- .row -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
</div><!-- Wrapper end -->
|
</div><!-- Wrapper end -->
|
||||||
|
|
||||||
|
|
93
author.php
93
author.php
|
@ -6,79 +6,80 @@
|
||||||
*
|
*
|
||||||
* @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 id="content" class="container">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
|
<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">
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<header class="page-header author-header">
|
<header class="page-header author-header">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
|
$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>
|
<h1><?php esc_html_e( 'About:', 'understrap' ); ?> <?php echo $curauth->nickname; ?></h1>
|
||||||
|
|
||||||
<?php if ( ! empty( $curauth->ID ) ) : ?>
|
<?php if ( ! empty( $curauth->ID ) ) : ?>
|
||||||
<?php echo get_avatar($curauth->ID); ?>
|
<?php echo get_avatar($curauth->ID); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<?php if ( ! empty( $curauth->user_url ) ) : ?>
|
<?php if ( ! empty( $curauth->user_url ) ) : ?>
|
||||||
<dt><?php esc_html_e( 'Website', 'understrap' ); ?></dt>
|
<dt><?php esc_html_e( 'Website', 'understrap' ); ?></dt>
|
||||||
<dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
|
<dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ( ! empty( $curauth->user_description ) ) : ?>
|
<?php if ( ! empty( $curauth->user_description ) ) : ?>
|
||||||
<dt><?php esc_html_e( 'Profile', 'understrap' ); ?></dt>
|
<dt><?php esc_html_e( 'Profile', 'understrap' ); ?></dt>
|
||||||
<dd><?php echo $curauth->user_description; ?></dd>
|
<dd><?php echo $curauth->user_description; ?></dd>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<h2><?php esc_html_e( 'Posts by', 'understrap' ); ?> <?php echo $curauth->nickname; ?>:</h2>
|
<h2><?php esc_html_e( 'Posts by', 'understrap' ); ?> <?php echo $curauth->nickname; ?>:</h2>
|
||||||
|
|
||||||
</header><!-- .page-header -->
|
</header><!-- .page-header -->
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<!-- The Loop -->
|
|
||||||
|
|
||||||
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
|
<!-- The Loop -->
|
||||||
<li>
|
<?php if ( have_posts() ) : ?>
|
||||||
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
<?php the_title(); ?></a>,
|
<li>
|
||||||
<?php the_time('d M Y'); ?> in <?php the_category('&');?>
|
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
|
||||||
</li>
|
<?php the_title(); ?></a>,
|
||||||
|
<?php the_time('d M Y'); ?> in <?php the_category('&');?>
|
||||||
|
</li>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php endwhile; ?>
|
<?php the_posts_navigation(); ?>
|
||||||
|
|
||||||
<?php the_posts_navigation(); ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
||||||
|
|
||||||
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<!-- End Loop -->
|
||||||
|
|
||||||
<!-- End Loop -->
|
</ul>
|
||||||
|
|
||||||
</ul>
|
</main><!-- #main -->
|
||||||
|
|
||||||
</main><!-- #main -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
</div><!-- #primary -->
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
</div> <!-- .row -->
|
||||||
|
|
||||||
</div> <!-- .row -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
|
||||||
|
|
||||||
</div><!-- Wrapper end -->
|
</div><!-- Wrapper end -->
|
||||||
|
|
||||||
|
|
104
comments.php
104
comments.php
|
@ -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 “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'understrap' ),
|
printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', 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( __( '← Older Comments', 'understrap' ) ); ?></div>
|
<div class="nav-previous"><?php previous_comments_link( __( '← 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 →', 'understrap' ) ); ?></div>
|
||||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', '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( __( '← Older Comments', 'understrap' ) ); ?></div>
|
<div class="nav-previous"><?php previous_comments_link( __( '← 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 →', 'understrap' ) ); ?></div>
|
||||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', '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 -->
|
||||||
|
|
35
footer.php
35
footer.php
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
86
header.php
86
header.php
|
@ -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>
|
<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">
|
<nav class="navbar navbar-dark bg-inverse site-navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
<div class="container">
|
<div class="navbar-header">
|
||||||
|
|
||||||
|
<!-- .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">☰</button>
|
||||||
|
|
||||||
<div class="navbar-header">
|
<!-- Your site title as branding in the menu -->
|
||||||
|
<?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 -->
|
||||||
|
|
||||||
<!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
|
</div>
|
||||||
|
|
||||||
<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">
|
<!-- The WordPress Menu goes here -->
|
||||||
☰
|
<?php wp_nav_menu(
|
||||||
</button>
|
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()
|
||||||
|
)
|
||||||
|
); ?>
|
||||||
|
|
||||||
<!-- Your site title as branding in the menu -->
|
</div> <!-- .container -->
|
||||||
<?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>
|
</nav><!-- .site-navigation -->
|
||||||
|
|
||||||
<!-- 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()
|
|
||||||
)
|
|
||||||
); ?>
|
|
||||||
|
|
||||||
</div> <!-- .container -->
|
|
||||||
|
|
||||||
</nav><!-- .site-navigation -->
|
|
||||||
|
|
||||||
</div><!-- .wrapper-navbar end -->
|
</div><!-- .wrapper-navbar end -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
69
index.php
69
index.php
|
@ -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 id="content" class="container">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
|
<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">
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<?php /* Start the Loop */ ?>
|
<?php /* Start the Loop */ ?>
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/* Include the Post-Format-specific template for the content.
|
/* Include the Post-Format-specific template for the content.
|
||||||
* If you want to override this in a child theme, then include a file
|
* 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.
|
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
|
||||||
*/
|
*/
|
||||||
get_template_part( 'loop-templates/content', get_post_format() );
|
get_template_part( 'loop-templates/content', get_post_format() );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php the_posts_navigation(); ?>
|
<?php the_posts_navigation(); ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
<?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(); ?>
|
||||||
|
|
|
@ -6,5 +6,4 @@
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
|
|
||||||
|
|
|
@ -6,5 +6,4 @@
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
|
|
||||||
|
|
|
@ -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’t find what you’re looking for. Perhaps searching can help.', 'understrap' ); ?></p>
|
<p><?php _e( 'It seems we can’t find what you’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 -->
|
||||||
|
|
|
@ -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">
|
<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-## -->
|
||||||
|
|
|
@ -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-## -->
|
||||||
|
|
|
@ -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">
|
<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 understrap_entry_footer(); ?>
|
<?php understrap_entry_footer(); ?>
|
||||||
|
|
||||||
</footer><!-- .entry-footer -->
|
</footer><!-- .entry-footer -->
|
||||||
|
|
||||||
</article><!-- #post-## -->
|
</article><!-- #post-## -->
|
||||||
|
|
|
@ -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-## -->
|
||||||
|
|
|
@ -6,41 +6,41 @@
|
||||||
|
|
||||||
<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 -->
|
||||||
|
|
||||||
<?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
|
<?php
|
||||||
the_excerpt();
|
the_excerpt();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?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 understrap_entry_footer(); ?>
|
<?php understrap_entry_footer(); ?>
|
||||||
|
|
||||||
</footer><!-- .entry-footer -->
|
</footer><!-- .entry-footer -->
|
||||||
|
|
||||||
</article><!-- #post-## -->
|
</article><!-- #post-## -->
|
|
@ -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>
|
||||||
|
|
|
@ -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(); ?>
|
|
@ -7,36 +7,37 @@
|
||||||
* @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="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 while ( have_posts() ) : the_post(); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
<?php get_template_part( 'loop-templates/content', 'page' ); ?>
|
<?php get_template_part( 'loop-templates/content', 'page' ); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// If comments are open or we have at least one comment, load up the comment template
|
// If comments are open or we have at least one comment, load up the comment template
|
||||||
if ( comments_open() || get_comments_number() ) :
|
if ( comments_open() || get_comments_number() ) :
|
||||||
|
|
||||||
comments_template();
|
comments_template();
|
||||||
|
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php endwhile; // end of the loop. ?>
|
<?php endwhile; // end of the loop. ?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
</div><!-- Wrapper end -->
|
</div><!-- Wrapper end -->
|
||||||
|
|
||||||
|
|
|
@ -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 -->
|
||||||
|
|
||||||
|
|
39
page.php
39
page.php
|
@ -10,40 +10,41 @@
|
||||||
* @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 id="content" class="container">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
|
<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">
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
<?php get_template_part( 'loop-templates/content', 'page' ); ?>
|
<?php get_template_part( 'loop-templates/content', 'page' ); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// If comments are open or we have at least one comment, load up the comment template
|
// If comments are open or we have at least one comment, load up the comment template
|
||||||
if ( comments_open() || get_comments_number() ) :
|
if ( comments_open() || get_comments_number() ) :
|
||||||
comments_template();
|
comments_template();
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php endwhile; // end of the loop. ?>
|
<?php endwhile; // end of the loop. ?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
</div><!-- .row -->
|
</div><!-- .row -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
</div><!-- Wrapper end -->
|
</div><!-- Wrapper end -->
|
||||||
|
|
||||||
|
|
59
search.php
59
search.php
|
@ -5,56 +5,57 @@
|
||||||
* @package understrap
|
* @package understrap
|
||||||
*/
|
*/
|
||||||
|
|
||||||
get_header(); ?>
|
get_header();
|
||||||
|
?>
|
||||||
<div class="wrapper search-wrapper">
|
<div class="wrapper search-wrapper">
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<section id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
|
<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">
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
|
|
||||||
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'understrap' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
|
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'understrap' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
|
||||||
|
|
||||||
</header><!-- .page-header -->
|
</header><!-- .page-header -->
|
||||||
|
|
||||||
<?php /* Start the Loop */ ?>
|
<?php /* Start the Loop */ ?>
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Run the loop for the search to output the results.
|
* Run the loop for the search to output the results.
|
||||||
* If you want to overload this in a child theme then include a file
|
* If you want to overload this in a child theme then include a file
|
||||||
* called content-search.php and that will be used instead.
|
* called content-search.php and that will be used instead.
|
||||||
*/
|
*/
|
||||||
get_template_part( 'loop-templates/content', 'search' );
|
get_template_part( 'loop-templates/content', 'search' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php the_posts_navigation(); ?>
|
<?php the_posts_navigation(); ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
</section><!-- #primary -->
|
</section><!-- #primary -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
</div><!-- .row -->
|
</div><!-- .row -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
</div><!-- Wrapper end -->
|
</div><!-- Wrapper end -->
|
||||||
|
|
||||||
|
|
|
@ -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 …', '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 …', '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>
|
||||||
|
|
|
@ -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; ?>
|
||||||
|
|
|
@ -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; ?>
|
||||||
|
|
|
@ -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">
|
<div class="wrapper" id="wrapper-static-hero">
|
||||||
|
|
||||||
<?php dynamic_sidebar( 'statichero' ); ?>
|
<?php dynamic_sidebar( 'statichero' ); ?>
|
||||||
|
|
||||||
</div><!-- #wrapper-static-hero -->
|
</div><!-- #wrapper-static-hero -->
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -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 -->
|
||||||
|
|
41
single.php
41
single.php
|
@ -5,41 +5,42 @@
|
||||||
* @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 id="content" class="container">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
|
<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">
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
<?php get_template_part( 'loop-templates/content', 'single' ); ?>
|
<?php get_template_part( 'loop-templates/content', 'single' ); ?>
|
||||||
|
|
||||||
<?php the_post_navigation(); ?>
|
<?php the_post_navigation(); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// If comments are open or we have at least one comment, load up the comment template
|
// If comments are open or we have at least one comment, load up the comment template
|
||||||
if ( comments_open() || get_comments_number() ) :
|
if ( comments_open() || get_comments_number() ) :
|
||||||
comments_template();
|
comments_template();
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php endwhile; // end of the loop. ?>
|
<?php endwhile; // end of the loop. ?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
</div><!-- .row -->
|
</div><!-- .row -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
</div><!-- Wrapper end -->
|
</div><!-- Wrapper end -->
|
||||||
|
|
||||||
|
|
|
@ -10,39 +10,40 @@
|
||||||
* @package understrap
|
* @package understrap
|
||||||
*/
|
*/
|
||||||
|
|
||||||
get_header(); ?>
|
get_header();
|
||||||
|
?>
|
||||||
|
|
||||||
<div class="wrapper" id="woocommerce-wrapper">
|
<div class="wrapper" id="woocommerce-wrapper">
|
||||||
|
|
||||||
<div class="container">
|
<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">
|
<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">
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<!-- The WooCommerce loop -->
|
<!-- The WooCommerce loop -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (is_singular('product')) {
|
if (is_singular('product')) {
|
||||||
|
|
||||||
woocommerce_content();
|
woocommerce_content();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
//For ANY product archive.
|
//For ANY product archive.
|
||||||
//Product taxonomy, product search or /shop landing page etc.
|
//Product taxonomy, product search or /shop landing page etc.
|
||||||
woocommerce_get_template('archive-product.php');
|
woocommerce_get_template('archive-product.php');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
</div><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
</div><!-- Wrapper end -->
|
</div><!-- Wrapper end -->
|
||||||
|
|
||||||
|
|
Reference in New Issue