__( 'Top Menu', 'responsive' ), 'primary' => __( 'Primary Menu', 'responsive' ), 'secondary' => __( 'Secondary Menu', 'responsive'), 'footer-menu' => __( 'Footer Menu', 'responsive' ) ) ); } endif; add_action( 'after_setup_theme', 'responsive_setup' ); /** * Setup the WordPress core custom background feature. */ function responsive_register_custom_background() { add_theme_support( 'custom-background', apply_filters( 'responsive_custom_background_args', array( 'default-color' => 'efefef', 'default-image' => '', ) ) ); } add_action( 'after_setup_theme', 'responsive_register_custom_background' ); /** * Enqueue scripts and styles */ function responsive_scripts() { wp_enqueue_style( 'responsive-style', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script( 'responsive-modernizr', get_template_directory_uri() . '/js/responsive-modernizr.js', array( 'jquery' ), '2.6.1', false ); wp_enqueue_script( 'responsive-scripts', get_template_directory_uri() . '/js/responsive-scripts.js', array( 'jquery' ), '1.2.3', true ); wp_enqueue_script( 'responsive-small-menu', get_template_directory_uri() . '/js/small-menu.js', array( 'jquery' ), '20120206', true ); } add_action( 'wp_enqueue_scripts', 'responsive_scripts' ); /** * WordPress Widgets start right here. */ function responsive_widgets_init() { register_sidebar( array( 'name' => __( 'Main Sidebar', 'responsive' ), 'description' => __( 'Main sidebar', 'responsive' ), 'id' => 'sidebar-1', 'before_title' => '
', 'before_widget' => ' ' ) ); register_sidebar( array( 'name' => __( 'Left Home', 'responsive' ), 'description' => __( 'Bottom-left home widget area', 'responsive' ), 'id' => 'sidebar-2', 'before_title' => ' ', 'before_widget' => ' ' ) ); register_sidebar( array( 'name' => __( 'Middle Home', 'responsive' ), 'description' => __( 'Bottom-middle home widget area', 'responsive' ), 'id' => 'sidebar-3', 'before_title' => ' ', 'before_widget' => ' ' ) ); register_sidebar( array( 'name' => __( 'Right Home', 'responsive' ), 'description' => __( 'Bottom-right home widget area', 'responsive' ), 'id' => 'sidebar-4', 'before_title' => ' ', 'before_widget' => ' ' ) ); register_sidebar( array( 'name' => __( 'Gallery', 'responsive' ), 'description' => __( 'Widget area on single image page', 'responsive' ), 'id' => 'sidebar-5', 'before_title' => ' ', 'before_widget' => ' ' ) ); register_sidebar( array( 'name' => __( 'Footer', 'responsive' ), 'description' => __( 'Widget area in footer', 'responsive' ), 'id' => 'sidebar-6', 'before_title' => ' ', 'before_widget' => ' ' ) ); register_sidebar( array( 'name' => __( 'Top', 'responsive' ), 'description' => __( 'Widget area above main navigation', 'responsive' ), 'id' => 'sidebar-7', 'before_title' => ' ', 'before_widget' => '