<?php global $ainex; ?>
    <!-- SLIDER -->
    <div id="outerslider">
        <div id="slidercontainer" class="container">
            <section id="slider" class="row">
                <div id="slideritems" class="flexslider preloader twelve columns">
                    <ul class="slides">
                        <?php if ($ainex['home_slides_list']): ?>
                            <?php foreach ($ainex['home_slides_list'] as $value): ?>
                                <li style="">
                                    <img width="941" height="559" src="<?php echo $value['image']; ?>" class="attachment-full wp-post-image" alt="<?php echo $value['title']; ?>" />
                                    <div class="flex-caption">
                                        <div class="text-caption top">
                                            <div class="caption-content">
                                                <h2><a href="<?php echo $value['url']; ?>"><?php echo $value['title']; ?></a></h2>
                                                <div><?php echo $value['description']; ?></div>
                                                <div class="box-button">
                                                    <a class="sliderbutton slider_button2" href="#"><i class="fa fa-arrow-right fa-lg"></i><span><?php echo __('Order Now', 'themestudio'); ?></span></a>
                                                </div>
                                            </div>
                                            <div class="clearfix"></div>
                                        </div>
                                    </div>
                                </li>
                            <?php endforeach ?>
                        <?php else: ?>
                            <li style="">
                                <div class="flex-caption">
                                    <div class="text-caption top">
                                        <div class="caption-content">
                                            <h2><a href="#"><?php echo __('Reliable &amp; Fast Respond Server for Your Business', 'themestudio'); ?></a></h2>
                                            <div><?php echo __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid consequuntur unde quae totam recusandae laborum saepe eveniet accusamus tempora. Lorem ipsum dolor sit amet, consectetur adipisicing elit.', 'themestudio'); ?></div>
                                            <div class="box-button">
                                                <a class="sliderbutton slider_button2" href="#"><i class="fa fa-arrow-right fa-lg"></i><span><?php echo __('Order Now', 'themestudio'); ?></span></a>
                                            </div>
                                        </div>
                                        <div class="clearfix"></div>
                                    </div>
                                </div>
                            </li>
                        <?php endif ?>
                    </ul>
                </div>
                <div class="clearfix"></div>
            </section>
            <div class="clearfix"></div>
        </div>
    </div>
    <!-- END SLIDER -->