|
|
@ -997,7 +997,7 @@ get('/:static', function ($static) { |
|
|
'bodyclass' => 'inpage', |
|
|
'bodyclass' => 'inpage', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . $post->title, |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . $post->title, |
|
|
'p' => $post, |
|
|
'p' => $post, |
|
|
'type' => 'staticpage', |
|
|
|
|
|
|
|
|
'type' => 'staticPage', |
|
|
'is_page' => is_page(true), |
|
|
'is_page' => is_page(true), |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
@ -1094,7 +1094,7 @@ get('/:static/edit', function ($static) { |
|
|
'bodyclass' => 'editpage', |
|
|
'bodyclass' => 'editpage', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . $post->title, |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . $post->title, |
|
|
'p' => $post, |
|
|
'p' => $post, |
|
|
'type' => 'staticpage', |
|
|
|
|
|
|
|
|
'type' => 'staticPage', |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -1173,7 +1173,7 @@ get('/:static/delete', function ($static) { |
|
|
'bodyclass' => 'deletepage', |
|
|
'bodyclass' => 'deletepage', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . $post->title, |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . $post->title, |
|
|
'p' => $post, |
|
|
'p' => $post, |
|
|
'type' => 'staticpage', |
|
|
|
|
|
|
|
|
'type' => 'staticPage', |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -1220,7 +1220,7 @@ get('/:static/:sub', function ($static, $sub) { |
|
|
'bodyclass' => 'inpage', |
|
|
'bodyclass' => 'inpage', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . $father_post[0]->url . '">' . $father_post[0]->title . '</a> » ' . $post->title, |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . $father_post[0]->url . '">' . $father_post[0]->title . '</a> » ' . $post->title, |
|
|
'p' => $post, |
|
|
'p' => $post, |
|
|
'type' => 'staticpage', |
|
|
|
|
|
|
|
|
'type' => 'subPage', |
|
|
'is_subpage' => is_subpage(true), |
|
|
'is_subpage' => is_subpage(true), |
|
|
)); |
|
|
)); |
|
|
}); |
|
|
}); |
|
|
@ -1254,7 +1254,7 @@ get('/:static/:sub/edit', function ($static, $sub) { |
|
|
'bodyclass' => 'editpage', |
|
|
'bodyclass' => 'editpage', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . $post->url . '">' . $post->title . '</a> » ', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . $post->url . '">' . $post->title . '</a> » ', |
|
|
'p' => $page, |
|
|
'p' => $page, |
|
|
'type' => 'staticpage', |
|
|
|
|
|
|
|
|
'type' => 'subPage', |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -1344,7 +1344,7 @@ get('/:static/:sub/delete', function ($static, $sub) { |
|
|
'bodyclass' => 'deletepage', |
|
|
'bodyclass' => 'deletepage', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . $post->url . '">' . $post->title . '</a>' . $page->title, |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . $post->url . '">' . $post->title . '</a>' . $page->title, |
|
|
'p' => $page, |
|
|
'p' => $page, |
|
|
'type' => 'staticpage', |
|
|
|
|
|
|
|
|
'type' => 'subPage', |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -1418,7 +1418,7 @@ get('/:year/:month/:name', function ($year, $month, $name) { |
|
|
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> » ' . $current->tagb . ' » ' . $current->title, |
|
|
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> » ' . $current->tagb . ' » ' . $current->title, |
|
|
'prev' => has_prev($prev), |
|
|
'prev' => has_prev($prev), |
|
|
'next' => has_next($next), |
|
|
'next' => has_next($next), |
|
|
'type' => 'blogpost', |
|
|
|
|
|
|
|
|
'type' => 'blogPost', |
|
|
'is_post' => is_post(true), |
|
|
'is_post' => is_post(true), |
|
|
)); |
|
|
)); |
|
|
|
|
|
|
|
|
|