Adding the herocanvas widget position
This commit is contained in:
parent
548f4f04c1
commit
bf6dfb6046
|
@ -7,12 +7,14 @@
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ( is_active_sidebar( 'hero' ) || is_active_sidebar( 'statichero' ) ) : ?>
|
<?php if ( is_active_sidebar( 'hero' ) || is_active_sidebar( 'statichero' ) || is_active_sidebar( 'herocanvas' ) ) : ?>
|
||||||
|
|
||||||
<div class="wrapper" id="wrapper-hero">
|
<div class="wrapper" id="wrapper-hero">
|
||||||
|
|
||||||
<?php get_sidebar( 'hero' ); ?>
|
<?php get_sidebar( 'hero' ); ?>
|
||||||
|
|
||||||
|
<?php get_sidebar( 'herocanvas' ); ?>
|
||||||
|
|
||||||
<?php get_sidebar( 'statichero' ); ?>
|
<?php get_sidebar( 'statichero' ); ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -82,9 +82,19 @@ if ( ! function_exists( 'understrap_widgets_init' ) ) {
|
||||||
) );
|
) );
|
||||||
|
|
||||||
register_sidebar( array(
|
register_sidebar( array(
|
||||||
'name' => __( 'Hero Static', 'understrap' ),
|
'name' => __( 'Hero Canvas', 'understrap' ),
|
||||||
|
'id' => 'herocanvas',
|
||||||
|
'description' => 'Full size canvas hero area for Bootstrap and other custom HTML markup',
|
||||||
|
'before_widget' => '',
|
||||||
|
'after_widget' => '',
|
||||||
|
'before_title' => '',
|
||||||
|
'after_title' => '',
|
||||||
|
) );
|
||||||
|
|
||||||
|
register_sidebar( array(
|
||||||
|
'name' => __( 'Top Full', 'understrap' ),
|
||||||
'id' => 'statichero',
|
'id' => 'statichero',
|
||||||
'description' => 'Static Hero widget. no slider functionallity',
|
'description' => 'Full top widget with dynmic grid',
|
||||||
'before_widget' => '<div id="%1$s" class="static-hero-widget %2$s '. understrap_slbd_count_widgets( 'statichero' ) .'">',
|
'before_widget' => '<div id="%1$s" class="static-hero-widget %2$s '. understrap_slbd_count_widgets( 'statichero' ) .'">',
|
||||||
'after_widget' => '</div><!-- .static-hero-widget -->',
|
'after_widget' => '</div><!-- .static-hero-widget -->',
|
||||||
'before_title' => '<h3 class="widget-title">',
|
'before_title' => '<h3 class="widget-title">',
|
||||||
|
@ -92,9 +102,9 @@ if ( ! function_exists( 'understrap_widgets_init' ) ) {
|
||||||
) );
|
) );
|
||||||
|
|
||||||
register_sidebar( array(
|
register_sidebar( array(
|
||||||
'name' => __( 'Footer Full', 'understrap' ),
|
'name' => __( 'Bottom Full', 'understrap' ),
|
||||||
'id' => 'footerfull',
|
'id' => 'footerfull',
|
||||||
'description' => 'Widget area below main content and above footer',
|
'description' => 'Full bottom widget with dynmic grid',
|
||||||
'before_widget' => '<div id="%1$s" class="footer-widget %2$s '. understrap_slbd_count_widgets( 'footerfull' ) .'">',
|
'before_widget' => '<div id="%1$s" class="footer-widget %2$s '. understrap_slbd_count_widgets( 'footerfull' ) .'">',
|
||||||
'after_widget' => '</div><!-- .footer-widget -->',
|
'after_widget' => '</div><!-- .footer-widget -->',
|
||||||
'before_title' => '<h3 class="widget-title">',
|
'before_title' => '<h3 class="widget-title">',
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Sidebar - hero canvas setup.
|
||||||
|
*
|
||||||
|
* @package understrap
|
||||||
|
*/
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php if ( is_active_sidebar( 'herocanvas' ) ) : ?>
|
||||||
|
|
||||||
|
<!-- ******************* The Hero Canvas Widget Area ******************* -->
|
||||||
|
|
||||||
|
<?php dynamic_sidebar( 'herocanvas' ); ?>
|
||||||
|
|
||||||
|
<?php endif; ?>
|
Reference in New Issue