'ffffff', 'text' => '000000', 'link' => '2E6EB0', 'border' => 'CCCCCC', 'url' => '000000', ); } /** * Theme setup */ if ( ! function_exists( 'blaskan_setup' ) ): function blaskan_setup() { global $content_width; $_content_width = $_header_width = 540; add_theme_support( 'automatic-feed-links' ); add_theme_support( 'custom-background' ); // Set up widths for each layout. if ( is_active_sidebar( 'primary-sidebar' ) && is_active_sidebar( 'secondary-sidebar' ) ) { // 3-column layout $_header_width = 1120; } elseif ( is_active_sidebar( 'primary-sidebar' ) || is_active_sidebar( 'secondary-sidebar' ) ) { // 2-column layout $_content_width = 830; $_header_width = 1120; } if ( ! isset( $content_width ) || 0 == $content_width ) $content_width = $_content_width; // Post thumbnails add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( $_content_width, 999, true ); // Add support for custom header. add_theme_support( 'custom-header', array( // The default header text color. 'default-text-color' => '000', // The height and width of our custom header. 'width' => apply_filters( 'blaskan_header_image_width', $_header_width ), 'height' => apply_filters( 'blaskan_header_image_height', 160 ), // Callback for styling the header. 'wp-head-callback' => 'blaskan_header_style', // Callback for styling the header preview in the admin. 'admin-head-callback' => 'blaskan_admin_header_style', // Callback used to display the header preview in the admin. 'admin-preview-callback' => 'blaskan_admin_header_image', ) ); // Add two custom menu locations. register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'blaskan' ), 'footer' => __( 'Footer Navigation', 'blaskan' ), ) ); load_theme_textdomain( 'blaskan', get_template_directory() . '/languages' ); } endif; add_action( 'after_setup_theme', 'blaskan_setup' ); /** * JS init */ if ( ! function_exists( 'blaskan_js_init' ) ): function blaskan_js_init() { wp_enqueue_style( 'blaskan', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); wp_enqueue_script( 'blaskan', get_template_directory_uri() . '/js/script.js', array( 'jquery' ), '20120303' ); wp_localize_script( 'blaskan', 'objectL10n', array( 'blaskan_navigation_title' => __( '- Navigation -', 'blaskan' ) ) ); } endif; add_action( 'wp_enqueue_scripts', 'blaskan_js_init' ); /** * Register widget areas. All are empty by default. */ if ( ! function_exists( 'blaskan_widgets_init' ) ): function blaskan_widgets_init() { // Primary sidebar register_sidebar( array( 'name' => __( 'Primary Widget Area', 'blaskan' ), 'id' => 'primary-sidebar', 'description' => __( 'The primary sidebar', 'blaskan' ), 'before_widget' => '
', 'before_title' => '