-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsingle.php
59 lines (58 loc) · 2.61 KB
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* The Template for displaying all single posts.
*
* Copyright (c) 2012 The Regents of the University of California
* Released under the GPL Version 2 license
* http://www.opensource.org/licenses/gpl-2.0.php
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @package WordPress
* @subpackage CalPress2
* @since CalPress 0.9.7
*/
calpress_add_multimedia_scripts();
get_header(); ?>
<div id="content" class="clearfix">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-lead-art">
<?php calpress_lead_art(); ?>
</div>
<div class="entry-meta">
<div class="share-code clearfix">
<?php calpress_hook_single_entry_meta(); ?>
</div>
<span class="vcard author"><?php calpress_co_authors(); ?></span><span class="time">Posted <?php calpress_posted_on(); ?></span>
<?php edit_post_link( __( 'Edit this post', 'CalPress' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
<?php calpress_inline_art(); ?>
<div class="entry-content clearfix" aria-label="<?php _e('Begin story'); ?>">
<?php the_content(); ?>
</div><!-- .entry-content -->
<?php wp_link_pages( array( 'before' => '' . __( 'Pages:', 'CalPress' ), 'after' => '' ) ); ?>
<?php if ( get_the_author_meta( 'description' ) && calpress_show_author_profile_on_posts()) : // If a user has filled out their description, show a bio on their entries ?>
<footer id="entry-author-info" class="clearfix">
<?php echo get_avatar( get_the_author_meta( 'user_email' ) ); ?>
<h2><?php printf( esc_attr__( 'About %s', 'CalPress' ), get_the_author() ); ?></h2>
<?php the_author_meta( 'description' ); ?>
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
<?php printf( __( 'View all posts by %s →', 'CalPress' ), get_the_author() ); ?>
</a>
</footer><!-- #entry-author-info -->
<?php endif; ?>
<div class="filed-under">
<p><?php printf(__('Filed under: %s', 'CalPress'), get_the_category_list(', ')); ?></p>
<?php the_tags('<p>Tagged: ', ', ', '</p>'); ?>
</div>
</article><!-- #post-## -->
<?php comments_template( '/comments.php', true ); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
<?php if(calpress_show_sidebar()): ?>
<?php get_sidebar(); ?>
<?php endif; ?>
<?php get_footer(); ?>