function mb_ucfirst($string, $encoding) { $strlen = mb_strlen($string, $encoding); $firstChar = mb_substr($string, 0, 1, $encoding); $then = mb_substr($string, 1, $strlen - 1, $encoding); return mb_strtoupper($firstChar, $encoding) . $then; } if( is_tax() ) { global $wp_query; $term = $wp_query->get_queried_object(); $title = $term->name; echo mb_ucfirst($title, "UTF-8"); }else{ post_type_archive_title( '', true ); } ?>
$type = get_post_meta($post->ID, "type", true);
$link = get_post_meta($post->ID, "link", true);
?>
$description = get_the_content(); if(count(strip_tags(trim($description)))){ $first = strip_tags(trim($description))[0]; }else{ $first = null; } ?> if($link)echo "";?>Сергій Якович Батишев if($link)echo "";?> if($type) echo(" [ $type ]"); ?> if(!empty($first) && $first != ':' && $first != '/' && $first != '[' ){ ?> : } ?>