<?php

use Elementor\Utils;

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

list($animate_class, $animation_attr) = tfl_get_animation_atts($settings['widget_animation']);

?>

<div class="tfl-heading tfl-style1 tfl-align<?php echo $settings['align']; ?> <?php echo $animate_class; ?>" <?php echo $animation_attr; ?>>

    <?php if (!empty($settings['subtitle'])): ?>
        <div class="tfl-subtitle"><?php echo esc_html($settings['subtitle']); ?></div>
    <?php endif; ?>

    <h2 class="tfl-title"><?php echo wp_kses_post($settings['heading']); ?></h2>

</div><!-- .tfl-heading -->