__( 'Primary Menu', 'bersallis' ), ) ); /** * Enable support for Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); } endif; // bersallis_setup add_action( 'after_setup_theme', 'bersallis_setup' ); /** * Setup the WordPress core custom background feature. * * Hooks into the after_setup_theme action. */ function bersallis_register_custom_background() { $args = array( 'default-color' => 'ff0000', 'default-image' => get_template_directory_uri() . '/img/backgroundstripe.png', ); $args = apply_filters( 'bersallis_custom_background_args', $args ); if ( function_exists( 'wp_get_theme' ) ) { add_theme_support( 'custom-background', $args ); } } add_action( 'after_setup_theme', 'bersallis_register_custom_background' ); /** * Register widgetized area and update sidebar with default widgets */ function bersallis_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'bersallis' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'bersallis_widgets_init' ); /** * Enqueue scripts and styles */ function bersallis_scripts() { wp_register_style('googleFonts', 'http://fonts.googleapis.com/css?family=Bevan|Pontano+Sans'); wp_enqueue_style('googleFonts'); wp_enqueue_style( 'style', get_stylesheet_uri() ); wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true ); 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', 'bersallis_scripts' );