|
Server : LiteSpeed System : Linux server104.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : saleoqej ( 6848) PHP Version : 8.0.30 Disable Function : NONE Directory : /home/saleoqej/chijamzacademy.com/wp-content/themes/kadence/template-parts/content/ |
<?php
/**
* Template part for displaying a post's Hero header
*
* @package kadence
*/
namespace Kadence;
$slug = ( is_search() && ! is_post_type_archive( 'product' ) ? 'search' : get_post_type() );
if ( empty( $slug ) ) {
$queried_object = get_queried_object();
if ( is_object( $queried_object ) && property_exists( $queried_object, 'taxonomy' ) ) {
$current_tax = get_taxonomy( $queried_object->taxonomy );
if ( property_exists( $current_tax, 'object_type' ) ) {
$post_types = $current_tax->object_type;
$slug = $post_types[0];
}
}
}
?>
<section class="<?php echo esc_attr( implode( ' ', get_archive_hero_classes() ) ); ?>">
<div class="entry-hero-container-inner">
<div class="hero-section-overlay"></div>
<div class="hero-container site-container">
<header class="<?php echo esc_attr( implode( ' ', get_archive_title_classes() ) ); ?>">
<?php
/**
* Kadence Entry Hero
*
* Hooked kadence_entry_archive_header 10
*/
do_action( 'kadence_entry_archive_hero', $slug . '_archive', 'above' );
?>
</header><!-- .entry-header -->
</div>
</div>
</section><!-- .entry-hero -->