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/search.php

45 lines
953 B
PHP
Raw Normal View History

2014-12-10 11:36:38 +00:00
<?php
/**
2017-04-15 12:28:12 +00:00
* Sidebar - hero setup.
2014-12-10 11:36:38 +00:00
*
* @package understrap
*/
?>
2017-04-15 12:28:12 +00:00
<?php if ( is_active_sidebar( 'hero' ) ) : ?>
2014-12-10 11:36:38 +00:00
2017-04-15 12:28:12 +00:00
<!-- ******************* The Hero Widget Area ******************* -->
2014-12-10 11:36:38 +00:00
2017-04-15 12:28:12 +00:00
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
2014-12-10 11:36:38 +00:00
2017-04-15 12:28:12 +00:00
<div class="carousel-inner" role="listbox">
2014-12-10 11:36:38 +00:00
2017-04-15 12:28:12 +00:00
<?php dynamic_sidebar( 'hero' ); ?>
2014-12-10 11:36:38 +00:00
2017-04-15 12:28:12 +00:00
</div>
2014-12-10 11:36:38 +00:00
2017-04-15 12:28:12 +00:00
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
2017-04-15 12:28:12 +00:00
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
2017-04-15 12:28:12 +00:00
<span class="sr-only">Previous</span>
2016-11-23 09:42:53 +00:00
2017-04-15 12:28:12 +00:00
</a>
2017-04-15 12:28:12 +00:00
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
2017-04-15 12:28:12 +00:00
<span class="carousel-control-next-icon" aria-hidden="true"></span>
2017-04-15 12:28:12 +00:00
<span class="sr-only">Next</span>
2017-04-15 12:28:12 +00:00
</a>
2017-04-15 12:28:12 +00:00
</div><!-- .carousel -->
2014-12-10 11:36:38 +00:00
2017-04-15 12:28:12 +00:00
<?php endif; ?>
2014-12-10 11:36:38 +00:00
2017-04-15 12:28:12 +00:00
<script>
jQuery( ".carousel-item" ).first().addClass( "active" );
</script>