-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentry.single.php
58 lines (58 loc) · 2.32 KB
/
entry.single.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
<?php namespace Habari; ?>
<?php $theme->display('header'); ?>
<body class="right-sidebar">
<div id="header-wrapper">
<div class="container">
<?php $theme->display('nav'); ?>
</div>
</div>
<div id="main-wrapper">
<div class="container">
<div class="row">
<div class="12u">
<!-- Portfolio -->
<section>
<div>
<div class="row">
<div class="8u skel-cell-mainContent">
<!-- Content -->
<article class="box is-post">
<span class="image image-full"><img src="<?php echo $post->info->header; ?>" alt=""></span>
<header>
<h2><?php echo $post->title_out; ?> <?php if( $loggedin) { ?><small style="float:right;font-size:20px;"><a href="<?php URL::out('display_editor'); ?>/<?php echo $post->id; ?>" title="Edit <?php echo $post->title; ?>"><i class="fontawesome-edit"></i></a></small><?php } ?></h2>
</header>
<?php echo $post->content_out; ?>
</article>
<article class="box">
<div id="disqus_thread"></div>
</article>
</div>
<div class="4u">
<section class="box">
<p><strong>Written on <?php echo $post->pubdate->out('M, d Y'); ?> by <?php echo $post->author->displayname; ?><?php if( count($post->tags) > 0 ) { ?> and tagged with <?php echo $theme->t_and_l($post->tags); ?><?php } ?>.</strong></p>
<h3>Recent Posts</h3>
<br>
<ul class="divided">
<?php foreach( $theme->recent($post->id) as $recent ) { ?>
<li><a href="<?php echo $recent->permalink; ?>" title="<?php echo $recent->title_out; ?>"><?php echo $recent->title_out; ?></a></li>
<?php } ?>
</ul>
</section>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var disqus_shortname = 'sillynesswerd';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<?php $theme->display('footer'); ?>