'Sidebar',
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
// Footer Widget Left
register_sidebar(array('name'=>'Footer Left',
'before_widget' => '',
'before_title' => '',
'after_title' => '
',
));
// Footer Widget Middle
register_sidebar(array('name'=>'Footer Middle',
'before_widget' => '',
'before_title' => '',
'after_title' => '
',
));
// Footer Widget Right
register_sidebar(array('name'=>'Footer Right',
'before_widget' => '',
'before_title' => '',
'after_title' => '
',
));
// post thumbnail support
add_theme_support( 'post-thumbnails' );
// custom menu support
add_theme_support( 'menus' );
if ( function_exists( 'register_nav_menus' ) ) {
register_nav_menus(
array(
'header-menu' => 'Header Menu',
'sidebar-menu' => 'Sidebar Menu',
'footer-menu' => 'Footer Menu',
)
);
}
// custom background support
add_custom_background();
// automatic feed links
add_theme_support('automatic-feed-links');
// add callback for custom TinyMCE editor stylesheets.
add_editor_style();
// custom header image support
define('NO_HEADER_TEXT', true );
define('HEADER_IMAGE', '%s/images/default-header.png'); // %s is the template dir uri
define('HEADER_IMAGE_WIDTH', 1068); // use width and height appropriate for your theme
define('HEADER_IMAGE_HEIGHT', 300);
// gets included in the admin header
function admin_header_style() {
?>Read more...', $text); }
add_filter('the_excerpt', 'excerpt_ellipse');
// wp_enqueue_script calls
function theme_queue_js(){
if (!is_admin()){
if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1))
wp_enqueue_script( 'comment-reply' );
}
}
add_action('get_header', 'theme_queue_js');
/*// category id in body and post class
function category_id_class($classes) {
global $post;
foreach((get_the_category($post->ID)) as $category)
$classes [] = 'cat-' . $category->cat_ID . '-id';
return $classes;
}
add_filter('post_class', 'category_id_class');
add_filter('body_class', 'category_id_class');*/
// Custom Comments List.
function biotodoma_mytheme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
?>
id="li-comment-">
pings callback */
function biotodoma_custom_pings($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
if('pingback' == get_comment_type()) $pingtype = 'Pingback';
else $pingtype = 'Trackback';
?>