Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The Template for displaying all single posts.
- *
- * @package WordPress
- * @subpackage Revolution
- * @since Revolution 1.0
- */
- get_header(); ?>
- <?php $sidebarposition = of_get_option('templatesquare_sidebar_position' ,'right'); ?>
- <!-- MAIN CONTENT -->
- <div id="outermain">
- <div class="container">
- <section id="maincontent" class="twelve columns">
- <section id="content" class="nine columns <?php if($sidebarposition=="left"){echo "positionright omega";}else{echo "positionleft alpha";}?>">
- <div class="main">
- <div id="singlepost">
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <div class="entry-utility">
- <div class="posttime"><span><?php the_time('M d') ?></span><?php the_time('Y') ?></div>
- <div class="postcom"><?php comments_popup_link(__('<span>No</span> Comments', 'templatesquare'), __('<span>1</span> Comments', 'templatesquare'), __('<span>%</span> Comments', 'templatesquare'), '' , __('<span class="commoff">Comments<br/>off</span> ', 'templatesquare')); ?></div>
- </div>
- <div class="entry-content">
- <?php
- $custom = get_post_custom($post->ID);
- $cf_thumb = (isset($custom["thumb"][0]))? $custom["thumb"][0] : "";
- if($cf_thumb!=""){
- $thumb = '<div class="postimg"><img src='. $cf_thumb .' alt="" class="scale-with-grid"/></div>';
- }elseif(has_post_thumbnail($post->ID) ){
- $thumb = '<div class="postimg">'.get_the_post_thumbnail($post->ID, 'post-blog', array('alt' => '', 'class' => 'scale-with-grid')).'</div>';
- }else{
- $thumb ="";
- }
- ?>
- <?php
- echo $thumb;
- ?>
- <h2 class="posttitle">
- <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'templatesquare' ), the_title_attribute( 'echo=0' ) ); ?>" data-rel="bookmark"><?php the_title(); ?></a>
- </h2>
- <?php the_content(__('Continue Reading →', 'templatesquare')); ?>
- </div>
- <div class="clear"></div>
- </article>
- <?php
- // If a user has filled out their description, show a bio on their entries.
- if ( get_the_author_meta( 'description' ) ) : ?>
- <div id="entry-author-info">
- <div id="author-avatar">
- <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'templatesquare_author_bio_avatar_size', 60 ) ); ?>
- </div><!-- author-avatar -->
- <div id="author-description">
- <h2><span class="author"><?php printf( __( 'About %s', 'templatesquare' ), get_the_author() ); ?></span></h2>
- <?php the_author_meta( 'description' ); ?>
- </div><!-- author-description -->
- </div><!-- entry-author-info -->
- <?php endif; ?>
- <?php comments_template( '', true ); ?>
- <?php endwhile; ?>
- </div><!-- singlepost -->
- </div><!-- main -->
- <div class="clear"></div><!-- clear float -->
- </section><!-- content -->
- <aside id="sidebar" class="three columns <?php if($sidebarposition=="left"){echo "positionleft alpha";}else{echo "positionright omega";}?>">
- <?php get_sidebar();?>
- </aside><!-- sidebar -->
- </section><!-- maincontent -->
- </div>
- </div>
- <!-- END MAIN CONTENT -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement