PageRenderTime 111ms CodeModel.GetById 60ms app.highlight 4ms RepoModel.GetById 36ms app.codeStats 9ms

/wp-content/themes/esquire/content-quote.php

https://github.com/Bochet/festival_lgbt
PHP | 45 lines | 34 code | 5 blank | 6 comment | 4 complexity | 10b3aadabc6d4f199bb53c0e9282f096 MD5 | raw file
 1<?php
 2/**
 3 * The template for displaying Video Posts
 4 *
 5 * @package Esquire
 6 * @since Esquire 1.0
 7 */
 8?>
 9
10<div <?php post_class(); ?>>
11	<?php if ( ! is_page() ) : ?>
12	<div class="datebox">
13		<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'esquire' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
14			<p class="day"><?php the_time( 'd' ); ?></p>
15			<p class="month"><?php the_time( 'M' ); ?></p>
16		</a>
17	</div>
18	<?php endif; ?>
19
20	<div class="postbody quote">
21		<div class="content">
22			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'esquire' ) ); ?>
23		</div>
24
25		<?php comments_template( '', true ); ?>
26
27		<div class="meta bar">
28			<p class="permalink">
29				<?php if ( ! is_page() ) : ?>
30				<a href="<?php the_permalink(); ?>"><span rel="<?php the_time( get_option( 'date_format' ) ); ?>"><?php printf( __( '%1$s ago', 'esquire' ), human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) ); ?></span></a>
31				<?php endif; ?>
32				<a href="<?php echo wp_get_shortlink(); ?> " class="shorturl"><span><?php _e( 'Short URL', 'esquire' ); ?></span></a>
33				<?php comments_popup_link( '<span>' . __( 'Comments', 'esquire' ) . '</span>', '<span>' . __( '1 Comment', 'esquire' ) . '</span>', '<span>' . __( '% Comments', 'esquire' ) . '</span>', 'comment-count', '' ); ?>
34				<?php edit_post_link( __( 'Edit', 'esquire' ) ); ?>
35			</p>
36
37			<div class="tagbar">
38				<?php if ( 1 != esquire_category_counter() ) : ?>
39				<p class="tags cats"><?php the_category( '<span>/</span>' ); ?></p>
40				<?php endif; ?>
41				<?php the_tags( '<p class="tags">', '<span>/</span>', '</p>' ); ?>
42			</div><!-- .tagbar -->
43		</div><!-- .meta .bar -->
44	</div><!-- .postbody .text -->
45</div><!-- .post -->