ID); if ($post_categories) { $output = ''; foreach ($post_categories as $post_category) { $t_id = $post_category->term_id; $color_id = "category_color_" . $t_id; // retrieve the existing value(s) for this meta field. This returns an array $term_meta = get_option($color_id); $color_class = ($term_meta) ? $term_meta['color_class_term_meta'] : 'category-color-1'; $output .= ' ' . esc_html($post_category->name) . ' '; } $output .= ''; echo $output; } } } endif; if (!function_exists('blogus_get_category_color_class')) : function blogus_get_category_color_class($term_id) { $color_id = "category_color_" . $term_id; // retrieve the existing value(s) for this meta field. This returns an array $term_meta = get_option($color_id); $color_class = ($term_meta) ? $term_meta['color_class_term_meta'] : ''; return $color_class; } endif; if (!function_exists('blogus_post_item_tag')) : function blogus_post_item_tag($view = 'default') { global $post; if ('post' === get_post_type()) { /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list('', esc_html_x(' ', 'list item separator', 'blogus')); if ($tags_list) { /* translators: 1: list of tags. */ printf('' . esc_html('Tags: %1$s') . '', $tags_list); // WPCS: XSS OK. } } if (is_single()) { edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __('Edit %s', 'blogus'), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } } endif; if (!function_exists('blogus_post_thumbnail_image')) : function blogus_post_thumbnail_image() { if(has_post_thumbnail()) { ?>
'; the_post_thumbnail( '', array( 'class'=>'img-fluid' ) ); echo ''; ?>

post_content; if ( ! empty( $post_obj->post_excerpt ) ) { $source_content = $post_obj->post_excerpt; } $source_content = preg_replace( '`\[[^\]]*\]`', '', $source_content ); $trimmed_content = wp_trim_words( $source_content, $length, '…' ); return $trimmed_content; } endif; if ( ! function_exists( 'blogus_breadcrumb_trail' ) ) : /** * Theme default breadcrumb function. * * @since 1.0.0 */ function blogus_breadcrumb_trail() { if ( ! function_exists( 'breadcrumb_trail' ) ) { // load class file require_once get_template_directory() . '/inc/ansar/breadcrumb-trail/breadcrumb-trail.php'; } $breadcrumb_args = array( 'container' => 'div', 'show_browse' => false, ); breadcrumb_trail( $breadcrumb_args ); } add_action( 'blogus_breadcrumb_trail_content', 'blogus_breadcrumb_trail' ); endif; if( ! function_exists( 'blogus_breadcrumb' ) ) : /** * * @package Blogus */ function blogus_breadcrumb() { if ( is_front_page() || is_home() ) return; $breadcrumb_settings = get_theme_mod('breadcrumb_settings','1'); if($breadcrumb_settings == 1) { $blogus_site_breadcrumb_type = get_theme_mod('blogus_site_breadcrumb_type','default'); ?>