__( '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 »', 'aplau' ) . ''; } 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 '' : ?>
  • id="li-comment-">
    says:', 'aplau' ), sprintf( '%s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
  • __( 'Primary Widget Area', 'aplau' ), 'id' => 'primary-widget-area', 'description' => __( 'The primary widget area', 'aplau' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. register_sidebar( array( 'name' => __( 'Secondary Widget Area', 'aplau' ), 'id' => 'secondary-widget-area', 'description' => __( 'The secondary widget area', 'aplau' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); } /** Register sidebars by running aplau_widgets_init() on the widgets_init hook. */ add_action( 'widgets_init', 'aplau_widgets_init' ); function aplau_remove_recent_comments_style() { add_filter( 'show_recent_comments_widget_style', '__return_false' ); } add_action( 'widgets_init', 'aplau_remove_recent_comments_style' ); if ( ! function_exists( 'aplau_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. * @since aplau 1.0 */ function aplau_posted_on() { printf( __( 'Posted on %2$s by %3$s', 'aplau' ), 'meta-prep meta-prep-author', sprintf( '%3$s', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( '%3$s', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'aplau' ), get_the_author() ), get_the_author() ) ); } endif; if ( ! function_exists( 'aplau_posted_in' ) ) : function aplau_posted_in() { // Retrieves tag list of current post, separated by commas. $tag_list = get_the_tag_list( '', ', ' ); if ( $tag_list ) { $posted_in = __( 'Posted in %1$s and tagged %2$s.', 'aplau' ); } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = __( 'Posted in %1$s.', 'aplau' ); } else { $posted_in = __( 'Bookmark the permalink.', 'aplau' ); } // Prints the string, replacing the placeholders. printf( $posted_in, get_the_category_list( ', ' ), $tag_list, get_permalink(), the_title_attribute( 'echo=0' ) ); } endif;