adding missing .row classes

This commit is contained in:
Holger Könemann 2016-03-09 10:16:22 +01:00
parent ffa204fbb6
commit 70fb2d0d84
12 changed files with 231 additions and 209 deletions

102
404.php
View File

@ -8,63 +8,67 @@ 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 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">
<h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'understrap' ); ?></h1>
</header><!-- .page-header -->
<div class="page-content">
<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 get_search_form(); ?>
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
<?php if ( understrap_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<div class="widget widget_categories">
<h2 class="widget-title"><?php _e( 'Most Used Categories', 'understrap' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget -->
<?php endif; ?> <header class="page-header">
<?php <h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'understrap' ); ?></h1>
/* translators: %1$s: smiley */ </header><!-- .page-header -->
$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 class="page-content">
</div><!-- .page-content --> <p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'understrap' ); ?></p>
</section><!-- .error-404 -->
</main><!-- #main --> <?php get_search_form(); ?>
</div><!-- #primary --> <?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
<?php if ( understrap_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<div class="widget widget_categories">
<h2 class="widget-title"><?php _e( 'Most Used Categories', 'understrap' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10,
) );
?>
</ul>
</div><!-- .widget -->
<?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><!-- Container end -->

View File

@ -12,46 +12,50 @@ 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 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 understrap_paging_nav(); ?> <?php understrap_paging_nav(); ?>
<?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><!-- Container end --> </div><!-- Container end -->

View File

@ -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)

2
css/theme.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -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' => '',

View File

@ -20,40 +20,44 @@ get_header(); ?>
<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 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 /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?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 endwhile; ?>
<?php understrap_paging_nav(); ?> <?php if ( have_posts() ) : ?>
<?php else : ?>
<?php get_template_part( 'loop-templates/content', 'none' ); ?> <?php /* Start the Loop */ ?>
<?php endif; ?> <?php while ( have_posts() ) : the_post(); ?>
</main><!-- #main --> <?php
/* Include the Post-Format-specific template for the content.
</div><!-- #primary --> * 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 understrap_paging_nav(); ?>
<?php else : ?>
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
<?php endif; ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
</div><!-- .row -->
</div><!-- Container end --> </div><!-- Container end -->

View File

@ -15,29 +15,33 @@ 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 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">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'loop-templates/content', 'page' ); ?>
<?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 --> <main id="main" class="site-main" role="main">
<?php get_sidebar(); ?> <?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'loop-templates/content', 'page' ); ?>
<?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><!-- Container end -->

View File

@ -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;
}

View File

@ -9,46 +9,50 @@ get_header(); ?>
<div class="wrapper search-wrapper"> <div class="wrapper search-wrapper">
<div class="container"> <div class="container">
<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 understrap_paging_nav(); ?> <?php understrap_paging_nav(); ?>
<?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><!-- Container end --> </div><!-- Container end -->

View File

@ -9,31 +9,35 @@ 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 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 understrap_post_nav(); ?> <?php understrap_post_nav(); ?>
<?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_template_part('sidebar'); ?> <?php get_template_part('sidebar'); ?>
<7div><!-- .row -->
</div><!-- Container end --> </div><!-- Container end -->

View File

@ -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-->

View File

@ -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 -->