adding missing .row classes
This commit is contained in:
parent
ffa204fbb6
commit
70fb2d0d84
76
404.php
76
404.php
|
@ -9,62 +9,66 @@ get_header(); ?>
|
||||||
|
|
||||||
<div id="content" class="container">
|
<div id="content" class="container">
|
||||||
|
|
||||||
<div id="primary" class="content-area">
|
<div class="row">
|
||||||
|
|
||||||
<main id="main" class="site-main" role="main">
|
<div id="primary" class="content-area">
|
||||||
|
|
||||||
<section class="error-404 not-found">
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<header class="page-header">
|
<section class="error-404 not-found">
|
||||||
|
|
||||||
<h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', 'understrap' ); ?></h1>
|
<header class="page-header">
|
||||||
</header><!-- .page-header -->
|
|
||||||
|
|
||||||
<div class="page-content">
|
<h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', 'understrap' ); ?></h1>
|
||||||
|
</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><!-- #primary -->
|
||||||
|
|
||||||
|
</div> <!-- .row -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
|
|
54
archive.php
54
archive.php
|
@ -13,46 +13,50 @@ get_header(); ?>
|
||||||
|
|
||||||
<div id="content" class="container">
|
<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">
|
<div class="row">
|
||||||
|
|
||||||
<main id="main" class="site-main" role="main">
|
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<header class="page-header">
|
<?php if ( have_posts() ) : ?>
|
||||||
<?php
|
|
||||||
the_archive_title( '<h1 class="page-title">', '</h1>' );
|
|
||||||
the_archive_description( '<div class="taxonomy-description">', '</div>' );
|
|
||||||
?>
|
|
||||||
</header><!-- .page-header -->
|
|
||||||
|
|
||||||
<?php /* Start the Loop */ ?>
|
<header class="page-header">
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php
|
||||||
|
the_archive_title( '<h1 class="page-title">', '</h1>' );
|
||||||
|
the_archive_description( '<div class="taxonomy-description">', '</div>' );
|
||||||
|
?>
|
||||||
|
</header><!-- .page-header -->
|
||||||
|
|
||||||
<?php
|
<?php /* Start the Loop */ ?>
|
||||||
/* Include the Post-Format-specific template for the content.
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
* 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
|
||||||
|
/* 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 understrap_paging_nav(); ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php understrap_paging_nav(); ?>
|
||||||
|
|
||||||
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
<?php endif; ?>
|
||||||
|
|
||||||
</div><!-- #primary -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
|
</div><!-- #primary -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
|
</div> <!-- .row -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
</div><!-- Wrapper end -->
|
</div><!-- Wrapper end -->
|
||||||
|
|
|
@ -5849,16 +5849,16 @@ button.close {
|
||||||
.wrapper {
|
.wrapper {
|
||||||
padding: 30px 0; }
|
padding: 30px 0; }
|
||||||
|
|
||||||
#wrapper-hero, #wrapper-static-hero {
|
#wrapper-hero {
|
||||||
padding: 0px !important; }
|
padding: 0px !important; }
|
||||||
|
|
||||||
.sticky, .gallery-caption, .bypostauthor {
|
.sticky, .gallery-caption, .bypostauthor {
|
||||||
font-size: inherit; }
|
font-size: inherit; }
|
||||||
|
|
||||||
.wrapper#wrapper-sticky {
|
.wrapper#wrapper-sticky {
|
||||||
border-bottom: 1px solid #eeeeee; }
|
border-bottom: 1px solid #777777; }
|
||||||
|
|
||||||
#wrapper-footer-full {
|
#wrapper-footer-full, #wrapper-static-hero {
|
||||||
background-color: #eeeeee; }
|
background-color: #eeeeee; }
|
||||||
|
|
||||||
.wp-caption {
|
.wp-caption {
|
||||||
|
@ -5891,6 +5891,9 @@ a.skip-link {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block; }
|
display: block; }
|
||||||
|
|
||||||
|
.jumbotron {
|
||||||
|
margin-bottom: 0px; }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Font Awesome 4.5.0 by @davegandy - http://fontawesome.io - @fontawesome
|
* Font Awesome 4.5.0 by @davegandy - http://fontawesome.io - @fontawesome
|
||||||
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
|
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,7 @@ function understrap_widgets_init() {
|
||||||
register_sidebar( array(
|
register_sidebar( array(
|
||||||
'name' => __( 'Sidebar', 'understrap' ),
|
'name' => __( 'Sidebar', 'understrap' ),
|
||||||
'id' => 'sidebar-1',
|
'id' => 'sidebar-1',
|
||||||
'description' => '',
|
'description' => 'Sidebar widget area',
|
||||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||||
'after_widget' => '</aside>',
|
'after_widget' => '</aside>',
|
||||||
'before_title' => '<h3 class="widget-title">',
|
'before_title' => '<h3 class="widget-title">',
|
||||||
|
@ -19,7 +19,7 @@ function understrap_widgets_init() {
|
||||||
register_sidebar( array(
|
register_sidebar( array(
|
||||||
'name' => __( 'Hero Slider', 'understrap' ),
|
'name' => __( 'Hero Slider', 'understrap' ),
|
||||||
'id' => 'hero',
|
'id' => 'hero',
|
||||||
'description' => '',
|
'description' => 'Hero slider area. Place two or more widgets here and they will slide!',
|
||||||
'before_widget' => '<div class="item">',
|
'before_widget' => '<div class="item">',
|
||||||
'after_widget' => '</div>',
|
'after_widget' => '</div>',
|
||||||
'before_title' => '',
|
'before_title' => '',
|
||||||
|
@ -29,7 +29,7 @@ function understrap_widgets_init() {
|
||||||
register_sidebar( array(
|
register_sidebar( array(
|
||||||
'name' => __( 'Hero Static', 'understrap' ),
|
'name' => __( 'Hero Static', 'understrap' ),
|
||||||
'id' => 'statichero',
|
'id' => 'statichero',
|
||||||
'description' => '',
|
'description' => 'Static Hero widget. no slider functionallity',
|
||||||
'before_widget' => '',
|
'before_widget' => '',
|
||||||
'after_widget' => '',
|
'after_widget' => '',
|
||||||
'before_title' => '',
|
'before_title' => '',
|
||||||
|
@ -39,7 +39,7 @@ function understrap_widgets_init() {
|
||||||
register_sidebar( array(
|
register_sidebar( array(
|
||||||
'name' => __( 'Footer Full', 'understrap' ),
|
'name' => __( 'Footer Full', 'understrap' ),
|
||||||
'id' => 'footerfull',
|
'id' => 'footerfull',
|
||||||
'description' => '',
|
'description' => 'Widget area below main content and above footer',
|
||||||
'before_widget' => '',
|
'before_widget' => '',
|
||||||
'after_widget' => '',
|
'after_widget' => '',
|
||||||
'before_title' => '',
|
'before_title' => '',
|
||||||
|
|
44
index.php
44
index.php
|
@ -21,39 +21,43 @@ get_header(); ?>
|
||||||
|
|
||||||
<div id="content" class="container">
|
<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">
|
<div class="row">
|
||||||
|
|
||||||
<main id="main" class="site-main" role="main">
|
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<?php /* Start the Loop */ ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php /* Start the Loop */ ?>
|
||||||
|
|
||||||
<?php
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
/* 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
|
||||||
|
/* 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 understrap_paging_nav(); ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php understrap_paging_nav(); ?>
|
||||||
|
|
||||||
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
<?php endif; ?>
|
||||||
|
|
||||||
</div><!-- #primary -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
</div><!-- #primary -->
|
||||||
|
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
|
</div><!-- .row -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
|
|
32
page.php
32
page.php
|
@ -16,28 +16,32 @@ get_header(); ?>
|
||||||
|
|
||||||
<div id="content" class="container">
|
<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">
|
<div class="row">
|
||||||
|
|
||||||
<main id="main" class="site-main" role="main">
|
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<?php get_template_part( 'loop-templates/content', 'page' ); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
<?php
|
<?php get_template_part( 'loop-templates/content', 'page' ); ?>
|
||||||
// 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
|
||||||
|
// 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;
|
||||||
|
?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
<?php endwhile; // end of the loop. ?>
|
||||||
|
|
||||||
</div><!-- #primary -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
</div><!-- #primary -->
|
||||||
|
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
|
</div><!-- .row -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset hero wrapper padding to 0
|
// Reset hero wrapper padding to 0
|
||||||
#wrapper-hero, #wrapper-static-hero {
|
#wrapper-hero {
|
||||||
padding:0px!important;
|
padding:0px!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,11 +15,11 @@ font-size:inherit;
|
||||||
|
|
||||||
// Separate sticky wrapper from main content
|
// Separate sticky wrapper from main content
|
||||||
.wrapper#wrapper-sticky {
|
.wrapper#wrapper-sticky {
|
||||||
border-bottom:1px solid $gray-lighter;
|
border-bottom:1px solid $gray-light;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adding some contrast background color to footer full widget
|
// Adding some contrast background color to footer full widget
|
||||||
#wrapper-footer-full{
|
#wrapper-footer-full, #wrapper-static-hero{
|
||||||
background-color: $gray-lighter;
|
background-color: $gray-lighter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,3 +65,8 @@ margin-bottom: -20px;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reset Jumbotron default margin
|
||||||
|
.jumbotron {
|
||||||
|
margin-bottom:0px;
|
||||||
|
}
|
||||||
|
|
52
search.php
52
search.php
|
@ -10,45 +10,49 @@ get_header(); ?>
|
||||||
|
|
||||||
<div class="container">
|
<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">
|
<div class="row">
|
||||||
|
|
||||||
<main id="main" class="site-main" role="main">
|
<section id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<header class="page-header">
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'understrap' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
|
<header class="page-header">
|
||||||
|
|
||||||
</header><!-- .page-header -->
|
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'understrap' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
|
||||||
|
|
||||||
<?php /* Start the Loop */ ?>
|
</header><!-- .page-header -->
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
|
||||||
|
|
||||||
<?php
|
<?php /* Start the Loop */ ?>
|
||||||
/**
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
* 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; ?>
|
<?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 understrap_paging_nav(); ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php understrap_paging_nav(); ?>
|
||||||
|
|
||||||
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
<?php endif; ?>
|
||||||
|
|
||||||
</section><!-- #primary -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
</section><!-- #primary -->
|
||||||
|
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
|
</div><!-- .row -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
|
|
32
single.php
32
single.php
|
@ -10,31 +10,35 @@ get_header(); ?>
|
||||||
|
|
||||||
<div id="content" class="container">
|
<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">
|
<div class="row">
|
||||||
|
|
||||||
<main id="main" class="site-main" role="main">
|
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
||||||
<?php get_template_part( 'loop-templates/content', 'single' ); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
<?php understrap_post_nav(); ?>
|
<?php get_template_part( 'loop-templates/content', 'single' ); ?>
|
||||||
|
|
||||||
<?php
|
<?php understrap_post_nav(); ?>
|
||||||
// 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
|
||||||
|
// 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;
|
||||||
|
?>
|
||||||
|
|
||||||
</main><!-- #main -->
|
<?php endwhile; // end of the loop. ?>
|
||||||
|
|
||||||
</div><!-- #primary -->
|
</main><!-- #main -->
|
||||||
|
|
||||||
|
</div><!-- #primary -->
|
||||||
|
|
||||||
<?php get_template_part('sidebar'); ?>
|
<?php get_template_part('sidebar'); ?>
|
||||||
|
|
||||||
|
<7div><!-- .row -->
|
||||||
|
|
||||||
</div><!-- Container end -->
|
</div><!-- Container end -->
|
||||||
|
|
||||||
</div><!-- Wrapper end -->
|
</div><!-- Wrapper end -->
|
||||||
|
|
30
sticky.php
30
sticky.php
|
@ -5,20 +5,22 @@
|
||||||
<!-- ******************* The Sticky Area ******************* -->
|
<!-- ******************* The Sticky Area ******************* -->
|
||||||
<div class="wrapper" id="wrapper-sticky">
|
<div class="wrapper" id="wrapper-sticky">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="col-md-12">
|
<div class="row">
|
||||||
<?php
|
<div class="col-md-12">
|
||||||
$sticky = get_option( 'sticky_posts' );
|
<?php
|
||||||
$args = array(
|
$sticky = get_option( 'sticky_posts' );
|
||||||
'posts_per_page' => 1,
|
$args = array(
|
||||||
'post__in' => $sticky,
|
'posts_per_page' => 1,
|
||||||
'ignore_sticky_posts' => 1
|
'post__in' => $sticky,
|
||||||
);
|
'ignore_sticky_posts' => 1
|
||||||
$query = new WP_Query( $args );
|
);
|
||||||
if ( isset($sticky[0]) ) {
|
$query = new WP_Query( $args );
|
||||||
get_template_part( 'content', get_post_format() );
|
if ( isset($sticky[0]) ) {
|
||||||
}
|
get_template_part( 'content', get_post_format() );
|
||||||
wp_reset_query();
|
}
|
||||||
?>
|
wp_reset_query();
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- #wrapper-sticky-->
|
</div><!-- #wrapper-sticky-->
|
||||||
|
|
|
@ -4,19 +4,7 @@
|
||||||
|
|
||||||
<div class="wrapper" id="wrapper-footer-full">
|
<div class="wrapper" id="wrapper-footer-full">
|
||||||
|
|
||||||
<div class="container">
|
<?php dynamic_sidebar( 'footerfull' ); ?>
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
<div class="col-md-12">
|
|
||||||
|
|
||||||
<?php dynamic_sidebar( 'footerfull' ); ?>
|
|
||||||
|
|
||||||
</div><!-- .col-md-12 -->
|
|
||||||
|
|
||||||
</div><!-- .row -->
|
|
||||||
|
|
||||||
</div><!-- .container -->
|
|
||||||
|
|
||||||
</div><!-- #wrapper-footer-full -->
|
</div><!-- #wrapper-footer-full -->
|
||||||
|
|
||||||
|
|
Reference in New Issue