forked from mityalebedev/The-Shell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.php
67 lines (63 loc) · 2.15 KB
/
post.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
<body class="post-template">
<header id="site-head" >
<div id="particles" style="
top: 0px;
/* position: fixed; */
left: 0px;
position: absolute;
width: 100%;
height: 100%;
">
</div>
<div class="vertical animated bounceInDown">
<div id="site-head-content" class="inner">
<h1 class="blog-title"><a href="<?php echo $blog->URL;?>"><?php echo $blog->Name;?></a></h1>
<h2 class="blog-description"><?php echo $blog->Subtitle;?></h2>
</div>
</div>
</header>
<main class="content" role="main">
<article class="post">
<span class="post-meta"><time datetime="<?php echo date("d.m.Y,H:i",$post->Date);?>"><?php echo date("d.m.Y,H:i",$post->Date);?></span>
<h1 class="post-title"><?php echo $post->Title;?></h1>
<section class="post-content">
<p>
<?php echo $Parsedown->text($post->Content);?>
</p>
</section>
<footer class="post-footer">
<section class="unit">
<?php
global $bootstrap;
$units = $bootstrap->GetUnitsByImplementation("IPostUnit");
foreach($units as $unit){
try{
$unit->Run();
}catch(\Exception $ex){
}
}
?>
</section>
<div class="post-post-meta">
<section class="author">
<h4><?php echo $post->Author->Name;?></h4>
<p><?php echo $post->Author->About;?></p>
</section>
<section class="share">
<?php
$href = urlencode($blog->URL."?/post/".$post->WebFilename."/");
?>
<a class="icon-twitter" href="http://twitter.com/share?text=<?php echo $post->Title;?>&url=<?php echo $href;?>" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
<span class="hidden">Twitter</span>
</a>
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $href;?>" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
<span class="hidden">Facebook</span>
</a>
<a class="icon-google-plus" href="https://plus.google.com/share?url=<?php echo $href;?>" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
<span class="hidden">Google+</span>
</a>
</section>
</div>
</footer>
</article>
</main>