« %title') ?>
»') ?>
« ' . __('Older','k2_domain') ); ?>
»' ); ?>
(' . get_comments_number() . ')';
return $content;
}
add_filter('the_content', 'k2_asides_permalink');
function k2_permalink_title($echo = true) {
$output = sprintf( __('Permanent Link to %s','k2_domain'), esc_html( strip_tags( the_title('', '', false) ), 1) );
if ($echo)
echo $output;
return $output;
}
/* By Mark Jaquith, http://txfx.net */
function k2_nice_category($normal_separator = ', ', $penultimate_separator = ' and ') {
$categories = get_the_category();
if (empty($categories)) {
return __('Uncategorized','k2_domain');
}
$thelist = '';
$i = 1;
$n = count($categories);
foreach ($categories as $category) {
if (1 < $i and $i != $n) {
$thelist .= $normal_separator;
}
if (1 < $i and $i == $n) {
$thelist .= $penultimate_separator;
}
$thelist .= '