__( 'Sidebar 1', 'quickchic' ),
'id' => 'sidebar-1',
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
register_sidebar(array(
'name' => __( 'Sidebar 2', 'quickchic' ),
'id' => 'sidebar-2',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
}
add_action( 'init', 'quickchic_widgets_init' );
/* Add feeds */
add_theme_support('automatic-feed-links');
// Comment Reply Script
add_action( 'wp_enqueue_scripts', '_enqueue_scripts' );
function _enqueue_scripts(){
// If single, threaded and open
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ){
wp_enqueue_script( 'comment-reply' );
}
}
/* Custom Background */
$args = array(
'default-color' => 'FFFFFF',
'default-image' => get_template_directory_uri() . '/images/background.jpg',
);
add_theme_support( 'custom-background', $args );
// post thumbnails
add_theme_support('post-thumbnails');
/* Title filter */
function quick_title( $title ) {
// Get the Site Name
$site_name = get_bloginfo( 'name' );
// Prepend it to the default output
$filtered_title = $site_name . $title;
// Return the modified title
return $filtered_title;
}
add_filter( 'wp_title', 'quick_title');
/* Content width */
if ( ! isset( $content_width ) )
$content_width = 540;
?>