<?php

use Tangibledesign\MyHome\Widgets\General\SpacerWidget;

/* @var SpacerWidget $mhCurrentWidget */
global $mhCurrentWidget;

$customHeightDesktop = $mhCurrentWidget->getCustomHeightValue();
$customHeightTablet = $mhCurrentWidget->getCustomHeightValue('tablet');
$customHeightMobile = $mhCurrentWidget->getCustomHeightValue('mobile');
?>
<div
    class="<?php echo esc_attr($mhCurrentWidget->getSpacerClass()); ?>"
    <?php if ($customHeightDesktop !== null) : ?>data-custom-height="<?php echo esc_attr($customHeightDesktop); ?>"<?php endif; ?>
    <?php if ($customHeightTablet !== null) : ?>data-custom-height-tablet="<?php echo esc_attr($customHeightTablet); ?>"<?php endif; ?>
    <?php if ($customHeightMobile !== null) : ?>data-custom-height-mobile="<?php echo esc_attr($customHeightMobile); ?>"<?php endif; ?>
>
    <!-- MyHome Spacer -->
</div>
