Browse Source

lc

pull/74/head
Kanti 11 years ago
parent
commit
e4f2a994ab
3 changed files with 4 additions and 12 deletions
  1. +3
    -1
      system/admin/admin.php
  2. +1
    -1
      system/htmly.php
  3. +0
    -10
      themes/logs/static-sub.html.php

+ 3
- 1
system/admin/admin.php View File

@ -357,7 +357,9 @@ function get_recent_pages() {
if (!empty($posts)) {
krsort($posts);
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;
$len = count($posts);
foreach ($posts as $p) {


+ 1
- 1
system/htmly.php View File

@ -1146,7 +1146,7 @@ get('/:static/:sub', function($static,$sub) {
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),
'bodyclass' => 'inpage',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; <a href="' . $father_post[0]->url . '">' . $father_post[0]->title . '</a> &#187; ' . $post->title,


+ 0
- 10
themes/logs/static-sub.html.php View File

@ -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…
Cancel
Save