global $graphene_settings;
$post_type = get_post_type_object( get_post_type() );
?>
/**
* Check if the post has a post format. Load a post-format specific loop file,
* if it has. Continue with standard loop otherwise.
*/
if ( function_exists( 'get_post_format' ) ) {
global $post_format;
$post_format = get_post_format();
// Get the post formats supported by the theme
$supported_formats = get_theme_support( 'post-formats' );
if ( is_array( $supported_formats ) ) $supported_formats = $supported_formats[0];
if ( in_array( $post_format, $supported_formats ) ) {
// Get the post format loop file
get_template_part( 'loop-post-formats', $post_format );
// Stop this default posts loop
return;
}
}
?>
>
if ( $graphene_settings['show_post_avatar'] ) {
echo '' . get_avatar( get_the_author_meta( 'user_email' ), 45 ) . '';
}
?>
/* Add a print button only for single pages/posts
* and if the theme option is enabled.
*/
if ( $graphene_settings['print_button'] ) : ?>
if( function_exists( 'wp_email' ) ) { echo ' '; }
?>
'' . __( 'Pages:','graphene' ) . ' ', 'after' => '
', 'next_or_number' => 'number' ) ); ?>
/**
* Display the post author's bio in single-post page if enabled
*/
if ( $graphene_settings['show_post_author'] ) :
?>
if ( $graphene_settings['print_css'] ) {
echo graphene_print_only_text( '' . __( 'Permanent link to this article:', 'graphene' ) . ' ' . get_permalink() . '' );
}
?>
/**
* Display Adsense advertising for single post pages
* See graphene_adsense() function in functions.php
*/
graphene_adsense(); ?>
/**
* The Template for displaying all single posts.
*
* @package Graphene
* @since Graphene 1.0
*/
get_header(); ?>
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-single.php and that will be used instead.
*/
the_post();
get_template_part('loop', 'single');
?>