Cleaning up

This commit is contained in:
Danang Probo Sayekti 2015-09-21 11:18:06 +07:00
commit 2a33c284f1
2 changed files with 17 additions and 126 deletions

View file

@ -1763,7 +1763,7 @@ function not_found()
'canonical' => site_url(),
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; 404 Not Found',
'bodyclass' => 'error-404',
'is_notfound' => is_notfound(true),
'is_notfound' => true,
));
die();
}
@ -2226,116 +2226,6 @@ function is_index()
}
}
// TRUE if the current page is the front page.
function is_front($value = null)
{
if (!empty($value)) {
return true;
} else {
return false;
}
}
// TRUE if the current page is the blog page.
function is_blog($value = null)
{
if (!empty($value)) {
return true;
} else {
return false;
}
}
// TRUE if the current page is tag index.
function is_tag($value = null)
{
if (!empty($value)) {
return true;
} else {
return false;
}
}
// TRUE if the current page is archive index.
function is_archive($value = null)
{
if (!empty($value)) {
return true;
} else {
return false;
}
}
// TRUE if the current page is search index.
function is_search($value = null)
{
if (!empty($value)) {
return true;
} else {
return false;
}
}
// TRUE if the current page is category index.
function is_category($value = null)
{
if (!empty($value)) {
return true;
} else {
return false;
}
}
// TRUE if the current page is profile page.
function is_profile($value = null)
{
if (!empty($value)) {
return true;
} else {
return false;
}
}
// TRUE if the current page is post page.
function is_post($value = null)
{
if (!empty($value)) {
return true;
} else {
return false;
}
}
// TRUE if the current page is static page page.
function is_page($value = null)
{
if (!empty($value)) {
return true;
} else {
return false;
}
}
// TRUE if the current page is sub static page.
function is_subpage($value = null)
{
if (!empty($value)) {
return true;
} else {
return false;
}
}
// TRUE if the current page is 404 error page.
function is_notfound($value = null)
{
if (!empty($value)) {
return true;
} else {
return false;
}
}
// Return blog title
function blog_title()
{