<?php do_action('peggi_select_action_before_page_title'); ?>

<div class="qodef-title-holder <?php echo esc_attr($holder_classes); ?>" <?php peggi_select_inline_style($holder_styles); ?> <?php echo peggi_select_get_inline_attrs($holder_data); ?>>
	<?php if(!empty($title_image)) { ?>
		<div class="qodef-title-image">
			<img itemprop="image" src="<?php echo esc_url($title_image['src']); ?>" alt="<?php echo esc_attr($title_image['alt']); ?>" />
		</div>
	<?php } ?>
	<div class="qodef-title-wrapper" <?php peggi_select_inline_style($wrapper_styles); ?>>
		<div class="qodef-title-inner">
			<div class="qodef-grid">
				<?php if(!empty($title)) { ?>
					<<?php echo peggi_select_escape_title_tag($title_tag); ?> class="qodef-page-title entry-title" <?php peggi_select_inline_style($title_styles); ?>><?php echo esc_html($title); ?></<?php echo peggi_select_escape_title_tag($title_tag); ?>>
				<?php } ?>
				<?php if(!empty($subtitle)){ ?>
					<<?php echo peggi_select_escape_title_tag($subtitle_tag); ?> class="qodef-page-subtitle" <?php peggi_select_inline_style($subtitle_styles); ?>><?php echo esc_html($subtitle); ?></<?php echo peggi_select_escape_title_tag($subtitle_tag); ?>>
				<?php } ?>
			</div>
	    </div>
	</div>
</div>

<?php do_action('peggi_select_action_after_page_title'); ?>
