__( 'Primary Menu', 'beach' ), 'secondary' => __( 'Secondary Menu', 'beach' ), ) ); /** * Enable support for Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'gallery', 'quote', 'status' ) ); } endif; // beach_setup add_action( 'after_setup_theme', 'beach_setup' ); /** * Enqueue scripts and styles */ function beach_scripts() { wp_enqueue_style( 'beach', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'beach_scripts' ); /** * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. */ function beach_page_menu_args($args) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'beach_page_menu_args' ); /** * Register widgetized area and update sidebar with default widgets */ function beach_widgets_init() { register_sidebar( array ( 'name' => __( 'Sidebar', 'beach' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '
tag based on what is being viewed. * * @since Beach 1.1 */ function beach_wp_title( $title, $sep ) { global $page, $paged; if ( is_feed() ) return $title; // Add the blog name $title .= get_bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title .= " $sep $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) $title .= " $sep " . sprintf( __( 'Page %s', 'beach' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'beach_wp_title', 10, 2 ); /** * Load Jetpack compatibility file. */ require( get_template_directory() . '/inc/jetpack.compat.php' ); /** * This theme was built with PHP, Semantic HTML, CSS, love, and a Toolbox. */