'Sidebar',
'id' => 'sidebar',
'before_widget' => '
',
'after_widget' => '',
'before_title' => '',
));
}
add_theme_support( 'menus' );
add_theme_support( 'automatic-feed-links' );
paginate_comments_links();
wp_enqueue_script( 'comment-reply' );
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'build' ),
) );
//Paste this into your template where you want the menu to go:
//wp_nav_menu(array('container_class' => 'menu-header', 'menu_id' => 'menu-navigation', 'theme_location' => 'primary'));
function wpe_excerptlength_news($length) {
return 15;
}
function wpe_excerptlength_teaser($length) {
return 35;
}
function wpe_excerptlength_index($length) {
return 160;
}
function wpe_excerptmore($more) {
return ' ...';
}
function wpe_excerpt($length_callback='', $more_callback='') {
global $post;
if(function_exists($length_callback)){
add_filter('excerpt_length', $length_callback);
}
if(function_exists($more_callback)){
add_filter('excerpt_more', $more_callback);
}
$output = get_the_excerpt();
$output = apply_filters('wptexturize', $output);
$output = apply_filters('convert_chars', $output);
$output = ''.$output.'
';
echo $output;
}
?>