'0', 'exclude' => '1', ) ); $allrounder_news_cat_array = array(); if( $select ){ $allrounder_news_cat_array[''] = esc_html__('--Select--','allrounder-news'); } foreach($allrounder_news_cat_lists as $allrounder_news_cat_list){ $allrounder_news_cat_array[$allrounder_news_cat_list->slug] = $allrounder_news_cat_list->name; } return $allrounder_news_cat_array; } endif; if( ! function_exists( 'allrounder_news_Posts_list' ) ) : /** Post Category List **/ function allrounder_news_Posts_list($select){ $posts = get_posts( array('posts_per_page' => -1) ); $post_lists = array(); if( $select ){ $post_lists[''] = esc_html__( 'Select Post', 'allrounder-news' ); } foreach($posts as $post) : $post_lists[$post->ID] = $post->post_title; endforeach; return $post_lists; } endif; if( ! function_exists( 'allrounder_news_home_sections_ed' ) ) : /** Returns Home Sections **/ function allrounder_news_home_sections_ed(){ $sections = array( 'slider' => array( 'banner' => 'slider' ), 'right-sidebar' => array( 'sidebar' => 'allrounder-news-home-right-sidebar' ), 'no-sidebar' => array( 'sidebar' => 'allrounder-news-home-no-sidebar' ), ); $ed_section = array(); foreach( $sections as $key => $value ){ if( array_key_exists( 'sidebar', $value ) ){ if( is_active_sidebar( $value['sidebar'] ) ) array_push( $ed_section, $key ); }else{ if( get_theme_mod( 'allrounder_news_slider_enable_disable','disable') == 'enable' ) array_push( $ed_section, $key ); } } return $ed_section; } endif; if( !function_exists('allrounder_news_post_category') ): /** Get Posts Categories **/ function allrounder_news_post_category(){ $allrounder_news_slider_cats = get_the_category( get_the_ID() ); $allrounder_news_cat_count = 1; if( $allrounder_news_slider_cats ){ foreach($allrounder_news_slider_cats as $allrounder_news_slider_cat){ ?> name);?>
<?php the_title_attribute(); ?>
200 ) ); ?>
<?php esc_attr_e('Author Image','allrounder-news'); ?>
term_id; } } $related_posts_query = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => 3, 'post__not_in' => array( get_the_ID() ), 'category__in' => $cat_array) ); if( $related_posts_query->have_posts() ){ ?>

have_posts()){ $related_posts_query->the_post(); ?>
  • ' . get_the_author() . '' ; } return $title; }); if( !function_exists('allrounder_news_archive_category_child_cat') ): /** Child Category On Category Page **/ function allrounder_news_archive_category_child_cat(){ $category = get_queried_object(); $categories = get_categories( array( 'parent' => $category->term_id ) ); if( $categories ){ ?>
    array( 'href'=>array() ) ); return wp_kses($input,$all_tags); } add_action('allrounder_news_header_banner', 'allrounder_news_breadcrumbs_titles'); /** Breadcrumb Titles **/ function allrounder_news_breadcrumbs_titles() { global $post; $showOnHome = 0; // 1 - show breadcrumbs on the homepage, 0 - don't show $delimiter = '»'; $showCurrent = 1; // 1 - show current post/page title in breadcrumbs, 0 - don't show $homeLink = esc_url( home_url() ); echo '
    '; echo '
    ' . esc_html__( 'Home', 'allrounder-news' ) . ' ≫ '; if ( is_category() ) { $thisCat = get_category( get_query_var( 'cat' ), false ); if ( $thisCat->parent != 0 ) echo get_category_parents( $thisCat->parent, TRUE, ' ' . esc_html($delimiter ) . ' ' ); echo '' . esc_html__( 'Archive By Category','allrounder-news' ).' "' . esc_html( single_cat_title( '', false ) ) . '"'; } elseif ( is_search()) { echo '' . esc_html__( 'Search results for','allrounder-news' ). '"' . esc_html( get_search_query() ) . '"' . ''; } elseif (is_day()) { echo '' . esc_html(get_the_time( 'Y' ) ) . ' ' . esc_html( $delimiter ) . ' '; echo '' . esc_html( get_the_time( 'F' ) ) . ' ' . esc_html( $delimiter ) . ' '; echo '' . esc_html(get_the_time('d')) . ''; } elseif ( is_month() ) { echo '' . esc_html( get_the_time( 'Y' ) ) . ' ' . esc_html( $delimiter ) . ' '; echo '' . esc_html( get_the_time('F') ) . ''; } elseif ( is_year() ) { echo '' . esc_html( get_the_time('Y') ) . ''; } elseif ( is_single() && !is_attachment() ) { if ( get_post_type() != 'post' ) { $post_type = get_post_type_object( get_post_type() ); $slug = $post_type->rewrite; echo '' . esc_html( $post_type->labels->singular_name ) . ''; if ( $showCurrent == 1 ) echo ' ' . esc_html( $delimiter ) . ' ' . '' . esc_html( get_the_title() ) . ''; } else { $cat = get_the_category(); $cat = $cat[0]; $cats = get_category_parents( $cat, TRUE, ' ' . esc_html( $delimiter ) . ' ' ); if ($showCurrent == 0) $cats = preg_replace( "#^(.+)\s$delimiter\s$#", "$1", $cats ); echo allrounder_news_sanitize_bradcrumb($cats); if ( $showCurrent == 1 ) echo '' . esc_html( get_the_title() ) . ''; } } elseif ( !is_single() && !is_page() && get_post_type() != 'post' && !is_404() ) { $post_type = get_post_type_object( get_post_type() ); if($post_type ){ echo '' . esc_html( $post_type->labels->singular_name ) . ''; } } elseif (is_attachment()) { if ( $showCurrent == 1 ) echo ' ' . '' . esc_html( get_the_title() ) . ''; } elseif (is_page() && !$post->post_parent) { if ( $showCurrent == 1 ) echo '' . esc_html( get_the_title() ) . ''; } elseif ( is_page() && $post->post_parent ) { $parent_id = $post->post_parent; $breadcrumbs = array(); while ($parent_id) { $page = get_page($parent_id); $breadcrumbs[] = '' . esc_html( get_the_title( $page->ID ) ) . ''; $parent_id = $page->post_parent; } $breadcrumbs = array_reverse( $breadcrumbs ); for ( $i = 0; $i < count( $breadcrumbs ); $i++ ) { echo allrounder_news_sanitize_bradcrumb( $breadcrumbs[$i] ); if ( $i != count( $breadcrumbs ) - 1 ) echo ' ' . esc_html( $delimiter ). ' '; } if ( $showCurrent == 1 ) echo ' ' . esc_html( $delimiter ) . ' ' . '' . esc_html( get_the_title() ) . ''; } elseif ( is_tag() ) { echo '' . esc_html__( 'Posts tagged','allrounder-news' ).' "' . esc_html( single_tag_title('', false) ) . '"' . ''; } elseif ( is_author() ) { global $author; $userdata = get_userdata( $author ); echo '' . esc_html__( 'Articles posted by ','allrounder-news' ). esc_html( $userdata->display_name ) . ''; } elseif ( is_404() ) { echo '' . esc_html__('Error 404','allrounder-news') . ''; } if ( get_query_var('paged') ) { if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) echo ' ('; echo esc_html__('Page', 'allrounder-news') . ' ' . get_query_var('paged'); if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) echo ')'; } echo '
    '; echo '
    '; } if ( ! function_exists( 'allrounder_news_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function allrounder_news_entry_footer() { edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'allrounder-news' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } endif; if( ! function_exists( 'allrounder_news_comment_structure' ) ) : /** * Callback function for Comment List * * * @link https://codex.wordpress.org/Function_Reference/wp_list_comments */ function allrounder_news_comment_structure( $comment, $args, $depth ){ if ( 'div' == $args['style'] ) { $tag = 'div'; $add_below = 'comment'; } else { $tag = 'li'; $add_below = 'div-comment'; } ?> < id="comment-">
    $args['avatar_size'] ) ); if( $avatar_url ){ ?>