Browse Source

Prepare for release

Prepare for releasing v1.6
pull/31/merge v1.6
Danang Probo Sayekti 11 years ago
parent
commit
82a3acc928
4 changed files with 7 additions and 10 deletions
  1. +1
    -4
      system/includes/functions.php
  2. +2
    -2
      themes/clean/layout.html.php
  3. +2
    -2
      themes/default/layout.html.php
  4. +2
    -2
      themes/logs/layout.html.php

+ 1
- 4
system/includes/functions.php View File

@ -1383,10 +1383,7 @@ function is_front() {
// TRUE if the current page is an index page like frontpage, tag index, archive index and search index.
function is_index() {
$req = $_SERVER['REQUEST_URI'];
if(strpos($req, '/archive/') !== false || strpos($req, '/tag/') !== false || strpos($req, '/search/') !== false){
return true;
}
elseif($req == site_path() . '/') {
if(strpos($req, '/archive/') !== false || strpos($req, '/tag/') !== false || strpos($req, '/search/') !== false || $req == site_path() . '/'){
return true;
}
else {


+ 2
- 2
themes/clean/layout.html.php View File

@ -18,9 +18,9 @@
<?php if(login()) { toolbar();} ?>
<aside>
<?php if(is_index()) {?>
<h1 class="blog-title"><a href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h1>
<h1 class="blog-title"><a rel="home" href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h1>
<?php } else {?>
<h2 class="blog-title"><a href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h2>
<h2 class="blog-title"><a rel="home" href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h2>
<?php } ?>
<div class="search">
<?php echo search() ?>


+ 2
- 2
themes/default/layout.html.php View File

@ -30,9 +30,9 @@
<header id="header">
<section id="branding">
<?php if(is_index()) {?>
<h1 class="blog-title"><a href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h1>
<h1 class="blog-title"><a rel="home" href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h1>
<?php } else {?>
<h2 class="blog-title"><a href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h2>
<h2 class="blog-title"><a rel="home" href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h2>
<?php } ?>
<div class="blog-tagline"><p><?php echo blog_tagline() ?></p></div>
</section>


+ 2
- 2
themes/logs/layout.html.php View File

@ -21,9 +21,9 @@
<header id="header" class="responsive">
<div id="branding">
<?php if(is_index()) {?>
<h1 class="blog-title"><a href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h1>
<h1 class="blog-title"><a rel="home" href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h1>
<?php } else {?>
<h2 class="blog-title"><a href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h2>
<h2 class="blog-title"><a rel="home" href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h2>
<?php } ?>
<div class="blog-tagline"><p><?php echo blog_tagline() ?></p></div>
</div>


Loading…
Cancel
Save