-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts_del.php
More file actions
167 lines (146 loc) · 6.86 KB
/
Copy pathposts_del.php
File metadata and controls
167 lines (146 loc) · 6.86 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html dir="ltr" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" prefix="og: http://ogp.me/ns#">
<head>
<?php require($config->paths->templates."includes/head.inc"); ?>
</head>
<body class="has-side-panel side-panel-right fullwidth-page">
<div id="wrapper">
<!-- preloader -->
<div id="preloader">
<div id="spinner">
<div class="preloader-dot-loading">
<div class="cssload-loading"><i></i><i></i><i></i><i></i></div>
</div>
</div>
<div id="disable-preloader" class="btn btn-default btn-sm">Disable Preloader</div>
</div>
<!-- Header -->
<?php require($config->paths->templates."includes/header.inc"); ?>
<!-- Start main-content -->
<div class="main-content">
<?php require($config->paths->templates."includes/modules/inner-header.inc"); ?>
<section>
<div class="container mt-30 mb-30 pt-30 pb-30">
<div class="row">
<div class="col-md-9">
<div class="blog-posts">
<div class="col-md-12">
<div class="row list-dashed">
<?php
$posts = $pages->find('template=post,sort=-date, limit=5');
$pagination = $posts->renderPager(array(
'nextItemLabel' => "Next",
'previousItemLabel' => "Prev",
'listMarkup' => "<ul class='pagination theme-colored'>{out}</ul>",
'itemMarkup' => "<li class='{class}'>{out}</li>",
'linkMarkup' => "<a href='{url}'><span>{out}</span></a>",
'currentItemClass' => "active"
));
?>
<div class="mb20" style="border: none!important;">
<nav>
<?= $pagination ?>
</nav>
</div>
<?php foreach($posts as $post) : ?>
<article class="post clearfix mb-30 pb-30">
<div class="entry-header">
<div class="post-thumb thumb">
<a href="<?= $post->url ?>"><img src="<?= $post->images->first()->url ?>" alt="" class="img-responsive img-fullwidth"></a>
</div>
</div>
<div class="entry-content border-1px p-20 pr-10">
<div class="entry-meta media mt-0 no-bg no-border">
<div class="entry-date media-left text-center flip bg-theme-colored pt-5 pr-15 pb-5 pl-15">
<ul>
<li class="font-16 text-white font-weight-600"><?= date("d", $post->getUnformatted("date")); ?></li>
<li class="font-12 text-white text-uppercase"><?= date("M", $post->getUnformatted("date")); ?></li>
</ul>
</div>
<div class="media-body pl-15">
<div class="event-content pull-left flip">
<h4 class="entry-title text-white text-uppercase m-0 mt-5"><a href="<?= $post->url ?>"><?= $post->title ?></a></h4>
<!-- <span class="mb-10 text-gray-darkgray mr-10 font-13"><i class="fa fa-commenting-o mr-5 text-theme-colored"></i> 214 Comments</span> -->
<!-- <span class="mb-10 text-gray-darkgray mr-10 font-13"><i class="fa fa-heart-o mr-5 text-theme-colored"></i> 895 Likes</span> -->
</div>
</div>
</div>
<p class="mt-10"><?= $sanitizer->truncate($post->body, "360") ?></p>
<a href="<?= $post->url ?>" class="btn-read-more">Read more</a>
<div class="clearfix"></div>
</div>
</article>
<?php endforeach; ?>
</div>
<!-- /.row -->
</div>
<!-- /.col -->
<div class="col-md-12">
<nav>
<?= $pagination ?>
</nav>
</div>
</div>
</div>
<div class="col-md-3">
<div class="sidebar sidebar-right mt-sm-30">
<div class="widget">
<h5 class="widget-title">Categories</h5>
<ul class="list-divider list-border list check">
<?php foreach($pages->get('1123')->children() as $category) : ?>
<li><a href="<?= $category->url ?>"><?= $category->title ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<!-- <div class="widget">
<h4 class="widget-title">Twitter Feed</h4>
<div class="twitter-feed list-border clearfix" data-username="Envato"></div>
</div> -->
<!-- <div class="widget">
<h5 class="widget-title">Image gallery with text</h5>
<div class="widget-image-carousel">
<div class="item">
<img src="https://placehold.it/365x230" alt="">
<h4 class="title">This is a Demo Title</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestiae illum amet illo.</p>
</div>
<div class="item">
<img src="https://placehold.it/365x230" alt="">
<h4 class="title">This is a Demo Title</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestiae illum amet illo.</p>
</div>
<div class="item">
<img src="https://placehold.it/365x230" alt="">
<h4 class="title">This is a Demo Title</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestiae illum amet illo.</p>
</div>
</div>
</div> -->
<!-- <div class="widget">
<h5 class="widget-title">Tags</h5>
<div class="tags">
<?php foreach($pages->get('1017')->children() as $tag) : ?>
<a href="<?= $tag->url ?>"><?= $tag->title ?></a>
<?php endforeach; ?>
</div>
</div> -->
</div>
<!-- /.sidebar .sidebar-right -->
</div>
<!-- ./col-md-3 -->
</div>
<!-- /.row -->
</div>
<!-- /.container -->
</section>
</div>
<!-- end main-content -->
<!-- Footer -->
<?php require($config->paths->templates."includes/footer.inc"); ?>
<a class="scrollToTop" href="#"><i class="fa fa-angle-up"></i></a>
</div>
<!-- end wrapper -->
<!-- Footer Scripts -->
<?php require($config->paths->templates."includes/foot.inc"); ?>
</body>
</html>