apply_filters( 'twentyeleven_header_image_width', 940 ), 'height' => apply_filters( 'twentyeleven_header_image_height', 250 ), 'flex-height' => true, 'flex-width' => true, 'header-text' => false, 'default-image' => get_template_directory_uri() . '/images/banner.jpg', ); add_theme_support( 'custom-header', $args ); // Feed add_theme_support( 'automatic-feed-links' ); // Thumbs add_theme_support( 'post-thumbnails' ); add_editor_style(); //set_post_thumbnail_size( 150, 150, true ); add_image_size( 'featured', 580, 200, true ); // updating thumbnail and image sizes update_option( 'thumbnail_size_w', 150, true ); update_option( 'thumbnail_size_h', 150, true ); update_option( 'medium_size_w', 580, true ); update_option( 'medium_size_h', '', true ); update_option( 'large_size_w', 940, true ); update_option( 'large_size_h', '', true ); // WP 3.0 nav menu register_nav_menus( array( 'primary-left-menu' => __( 'Primary Left Menu', 'blogy' ), 'primary-right-menu' => __( 'Primary Right Menu', 'blogy' ), ) ); } // end blogy_setup endif; // no title fallback add_filter( 'the_title', 'blogy_title' ); function blogy_title( $title ) { if ( $title == '' ) { return 'Untitled'; } else { return $title; } } /** * Registers our main widget area and the front page widget areas. * */ function countdown_widgets_init() { register_sidebar( array( 'name' => __( 'Main Sidebar', '' ), 'id' => 'sidebar-1', 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', '' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'countdown_widgets_init' ); /* ** Custom Page Title */ add_filter( 'wp_title', 'countdown_title' ); function countdown_title($title){ $cnt_title = $title; if ( is_home() && !is_front_page() ) { $cnt_title .= get_bloginfo('name'); } if ( is_front_page() ){ $cnt_title .= get_bloginfo('name'); $cnt_title .= ' | '; $cnt_title .= get_bloginfo('description'); } if ( is_search() ) { $cnt_title .= get_bloginfo('name'); } if ( is_author() ) { $cnt_title .= get_bloginfo('name'); } if ( is_single() ) { $cnt_title .= get_bloginfo('name'); } if ( is_page() && !is_front_page() ) { $cnt_title .= get_bloginfo('name'); } if ( is_category() ) { $cnt_title .= get_bloginfo('name'); } if ( is_year() ) { $cnt_title .= get_bloginfo('name'); } if ( is_month() ) { $cnt_title .= get_bloginfo('name'); } if ( is_day() ) { $cnt_title .= get_bloginfo('name'); } if (function_exists('is_tag')) { if ( is_tag() ) { $cnt_title .= get_bloginfo('name'); } if ( is_404() ) { $cnt_title .= get_bloginfo('name'); } } return $cnt_title; } function blogy_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • id="li-comment-">
    ' ); ?> %s'), get_comment_author_link()) ?>
    $depth, 'max_depth' => $args['max_depth']))); ?>