<br>
<!-- Themes and Extensions -->
<div class="extension-theme-wrapper">
    <?php 
    if ( ! empty( $args['ATBDP_Extensions']->extensions ) ) : ?>
    <div class="et-column">
        <h3><?php esc_html_e( 'Extensions', 'directorist' ) ?></h3>

        <?php foreach ( $args['ATBDP_Extensions']->extensions as $extension_key => $extension ) :
            $link = ATBDP_Upgrade::promo_link( $extension['link'] );
            ?>
        <div class="et-card">
            <div class="et-card__image">
                <img src="<?php echo esc_url( $extension['thumbnail'] ); ?>" alt="">
            </div><!-- ends: .et-card__image -->
            <div class="et-card__details">
                <h3><?php echo esc_html( $extension['name'] ); ?></h3>
                <p><?php echo esc_html( $extension['description'] ); ?></p>
                <ul>
                    <li><a href="<?php echo esc_url( $link ); ?>" class="et-card__btn et-card__btn--primary"><?php esc_html_e( 'View Details', 'directorist' ); ?></a></li>
                    <li><a href="<?php echo esc_url( $link ); ?>" class="et-card__btn et-card__btn--secondary"><?php esc_html_e( 'Get It Now', 'directorist' ); ?></a></li>
                </ul>
            </div>
        </div><!-- ends: .et-card -->
        <?php endforeach; ?>
    </div><!-- ends: .et-column -->
    <?php endif; ?>
    
    <?php if ( ! empty( $args['ATBDP_Extensions']->themes ) ) : ?>
    <div class="et-column">
        <h3><?php esc_html_e( 'Themes', 'directorist' ) ?></h3>

        <?php foreach ( $args['ATBDP_Extensions']->themes as $theme_key => $theme ) : 
            $link = ATBDP_Upgrade::promo_link( $theme['link'] );
            ?>
        <div class="et-card">
            <div class="et-card__image">
                <img src="<?php echo esc_url( $theme['thumbnail'] ); ?>" alt="">
            </div><!-- ends: .et-card__image -->
            <div class="et-card__details">
                <h3><?php echo esc_html( $theme['name'] ); ?></h3>
                <p><?php echo esc_html( $theme['description'] ); ?></p>
                <ul>
                    <li><a href="<?php echo esc_url( $link ); ?>" class="et-card__btn et-card__btn--primary"><?php esc_html_e( 'View Details', 'directorist' ) ?></a></li>
                    <li><a href="<?php echo esc_url( $link ); ?>" class="et-card__btn et-card__btn--secondary"><?php esc_html_e( 'Get It Now', 'directorist' ) ?></a></li>
                </ul>
            </div>
        </div><!-- ends: .et-card -->
        <?php endforeach; ?>
    </div><!-- ends: .et-column -->
    <?php endif; ?>
</div><!-- ends: .theme-extension-wrapper -->