Browse Source

Core should not overriden user preference

Core should not overriden user preference.
pull/4/merge
Danang Probo Sayekti 12 years ago
parent
commit
231b0ab32f
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      system/htmly.php
  2. +1
    -1
      system/includes/functions.php

+ 4
- 4
system/htmly.php View File

@ -59,13 +59,13 @@ get('/tag/:tag',function($tag){
} }
render('main',array( render('main',array(
'title' => 'Tag - ' . ucfirst($tag) .' - ' . config('blog.title'),
'title' => 'Tag - ' . $tag .' - ' . config('blog.title'),
'page' => $page, 'page' => $page,
'posts' => $posts, 'posts' => $posts,
'canonical' => config('site.url') . '/tag/' . $tag, 'canonical' => config('site.url') . '/tag/' . $tag,
'description' => 'All posts tagged ' . ucfirst($tag) . ' on '. config('blog.title') . '.',
'description' => 'All posts tagged ' . $tag . ' on '. config('blog.title') . '.',
'bodyclass' => 'intag', 'bodyclass' => 'intag',
'breadcrumb' => '<a href="' . config('site.url') . '">Home</a> &#187; Posts tagged ' . ucfirst($tag),
'breadcrumb' => '<a href="' . config('site.url') . '">Home</a> &#187; Posts tagged ' . $tag,
'pagination' => has_pagination($total, $perpage, $page) 'pagination' => has_pagination($total, $perpage, $page)
)); ));
}); });
@ -150,7 +150,7 @@ get('/:year/:month/:name', function($year, $month, $name){
'canonical' => $current->url, 'canonical' => $current->url,
'description' => $description = get_description($current->body), 'description' => $description = get_description($current->body),
'bodyclass' => 'inpost', 'bodyclass' => 'inpost',
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . config('site.url') . '">Home</a></span> &#187; <span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . $current->tagurl .'">' . ucfirst($current->tag) . '</a></span> &#187; ' . $current->title,
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . config('site.url') . '">Home</a></span> &#187; <span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . $current->tagurl .'">' . $current->tag . '</a></span> &#187; ' . $current->title,
'prev' => has_prev($prev), 'prev' => has_prev($prev),
'next' => has_next($next), 'next' => has_next($next),
'type' => 'blogpost', 'type' => 'blogpost',


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

@ -750,7 +750,7 @@ function social(){
} }
if (!empty($google)) { if (!empty($google)) {
echo '<a href="' . $google . '" target="_blank" rel="author"><img src="' . site_url() . 'themes/default/img/googleplus.png" width="32" height="32" alt="Google+"/></a>';
echo '<a href="' . $google . '" target="_blank"><img src="' . site_url() . 'themes/default/img/googleplus.png" width="32" height="32" alt="Google+"/></a>';
} }
if (!empty($tumblr)) { if (!empty($tumblr)) {


Loading…
Cancel
Save