__( 'Primary Menu', 'sempress' ), ) ); /** * Enable support for Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); } endif; // sempress_setup add_action( 'after_setup_theme', 'sempress_setup' ); /** * Setup the WordPress core custom background feature. * * Hooks into the after_setup_theme action. */ function sempress_register_custom_background() { add_theme_support( 'custom-background', apply_filters( 'sempress_custom_background_args', array( 'default-color' => 'f0f0f0', 'default-image' => '', ) ) ); } add_action( 'after_setup_theme', 'sempress_register_custom_background' ); /** * Register widgetized area and update sidebar with default widgets * * @since sempress 1.0 */ function sempress_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'sempress' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'sempress_widgets_init' ); /** * Enqueue scripts and styles */ function sempress_scripts() { wp_enqueue_style( 'style', get_stylesheet_uri() ); wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.3.1' ); 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' ); } } add_action( 'wp_enqueue_scripts', 'sempress_scripts' ); /** * Implement the Custom Header feature */ require( get_template_directory() . '/inc/custom-header.php' );