';
$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;
echo '
';
}
}
}
endif;
if (!function_exists('blogarise_get_category_color_class')) :
function blogarise_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( 'blogarise_date_content' ) ) :
function blogarise_date_content() { ?>
';
}
do_action('blogarise_breadcrumb_content'); ?>
' . 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', 'blogarise'),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
),
'
',
''
);
}
}
endif;
if (!function_exists('blogarise_post_meta')) :
function blogarise_post_meta() {
$global_post_date = get_theme_mod('global_post_date_author_setting','show-date-author');
$blogarise_global_comment_enable = get_theme_mod('blogarise_global_comment_enable','true');
echo '
';
if($global_post_date =='show-date-author') {
blogarise_author_content(); blogarise_date_content();
} elseif($global_post_date =='show-date-only') {
blogarise_date_content();
} elseif($global_post_date =='show-author-only') {
blogarise_author_content();
}
if($blogarise_global_comment_enable == true) { ?>
';
}
endif;
if (!function_exists('blogarise_menu_search')) :
function blogarise_menu_search() {
$blogarise_menu_search = get_theme_mod('blogarise_menu_search','true');
if($blogarise_menu_search == true) { ?>
target="_blank" >
post_content;
if ( ! empty( get_the_excerpt($post_obj) ) ) {
$source_content = get_the_excerpt($post_obj);
}
// Check if non-breaking space exists in the text with variations
if (preg_match('/\s*( |\xA0)\s*/u', $source_content)) {
// Remove non-breaking space and its variations from the text
$source_content = preg_replace('/\s*( |\xA0)\s*/u', ' ', $source_content);
}
$source_content = preg_replace( '`\[[^\]]*\]`', '', $source_content );
$trimmed_content = wp_trim_words( $source_content, $length, '…' );
return $trimmed_content;
}
endif;
if ( ! function_exists( 'blogarise_breadcrumb_trail' ) ) :
/**
* Theme default breadcrumb function.
*
* @since 1.0.0
*/
function blogarise_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( 'blogarise_breadcrumb_trail_content', 'blogarise_breadcrumb_trail' );
endif;
if( ! function_exists( 'blogarise_breadcrumb' ) ) :
/**
*
* @package blogarise
*/
function blogarise_breadcrumb() {
if ( is_front_page() || is_home() ) return;
$breadcrumb_settings = get_theme_mod('breadcrumb_settings','1');
if($breadcrumb_settings == 1) {
$blogarise_site_breadcrumb_type = get_theme_mod('blogarise_site_breadcrumb_type','default');
?>
found_posts;
?>
0 ) {
// Translators: %s is the number of found results.
echo sprintf(
_n( '%s result found', '%s results found', $total_results, 'blogarise' ),
number_format_i18n( $total_results )
);
} else {
echo esc_html__( 'No results found', 'blogarise' );
}
?>