<?php
/**
* Page Title
*
* @package Katerio
*/
if( is_404() || is_home() || is_front_page() || th90_is_builder_page() || is_single() ) {
return;
}
$classes = array(
'site-section',
'page_title-section',
'is-skin',
'bg-' . th90_opt( 'page_title_bg' ),
th90_opt( 'page_title_bg_sec' ) ? 'bg-second' : '',
th90_opt( 'page_title_bg_custom' ) ? 'bg-custom' : '',
th90_is_amp() ? 'text-center' : 'text-' . th90_opt( 'page_title_align' ),
);
global $wp_query;
$post_count = $wp_query->found_posts;
?>
<?php if ( th90_page_title() ): ?>
<div class="<?php echo esc_attr( implode( ' ', array_filter( $classes ) ) ); ?>">
<div class="container">
<div class="row">
<div class="section-inner">
<div class="entry-header-page">
<div class="page-title-wrap">
<div class="page-title">
<?php
if ( th90_page_title() ) {
$heading = th90_heading_block( array(
'_heading' => th90_page_title( 'span' ),
'_heading_align' => th90_is_amp() ? 'center' : th90_opt( 'page_title_align' ),
'_heading_style' => th90_opt( 'page_title_style' ),
'_heading_tag' => 'h1',
'_heading_size' => th90_opt( 'page_title_size' ),
) );
echo wp_kses_post( $heading );
}
if ( ( is_archive() || is_search() ) && $post_count && th90_opt( 'archive_articles_count' ) && ! th90_woo_check_page( 'is_shop' ) ) {
?>
<div class="articles-count"><?php echo sprintf( esc_html__( '%1$s Articles', 'katerio' ), $post_count ); ?></div>
<?php
}
?>
</div>
<?php if( is_archive() && get_the_archive_description() && ! th90_woo_check_page( 'is_shop' ) ) : ?>
<?php
if( is_author() ) {
if ( TH90_KATERIO_CORE_ACTIVE && get_the_author_meta( 'description', get_the_author_meta( 'ID' ) ) ) {
echo '<div class="page-desc">';
th90_author_box( get_the_author_meta( 'ID' ), 110, true );
echo '</div>';
}
} else {
echo '<div class="page-desc">';
the_archive_description();
echo '</div>';
}
?>
<?php endif; ?>
<?php if ( is_search() && th90_is_amp() ) : ?>
<?php
echo ' <div class="page-desc">';
get_search_form();
echo '</div>';
?>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>