File: /home/dwauav0tm6jp/hosted/jeffreyjhart_com/wp-content/themes/skylab/content-quote.php
<?php
/**
* The template for displaying posts in the Quote Post Format
*
* @package WordPress
* @subpackage Skylab
* @since Skylab 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
<div class="entry-content-meta-wrapper">
<div class="post-thumbnail clearfix">
<?php $quote = get_post_meta( get_the_ID(), 'mega_quote', true ); ?>
<?php $quotesource = get_post_meta( get_the_ID(), 'mega_quote_source', true ); ?>
<?php if ( ! empty( $quote ) ) : ?>
<blockquote><p><?php echo $quote; ?></p></blockquote>
<?php endif;?>
<?php if ( ! empty( $quotesource ) ) : ?>
<p class="quote-meta"><?php echo $quotesource; ?></p>
<?php endif;?>
</div>
<header class="entry-header">
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php $show_sep = false; ?>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'mega' ) );
if ( $categories_list ):
?>
<span class="cat-links">
<?php printf( __( '<span class="%1$s"></span> %2$s', 'mega' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
$show_sep = true; ?>
</span>
<span class="sep">|</span>
<?php endif; // End if categories ?>
<?php mega_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permanent Link to %s', 'mega' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
</header><!-- .entry-header -->
<?php if ( !empty( $post->post_content ) ) : ?>
<div class="entry-content clearfix">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'mega' ) . '</span>', 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<footer class="entry-meta">
<?php $show_sep = false; ?>
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
<?php
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', __( ', ', 'mega' ) );
if ( $tags_list ):
if ( $show_sep ) : ?>
<span class="sep"> | </span>
<?php endif; // End if $show_sep ?>
<span class="tag-links">
<?php printf( __( '<span class="%1$s"><i class="fontello-tag"></i></span> %2$s', 'mega' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
$show_sep = true; ?>
</span>
<?php endif; // End if $tags_list ?>
<?php endif; // End if 'post' == get_post_type() ?>
<?php if ( comments_open() ) : ?>
<?php if ( $show_sep ) : ?>
<span class="sep"> | </span>
<?php endif; // End if $show_sep ?>
<span class="comments-link"><?php comments_popup_link( ''. __( '<i class="fontello-comment"></i> Comment', 'mega' ) .'', __( '<i class="fontello-comment"></i> <b>1</b> Comment', 'mega' ), __( '<i class="fontello-comment"></i> <b>%</b> Comments', 'mega' ) ); ?></span>
<?php endif; // End if comments_open() ?>
<?php $sep = '<span class="sep"> | </span>' ?>
<?php edit_post_link( __( '<i class="fontello-pencil"></i> Edit', 'mega' ), '' . $sep . '<span class="edit-link">', '</span>' ); ?>
<?php if ( !is_single() ) : // Checks if any single post is being displayed ?>
<?php $the_title = get_the_title(); ?>
<?php $url = get_permalink(); ?>
<?php do_action( 'addthis_widget', $url, $the_title, 'simple_button' );?>
<?php endif; // End if ( !is_single() ) ?>
</footer><!-- #entry-meta -->
</div><!-- .entry-content-meta-wrapper -->
<?php if ( is_single() ) : // Checks if any single post is being displayed ?>
<nav id="nav-single">
<h3 class="assistive-text"><?php _e( 'Post navigation', 'mega' ); ?></h3>
<span class="nav-previous"><?php previous_post_link( '%link', __( 'Older <i class="icon-chevron-right"></i>', 'mega' ) ); ?></span>
<span class="nav-next"><?php next_post_link( '%link', __( '<i class="icon-chevron-left"></i> Newer', 'mega' ) ); ?></span>
</nav><!-- #nav-single -->
<?php comments_template( '', true ); ?>
<?php endif; // End if ( is_single() ) ?>
</article><!-- #post-<?php the_ID(); ?> -->