Repository navigation
Expand file tree
/
Copy pathsingle.php
More file actions
109 lines (60 loc) · 2.82 KB
/
Copy pathsingle.php
File metadata and controls
109 lines (60 loc) · 2.82 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php get_header(); ?>
<br/>
<?php if ( in_category( array( 'posts' ) )) { ?>
Blog post
<?php } else { ?>
Normal Post
<!-- get the post -->
<?php } if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php setPostViews(get_the_ID()); ?>
<!--<div class="image-wrap" id="featured-wrapper">
<div id="next-prev-links">
<div class="prev-link"><?php previous_post_link('%link', 'Previous') ?></div>
<div class="next-link"><?php next_post_link('%link', 'Next') ?></div>
</div>
<a href="<?php $src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), false, ''); echo $src[0]; ?>">
<?php the_post_thumbnail('full', array('class' => 'article-hero-img')); ?>
</a>
</div>-->
<div class="row">
<!-- article content
<div class="large-12 columns" id="article-top">
<h1><?php the_title(); ?></h1>
</div>-->
<div class="large-8 columns">
<div class="image-wrap" id="featured-wrapper">
<div id="next-prev-links">
<div class="prev-link"><?php previous_post_link('%link', 'Previous') ?></div>
<div class="next-link"><?php next_post_link('%link', 'Next') ?></div>
</div>
<a href="<?php $src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), false, ''); echo $src[0]; ?>">
<?php the_post_thumbnail('full', array('class' => 'article-hero-img')); ?>
</a>
</div>
</div>
<div class="large-4 columns" id="article">
<div class="post_data">
<span><?php the_author_posts_link(); ?></span><br/>
<h5 class="subheader italic post_date published"><?php the_time() ?></h5>
<div class="single_count">
<?php if( function_exists('zilla_likes') ) zilla_likes(); ?>
<span class="views"><span class="views-icon"></span><?php echo getPostViews(get_the_ID()); ?></span>
<h6 class="cat-button">Tags: <?php the_category(', '); ?></h6>
</div>
</div>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div id="entry">
<h2 class="bold entry-content"><?php the_title(); ?></h2>
<div class="entry-content"><?php the_content(); ?></div>
</div>
</div>
</div>
<?php endwhile; endif; ?>
</div>
<hr/>
<div class="row">
<!-- load the comments! -->
<?php comments_template(); ?>
</div>
<?php wp_reset_postdata(); ?>
<?php get_footer(); ?>