'; } } if ( ! function_exists( 'blogpedia_post_meta' )) { function blogpedia_post_meta( $args , $separator='|' ) { $clearfix = '
' . "\n"; if ( in_array('cat',$args) ) { $meta['cat'] = '' . get_the_category_list(' ', '') . '' . "\n"; } if ( in_array('icon',$args) ) { $meta['icon'] = '' . blogpedia_post_format_icon() . '' . "\n"; } if ( in_array('cat-icon',$args) ) { $meta['cat-icon'] = '' . blogpedia_post_format_icon() . get_the_category_list(' ', '') . '' . "\n"; } if ( in_array('date',$args) ) { $meta['date'] = ' '. get_the_date() . '' . "\n"; } if ( in_array('date-link',$args) ) { $meta['date-link'] = '' . get_the_date() . '' . "\n"; } if ( in_array('author',$args) ) { $meta['author'] = ' ' . esc_html( get_the_author() ) . '' . "\n"; } if ( in_array('comment',$args) ) { $meta['comment'] = '' . absint(get_comments_number()) . ' COMMENTS ' . "\n"; } $numItems = count($args); $i = 0; foreach( $args as $item ) { echo wp_kses_post( $meta[$item] ); if ( ++$i!=$numItems ) { echo wp_kses_post( $separator ); } } } } if ( ! function_exists( 'blogpedia_the_post_thumbnail' ) ) { function blogpedia_the_post_thumbnail( $size='blogpedia-image-medium' , $filename='placeholder-medium.png' ) { echo '
'; blogpedia_post_thumbnail( $size , $filename ); echo '
'; } } /** Post Thumbnail **/ if (!function_exists('blogpedia_post_thumbnail')) { function blogpedia_post_thumbnail($size='',$file_img='') { echo ''; if ( has_post_thumbnail() ) { the_post_thumbnail($size); } else { echo ''; } echo ''. wp_kses_post ( blogpedia_post_format_icon() ).''; echo ''; } } /***** Custom Excerpts *****/ if ( ! function_exists( 'blogpedia_excerpt_length' ) ) { function blogpedia_excerpt_length( $length ) { $excerpt_length = blogpedia_data( 'general_excerpt_length' , 35 ); return $excerpt_length; } } add_filter( 'excerpt_length' , 'blogpedia_excerpt_length' , 999 ); if ( ! function_exists( 'blogpedia_excerpt_more' ) ) { function blogpedia_excerpt_more( $more ) { return ' ' . blogpedia_data( 'general_excerpt_more' , '' ); } } add_filter( 'excerpt_more' , 'blogpedia_excerpt_more' ); /***** Custom Commentlist *****/ if (!function_exists('blogpedia_comments')) { function blogpedia_comments( $comment , $args, $depth ) { ?>
  • >
    comment_author_email , 60 ); ?>
    comment_approved == '0') { ?>
    '

    ' . ($req ? '*' : '') . '

    ', 'email' => '

    ' . ($req ? '*' : '' ) . '

    ', 'url' => '


    ' ); return $fields; } } add_filter( 'comment_form_default_fields' , 'blogpedia_comment_fields' ); /***** Comment Count Output *****/ if ( ! function_exists( 'blogpedia_comment_count' ) ) { function blogpedia_comment_count() { echo '' . absint( get_comments_number() ) . ''; } } /***** Pagination for paginated Posts *****/ if ( ! function_exists( 'blogpedia_paginated_posts' ) ) { function blogpedia_paginated_posts( $content ) { if ( is_singular() && in_the_loop() ) { $content .= wp_link_pages( array( 'before' => '
    ', 'after' => '
    ', 'link_before' => '', 'link_after' => '', 'nextpagelink' => esc_html__('»', 'blogpedia'), 'previouspagelink' => esc_html__('«', 'blogpedia'), 'pagelink' => '%', 'echo' => 0)); } return $content; } } add_filter('the_content', 'blogpedia_paginated_posts', 1); /***** Post / Attachment Navigation *****/ if ( ! function_exists( 'blogpedia_next_post_link_attributes' ) ) { function blogpedia_next_post_link_attributes($output) { $code = 'class="post-next"'; return str_replace(''; echo '
  • ' . wp_kses_post( $sep ); // Check if the current page is a category, an archive or a single page. If so show the category or archive name. if ( is_category() || is_single() ){ echo '
  • '; //the_category(' , '); global $post; $cats = get_the_category( $post->ID ); $count = count( $cats ); $i = 0; foreach ( $cats as $cat ){ $i++; echo ''; if ( $i < $count ) { echo ' , '; } } echo '
  • '; } elseif ( is_archive() || is_single() ){ } // If the current page is a single post, show its title with the separator if ( is_single() ) { echo wp_kses_post($sep); echo '
  • '; the_title(); echo '
  • '; } // If the current page is a static page, show its title. if (is_page()) { echo '
  • '; echo the_title(); echo '
  • '; } echo ''; echo '
    '; echo wp_kses_post( $str_end ); } } } // Footer Widget if ( ! function_exists( 'blogpedia_footer_widgets' ) ) { function blogpedia_footer_widgets() { $footer_1 = ''; $footer_2 = ''; $footer_3 = ''; $footer_columns = 0; $footer_class = 'col-md-4'; if ( is_active_sidebar( 'footer-1') ) { $footer_1 = 1; $footer_columns++; } if ( is_active_sidebar( 'footer-2' ) ) { $footer_2 = 1; $footer_columns++; } if ( is_active_sidebar( 'footer-3') ) { $footer_3 = 1; $footer_columns++; } if ( $footer_columns == 1 ) { $footer_class = 'col-md-12'; } if ( $footer_1 || $footer_2 || $footer_3 ) { echo ''; } } } // header image if ( ! function_exists( 'blogpedia_header_style' ) ) : function blogpedia_header_style() { $header_text_color = get_header_textcolor(); if ( get_theme_support( 'custom-header', 'default-text-color' ) != $header_text_color ) { ?>