summaryrefslogtreecommitdiff
path: root/sidebar-templates/sidebar-hero.php
diff options
context:
space:
mode:
authorMax2018-10-15 23:46:42 +0200
committerMax2018-10-15 23:46:42 +0200
commit00c9709fd9763542e848f6278db8ba26af5c9886 (patch)
tree92cb1c1ee4c467118e1e5a4c7e233d3feac6efa8 /sidebar-templates/sidebar-hero.php
downloadfuselkoenig_de-00c9709fd9763542e848f6278db8ba26af5c9886.tar.gz
Initial commit.
Diffstat (limited to 'sidebar-templates/sidebar-hero.php')
-rw-r--r--sidebar-templates/sidebar-hero.php47
1 files changed, 47 insertions, 0 deletions
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; ?>