<?php

use Tangibledesign\MyHome\Widgets\General\QuoteWidget;

/* @var QuoteWidget $mhCurrentWidget */
global $mhCurrentWidget;
?>
<div class="myhome-quote">
    <div class="myhome-quote__bar"></div>
    <div class="myhome-quote__content">
        <blockquote class="myhome-quote__text">
            <?php echo wp_kses_post(nl2br($mhCurrentWidget->getQuoteText())); ?>
        </blockquote>
        
        <?php if ($mhCurrentWidget->hasAuthor()) : ?>
            <cite class="myhome-quote__author">
                — <?php echo esc_html($mhCurrentWidget->getQuoteAuthor()); ?>
            </cite>
        <?php endif; ?>
    </div>
</div>