HEX
Server: Apache
System: Linux server.mart2global.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User: henzergrouphenz (1442)
PHP: 7.4.28
Disabled: NONE
Upload Files
File: /home/henzergrouphenz/public_html/wp-content/themes/metro/template-parts/content-banner.php
<?php
/**
 * @author  RadiusTheme
 * @since   1.0
 * @version 1.0
 */

namespace radiustheme\Metro;

if ( !RDTheme::$has_banner ) {
	return;
}

if ( is_search() ) {
	$title = esc_html__( 'Search Results for : ', 'metro' ) . get_search_query();
}
elseif ( is_404() ) {
	$title = esc_html__( 'Page not Found', 'metro' );
}
elseif ( is_home() ) {
	if ( get_option( 'page_for_posts' ) ) {
		$title = get_the_title( get_option( 'page_for_posts' ) );
	}
	else {
		$title = apply_filters( "rdtheme_blog_title", esc_html__( 'All Posts', 'metro' ) );
	}
}
elseif ( is_archive() ) {
	$title = get_the_archive_title();
}
else{
	$title = get_the_title();
}

$title = apply_filters( 'rdtheme_page_title', $title );
?>
<div class="banner">
	<div class="container">
		<div class="banner-content">
			<h1><?php echo wp_kses_post( $title );?></h1>
			<?php if ( RDTheme::$has_breadcrumb ): ?>
				<div class="main-breadcrumb"><?php Helper::the_breadcrumb();?></div>
			<?php endif; ?>
		</div>
	</div>
</div>