-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.html.php
85 lines (72 loc) · 3.63 KB
/
post.html.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
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (login()) { echo tab($p); } ?>
<?php if (!empty($p->link)) { ?>
<h1><a target="_blank" id="php-txtdb-class" class="anchor" href="<?php echo $p->link ?>" aria-hidden="true"><span class="octicon octicon-link"></span></a><?php echo $p->title ?></h1>
<?php } else { ?>
<h1 id="php-txtdb-class" class="anchor"><?php echo $p->title; ?></h1>
<?php } ?>
<p><time><?php echo format_date($p->date); ?> | Posted in <?php echo $p->category;?></p>
<hr></hr>
<?php if (!empty($p->image)) { ?>
<div>
<img itemprop="image" width="100%" src="<?php echo $p->image; ?>" alt="<?php echo $p->title ?>"/>
</div>
<?php } ?>
<?php if (!empty($p->video)) { ?>
<div">
<iframe width="100%" height="315px;" class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" frameborder="0" allowfullscreen></iframe>
</div>
<?php } ?>
<?php if (!empty($p->audio)) { ?>
<div">
<iframe width="100%" height="200px;" class="embed-responsive-item" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&auto_play=false&visual=true"></iframe>
</div>
<?php } ?>
<?php if (!empty($p->quote)) { ?>
<div>
<blockquote class="quote"><p><i class="fa fa-quote-left"></i> <?php echo $p->quote ?> <i class="fa fa-quote-right"></i></p></blockquote>
</div>
<?php } ?>
<?php echo $p->body; ?>
<p>Tagged: <?php echo $p->tag;?></p>
<p>Share:
<a onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>">
<span>Twitter</span>
</a> |
<a onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>">
<span>Facebook</span>
</a>
</p>
<div class="clear"></div>
<footer>
Author
<h4><a href="<?php echo $p->authorUrl;?>"><?php echo $author->name;?></a></h4>
<?php echo $author->about;?>
</footer>
<?php if (disqus()): ?>
<?php echo disqus($p->title, $p->url) ?>
<?php endif; ?>
<?php if (disqus_count()): ?>
<?php echo disqus_count() ?>
<?php endif; ?>
<?php if (facebook() || disqus()): ?>
<section class="comments" id="comments">
<?php if (facebook()): ?>
<div class="fb-comments" data-href="<?php echo $p->url ?>" data-numposts="<?php echo config('fb.num') ?>" data-colorscheme="<?php echo config('fb.color') ?>"></div>
<?php endif; ?>
<?php if (disqus()): ?>
<div id="disqus_thread"></div>
<?php endif; ?>
</section>
<?php endif; ?>
<?php if (!empty($prev) || !empty($next)): ?>
<nav class="pagination post" role="pagination">
<?php if (!empty($next)): ?>
<a class="newer-posts" href="<?php echo($next['url']); ?>"><i class="fa fa-chevron-circle-left"></i>< Next Post</a>
<?php endif; ?>
|
<?php if (!empty($prev)): ?>
<a class="older-posts" href="<?php echo($prev['url']); ?>">Previous Post ><i class="fa fa-chevron-circle-right"></i></a>
<?php endif; ?>
</nav>
<?php endif; ?>