<?php
    $hotel26_service_three_contents            = get_theme_mod('service_three_contents', hotel26_get_service_three_default());
?>    
<section id="service-three-section" class="service-three-section">
    <div class="container">        
        <div class="footer-service">
            <div class="footer-service-slider owl-carousel">
            <?php
            if (! empty($hotel26_service_three_contents) ) {
                $hotel26_service_three_contents = json_decode($hotel26_service_three_contents);
                foreach ( $hotel26_service_three_contents as $hotel26_index => $hotel26_service_three_item ) {
                    $hotel26_repeater_title = ! empty($hotel26_service_three_item->title) ? apply_filters('hotel_26_translate_single_string', $hotel26_service_three_item->title, 'Service section') : '';
                    $hotel26_repeater_image = ! empty($hotel26_service_three_item->image_url2) ? apply_filters('hotel_26_translate_single_string', $hotel26_service_three_item->image_url2, 'Service section') : '';
                    $hotel26_repeater_icon = ! empty($hotel26_service_three_item->icon_value) ? apply_filters('hotel_26_translate_single_string', $hotel26_service_three_item->icon_value, 'Service section') : '';
                    ?>
                <div class="service-item wow fadeIn" data-wow-delay="100ms" data-wow-duration="1500ms">
                    <?php if(!empty($hotel26_repeater_image)) : ?>
                        <div class="service-img">
                            <img src="<?php echo esc_url($hotel26_repeater_image); ?>" alt="<?php echo esc_attr__('Service Image', 'hotel-26'); ?>">
                        </div>
                    <?php endif; ?>
                    <?php if(!empty($hotel26_repeater_title)) : ?>
                        <h6 class="service-title"><?php echo esc_html($hotel26_repeater_title); ?></h6>
                    <?php endif; ?>
                </div>
                <?php } 
            } ?>            
            </div>
        </div>
    </div>
</section>