diff options
| author | Max | 2018-10-15 23:46:42 +0200 |
|---|---|---|
| committer | Max | 2018-10-15 23:46:42 +0200 |
| commit | 00c9709fd9763542e848f6278db8ba26af5c9886 (patch) | |
| tree | 92cb1c1ee4c467118e1e5a4c7e233d3feac6efa8 /sidebar-templates | |
| download | fuselkoenig_de-00c9709fd9763542e848f6278db8ba26af5c9886.tar.gz | |
Initial commit.
Diffstat (limited to 'sidebar-templates')
| -rw-r--r-- | sidebar-templates/sidebar-footerfull.php | 34 | ||||
| -rw-r--r-- | sidebar-templates/sidebar-hero.php | 47 | ||||
| -rw-r--r-- | sidebar-templates/sidebar-herocanvas.php | 19 | ||||
| -rw-r--r-- | sidebar-templates/sidebar-left.php | 27 | ||||
| -rw-r--r-- | sidebar-templates/sidebar-right.php | 27 | ||||
| -rw-r--r-- | sidebar-templates/sidebar-statichero.php | 33 |
6 files changed, 187 insertions, 0 deletions
diff --git a/sidebar-templates/sidebar-footerfull.php b/sidebar-templates/sidebar-footerfull.php new file mode 100644 index 0000000..eaef767 --- /dev/null +++ b/sidebar-templates/sidebar-footerfull.php @@ -0,0 +1,34 @@ +<?php +/** + * Sidebar setup for footer full. + * + * @package understrap + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + +$container = get_theme_mod( 'understrap_container_type' ); + +?> + +<?php if ( is_active_sidebar( 'footerfull' ) ) : ?> + + <!-- ******************* The Footer Full-width Widget Area ******************* --> + + <div class="wrapper footer" id="wrapper-footer-full"> + + <div class="<?php echo esc_attr( $container ); ?>" id="footer-full-content" tabindex="-1"> + + <div class="row"> + + <?php dynamic_sidebar( 'footerfull' ); ?> + + </div> + + </div> + + </div><!-- #wrapper-footer-full --> + +<?php endif; ?> diff --git a/sidebar-templates/sidebar-hero.php b/sidebar-templates/sidebar-hero.php new file mode 100644 index 0000000..11eed09 --- /dev/null +++ b/sidebar-templates/sidebar-hero.php @@ -0,0 +1,47 @@ +<?php +/** + * Sidebar - hero setup. + * + * @package understrap + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} +?> + +<?php if ( is_active_sidebar( 'hero' ) ) : ?> + + <!-- ******************* The Hero Widget Area ******************* --> + + <div id="carouselExampleControls" class="carousel slide" data-ride="carousel"> + + <div class="carousel-inner" role="listbox"> + + <?php dynamic_sidebar( 'hero' ); ?> + + </div> + + <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev"> + + <span class="carousel-control-prev-icon" aria-hidden="true"></span> + + <span class="sr-only"><?php esc_html_e( 'Previous', 'understrap' ); ?></span> + + </a> + + <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next"> + + <span class="carousel-control-next-icon" aria-hidden="true"></span> + + <span class="sr-only"><?php esc_html_e( 'Next', 'understrap' ); ?></span> + + </a> + + </div><!-- .carousel --> + +<script> +jQuery( ".carousel-item" ).first().addClass( "active" ); +</script> + +<?php endif; ?> diff --git a/sidebar-templates/sidebar-herocanvas.php b/sidebar-templates/sidebar-herocanvas.php new file mode 100644 index 0000000..46e0e72 --- /dev/null +++ b/sidebar-templates/sidebar-herocanvas.php @@ -0,0 +1,19 @@ +<?php +/** + * Sidebar - hero canvas setup. + * + * @package understrap + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} +?> + +<?php if ( is_active_sidebar( 'herocanvas' ) ) : ?> + + <!-- ******************* The Hero Canvas Widget Area ******************* --> + + <?php dynamic_sidebar( 'herocanvas' ); ?> + +<?php endif; ?>
\ No newline at end of file diff --git a/sidebar-templates/sidebar-left.php b/sidebar-templates/sidebar-left.php new file mode 100644 index 0000000..fb50b9a --- /dev/null +++ b/sidebar-templates/sidebar-left.php @@ -0,0 +1,27 @@ +<?php +/** + * The sidebar containing the main widget area. + * + * @package understrap + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + +if ( ! is_active_sidebar( 'left-sidebar' ) ) { + return; +} + +// when both sidebars turned on reduce col size to 3 from 4. +$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' ); +?> + +<?php if ( 'both' === $sidebar_pos ) : ?> +<div class="col-md-3 widget-area" id="left-sidebar" role="complementary"> + <?php else : ?> +<div class="col-md-4 widget-area" id="left-sidebar" role="complementary"> + <?php endif; ?> +<?php dynamic_sidebar( 'left-sidebar' ); ?> + +</div><!-- #left-sidebar --> diff --git a/sidebar-templates/sidebar-right.php b/sidebar-templates/sidebar-right.php new file mode 100644 index 0000000..e5c4f62 --- /dev/null +++ b/sidebar-templates/sidebar-right.php @@ -0,0 +1,27 @@ +<?php +/** + * The right sidebar containing the main widget area. + * + * @package understrap + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + +if ( ! is_active_sidebar( 'right-sidebar' ) ) { + return; +} + +// when both sidebars turned on reduce col size to 3 from 4. +$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' ); +?> + +<?php if ( 'both' === $sidebar_pos ) : ?> +<div class="col-md-2 widget-area" id="right-sidebar" role="complementary"> + <?php else : ?> +<div class="col-lg-4 widget-area" id="right-sidebar" role="complementary"> + <?php endif; ?> +<?php dynamic_sidebar( 'right-sidebar' ); ?> + +</div><!-- #right-sidebar --> diff --git a/sidebar-templates/sidebar-statichero.php b/sidebar-templates/sidebar-statichero.php new file mode 100644 index 0000000..2b6c53d --- /dev/null +++ b/sidebar-templates/sidebar-statichero.php @@ -0,0 +1,33 @@ +<?php +/** + * Static hero sidebar setup. + * + * @package understrap + */ + +$container = get_theme_mod( 'understrap_container_type' ); +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + +?> + +<?php if ( is_active_sidebar( 'statichero' ) ) : ?> + + <!-- ******************* The Hero Widget Area ******************* --> + + <div class="wrapper" id="wrapper-static-hero"> + + <div class="<?php echo esc_attr( $container ); ?>" id="wrapper-static-content" tabindex="-1"> + + <div class="row"> + + <?php dynamic_sidebar( 'statichero' ); ?> + + </div> + + </div> + + </div><!-- #wrapper-static-hero --> + +<?php endif; ?> |
