<div class="container">
  <?php if ('yes' === $settings['show_more']) { ?>
    <header class="col title-five">
      <a class="inner-card" href="<?php the_permalink(); ?>">
        <h4 class="Survey-title"><?php echo $settings['title']; ?></h4>
        <?php
        echo '<a class="Survey-bt-mor" href="' . $settings['website_link']['url'] . '">';
        echo $settings['title_more'];
        ''; ?>
      </a>
      </a>
    </header>
  <?php } ?>
  <section <?php post_class('wpcap-post'); ?>>
    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 2rem;">
      <div class="row-no-padding grid-banner">
        <?php while ($all_posts->have_posts()) :
          $all_posts->the_post(); ?>
          <div class="col-lg-3 col-md-3 col-sm-6 col-xs-6 grid-1-small">
            <div class="thumbarea">
              <a href="<?php the_permalink(); ?>"></a>
              <div class="thumbarea-content">
                <?php if ('yes' === $settings['show_author']) { ?>
                  <div class="category-label">
                    <a href="<?php the_permalink(); ?>" style="color:<?php echo $settings['title_color_1one'] ?> ;background-color:<?php echo $settings['title_color_2112'] ?>"><?php the_author(); ?></a>
                  </div>
                <?php } ?>
                <h2 class="gallery-title-small">
                  <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
                </h2>
                <ul class="post-meta">
                  <?php $this->render_meta(); ?>
                </ul>
              </div>
              <div class="slide-image-wrap">
                <?php if ('yes' === $settings['show_views']) { ?>
                  <div class="score-label score-label-2">
                    <?php
                    if (function_exists('get_post_view_count')) {
                      echo get_post_view_count(get_the_ID()) . _e('Visit', 'liosa');
                    }
                    ?>
                  </div>
                <?php } ?>
                <a href="<?php the_permalink(); ?>">
                  <?php
                  if (has_post_thumbnail()) {
                    the_post_thumbnail('medium_large', array('alt' => '' . get_the_title(), 'title' => '' . get_the_title() . ''));
                  } else { ?>
                    <img src="<?php print(get_template_directory_uri()); ?>/assets/images/thumb.gif" alt="<?php _e('Image not found', 'liosa'); ?>" title="<?php _e('Image not found', 'liosa'); ?>">
                  <?php } ?>
                </a>
              </div>
            </div>
          </div>
        <?php endwhile; ?>
      </div>
    </div>
  </section>
</div>