', esc_url(get_bloginfo('pingback_url'))); } } add_action('wp_head', 'cafesio_pingback_header'); function cafesio_child_category_meta() { $cafesio_cat_term = get_queried_object(); $cafesio_cat_children = get_terms($cafesio_cat_term->taxonomy, array( 'parent' => $cafesio_cat_term->term_id, 'hide_empty' => false )); if (!$cafesio_cat_children) { return; } if ($cafesio_cat_children) { echo '
'; foreach ($cafesio_cat_children as $cafesio_subcat) { echo '' . esc_html($cafesio_subcat->name) . ''; } echo '
'; } } function cafesio_category_meta(){ $blog_cat_show = cafesio_option('cafesio_blog_category','yes'); $blog_cat_single = cafesio_option('cafesio_blog_category_single'); if ($blog_cat_show != true) { return; } $cat = get_the_category(); if ($blog_cat_single === 'yes') { shuffle($cat); if (isset($cat[0])) { echo '' .esc_html(get_cat_name($cat[0]->term_id)) .''; } return; } if ($cat) { foreach ($cat as $value) : echo '' . esc_html(get_cat_name($value->term_id)) . ''; endforeach; } } function cafesio_category_post_meta(){ ?> ' . '' . '%3$s', get_avatar(get_the_author_meta('ID'), 55), esc_url(get_author_posts_url(get_the_author_meta('ID'))), get_the_author() ); } $blog_date_show = cafesio_option('cafesio_blog_date'); if (get_post_type() === 'post' && $blog_date_show === 'yes') { echo ' ' . get_the_date() . ''; } ?> '; $output .= ''; $output .= '' . $time . '' . ' '; $output .= ''; return $output; } } function cafesio_link_pages() { $args = array( 'before' => '', 'link_before' => '', 'link_after' => '', 'next_or_number' => 'number', 'separator' => ' ', 'nextpagelink' => esc_html__('Next ', 'cafesio') . '', 'previouspagelink' => '' . esc_html__(' Previous', 'cafesio'), ); wp_link_pages($args); } function cafesio_title_limit($title) { $limit = cafesio_option('cafesio_blog_post_title_char_limit_length', 20); if (cafesio_option('cafesio_blog_listing_title_length') == 'yes') { $title = wp_trim_words($title, $limit, ''); } echo esc_html($title); } function cafesio_comment_style($comment, $args, $depth) { if ('div' === $args['style']) { $tag = 'div'; $add_below = 'comment'; } else { $tag = 'li '; $add_below = 'div-comment'; } ?> 'comment-avatar pull-left')); } ?> < id="comment-">
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
%s %s', 'cafesio'), get_comment_author_link(), esc_html__('says:', 'cafesio')); ?> comment_approved == '0') { ?>
'; if (!is_home()) { echo sprintf('
  • ', esc_url(get_home_url('/'))); echo esc_html__('Home', 'cafesio'); echo "
  • " . wp_kses_post($seperator); if (is_category() || is_single()) { echo '
  • '; $category = get_the_category(); $post = get_queried_object(); $postType = get_post_type_object(get_post_type($post)); if (!empty($category)) { echo esc_html($category[0]->cat_name) . '
  • '; } else if ($postType) { echo esc_html($postType->labels->singular_name) . ''; } if (is_single()) { echo wp_kses_post($seperator) . "
  • "; echo esc_html($word) != '' ? esc_html(wp_trim_words(get_the_title(), $word)) : esc_html(get_the_title()); echo '
  • '; } } elseif (is_page()) { echo '
  • '; echo esc_html($word) != '' ? esc_html(wp_trim_words(get_the_title(), $word)) : esc_html(get_the_title()); echo '
  • '; } } if (is_tag()) { single_tag_title(); } elseif (is_day()) { echo "
  • " . esc_html__('Blogs for', 'cafesio') . " "; the_time( get_option( 'date_format' )); echo '
  • '; } elseif (is_month()) { echo "
  • " . esc_html__('Blogs for', 'cafesio') . " "; the_time( get_option( 'date_format' )); echo '
  • '; } elseif (is_year()) { echo "
  • " . esc_html__('Blogs for', 'cafesio') . " "; the_time( get_option( 'date_format' )); echo '
  • '; } elseif (is_author()) { echo "
  • " . esc_html__('Author Blogs', 'cafesio'); echo '
  • '; } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { echo "
  • " . esc_html__('Blogs', 'cafesio'); echo '
  • '; } elseif (is_search()) { echo "
  • " . esc_html__('Search Result', 'cafesio'); echo '
  • '; } elseif (is_404()) { echo "
  • " . esc_html__('404 Not Found', 'cafesio'); echo '
  • '; } echo ''; }