if ('option1' == gridsby_sanitize_index_content(get_theme_mod('gridsby_post_time_method'))) { $args = array('post_type' => 'post', 'posts_per_page' => 20, 'order' => 'ASC', 'tax_query' => array(array('taxonomy' => 'post_format', 'field' => 'slug', 'terms' => 'post-format-image'))); } else { $args = array('post_type' => 'post', 'posts_per_page' => 20, 'tax_query' => array(array('taxonomy' => 'post_format', 'field' => 'slug', 'terms' => 'post-format-image'))); } $myposts = get_posts($args); foreach ($myposts as $post) { setup_postdata($post); ?> <?php if (has_post_format('image')) { ?> <?php if ('option1' == gridsby_sanitize_index_content(get_theme_mod('gridsby_post_link_method'))) { ?> <div> <div class="lightbox-content"> <div class="dummy-img"> <?php the_post_thumbnail('gridsby-gallery-full'); ?> </div><!-- dummy-img --> <h2 class="dummy-title"> <?php the_title();
the_time('F j, Y'); ?> </span> </div><!-- .entry-meta --> <?php } ?> </header><!-- .entry-header --> <div class="entry-content"> <?php the_post_thumbnail('large', array('class' => 'archive-image')); ?> <?php /* translators: %s: Name of current post */ if ('option2' == gridsby_sanitize_index_content(get_theme_mod('gridsby_post_content'))) { the_content(__('Continue reading %s <span class="meta-nav">→</span>', 'gridsby')); } else { the_excerpt(__('<span class="screen-reader-text">"', '"</span>', false)); } ?> <?php wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'gridsby'), 'after' => '</div>')); ?> </div><!-- .entry-content --> <footer class="entry-footer"> <a href="<?php echo get_permalink(); ?>
<?php } else { get_template_part('content', 'none'); } ?> </main><!-- #main --> </div><!-- #primary --> </div><!-- col --> <?php if ('option1' == gridsby_sanitize_index_content(get_theme_mod('gridsby_category_layout'))) { ?> <?php } else { ?> <?php get_sidebar(); ?> <?php } ?>