-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-aside.php
More file actions
51 lines (38 loc) · 1.06 KB
/
content-aside.php
File metadata and controls
51 lines (38 loc) · 1.06 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
<?php if ( is_singular() ): ?>
<article id="article"
style="background-image:url(<?php the_post_thumbnail_src( $post ); ?>);">
<div class="c">
<div <?php post_class( 'article cc c' ); ?>>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
</div>
</div>
</article>
<?php if ( is_single() ): ?>
<?php get_template_part( 'nav', 'single' ); ?>
<?php endif; ?>
<?php else: ?>
<section <?php post_class( 'ww' ); ?>>
<div class="cc">
<a class="icon" href="<?php the_permalink(); ?>"></a>
<ul class="meta">
<li>
<?php the_author_posts_link(); ?>
</li>
<li>
<a href="#"><?php the_time( 'F d, Y' ); ?></a>
</li>
<li>
<a href="<?php comments_link(); ?>"><?php comments_number( '0 comments', '1 comment', '% comments' ); ?></a>
</li>
<li>
<a href="<?php the_permalink(); ?>">Read more</a>
</li>
</ul>
<div class="content">
<h3 class="content-title"><?php the_title(); ?></h3>
<?php the_excerpt(); ?>
</div>
</div>
</section>
<?php endif; ?>