<div <?php qode_framework_class_attribute( $holder_classes ); ?> <?php qode_framework_inline_style( $holder_styles ); ?>>
	<div class="qodef-m-items">
		<?php foreach ( $items as $item ) { ?>
			<a itemprop="url" class="qodef-m-item qodef-e" href="<?php echo esc_url( $item['item_link'] ); ?>" target="<?php echo esc_attr( $link_target ); ?>" <?php qode_framework_inline_style($title_styles); ?>>
				<span class="qodef-e-title"><?php echo esc_html( $item['item_title'] ); ?></span>
			</a>
		<?php } ?>
	</div>
	<div class="qodef-m-images">
		<?php foreach ( $items as $item ) { ?>
        <?php
        if ( isset( $item['item_image'] ) && ! empty( $item['item_image'] ) ) {
        $images = explode( ',', trim( $item['item_image'] ) );
        $urls   = array();
        foreach ( $images as $image ) {
        $urls[] = wp_get_attachment_image_url( $image, 'full' );
        }
        ?>
        <?php
        $video__content_classes = array();

        // code for video background
        if ( isset( $item['item_video'] ) && ! empty( $item['item_video'] ) ) {
            $video__content_classes[] = 'qodef-e-content-with-video';
        }
        ?>
        <div <?php qode_framework_class_attribute( implode( ' ', $video__content_classes ) ); ?>>

            <div class="qodef-m-image" data-images="<?php echo implode( '|', $urls ); ?>" data-images-count="<?php echo count( $urls ); ?>">
                <?php echo wp_get_attachment_image( $images[0], 'full' ); ?>

                <?php
                // code for video background
                if ( isset( $item['item_video'] ) && ! empty( $item['item_video'] ) && class_exists( 'GinevraCore_Video_Holder_Shortcode' ) ) {

                    $video_params = array(
                        'custom_class'  => '',
                        'video_source'  => $item['item_video'],
                        'video_poster'  => $images[0],
                        'enable_appear' => 'no',
                    );

                    echo GinevraCore_Video_Holder_Shortcode::call_shortcode( $video_params );
                }
                ?>

            </div>
        </div>
        <?php } ?>
		<?php } ?>
	</div>
</div>