mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 21:16:23 +05:30
Cleaning up
This commit is contained in:
parent
d12d5662b0
commit
2a33c284f1
2 changed files with 17 additions and 126 deletions
|
|
@ -1763,7 +1763,7 @@ function not_found()
|
|||
'canonical' => site_url(),
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » 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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue