array() ); $postId = get_the_ID(); $title = get_the_title(); $link = get_the_permalink(); if ($show_author_info) { $author = get_the_author(); $author_id = get_the_author_meta('ID'); $link_author = get_author_posts_url($author_id); } if ($show_date_info) { $day = get_the_date('d'); $month = get_the_date('m'); $year = get_the_date('Y'); $link_date = get_day_link($year, $month, $day); $date_post = get_the_date(); } if (!isset($nasa_opt['blog_type']) || $nasa_opt['blog_type'] == 'masonry-isotope') : $file = ELESSI_CHILD_PATH . '/includes/nasa-blog-masonry-isotope.php'; include is_file($file) ? $file : ELESSI_THEME_PATH . '/includes/nasa-blog-masonry-isotope.php'; elseif ($nasa_opt['blog_type'] == 'blog-grid') : $file = ELESSI_CHILD_PATH . '/includes/nasa-blog-grid.php'; include is_file($file) ? $file : ELESSI_THEME_PATH . '/includes/nasa-blog-grid.php'; elseif ($nasa_opt['blog_type'] == 'blog-standard') : $file = ELESSI_CHILD_PATH . '/includes/nasa-blog-standard.php'; include is_file($file) ? $file : ELESSI_THEME_PATH . '/includes/nasa-blog-standard.php'; elseif ($nasa_opt['blog_type'] == 'blog-list') : $file = ELESSI_CHILD_PATH . '/includes/nasa-blog-list.php'; include is_file($file) ? $file : ELESSI_THEME_PATH . '/includes/nasa-blog-list.php'; endif; $k++; endwhile; echo (!isset($nasa_opt['blog_type']) || in_array($nasa_opt['blog_type'], array('masonry-isotope', 'blog-grid'))) ? '' : ''; ?>