|
|
|
@ -67,17 +67,7 @@ get('/index', function () { |
|
|
|
'p' => $front, |
|
|
|
'static' => $front, |
|
|
|
'type' => 'is_frontpage', |
|
|
|
'is_front' => true, |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_front' => true |
|
|
|
), $layout); |
|
|
|
|
|
|
|
|
|
|
|
@ -116,17 +106,7 @@ get('/index', function () { |
|
|
|
'breadcrumb' => '', |
|
|
|
'bodyclass' => 'no-posts', |
|
|
|
'type' => 'is_frontpage', |
|
|
|
'is_front' => true, |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_front' => true |
|
|
|
), $layout); |
|
|
|
|
|
|
|
die; |
|
|
|
@ -142,17 +122,7 @@ get('/index', function () { |
|
|
|
'breadcrumb' => '', |
|
|
|
'pagination' => has_pagination($total, $perpage, $page), |
|
|
|
'type' => 'is_frontpage', |
|
|
|
'is_front' => true, |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_front' => true |
|
|
|
), $layout); |
|
|
|
|
|
|
|
} |
|
|
|
@ -284,17 +254,7 @@ get('/author/:name', function ($name) { |
|
|
|
'bodyclass' => 'in-profile author-' . $name, |
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Profile_for') . ' ' . $author->name, |
|
|
|
'pagination' => has_pagination($total, $perpage, $page), |
|
|
|
'is_front' => '', |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => true, |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_profile' => true |
|
|
|
), $layout); |
|
|
|
die; |
|
|
|
} |
|
|
|
@ -312,17 +272,7 @@ get('/author/:name', function ($name) { |
|
|
|
'bodyclass' => 'in-profile author-' . $name, |
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Profile_for') . ' ' . $author->name, |
|
|
|
'pagination' => has_pagination($total, $perpage, $page), |
|
|
|
'is_front' => '', |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => true, |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_profile' => true |
|
|
|
), $layout); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -1934,17 +1884,7 @@ get('/category/:category', function ($category) { |
|
|
|
'bodyclass' => 'in-category category-' . strtolower($category), |
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . $desc->title, |
|
|
|
'pagination' => has_pagination($total, $perpage, $page), |
|
|
|
'is_front' => '', |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => true, |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_category' => true |
|
|
|
), $layout); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -2160,17 +2100,7 @@ get('/type/:type', function ($type) { |
|
|
|
'bodyclass' => 'in-type type-' . strtolower($type), |
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . ucfirst($type), |
|
|
|
'pagination' => has_pagination($total, $perpage, $page), |
|
|
|
'is_front' => '', |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => true, |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_type' => true |
|
|
|
), $layout); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -2253,17 +2183,7 @@ get('/tag/:tag', function ($tag) { |
|
|
|
'bodyclass' => 'in-tag tag-' . strtolower($tag), |
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Posts_tagged') . ' ' . tag_i18n($tag), |
|
|
|
'pagination' => has_pagination($total, $perpage, $page), |
|
|
|
'is_front' => '', |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => true, |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_tag' => true |
|
|
|
), $layout); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -2356,17 +2276,7 @@ get('/archive/:req', function ($req) { |
|
|
|
'bodyclass' => 'in-archive archive-' . strtolower($req), |
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Archive_for') . ' ' . $timestamp, |
|
|
|
'pagination' => has_pagination($total, $perpage, $page), |
|
|
|
'is_front' => '', |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => true, |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_archive' => true |
|
|
|
), $layout); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -2463,17 +2373,7 @@ get('/search/:keyword', function ($keyword) { |
|
|
|
'bodyclass' => 'in-search search-' . strtolower($keyword), |
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Search_results_for') . ' ' . $keyword, |
|
|
|
'pagination' => has_pagination($total, $perpage, $page), |
|
|
|
'is_front' => '', |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => true, |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_search' => true |
|
|
|
), $layout); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -2639,17 +2539,7 @@ get('/post/:name', function ($name) { |
|
|
|
'prev' => has_prev($prev), |
|
|
|
'next' => has_next($next), |
|
|
|
'type' => $var, |
|
|
|
'is_front' => '', |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => true, |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_post' => true |
|
|
|
), $layout); |
|
|
|
|
|
|
|
}); |
|
|
|
@ -3075,17 +2965,7 @@ get('/:static', function ($static) { |
|
|
|
'bodyclass' => 'in-blog', |
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Blog', |
|
|
|
'pagination' => has_pagination($total, $perpage, $page), |
|
|
|
'is_front' => '', |
|
|
|
'is_blog' => true, |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_blog' => true |
|
|
|
), $layout); |
|
|
|
} elseif ($static === 'front') { |
|
|
|
|
|
|
|
@ -3157,17 +3037,7 @@ get('/:static', function ($static) { |
|
|
|
'type' => 'staticPage', |
|
|
|
'prev' => static_prev($prev), |
|
|
|
'next' => static_next($next), |
|
|
|
'is_front' => '', |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => true, |
|
|
|
'is_subpage' => '', |
|
|
|
'is_page' => true |
|
|
|
), $layout); |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -3464,17 +3334,7 @@ get('/:static/:sub', function ($static, $sub) { |
|
|
|
'prev' => static_prev($prev), |
|
|
|
'next' => static_next($next), |
|
|
|
'type' => 'subPage', |
|
|
|
'is_front' => '', |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => '', |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => true, |
|
|
|
'is_subpage' => true |
|
|
|
), $layout); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -3745,17 +3605,7 @@ get('/:year/:month/:name', function ($year, $month, $name) { |
|
|
|
'prev' => has_prev($prev), |
|
|
|
'next' => has_next($next), |
|
|
|
'type' => $var, |
|
|
|
'is_front' => '', |
|
|
|
'is_blog' => '', |
|
|
|
'is_category' => '', |
|
|
|
'is_search' => '', |
|
|
|
'is_archive' => '', |
|
|
|
'is_type' => '', |
|
|
|
'is_tag' => '', |
|
|
|
'is_profile' => '', |
|
|
|
'is_post' => true, |
|
|
|
'is_page' => '', |
|
|
|
'is_subpage' => '', |
|
|
|
'is_post' => true |
|
|
|
), $layout); |
|
|
|
|
|
|
|
}); |
|
|
|
|