<?php
$atts = vc_map_get_attributes($this->getShortcode(), $atts);
extract($atts);

stm_module_styles('image_box', $style);

$image_size = (!empty($image_size)) ? $image_size : '290x250';

?>

<div class="stm_image_box">

    <?php if(!empty($image)): ?>
        <?php echo html_entity_decode(stm_get_VC_attachment_img_safe($image, $image_size)); ?>
    <?php endif; ?>

    <div class="stm_image_box__content">

        <?php if(!empty($title)): ?>
            <div class="stm_image_box__title">
                <h3><?php echo esc_attr($title); ?></h3>
            </div>
        <?php endif; ?>

		<?php if(!empty($textarea)): ?>
            <div class="stm_image_box__textarea"><?php echo esc_attr($textarea); ?></div>
		<?php endif; ?>

        <?php if(!empty($button)) stm_vc_create_button($button); ?>


    </div>
</div>