Core should not overriden user preference

Core should not overriden user preference.
This commit is contained in:
Danang Probo Sayekti 2014-01-07 18:35:28 +07:00
commit 231b0ab32f
2 changed files with 5 additions and 5 deletions

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',

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)) {