HEX
Server: Apache
System: Linux webm005.cluster121.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: adventp (418412)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/adventp/www/wp-content/themes/brooklyn/template-part-hero.php
<?php 

/**
 * Hero Template Part
 */

global $_ut_hero_active;

if( !apply_filters( 'ut_show_hero', false ) ) {
    return;
}

// template file by config 
$hero = ut_return_hero_config( 'ut_hero_type' );

// fallback 
$hero = ( $hero == 'dynamic' ) ? 'image' : $hero;

/* search */
if( is_search() ) {
    $hero = 'search';
}

/* 404 */
if( is_404() ) {
    $hero = '404';
}

/* archive */
if( is_archive() && !ut_is_shop() ) {
    
    if( have_posts() ) {
    
        $hero = 'archive';
    
    } else {
        
        $hero = 'search';
        
    }
    
}

/* single post hero */
if( is_single() && !is_singular( 'portfolio' ) ) {
    $hero = 'post';
}

if( is_singular('product') ) {
    $hero = ut_return_hero_config( 'ut_hero_type' );
} ?>

<?php $_ut_hero_active = true; ?>

    <?php get_template_part( 'partials/hero', $hero ); ?>

<?php $_ut_hero_active = false; ?>

<div class="clear"></div>