mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 05:26:22 +05:30
lc
This commit is contained in:
parent
414f3a8ae7
commit
e4f2a994ab
3 changed files with 4 additions and 12 deletions
|
|
@ -357,7 +357,9 @@ function get_recent_pages() {
|
||||||
if (!empty($posts)) {
|
if (!empty($posts)) {
|
||||||
krsort($posts);
|
krsort($posts);
|
||||||
echo '<table class="post-list">';
|
echo '<table class="post-list">';
|
||||||
echo '<tr class="head"><th>Title</th><th>Views</th><th>Operations</th></tr>';
|
echo '<tr class="head"><th>Title</th>';
|
||||||
|
if (config("views.counter") == "true") echo '<th>Views</th>';
|
||||||
|
echo '<th>Operations</th></tr>';
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$len = count($posts);
|
$len = count($posts);
|
||||||
foreach ($posts as $p) {
|
foreach ($posts as $p) {
|
||||||
|
|
|
||||||
|
|
@ -1146,7 +1146,7 @@ get('/:static/:sub', function($static,$sub) {
|
||||||
file_cache($_SERVER['REQUEST_URI']);
|
file_cache($_SERVER['REQUEST_URI']);
|
||||||
}
|
}
|
||||||
|
|
||||||
render('static-sub', array(
|
render('static', array(
|
||||||
'head_contents' => head_contents($post->title . ' - ' . blog_title(), $description = get_description($post->body), $post->url),
|
'head_contents' => head_contents($post->title . ' - ' . blog_title(), $description = get_description($post->body), $post->url),
|
||||||
'bodyclass' => 'inpage',
|
'bodyclass' => 'inpage',
|
||||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . $father_post[0]->url . '">' . $father_post[0]->title . '</a> » ' . $post->title,
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . $father_post[0]->url . '">' . $father_post[0]->title . '</a> » ' . $post->title,
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<?php if (!empty($breadcrumb)):?><div class="breadcrumb" xmlns:v="http://rdf.data-vocabulary.org/#"><?php echo $breadcrumb ?></div><?php endif;?>
|
|
||||||
<?php if(login()) { echo tab($p);} ?>
|
|
||||||
<div class="post" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
|
|
||||||
<div class="main">
|
|
||||||
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
|
|
||||||
<div class="post-body" itemprop="articleBody">
|
|
||||||
<?php echo $p->body; ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue