Sha256: 075ab209be7dfc2cf8b5e72f648c30c2db6f5810f8e666d7006429273a6f7360
Contents?: true
Size: 1.46 KB
Versions: 2
Compression:
Stored size: 1.46 KB
Contents
<?php /** * The page for displaying single pages. * * @package WordPress * @subpackage RootBeer * @author JoshMedeski * @framework Foundation */ get_header(); while ( have_posts() ) : the_post(); ?> <!-- Main Content --> <div class="row"> <div class="large-8 columns main-content"> <hgroup> <h1><?php the_title(); ?></h1> <h6><?php the_time(get_option('date_format')); ?> by <?php the_author(); ?> in <?php $categories = get_the_category(); $separator = ' , '; $output = ''; if($categories){ foreach($categories as $category) { $output .= '<a href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a>'.$separator; } echo trim($output, $separator); } ?></h6> </hgroup> <p><?php the_post_thumbnail(); ?></p> <?php the_content(); ?> <hr> <nav class="nav-single row"> <div class="nav-previous small-6 columns"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></div> <div class="nav-next small-6 columns text-right"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></div> </nav> <hr> <?php comments_template( '', true ); ?> </div> <?php endwhile; // end of the loop. ?> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rootbeer-0.0.4 | templates/project/single.php |
rootbeer-0.0.2 | templates/project/single.php |