<div id="edgtf-interactive-text" <?php blaze_edge_class_attribute($classes);?>>
    <div class="edgtf-interactive-text-inner">
        <?php if(!empty($interactive_text_items)) { ?>
            <div class="edgtf-interactive-text-images-holder">
                <?php $i_images = 0; ?>
                    <?php foreach ($interactive_text_items as $interactive_text_items_content): ?>
                       <?php if(isset($interactive_text_items_content['image'])) { ?>
                            <div class="edgtf-interactive-text-item-image" data-index="<?php echo esc_attr($i_images);?>" <?php echo blaze_edge_inline_style('background-image: url(' . wp_get_attachment_url($interactive_text_items_content['image']) . ')'); ?>></div>
                        <?php 
                        $i_images++;
                    } ?>
                    <?php endforeach; ?>
            </div>
            <div class="edgtf-interactive-text-content-holder" <?php blaze_edge_inline_style($holder_style);?>>
                <div class="edgtf-interactive-text-content-table">
                    <div class="edgtf-interactive-text-content-table-cell">
                        <?php $i_content = 0; ?>
                            <div class="edgtf-interactive-text-content-line">
                                <div class="swiper-container">
                                    <div class="swiper-wrapper">
                                        <?php foreach ($interactive_text_items as $interactive_text_items_content): ?>
                                            <?php if(isset($interactive_text_items_content['title'])) { ?>
                                                <?php 
	                                                $title_color = '';

	                                                if(isset($interactive_text_items_content['text_color'])) { 
	                                                    $title_color .= 'color:' . $interactive_text_items_content['text_color'] . ';';
	                                                }

	                                                $subtitle_color = '';

	                                                if(isset($interactive_text_items_content['subtitle_color'])) { 
	                                                    $subtitle_color .= 'color:' . $interactive_text_items_content['subtitle_color'] . ';';
	                                                }
                                                ?>

                                                <div class="edgtf-interactive-text-item swiper-slide">
                                                    <div class="edgtf-interactive-text-item-content" data-index="<?php echo esc_attr($i_content);?>">
                                                        <span class="edgtf-interactive-text-item-wrap">
                                                            <?php if (!empty($interactive_text_items_content['link'])) { ?>
                                                                <a class="edgtf-interactive-text-item-link" target="_blank" href="<?php echo esc_url($interactive_text_items_content['link']) ?>">
                                                            <?php } ?>
                                                            	<span class="edgtf-iti-title" <?php echo blaze_edge_inline_style($title_color); ?>>
	                                                                <?php echo esc_html($interactive_text_items_content['title']);?><?php if (isset($interactive_text_items_content['sup_text'])) { ?><sup><?php echo esc_html($interactive_text_items_content['sup_text']);?></sup><?php } ?>
	                                                            </span>
	                                                            <?php if (isset($interactive_text_items_content['subtitle']) && $interactive_text_items_content['subtitle'] !== '') { ?>
	                                                            	<span class="edgtf-iti-subtitle" <?php echo blaze_edge_inline_style($subtitle_color); ?>>
	                                                                	<?php echo esc_html($interactive_text_items_content['subtitle']);?>
		                                                            </span>
	                                                            <?php } ?>
                                                            <?php if (!empty($interactive_text_items_content['link'])) { ?>
                                                                </a>
                                                            <?php } ?>
                                                        </span>
                                                        <div class="edgtf-interactive-text-items-separator">
                                                            <span class="edgtf-interactive-text-items-separator-inner"></span>
                                                        </div>
                                                    </div>
                                                </div>

                                            <?php $i_content++; } ?>
                                        <?php endforeach; ?>
                                    </div>
                                </div>
                            </div>
                    </div>
                </div>
            </div>
        <?php } ?>
    </div>
</div>