'f1f1f1', ) ) ); /** * This theme uses wp_nav_menu() in one location. */ register_nav_menus( array( 'primary' => __( 'Primary Menu', 'runo-lite' ), ) ); /** * Add support for the Gallery, Quote, and Image Post Formats */ add_theme_support( 'post-formats', array( 'gallery', 'quote', 'image' ) ); } endif; // runo_lite_setup add_action( 'after_setup_theme', 'runo_lite_setup' ); /** * Register widgetized area and update sidebar with default widgets * * @since Runo Lite 1.0 */ function runo_lite_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'runo-lite' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Sidebar 1', 'runo-lite' ), 'id' => 'sidebar-2', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Sidebar 2', 'runo-lite' ), 'id' => 'sidebar-3', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Sidebar 3', 'runo-lite' ), 'id' => 'sidebar-4', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'runo_lite_widgets_init' ); /** * Enqueue scripts and styles */ function runo_lite_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 ); wp_enqueue_script( 'menu-parent-class', get_template_directory_uri() . '/js/runo.js', array( 'jquery' ), '20121011', 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' ); } wp_enqueue_style( 'runo-lite-vollkorn' ); } add_action( 'wp_enqueue_scripts', 'runo_lite_scripts' ); /** * Enqueue custom header fonts */ function runo_lite_custom_header_fonts( $hook_suffix ) { if ( 'appearance_page_custom-header' != $hook_suffix ) return; wp_enqueue_style( 'runo-lite-vollkorn' ); } add_action( 'admin_enqueue_scripts', 'runo_lite_custom_header_fonts' ); /** * Register Google Fonts */ function runo_lite_google_fonts() { wp_register_style( 'runo-lite-vollkorn', "https://fonts.googleapis.com/css?family=Vollkorn:400italic,700italic,400,700" ); } add_action( 'init', 'runo_lite_google_fonts' ); /** * Implement the Custom Header feature */ require( get_template_directory() . '/inc/custom-header.php' ); /** * Add theme options in the Customizer */ function runo_lite_customize( $wp_customize ) { $wp_customize->add_section( 'runo_lite_settings', array( 'title' => 'Theme Options', 'priority' => 35, ) ); $wp_customize->add_setting( 'sidebar_placement', array( 'default' => 'none', ) ); $wp_customize->add_control( 'sidebar_placement', array( 'label' => 'Sidebar Placement', 'section' => 'runo_lite_settings', 'type' => 'radio', 'choices' => array( 'none' => __( 'None', 'runo-lite' ), 'right' => __( 'Right', 'runo-lite' ), 'left' => __( 'Left', 'runo-lite' ), ), ) ); } add_action( 'customize_register', 'runo_lite_customize' );