<?php
/**
 * The template part used for displaying the entry header for archives.
 *
 * This template part can be overridden by copying it to a child theme or in the same theme
 * by putting it in the root `/template-parts/entry-header-archive.php` or in `/template-parts/blog/entry-header-archive.php`.
 *
 * @see pixelgrade_locate_component_template_part()
 *
 * HOWEVER, on occasion Pixelgrade will need to update template files and you
 * will need to copy the new files to your child theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see        https://pixelgrade.com
 * @author     Pixelgrade
 * @package    Components/Blog
 * @version    1.0.0
 */

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

$classes = array();
$classes[] = 'h2';
$classes[] = 'entry-title';
$classes[] = 'u-page-title-color';

$classes = apply_filters( 'components_entry_header_classes', $classes );

?>

<h2 class="<?php echo esc_attr( join( ' ', $classes ) ); ?>"><?php the_archive_title(); ?></h2>
