This repository has been archived by the owner on Jul 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontent.php
105 lines (95 loc) · 3.28 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
96
97
98
99
100
101
102
103
104
105
<?php
/**
* Part: content.php
*
* @package WordPress
* @subpackage octopress-classic
* @since 1.0
*/
?>
<?php if(is_page()): ?>
<article <?php post_class('hentry'); ?> id="page">
<?php else: ?>
<article <?php post_class('hentry'); ?>>
<?php endif; ?>
<header>
<h1 class="entry-title">
<?php if( is_single() || is_page() ): ?>
<?php if( is_linked_list() ): ?>
<?php the_title(); ?><a class="linked-post-permalink" href="<?php the_permalink(); ?>"><span
id="post-permalink">∞</span></a>
<?php else: ?>
<?php the_title(); ?>
<?php endif; ?>
<?php else: ?>
<?php if( is_linked_list() ): ?>
<a href="<?php the_linked_list_link(); ?>"><?php the_title(); ?></a><a
class="linked-post-permalink" href="<?php the_permalink(); ?>"><span
id="post-permalink">∞</span></a>
<?php else: ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php endif; ?>
<?php endif; ?>
</h1>
<?php if( is_single() ): ?>
<?php if( is_linked_list() ): ?>
<p class="meta">
<time datetime="<?php the_time('Y-m-d H:i:s'); ?>"><?php the_time(get_option('date_format')); ?></time>
| <a href="<?php the_permalink(); ?>"><?php esc_html_e('Permalink', 'octopress-classic'); ?></a>
|
<a href="<?php the_linked_list_link(); ?>"><?php esc_html_e('External Link', 'octopress-classic'); ?></a>
</p>
<?php else: ?>
<p class="meta">
<time datetime="<?php the_time('Y-m-d H:i:s'); ?>"><?php the_time(get_option('date_format')); ?></time>
| <a href="<?php the_permalink(); ?>"><?php esc_html_e('Permalink', 'octopress-classic'); ?></a>
</p>
<?php endif; ?>
<?php else: ?>
<?php if( !is_page() ): ?>
<?php if( is_linked_list() ): ?>
<p class="meta">
<time datetime="<?php the_time('Y-m-d H:i:s'); ?>"><?php the_time(get_option('date_format')); ?></time>
|
<a href="<?php echo(the_permalink() . '#comments'); ?>"><?php comments_number('comments', '1 comment', '% comments'); ?></a>
</p>
<?php else: ?>
<p class="meta">
<time datetime="<?php the_time('Y-m-d H:i:s'); ?>"><?php the_time(get_option('date_format')); ?></time>
|
<a href="<?php echo(the_permalink() . '#comments'); ?>"><?php comments_number('comments', '1 comment', '% comments'); ?></a>
</p>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
</header>
<div class="entry-content">
<?php
if( has_post_thumbnail() ):
the_post_thumbnail('full', array('class' => 'noborder'));
endif;
?>
<?php if( is_single() ): ?>
<?php the_content(); ?>
<?php else: ?>
<?php the_content('(Read more...)'); ?>
<?php endif; ?>
</div>
<?php if( is_single() && !is_page() ): ?>
<footer>
<p class="meta">
<span class="byline author vcard">
<?php esc_html_e('Posted by ', 'octopress-classic'); ?><span
class="fn"><?php the_author(); ?></span>
</span>
<time datetime="<?php the_time('Y-m-d H:i:s'); ?>"><?php the_time(get_option('date_format')); ?></time>
<span class="categories"><?php the_tags(''); ?></span>
</p>
</footer>
<?php endif; ?>
</article>
<section>
<?php if( !is_page() ): ?>
<?php comments_template(); ?>
<?php endif; ?>
</section>