This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
understrap/sidebar-hero.php

45 lines
1007 B
PHP
Raw Normal View History

2016-11-21 18:47:05 +00:00
<?php
/**
* Sidebar - hero setup.
*
* @package understrap
*/
2016-01-22 13:02:32 +00:00
2016-11-21 18:47:05 +00:00
?>
2016-01-22 13:02:32 +00:00
2016-11-21 18:47:05 +00:00
<?php if ( is_active_sidebar( 'hero' ) ) : ?>
2016-01-22 13:02:32 +00:00
2016-11-21 18:47:05 +00:00
<!-- ******************* The Hero Widget Area ******************* -->
2016-01-22 13:02:32 +00:00
2017-01-24 17:30:57 +00:00
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" role="listbox">
2016-01-22 13:02:32 +00:00
2016-11-21 18:47:05 +00:00
<?php dynamic_sidebar( 'hero' ); ?>
2017-01-24 17:30:57 +00:00
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
2017-01-24 18:06:45 +00:00
2017-01-24 17:30:57 +00:00
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
2017-01-24 18:06:45 +00:00
2017-01-24 17:30:57 +00:00
<span class="sr-only">Previous</span>
2017-01-24 18:06:45 +00:00
</a>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
2017-01-24 17:30:57 +00:00
<span class="carousel-control-next-icon" aria-hidden="true"></span>
2017-01-24 18:06:45 +00:00
2017-01-24 17:30:57 +00:00
<span class="sr-only">Next</span>
2017-01-24 18:06:45 +00:00
</a>
2017-01-24 17:30:57 +00:00
2016-11-21 18:47:05 +00:00
</div><!-- .owl-carousel -->
<?php endif; ?>
2017-01-24 18:06:45 +00:00
<script>
jQuery( ".carousel-item" ).first().addClass( "active" );
</script>