get_template_directory_uri() . '/img/header.gif',
'width' => 770,
'height' => 135,
'default-text-color' => 'ffffff',
));
add_theme_support('custom-background');
add_theme_support('html5');
register_nav_menu('main', 'Main navigation menu');
}
add_action('after_setup_theme', 'bluemist_after_setup_theme');
function bluemist_header_style() {
?> 'Sidebar',
'id' => 'sidebar',
'description' => 'Right Sidebar',
'before_title' =>'
',
'after_title' =>'
',
'before_widget' =>'',
'after_widget' =>'
'
) );
}
function bluemist_wp_enqueue_scripts() {
wp_register_style('bluemist_ie', get_template_directory_uri().'/ie.css');
wp_enqueue_style('bluemist_style', get_stylesheet_uri());
if ( is_singular() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action('wp_enqueue_scripts', 'bluemist_wp_enqueue_scripts');
function bluemist_remove_width_attribute( $html ) {
$html = preg_replace( '/(width|height)="\d*"\s/', "", $html );
return $html;
}
add_filter( 'post_thumbnail_html', 'bluemist_remove_width_attribute', 10 );
add_filter( 'image_send_to_editor', 'bluemist_remove_width_attribute', 10 );