'eeeeee', ) ) ); /** * This theme uses wp_nav_menu() in one location. */ register_nav_menus( array( 'primary' => __( 'Primary Menu', 'balloons' ), ) ); } endif; // balloons_setup add_action( 'after_setup_theme', 'balloons_setup' ); /** * Register widgetized area and update sidebar with default widgets * * @since Balloons 1.0 */ function balloons_widgets_init() { register_sidebar( array( 'name' => __( 'Footer Column 1', 'balloons' ), 'id' => 'footer-widgets-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Column 2', 'balloons' ), 'id' => 'footer-widgets-2', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Column 3', 'balloons' ), 'id' => 'footer-widgets-3', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'balloons_widgets_init' ); /** * Enqueue scripts and styles */ function balloons_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( 'parallax', get_template_directory_uri() . '/js/parallax.js', array( 'jquery' ) ); // Pass this to our javascript so it knows to adjust for the height of the admin bar. wp_localize_script( 'parallax', 'isadminbar', array( 'showing' => is_admin_bar_showing(), ) ); wp_enqueue_style( 'googlefonts', "https://fonts.googleapis.com/css?family=Sue+Ellen+Francisco|Rosario:400,400italic" ); 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', 'balloons_scripts' ); /** * Enqueue fonts on admin custom header page */ function balloons_header_fonts( $hook_suffix ) { if ( 'appearance_page_custom-header' != $hook_suffix ) return; wp_enqueue_style( 'googlefonts', "https://fonts.googleapis.com/css?family=Sue+Ellen+Francisco|Rosario:400,400italic" ); } add_action( 'admin_enqueue_scripts', 'balloons_header_fonts' ); /** * Enqueue slightly different styles for parallax balloons if admin bar is not showing */ function balloons_parallax_admin_bar() { //Adjust balloon styles if user sees the admin bar. if ( is_admin_bar_showing() ) { ?>