__( 'Primary Menu', 'hero' ), ) ); /** * Add support for the Aside Post Formats */ add_theme_support( 'post-formats', array( 'aside', ) ); /** * Add support for Custom Backgrounds */ add_theme_support( 'custom-background', array( 'default-color' => '000000' ) ); } endif; // hero_setup add_action( 'after_setup_theme', 'hero_setup' ); /** * Register widgetized area and update sidebar with default widgets * * @since Hero 1.0 */ function hero_widgets_init() { register_sidebar( array( 'name' => __( 'Primary Widget Area', 'hero' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'hero' ), 'id' => 'sidebar-2', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'hero' ), 'id' => 'sidebar-3', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'hero' ), 'id' => 'sidebar-4', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'hero' ), 'id' => 'sidebar-5', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'hero_widgets_init' ); /** * Enqueue scripts and styles */ function hero_scripts() { wp_enqueue_style( 'style', get_stylesheet_uri() ); wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', array( 'jquery' ), '20120206', 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' ); } if ( is_page_template( 'page-templates/front-page.php' ) ) { wp_enqueue_style( 'hero-flex-slider-style', get_template_directory_uri() . '/js/flex-slider/flexslider.css' ); wp_enqueue_script( 'hero-flex-slider', get_template_directory_uri() . '/js/flex-slider/jquery.flexslider-min.js', array( 'jquery' ) ); wp_enqueue_script( 'hero-js', get_template_directory_uri() . '/js/hero.js', array( 'jquery' ) ); } } add_action( 'wp_enqueue_scripts', 'hero_scripts' ); /** * Implement the Custom Header feature */ require( get_template_directory() . '/inc/custom-header.php' ); /** * Load Jetpack compatibility file. */ require( get_template_directory() . '/inc/jetpack.compat.php' );