<?php

/*
* Stop execution if someone tried to get file directly.
*/
if ( !defined( 'ABSPATH' ) ) {
    exit;
}
if ( $feed->media_url ) {
    ?>

	<div class="efbl-row-content">
		<div class="esf-insta-row-wrapper esf-insta-story-wrapper">

			<?php 
    if ( !efl_fs()->is_plan( 'instagram_premium', true ) && !efl_fs()->is_plan( 'combo_premium', true ) ) {
        ?>

				<a class="esf_insta_feed_fancy_popup esf-lazyload esf_insta_row_box <?php 
        echo esc_attr( ( isset( $gdpr_image_class ) ? $gdpr_image_class : '' ) );
        ?>"
				   href="<?php 
        echo esc_url( $permalink );
        ?>"
				   target="<?php 
        esc_attr_e( $link_target );
        ?>"
                   data-imgsrc="<?php 
        echo esc_url( $thumbnail_url );
        ?>"
				   style="background-image: url(<?php 
        echo esc_url( $thumbnail_url );
        ?>)"<?php 
        echo ( isset( $gdpr_image_attr ) ? $gdpr_image_attr : '' );
        ?>>

					<div class="esf-insta-overlay">

						<?php 
        if ( $mif_values['show_feed_open_popup_icon'] ) {
            ?>

							<i class="icon icon-esf-plus esf-insta-plus"
							   aria-hidden="true"></i>

						<?php 
        }
        ?>

						<?php 
        if ( $feed->media_type == 'VIDEO' ) {
            ?>
							<i class="icon icon-esf-clone icon-esf-video-camera"
							   aria-hidden="true"></i>
							<?php 
        }
        if ( $feed->media_type == 'CAROUSEL_ALBUM' ) {
            ?>
							<i class="icon icon-esf-clone esf-insta-multimedia"
							   aria-hidden="true"></i>
						<?php 
        }
        ?>
					</div>
				</a>
			<?php 
    }
    ?>
		</div>
	</div>

<?php 
}