';
}
}
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'] = '' . "\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 ) { ?>
';
if (!is_front_page()) {
// Start the breadcrumb with a link to your homepage
echo '';
echo ' ';
bloginfo('name');
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 ''. esc_html( $cat->cat_name ) . ' ';
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 ) {
?>