capsulate hero area

This commit is contained in:
koenemann 2017-01-09 15:55:51 +01:00
parent d31e82225c
commit c90f428bf1
3 changed files with 10 additions and 12 deletions

View File

@ -0,0 +1,2 @@
<?php get_sidebar( 'hero' ); ?>
<?php get_sidebar( 'statichero' ); ?>

View File

@ -15,14 +15,12 @@ get_header();
$container = get_theme_mod( 'understrap_container_type' ); $container = get_theme_mod( 'understrap_container_type' );
$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' ); $sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
$posts_style = get_theme_mod( 'understrap_posts_index_style' ); $posts_style = get_theme_mod( 'understrap_posts_index_style' );
if ( is_front_page() && is_home() ) {
get_sidebar( 'hero' );
get_sidebar( 'statichero' );
}
?> ?>
<?php if ( is_front_page() && is_home() ) : ?>
<?php get_template_part( 'global-templates/hero', 'none' ); ?>
<?php endif; ?>
<div class="wrapper" id="wrapper-home"> <div class="wrapper" id="wrapper-home">
<div class="<?php echo esc_html( $container ); ?>" id="content" tabindex="-1"> <div class="<?php echo esc_html( $container ); ?>" id="content" tabindex="-1">

View File

@ -15,14 +15,12 @@ get_header();
$container = get_theme_mod( 'understrap_container_type' ); $container = get_theme_mod( 'understrap_container_type' );
$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' ); $sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
if ( is_front_page() && is_home() ) {
get_sidebar( 'hero' );
get_sidebar( 'statichero' );
}
?> ?>
<?php if ( is_front_page() && is_home() ) : ?>
<?php get_template_part( 'global-templates/hero', 'none' ); ?>
<?php endif; ?>
<div class="wrapper" id="wrapper-index"> <div class="wrapper" id="wrapper-index">
<div class="<?php echo esc_html( $container ); ?>" id="content" tabindex="-1"> <div class="<?php echo esc_html( $container ); ?>" id="content" tabindex="-1">