<?php
if(isset($settings['items']) && !empty($settings['items']) && count($settings['items'])): ?>
    <div class="pxl-text-carousel pxl-text-carousel1 pxl-text-slide1 <?php echo esc_attr($settings['style']); ?>">
        <?php if($settings['style'] == 'style2') : ?>
            <div class="pxl-svg">
                <svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 45" width="900" height="45">
                    <title>Vector Smart Object</title>
                    <style>
                        .s0 { fill: #e24c0f } 
                    </style>
                    <g id="Ñëîé 1">
                        <g id="&lt;Group&gt;">
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m49.8 45.1h-22.1l34.3-45h22z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m94 45.1h-22.1l34.2-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m138.1 45.1h-22.1l34.3-45h22z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m182.3 45.1h-22.1l34.2-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m226.4 45.1h-22.1l34.3-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m270.6 45.1h-22.1l34.2-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m314.7 45.1h-22l34.2-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m358.9 45.1h-22.1l34.2-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m403 45.1h-22l34.2-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m447.2 45.1h-22.1l34.2-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m491.3 45.1h-22l34.2-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m535.5 45.1h-22.1l34.3-45h22z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m579.7 45.1h-22.1l34.2-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m623.8 45.1h-22.1l34.3-45h22z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m668 45.1h-22.1l34.2-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m712.1 45.1h-22.1l34.3-45h22z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m756.3 45.1h-22.1l34.2-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m800.4 45.1h-22.1l34.3-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m844.6 45.1h-22.1l34.2-45h22.1z"/>
                            </g>
                            <g id="&lt;Group&gt;">
                                <path id="&lt;Path&gt;" class="s0" d="m226.4 45.1h-22.1l34.3-45h22.1z"/>
                            </g>
                            <path id="&lt;Path&gt;" class="s0" d="m900 1.3l-33.3 43.8h22l11.3-14.8z"/>
                            <path id="&lt;Path&gt;" class="s0" d="m17.8 0.1l-17.8 23.4v21.6h5.7l34.2-45z"/>
                        </g>
                    </g>
                </svg>
            </div>
        <?php endif; ?>
        <div class="pxl-text-slide <?php echo esc_attr($settings['effect']); ?>" <?php if(!empty($settings['effect_speed'])) { ?>style="animation-duration:<?php echo esc_attr($settings['effect_speed']); ?>ms"<?php } ?>>
            <?php foreach ($settings['items'] as $key => $value):
                $text = isset($value['text']) ? $value['text'] : '';
                if(!empty($text)) : ?>
                    <div class="pxl--item <?php echo esc_attr($settings['pxl_animate']); ?>" data-wow-delay="<?php echo esc_attr($settings['pxl_animate_delay']); ?>ms">
                        <div class="pxl-item--text"><span><?php echo pxl_print_html($text); ?></span></div>
                    </div>
                <?php endif; ?>
            <?php endforeach; ?>
        </div>
        <div class="pxl-text-fixed">
            <?php foreach ($settings['items'] as $key => $value):
                $text = isset($value['text']) ? $value['text'] : '';
                if(!empty($text)) : ?>
                    <div class="pxl--item <?php echo esc_attr($settings['pxl_animate']); ?>" data-wow-delay="<?php echo esc_attr($settings['pxl_animate_delay']); ?>ms">
                        <div class="pxl-item--text"><span><?php echo pxl_print_html($text); ?></span></div>
                    </div>
                <?php endif; ?>
            <?php endforeach; ?>
        </div>
    </div>
<?php endif; ?>