__( 'Primary Menu', '_sf' ), ) ); /** * Enable support for Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); } endif; // _sf_setup add_action( 'after_setup_theme', '_sf_setup' ); /** * Setup the WordPress core custom background feature. * * Hooks into the after_setup_theme action. */ function _sf_register_custom_background() { $args = array( 'default-color' => 'ffffff', 'default-image' => '', ); $args = apply_filters( '_sf_custom_background_args', $args ); add_theme_support( 'custom-background', $args ); } add_action( 'after_setup_theme', '_sf_register_custom_background' ); /** * Register widgetized area and update sidebar with default widgets */ function _sf_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', '_sf' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', '_sf_widgets_init' ); /** * Enqueue scripts and styles */ function _sf_scripts() { wp_enqueue_style( 'style', get_stylesheet_uri() ); wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } if ( is_singular() && wp_attachment_is_image() ) { wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' ); } } add_action( 'wp_enqueue_scripts', '_sf_scripts' ); /** * Implement the Custom Header feature */ require( get_template_directory() . '/inc/custom-header.php' ); /* * Load Theme Hook Alliance files */ require( get_template_directory() . '/inc/tha-hooks.php' );