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/global-templates/hero.php

26 lines
503 B
PHP
Raw Normal View History

2017-01-09 15:08:01 +00:00
<?php
/**
* Hero setup
2017-01-09 15:08:01 +00:00
*
* @package understrap
*/
2017-01-27 12:16:14 +00:00
2019-06-20 08:57:12 +00:00
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
2017-01-09 15:08:01 +00:00
if ( is_active_sidebar( 'hero' ) || is_active_sidebar( 'statichero' ) || is_active_sidebar( 'herocanvas' ) ) :
?>
2017-01-09 15:08:01 +00:00
<div class="wrapper" id="wrapper-hero">
2018-11-18 23:48:38 +00:00
<?php
get_template_part( 'sidebar-templates/sidebar', 'hero' );
get_template_part( 'sidebar-templates/sidebar', 'herocanvas' );
get_template_part( 'sidebar-templates/sidebar', 'statichero' );
?>
2017-01-09 15:08:01 +00:00
</div>
<?php
endif;