<?php

use Tangibledesign\MyHome\Widgets\General\DynamicTitleWidget;

/* @var DynamicTitleWidget $mhCurrentWidget */
global $mhCurrentWidget;
?>
<h1 class="myhome-dynamic-title">
    <?php if (is_search()) : ?>
        <?php echo tdf_string('search') . ': ' . esc_html(get_query_var('s')); ?>
    <?php elseif (is_single()) : ?>
        <?php the_title() ?>
    <?php else : ?>
        <?php the_archive_title(); ?>
    <?php endif; ?>
</h1>
