File: /home/adventp/www/wp-content/themes/brooklyn/partials/hero-custom.php
<?php
/**
* The Template for displaying a custom shortcode inside the Hero
*
* @author United Themes
* @package Brooklyn
* @version 2.0
*/
$hero_classes = array();
/*
* template config: hero separator
*/
if( ut_return_hero_config( 'ut_hero_separator_top', 'off' ) == 'on' || ut_return_hero_config( 'ut_hero_separator_bottom', 'off' ) == 'on' ) {
$hero_classes[] = 'ut-hero-with-separator';
}
// template config
$ut_hero_shortcode = ut_return_hero_config('ut_hero_shortcode'); ?>
<!-- hero section -->
<section id="ut-custom-hero" class="ut-custom-hero ha-waypoint <?php echo implode( " " , $hero_classes ); ?>" data-animate-up="ha-header-hide" data-animate-down="ha-header-hide">
<div id="ut-hero-early-waypoint" class="ut-early-waypoint" data-animate-up="ha-header-hide" data-animate-down="ha-header-small"></div>
<?php // Hero Top Separator
if( ut_return_hero_config( 'ut_hero_separator_top', 'off' ) == 'on' ) : ?>
<?php echo ut_create_section_separator( 'hero', 'top', ut_return_hero_config( 'ut_hero_separator_svg_top', 'design_wave' ) ); ?>
<?php endif; ?>
<?php echo do_shortcode( ut_translate_meta( $ut_hero_shortcode ) ); ?>
<?php if( ut_collect_option('ut_scroll_down_arrow' , 'off') == 'on' ) : ?>
<div class="hero-down-arrow-wrap">
<span class="hero-down-arrow">
<?php $ut_hero_down_arrow_scroll_target = ut_return_hero_config( 'ut_hero_down_arrow_scroll_target', '#ut-to-first-section' ); ?>
<a href="<?php echo ut_clean_section_id( $ut_hero_down_arrow_scroll_target ); ?>"><i class="Bklyn-Core-Down-3"></i></a>
</span>
</div>
<?php endif; ?>
<div data-section="top" class="ut-scroll-up-waypoint"></div>
<?php if( ut_return_hero_config( 'ut_hero_separator_bottom', 'off' ) == 'on' ) : ?>
<?php echo ut_create_section_separator( 'hero', 'bottom', ut_return_hero_config( 'ut_hero_separator_svg_bottom', 'design_wave' ) ); ?>
<?php endif; ?>
</section>
<!-- end hero section -->