forked from roryee/artificial-intelligence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
95 lines (65 loc) · 1.97 KB
/
content.php
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
<?php if ( is_singular() ): ?>
<header id="thumbnail"
style="background-image:url(<?php the_post_thumbnail_src( $post ); ?>);">
<hgroup class="c">
<div class="icon"></div>
<?php if ( is_sticky() ): ?>
<div class="icon-sticky" title="Sticky post"></div>
<?php endif; ?>
<a href="<?php the_permalink(); ?>" class="cc">
<h1><?php the_title(); ?></h1>
<?php the_excerpt(); ?>
</a>
</hgroup>
</header>
<article id="article">
<div <?php post_class( 'article cc c' ); ?>>
<?php the_content(); ?>
</div>
</article>
<?php if ( is_single() ): ?>
<footer id="article-footer">
<div class="cc">
<hr class="end" />
<figure class="profile">
<p class="profile-img">
<?php echo get_avatar( $post->post_author, 100 ); ?>
</p>
<figcaption class="profile-bio">
<?php echo get_user_meta( $post->post_author, 'description' )[0]; ?>
</figcaption>
</figure>
<aside class="categories">
<div class="col">
<h6><span data-icon="category"></span></h6>
<?php the_category(); ?>
</div>
<?php if ( get_tags() ): ?>
<div class="col">
<h6><span data-icon="tag"></span></h6>
<?php the_tags( '<ul><li>', '</li><li>', '</li></ul>' ); ?>
</div>
<?php endif; ?>
</aside>
</div>
</footer>
<?php if ( is_single() ): ?>
<?php get_template_part( 'nav', 'single' ); ?>
<?php endif; ?>
<?php endif; ?>
<?php comments_template(); ?>
<?php else: ?>
<section <?php post_class( 'w' ); ?>
style="background-image:url(<?php the_post_thumbnail_src( $post ); ?>);">
<hgroup class="c">
<div class="icon"></div>
<?php if ( is_sticky() ): ?>
<div class="icon-sticky" title="Sticky post"></div>
<?php endif; ?>
<a href="<?php the_permalink(); ?>" class="cc">
<h1><?php the_title(); ?></h1>
<?php the_excerpt(); ?>
</a>
</hgroup>
</section>
<?php endif; ?>