width; $header_height = get_custom_header() -> height; } else { $header_width = HEADER_IMAGE_WIDTH; $header_height = HEADER_IMAGE_HEIGHT; } if ( 'full' != $size ) { $ratio = $size / $header_height; $header_height = (int) $header_height * $ratio; $header_width = (int) $header_width * $ratio; } $html = '' . get_bloginfo( 'name') . ''; } echo apply_filters( 'advantage_logo_image', $html ); } endif; if ( ! function_exists( 'advantage_branding' ) ) : function advantage_branding() { ?>

%3$s', get_permalink(), sprintf( esc_attr__( 'Permalink to %s', 'advantage' ), the_title_attribute( 'echo=0' ) ), get_the_title() ); } else { /* printf('

%1$s

', get_the_title() ); */ } } endif; if ( ! function_exists( 'advantage_single_post_link' ) ) : /* This function echo the link to single post view for the following: - Aside Post - Post without title ------------------------------------------------------------------ */ function advantage_single_post_link() { if ( ! is_single() ) { if ( has_post_format( 'aside' ) || has_post_format( 'quote' ) || '' == the_title_attribute( 'echo=0' ) ) { printf ('', get_permalink(), get_the_title() ); } } } endif; if ( ! function_exists( 'advantage_display_post_thumbnail' ) ) : // Display Large Post Thumbnail on top of the post function advantage_display_post_thumbnail( $post_id ) { global $advantage_layout; if ( has_post_thumbnail() ) { if ( ! is_single() ) { printf ('', get_permalink(), get_the_title() ); the_post_thumbnail( 'large', array( 'class' => 'img-polaroid featured-image', 'title' => get_the_title() ) ); echo ''; } else { if ( 2 == $advantage_layout ) the_post_thumbnail( 'full', array( 'class' => 'fullscreen-image' ) ); else the_post_thumbnail( 'large', array( 'class' => 'img-polaroid featured-image', 'title' => get_the_title() ) ); } } } endif; if ( ! function_exists( 'advantage_title_bar' ) ) : function advantage_title_bar() { ?>
%1$s', get_the_title() ); } elseif ( is_page() ) { $pagetitle = get_post_meta( $post->ID, '_advantage_title', true ); if ( empty( $pagetitle ) ) printf( '

%1$s

', get_the_title() ); } elseif ( is_search() ) { ?>

' . get_search_query() . '' ); ?>

' . get_the_author() . '' ); ?>

' . single_cat_title( '', false ) . '' ); ?>

'. $category_description .''; } elseif ( is_tag() ) { $tag_description = tag_description(); if ( empty( $tag_description ) ) { ?>

' . single_tag_title( '', false ) . '' ); ?>

'. $tag_description .''; } elseif ( is_archive() ) { echo '

'; if ( is_day() ) printf( __( 'Daily Archives: %s', 'advantage' ), '' . get_the_date() . '' ); elseif ( is_month() ) printf( __( 'Monthly Archives: %s', 'advantage' ), '' . get_the_date( _x( 'F Y', 'monthly archives date format', 'advantage' ) ) . '' ); elseif ( is_year() ) printf( __( 'Yearly Archives: %s', 'advantage' ), '' . get_the_date( _x( 'Y', 'yearly archives date format', 'advantage' ) ) . '' ); else the_title(); echo '

'; } } endif; if ( ! function_exists( 'advantage_template_intro' ) ) : function advantage_template_intro() { global $post, $advantage_options; // $pagetitle = get_post_meta( $post->ID, '_advantage_title', true ); $content = get_the_content(); $content = apply_filters( 'the_content', $content ); $content = str_replace( ']]>', ']]>', $content ); if ( ! empty($content)) { ?>
'; echo $content; echo ''; ?>