"; /* Start the Loop */ while (have_posts()) : the_post(); /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part('template-parts/content', get_post_format()); endwhile; echo ''; /** * allure_news_post_navigation hook * @since Allure News 1.0.0 * * @hooked allure_news_posts_navigation - 10 */ do_action('allure_news_action_navigation'); else : get_template_part('template-parts/content', 'none'); endif; } else { while (have_posts()) : the_post(); get_template_part('template-parts/content', 'page'); // If comments are open or we have at least one comment, load up the comment template. if (comments_open() || get_comments_number()) { comments_template(); } endwhile; // End of the loop. } } } endif; add_action('allure_news_action_front_page', 'allure_news_front_page', 10); /** * Function to list categories of a post * * @param int $post_id * @return void Lists of categories with its link * * @since 1.0.0 * */ if (!function_exists('allure_news_list_category')) : function allure_news_list_category($post_id = 0) { if (0 == $post_id) { global $post; if (isset($post->ID)) { $post_id = $post->ID; } } if (0 == $post_id) { return null; } $categories = get_the_category($post_id); $separator = ' '; $output = ''; if ($categories) { $output .= ''; foreach ($categories as $category) { $output .= '' . esc_html($category->cat_name) . '' . $separator; } $output .= ''; echo trim($output, $separator); } } endif; /** * Function to modify tag clouds font size * * @param none * @return array $args * * @since 1.0.0 * */ if (!function_exists('allure_news_tag_cloud_widget')) : function allure_news_tag_cloud_widget($args) { $args['largest'] = 12; //largest tag $args['smallest'] = 12; //smallest tag $args['unit'] = 'px'; //tag font unit return $args; } endif; add_filter('widget_tag_cloud_args', 'allure_news_tag_cloud_widget'); /** * Callback functions for comments * * @param $comment * @param $args * @param $depth * @return void * * @since 1.0.0 * */ if (!function_exists('allure_news_commment_list')) : function allure_news_commment_list($comment, $args, $depth) { $args['avatar_size'] = apply_filters('allure_news_comment_avatar_size', 50); if ('pingback' == $comment->comment_type || 'trackback' == $comment->comment_type) : ?>