<?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 role="banner" 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 -->
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
archive.php | File | 1.33 KB | 0644 |
|
archive_header.php | File | 1002 B | 0644 |
|
archive_hero.php | File | 1.13 KB | 0644 |
|
comments-list.php | File | 1.03 KB | 0644 |
|
entry-attachment.php | File | 4.13 KB | 0644 |
|
entry.php | File | 603 B | 0644 |
|
entry_actions.php | File | 1.02 KB | 0644 |
|
entry_author.php | File | 2.44 KB | 0644 |
|
entry_content.php | File | 825 B | 0644 |
|
entry_footer.php | File | 335 B | 0644 |
|
entry_header.php | File | 1.15 KB | 0644 |
|
entry_hero.php | File | 1.46 KB | 0644 |
|
entry_loop_footer.php | File | 261 B | 0644 |
|
entry_loop_header.php | File | 397 B | 0644 |
|
entry_loop_meta.php | File | 12.29 KB | 0644 |
|
entry_loop_taxonomies.php | File | 1.61 KB | 0644 |
|
entry_loop_thumbnail.php | File | 1.94 KB | 0644 |
|
entry_loop_title.php | File | 673 B | 0644 |
|
entry_meta.php | File | 11.23 KB | 0644 |
|
entry_related.php | File | 2.95 KB | 0644 |
|
entry_summary.php | File | 1007 B | 0644 |
|
entry_tags.php | File | 712 B | 0644 |
|
entry_taxonomies.php | File | 1.56 KB | 0644 |
|
entry_thumbnail.php | File | 2.43 KB | 0644 |
|
entry_title.php | File | 254 B | 0644 |
|
error-404.php | File | 655 B | 0644 |
|
error-500.php | File | 789 B | 0644 |
|
error-offline.php | File | 575 B | 0644 |
|
error.php | File | 1.05 KB | 0644 |
|
page_header.php | File | 1.26 KB | 0644 |
|
pagination.php | File | 697 B | 0644 |
|
single-entry.php | File | 2.58 KB | 0644 |
|
single.php | File | 1 KB | 0644 |
|