<?php
if (! defined('ABSPATH')) {
    exit;
} $title = isset($args['title']) ? $args['title'] : '';
$subtitle = isset($args['subtitle']) ? $args['subtitle'] : '';

if ('' === $title) {
    return;
} $title_field = isset($args['title_field']) ? $args['title_field'] : 'hero-block.title';
$subtitle_field = isset($args['subtitle_field']) ? $args['subtitle_field'] : 'hero-block.subtitle';
$title_class = isset($args['title_class']) ? $args['title_class'] : 'title';
$subtitle_class = isset($args['subtitle_class']) ? $args['subtitle_class'] : 'subtitle'; ?>
<h1 class="<?php echo esc_attr($title_class); ?>" data-pgo-field="<?php echo esc_attr($title_field); ?>"><?php echo wp_kses_post($title); ?></h1>
<?php if ('' !== $subtitle) : ?>
	<p class="<?php echo esc_attr($subtitle_class); ?>" data-pgo-field="<?php echo esc_attr($subtitle_field); ?>"><?php echo wp_kses_post($subtitle); ?></p>
<?php endif; ?>
