include locate_template('template-parts/loops/loop-' . $thisPostType . '.php'); if ($thisPostsCount >= $postsBreak && $thisIndex + 1 == $postsBreak && !$is_end) { echo '</div>'; get_template_part('template-parts/sc-newsletter-form'); echo '<div class="cpts-articles-list">'; } } ?> </div> <?php if ($thisPostsCount <= $postsBreak) { get_template_part('template-parts/sc-newsletter-form'); } ?> <?php echo $netevl_theme->getPager($currentPage, $thisPosts->max_num_pages, '<a class="cpts-btn btn-move-top" href="#">Nahoru</a>'); ?> <?php wp_reset_postdata(); ?> </div> <?php } ?> </main> <?php get_sidebar(); ?> </div> </div> </div>