' . 'Continue reading →' . '';
}
add_filter( 'excerpt_more', 'twentyten_new_excerpt_more' );
// Template for comments and pingbacks
function twentyten_list_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment; ?>
comment_type ) { ?>
id="li-comment-">
";
}
add_filter( 'gallery_style', 'twentyten_remove_gallery_css' );
// For category lists on category archives: Returns other categories except the current one (redundant)
function cats_meow( $glue ) {
$current_cat = single_cat_title( '', false );
$separator = "\n";
$cats = explode( $separator, get_the_category_list($separator) );
foreach ( $cats as $i => $str ) {
if ( strstr( $str, ">$current_cat<" ) ) {
unset( $cats[$i] );
break;
}
}
if ( empty($cats) )
return false;
return trim( join( $glue, $cats ) );
} // end cats_meow
// For tag lists on tag archives: Returns other tags except the current one (redundant)
function tag_ur_it( $glue ) {
$current_tag = single_tag_title( '', '', false );
$separator = "\n";
$tags = explode( $separator, get_the_tag_list( "", "$separator", "" ) );
foreach ( $tags as $i => $str ) {
if ( strstr( $str, ">$current_tag<" ) ) {
unset( $tags[$i] );
break;
}
}
if ( empty($tags) )
return false;
return trim( join( $glue, $tags ) );
} // end tag_ur_it
// Register widgetized areas
function twentyten_widgets_init() {
// Area 1
register_sidebar( array(
'name' => 'Primary Widget Area',
'id' => 'primary-widget-area',
'description' => __( 'The primary widget area' , 'twentyten' ),
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
// Area 2
register_sidebar( array(
'name' => 'Secondary Widget Area',
'id' => 'secondary-widget-area',
'description' => __( 'The secondary widget area' , 'twentyten' ),
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
// Area 3
register_sidebar( array(
'name' => 'First Footer Widget Area',
'id' => 'first-footer-widget-area',
'description' => __( 'The first footer widget area' , 'twentyten' ),
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
// Area 4
register_sidebar( array(
'name' => 'Second Footer Widget Area',
'id' => 'second-footer-widget-area',
'description' => __( 'The second footer widget area' , 'twentyten' ),
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
// Area 5
register_sidebar( array(
'name' => 'Third Footer Widget Area',
'id' => 'third-footer-widget-area',
'description' => __( 'The third footer widget area' , 'twentyten' ),
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
// Area 6
register_sidebar( array(
'name' => 'Fourth Footer Widget Area',
'id' => 'fourth-footer-widget-area',
'description' => __( 'The fourth footer widget area' , 'twentyten' ),
'before_widget' => '',
'after_widget' => "",
'before_title' => '',
) );
} // end theme_widgets_init
// Add all the groovy widget areas
add_action( 'init', 'twentyten_widgets_init' );