'ffffff', 'text' => '000000', 'link' => '4f998d', 'border' => '322f28', 'url' => 'ae1f10', ); add_theme_support( 'print-style' ); /** * This theme uses wp_nav_menu() in one location. */ register_nav_menus( array( 'primary' => __( 'Primary Menu', 'rusty-grunge' ), ) ); function toolbox_css_body_class( $classes ) { global $post; if ( is_page() || is_single() ) $classes[] = sanitize_title_with_dashes ( get_the_title( $post->ID ) ); return $classes; } add_filter( 'body_class', 'toolbox_css_body_class' ); /** * Custom Header Image. */ add_theme_support( 'custom-header', apply_filters( 'rustygrunge_custom_header_args', array( 'default-image' => '', 'default-text-color' => '', 'width' => 658, 'height' => 240, 'header-text' => false, 'wp-head-callback' => '', 'admin-head-callback' => 'rustygrunge_admin_header_style', ) ) ); function rustygrunge_admin_header_style() { ?> '322F28', 'default-image' => get_template_directory_uri() . '/images/bg-body.jpg' ) ) ); /** * Add default posts and comments RSS feed links to head */ add_theme_support( 'automatic-feed-links' ); /** * Add support for the Aside and Gallery Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'gallery', 'quote', 'status' ) ); /** * Enqueue scripts and styles */ function rustygrunge_scripts() { wp_enqueue_style( 'rustygrunge', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'rustygrunge_scripts' ); /** * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. */ function toolbox_page_menu_args($args) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'toolbox_page_menu_args' ); /** * Register widgetized area and update sidebar with default widgets */ function toolbox_widgets_init() { register_sidebar( array ( 'name' => __( 'Sidebar 1', 'rusty-grunge' ), 'id' => 'sidebar-1', 'before_widget' => '", 'before_title' => '