You are in the category: Local Guides:
/* обрезка заголовка */
function get_short_title($maxchar = 300){
$title = get_the_title();
if( iconv_strlen($title, 'utf-8') < $maxchar )
return $title;
$title = iconv_substr( $title, 0, $maxchar, 'utf-8' );
$title = preg_replace('@(.*)\s[^\s]*$@s', '\\1 ...', $title); //убираем последнее слово, ибо оно в 99% случаев неполное
return $title;
}
?>

No matter what the day entailed, from a picnic in Denver City Park to spending time at your favorite fishing hole, your July 4th celebration should end by singing along to some glorious rendition of "The Star Spangled Banner" and big fireworks booming and coloring the Denver, Colorado night... More