__( 'Primary Menu', 'ascetica' ), ) ); /** * Add support for the Aside Post Formats */ add_theme_support( 'post-formats', array( 'aside', ) ); /** * Setup the WordPress core custom background feature. */ add_theme_support( 'custom-background', apply_filters( 'ascetica_custom_background_args', array( 'default-color' => 'ffffff', ) ) ); } endif; // ascetica_setup add_action( 'after_setup_theme', 'ascetica_setup' ); /** * Register widgetized area and update sidebar with default widgets * * @since Ascetica 1.0 */ function ascetica_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'ascetica' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Left Sidebar', 'ascetica' ), 'id' => 'sidebar-2', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Sidebar 1', 'ascetica' ), 'id' => 'sidebar-3', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Sidebar 2', 'ascetica' ), 'id' => 'sidebar-4', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Sidebar 3', 'ascetica' ), 'id' => 'sidebar-5', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Sidebar 4', 'ascetica' ), 'id' => 'sidebar-6', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'ascetica_widgets_init' ); /** * Enqueue scripts and styles */ function ascetica_scripts() { wp_enqueue_style( 'style', get_stylesheet_uri() ); wp_enqueue_script( 'ascetica-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( 'ascetica-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' ); if ( is_home() ) { wp_enqueue_style( 'ascetica-flex-slider-style', get_template_directory_uri() . '/js/flex-slider/flexslider.css' ); wp_enqueue_script( 'ascetica-flex-slider', get_template_directory_uri() . '/js/flex-slider/jquery.flexslider-min.js', array( 'jquery' ) ); wp_enqueue_script( 'ascetica-js', get_template_directory_uri() . '/js/ascetica.js', array( 'jquery' ) ); } } add_action( 'wp_enqueue_scripts', 'ascetica_scripts' ); /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/tweaks.php'; /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /* * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php';