<?php
/**
   * The template for Slider.
   *
   *
   * @package   igor WordPress Theme
   * @copyright Copyright (C) 2016, OrdaSoft
   * @license    http://www.gnu.org/licenses/gpl-2.0.html  GNU General Public License v2 or later
   * @author      AUTHOR <www.ordasoft.com>
   * igor is distributed under the terms of the GNU GPL
*/
?>
<div id="slider" class="swiper-container">
    <div class="swiper-wrapper">
        <?php $text_slider = new WP_Query (array(
            'post_type' => 'text_slider',
            'posts_per_page' => -1,
        )); ?>
        <?php if($text_slider -> have_posts() ): ?>
        <?php while($text_slider -> have_posts() ) : $text_slider -> the_post();?>
            <div class="swiper-slide">
                <div class="slide-content">
                    <div class="left-content">
                        <?php the_post_thumbnail(array(500,500)); ?>
                    </div>
                    <div class="right-content">
                        <h1><?php echo get_the_title() ?></h1>
                        <a href="#aboutus" class="button-about">
                            <?php  _e( 'Now', 'igor' ); ?>
                        </a>
                    </div>
                </div>

            </div>
        <?php wp_reset_query();?>
        <?php endwhile; ?>
        <?php else : ?>
            <h2><?php  _e('NO Slide', 'igor'); ?></h2>
        <?php endif; ?>
        </div>
         <!-- Add Pagination -->
        <div class="swiper-pagination"></div>
</div>
<a href="#modal-css" class="overlay" id="aboutus"></a>
<div class="popup">
   <div id="about-us" class="clear">

    <section id="about-intro" class="row">

     <h2>Vivamuslibero Auguer</h2>

     <div class="panorama col-lg-6"><a href="../igor/wp-content/uploads/2015/09/14202195290_4ac1d5a92b_b.jpg"><img src="../igor/wp-content/uploads/2015/09/14202195290_4ac1d5a92b_b-300x200.jpg" alt="14202195290_4ac1d5a92b_b" width="300" height="200" class="alignnone size-medium wp-image-632" /></a></div>


</section>

<blockquote>
          <p><span>&ldquo;</span> In odio. Mauris feugiat. Nunc posuere, felis sit amet faucibus convallis, tortor enim viverra quam, hendrerit interdum dui quam ut lacus. Vivamus accumsan donec molestie pede vel urna curabitur eget sem ornare felis.</p>
        </blockquote>

    </div>

    <a class="close" title="Close" href="#close"></a>
</div>