improve sidebar template readability
This commit is contained in:
parent
c3d1f894be
commit
826f3a8f0b
|
|
@ -8,12 +8,13 @@
|
|||
// Exit if accessed directly.
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
if ( ! is_active_sidebar( 'footerfull' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$container = get_theme_mod( 'understrap_container_type' );
|
||||
|
||||
?>
|
||||
|
||||
<?php if ( is_active_sidebar( 'footerfull' ) ) : ?>
|
||||
|
||||
<!-- ******************* The Footer Full-width Widget Area ******************* -->
|
||||
|
||||
<div class="wrapper" id="wrapper-footer-full" role="complementary">
|
||||
|
|
@ -29,6 +30,3 @@ $container = get_theme_mod( 'understrap_container_type' );
|
|||
</div>
|
||||
|
||||
</div><!-- #wrapper-footer-full -->
|
||||
|
||||
<?php
|
||||
endif;
|
||||
|
|
|
|||
|
|
@ -7,9 +7,11 @@
|
|||
|
||||
// Exit if accessed directly.
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
?>
|
||||
|
||||
<?php if ( is_active_sidebar( 'hero' ) ) : ?>
|
||||
if ( ! is_active_sidebar( 'hero' ) ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- ******************* The Hero Widget Area ******************* -->
|
||||
|
||||
|
|
@ -38,6 +40,3 @@ defined( 'ABSPATH' ) || exit;
|
|||
</a>
|
||||
|
||||
</div><!-- .carousel -->
|
||||
|
||||
<?php
|
||||
endif;
|
||||
|
|
|
|||
|
|
@ -8,11 +8,13 @@
|
|||
// Exit if accessed directly.
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
if ( ! is_active_sidebar( 'statichero' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$container = get_theme_mod( 'understrap_container_type' );
|
||||
?>
|
||||
|
||||
<?php if ( is_active_sidebar( 'statichero' ) ) : ?>
|
||||
|
||||
<!-- ******************* The Hero Widget Area ******************* -->
|
||||
|
||||
<div class="wrapper" id="wrapper-static-hero">
|
||||
|
|
@ -28,6 +30,3 @@ $container = get_theme_mod( 'understrap_container_type' );
|
|||
</div>
|
||||
|
||||
</div><!-- #wrapper-static-hero -->
|
||||
|
||||
<?php
|
||||
endif;
|
||||
|
|
|
|||
Loading…
Reference in New Issue