![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/hessa.corals.io/wp-content/themes/mauer-essentialist/ |
<?php /* * Posts list */ ?> <div class="posts-list-layout-masonry"> <?php if ( have_posts() ) : ?> <?php global $wp_query; ?> <?php while ( have_posts() ) : the_post(); ?> <?php $current_post_index = $wp_query->current_post + 1; ?> <?php if (mauer_essentialist_get_layout_setting("big_latest") && get_query_var('paged')==0 && is_home()) {$start_masonry_at = 2;} else {$start_masonry_at = 1;} ?> <?php if (mauer_essentialist_get_layout_setting('big_latest') && $current_post_index==1 && get_query_var('paged')==0 && is_home()): ?> <?php get_template_part('content', 'big_latest'); ?> <?php continue ?> <?php endif ?> <?php if ( (mauer_essentialist_get_layout_setting("big_latest") && $current_post_index==2 && get_query_var('paged')==0 && is_home()) || (!mauer_essentialist_get_layout_setting("big_latest") && $current_post_index==1 && get_query_var('paged')==0) || (get_query_var('paged')!=0 && $current_post_index==1) || (!is_home() && $current_post_index==1)): ?> <div class="row"> <div class="msnry-grid"><div class="msnry-grid-sizer col-xs-12 col-sm-6 col-md-4"></div> <?php endif ?> <div class="msnry-grid-item col-xs-12 col-sm-6 col-md-4"> <div class="msnry-grid-item-content"> <div <?php post_class('post-card small'); ?>> <a href="<?php the_permalink(); ?>" class="entry-thumb-link"> <?php echo mauer_essentialist_post_thumbnail_in_grids('mauer_thumb_3_softcropped'); ?> <div class="entry-thumb-overlay"></div> </a> <div class="entry-meta"> <span class="entry-date"><a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a><?php if (is_sticky()): ?> — <?php endif ?></span> <?php if (is_sticky()): ?><span class="entry-sticky"><i class="fa fa-sticky-note-o"></i> <?php esc_html_e('Sticky', 'mauer-essentialist') ?></span><?php endif ?> <?php if (has_category()): ?><span class="entry-cats"><?php echo get_the_category_list( esc_html_x( ', ', 'blog entry categories separator', 'mauer-essentialist' ) ); ?></span><?php endif ?> </div> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <div class="entry-excerpt clearfix"> <?php if ( (strpos($post->post_content, '<!--more-->') && !is_search()) || (function_exists('get_field') && get_field('automatic_excerpts', 'option')===false && !is_search()) ) {the_content();} else {the_excerpt();} ?> </div> </div><!-- /.post-card --> </div> </div> <?php if ($current_post_index == $wp_query->post_count): ?> </div><!-- .msnry-grid --> </div><!-- .row --> <?php endif ?> <?php endwhile; ?> <div class="clearfix"></div> <?php $prev_link = get_previous_posts_link(); $next_link = get_next_posts_link(); ?> <?php if ($prev_link || $next_link): // checking if pagination exists ?> <div class="mauer-pagination"> <?php if (($prev_link && !$next_link) || ($next_link && !$prev_link)): ?> <div class="row"> <div class="col-sm-4 col-sm-offset-4"> <?php if ($prev_link): ?><div class="nav-previous"><?php previous_posts_link(esc_html(mauer_essentialist_get_prev_posts_link_text())); ?></div><?php endif ?> <?php if ($next_link): ?><div class="nav-next"><?php next_posts_link(esc_html(mauer_essentialist_get_next_posts_link_text())); ?></div><?php endif ?> </div> </div> <?php endif ?> <?php if ($prev_link && $next_link): ?> <div class="row both-navs-present"> <div class="col-xs-6 col-sm-3 col-sm-offset-3"><div class="nav-previous"><?php previous_posts_link(esc_html(mauer_essentialist_get_prev_posts_link_text())); ?></div></div> <div class="col-xs-6 col-sm-3"><div class="nav-next"><?php next_posts_link(esc_html(mauer_essentialist_get_next_posts_link_text())); ?></div></div> </div> <?php endif ?> <div class="clearfix"></div> </div> <?php endif ?> <?php else: ?> <div class="row"> <div class="col-xs-12"> <div class="no-posts-message-wrapper"> <p class="text-center"><?php esc_html_e('Sorry, no posts matched your criteria', 'mauer-essentialist'); ?></p> </div> </div> </div> <?php endif; ?> </div>