__( 'Primary Menu', 'big_stone' ), ) ); } endif; // big_stone_setup add_action( 'after_setup_theme', 'big_stone_setup' ); /** * Enqueue scripts and styles */ function big_stone_scripts() { wp_enqueue_style( 'style', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true ); 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', 'big_stone_scripts' ); /** * Register widgetized area and update sidebar with default widgets * */ function big_stone_widgets_init() { register_sidebar( array( 'name' => __( 'Primary Widget Area', 'big_stone' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Secondary Widget Area', 'big_stone' ), 'id' => 'sidebar-2', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'big_stone_widgets_init' ); /** * Setup the WordPress core custom background feature. * * Use add_theme_support to register support for WordPress 3.4+ * as well as provide backward compatibility for previous versions. * Use feature detection of wp_get_theme() which was introduced * in WordPress 3.4. * * Hooks into the after_setup_theme action. * */ function big_stone_register_custom_background() { $args = array( 'default-color' => 'F6FFE0', ); $args = apply_filters( 'big_stone_custom_background_args', $args ); add_theme_support( 'custom-background', $args ); } add_action( 'after_setup_theme', 'big_stone_register_custom_background' ); /** /* Implement the Custom Header feature. */ require_once( get_template_directory() . '/inc/custom-header.php' ); add_action( 'init', 'big_stone_add_editor_styles' ); /** * Apply theme's stylesheet to the visual editor. * * @uses add_editor_style() Links a stylesheet to visual editor * @uses get_stylesheet_uri() Returns URI of theme stylesheet */ function big_stone_add_editor_styles() { add_editor_style( 'editor-style.css' ); }