<?php
/**
 * Partial template for page title.
 *
 * @package Color MagazineX
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

$enable_header_page_title = get_theme_mod( 'color_magazinex_enable_header_page_title', true );

$color_magazinex_breadcrumb_option = get_theme_mod( 'color_magazinex_enable_breadcrumb_option', true );

if ( is_front_page() || ( false === $enable_header_page_title && false === $color_magazinex_breadcrumb_option ) ) {
    return;
}

/**
 * color_magazinex_before_page_title hook
 * 
 * 
 * @since 1.0.0
 */
do_action( 'color_magazinex_before_page_title' );

$heading_tag = apply_filters( 'color_magazinex_page_title_heading_tag', 'h1' );
?>
    <div class="mt-custom-page-header">
        <div class="mt-container inner-page-header mt-clearfix">
            <?php if ( false !== $enable_header_page_title ) { ?>
                <<?php echo esc_attr( $heading_tag ); ?> class="page-title"><?php echo wp_kses_post( color_magazinex_get_the_title() ); ?></<?php echo esc_attr( $heading_tag ); ?>>
            <?php } ?>
            <?php
                /**
                 * color_magazinex_inside_page_title hook
                 *
                 * @hooked - color_magazinex_breadcrumb_content - 10
                 *
                 * @since 1.0.0
                 */
                do_action( 'color_magazinex_inside_page_title' );
            ?>
        </div><!-- .mt-container -->
    </div><!-- .mt-custom-page-header -->
<?php
/**
 * color_magazinex_after_page_title hook
 * 
 * 
 * @since 1.0.0
 */
do_action( 'color_magazinex_after_page_title' );