<?php
/*
 * Templatation.com
 *
 * Block with image on top shortcode for VC
 *
 */
$price_sub = $title = $title_type = $price = $period = $currency = $button_text = $button_link = '';

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

?>
<!-- end of code from VC -->


<div class="single-pricing-box">
    <?php if (!empty($title)) { ?>
    <div class="pricing-top-bar">
        <?php print esc_html($title); ?>
    </div>
    <?php } ?>
    <?php if (!empty($price)) { ?>
    <div class="price-box">
        <span class="currency"><?php print esc_html($currency); ?></span><span class="amount"><?php print esc_html($price); ?></span>
        <?php if( '' != $price_sub) echo esc_attr($price_sub); ?>
    </div>
    <?php } ?>
    <div class="feature-list pric-box">
        <?php print wpautop(do_shortcode(htmlspecialchars_decode($content))); ?>
    </div>
    <?php if (!empty($button_text)) { ?>
    <div class="btn-wrap">
        <a href="<?php print esc_url($button_link); ?>" class="thm-btn"><?php print esc_html($button_text); ?></a>
    </div>
    <?php } ?>
</div>