-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.php
More file actions
executable file
·36 lines (34 loc) · 1.08 KB
/
Copy pathcontent.php
File metadata and controls
executable file
·36 lines (34 loc) · 1.08 KB
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
<?php
/**
* @package turing
* @since turing 1.0
*/
global $pageClass;
global $pageID;
?>
<div id="post-<?php the_ID(); ?>" class="post">
<?php if ( has_post_format( 'video' ) || has_post_format('image')) { the_content(); } ?>
<?php if ( 'post' == get_post_type() ) : ?>
<h3 class="subject"><?php the_title(); ?></h3>
<div class="meta">
<span class="date"><?php turing_posted_on(); ?></span>
<span class="author">By: <?php echo get_the_author_meta('display_name') ?></span>
<span class="comments"><?php echo get_comments_number(); ?> Comments</span>
</div>
<div class="image">
<?php echo get_the_post_thumbnail($post->ID,'large'); ?>
</div>
<div class="post-content">
<?php
if(is_single()) the_content();
else {
the_excerpt(); ?>
<p>
<a class="read_more" href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'turing' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
Continue reading
</a>
</p>
<?php } ?>
</div>
<?php endif; ?>
</div>