__( 'Primary Navigation', 'aplau' ), ) ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'secondary' => __( 'Secondary Navigation', 'aplau' ), ) ); if (function_exists('get_custom_header')) { add_theme_support('custom-header', array ( // Header image default 'default-image' => get_template_directory_uri() . '/images/logo.png', // Header text display default 'header-text' => false, // Header image flex width 'flex-width' => true, // Header image width (in pixels) 'width' => 156, // Header image flex height 'flex-height' => true, // Header image height (in pixels) 'height' => 63)); } function get_display_name($user_id) { if (!$user = get_userdata($user_id)) return false; return $user->data->display_name; } // custom admin login logo function aplau_login_logo() { echo ''; } add_action('login_head', 'aplau_login_logo'); /** Custom Login Link **/ function aplau_login_logo_url() { return ('http://aplau.com'); } add_filter( 'login_headerurl', 'aplau_login_logo_url' ); function aplau_login_logo_url_title() { return get_bloginfo('title'); } add_filter( 'login_headertitle', 'aplau_login_logo_url_title' ); } function aplau_login_stylesheet() { ?> = 2 || $page >= 2 ) echo ' » ' . sprintf( __( 'Page %s', 'aplau' ), max( $paged, $page ) ); // Prepend name $filtered_title = $title; // Return the modified title return $filtered_title; } add_filter( 'wp_title', 'aplau_filter_wp_title' ); /** * Returns a "Continue Reading" link for excerpts * @since aplau 1.0 * @return string "Continue Reading" link */ function aplau_continue_reading_link() { return ' ' . __( 'read more '; } function aplau_auto_excerpt_more( $more ) { return ' …' . aplau_continue_reading_link(); } add_filter( 'excerpt_more', 'aplau_auto_excerpt_more' ); /** * Adds a pretty "Continue Reading" link to custom post excerpts. */ function aplau_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= aplau_continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'aplau_custom_excerpt_more' ); add_filter( 'use_default_gallery_style', '__return_false' ); function aplau_remove_gallery_css( $css ) { return preg_replace( "##s", '', $css ); } // Backwards compatibility with WordPress 3.3. if ( version_compare( $GLOBALS['wp_version'], '3.4', '<' ) ) add_filter( 'gallery_style', 'aplau_remove_gallery_css' ); if ( ! function_exists( 'aplau_comment' ) ) : function aplau_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?> ', 'aplau' ) . '
__( 'Primary Widget Area', 'aplau' ), 'id' => 'primary-widget-area', 'description' => __( 'The primary widget area', 'aplau' ), 'before_widget' => '