|
|
@ -415,13 +415,13 @@ get('/add/content', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
|
|
|
|
|
|
render('add-content', array( |
|
|
render('add-content', array( |
|
|
'title' => i18n('Add_content') . ' - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Add_new_post') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => $type, |
|
|
'type' => $type, |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'add-content', |
|
|
'bodyclass' => 'add-content', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Add content' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> »' . i18n('Add_new_post') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -562,7 +562,7 @@ post('/add/content', function () { |
|
|
|
|
|
|
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('add-content', array( |
|
|
render('add-content', array( |
|
|
'title' => 'Add content - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Add_content') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
@ -578,7 +578,7 @@ post('/add/content', function () { |
|
|
'type' => $type, |
|
|
'type' => $type, |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'add-content', |
|
|
'bodyclass' => 'add-content', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Add content' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Add_content') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -592,13 +592,13 @@ get('/add/page', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
|
|
|
|
|
|
render('add-page', array( |
|
|
render('add-page', array( |
|
|
'title' => 'Add page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Add_new_page') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_page', |
|
|
'type' => 'is_page', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'add-page', |
|
|
'bodyclass' => 'add-page', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Add page' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Add_new_page') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -635,7 +635,7 @@ post('/add/page', function () { |
|
|
} |
|
|
} |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('add-page', array( |
|
|
render('add-page', array( |
|
|
'title' => 'Add page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Add_new_page') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
@ -645,7 +645,7 @@ post('/add/page', function () { |
|
|
'type' => 'is_page', |
|
|
'type' => 'is_page', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'add-page', |
|
|
'bodyclass' => 'add-page', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Add page' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Add_new_page') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -658,13 +658,13 @@ get('/add/category', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
|
|
|
|
|
|
render('add-page', array( |
|
|
render('add-page', array( |
|
|
'title' => 'Add page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' =>i18n('Add_category') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_category', |
|
|
'type' => 'is_category', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'add-category', |
|
|
'bodyclass' => 'add-category', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Add category' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Add_category') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -701,7 +701,7 @@ post('/add/category', function () { |
|
|
} |
|
|
} |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('add-page', array( |
|
|
render('add-page', array( |
|
|
'title' => 'Add page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Add_category') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
@ -711,7 +711,7 @@ post('/add/category', function () { |
|
|
'type' => 'is_category', |
|
|
'type' => 'is_category', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'add-category', |
|
|
'bodyclass' => 'add-category', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Add category' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Add_category') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -743,7 +743,7 @@ get('/admin/posts', function () { |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'bodyclass' => 'no-posts', |
|
|
'bodyclass' => 'no-posts', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » All posts list' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('All_blog_posts') |
|
|
)); |
|
|
)); |
|
|
|
|
|
|
|
|
die; |
|
|
die; |
|
|
@ -767,7 +767,7 @@ get('/admin/posts', function () { |
|
|
'bodyclass' => 'all-posts', |
|
|
'bodyclass' => 'all-posts', |
|
|
'type' => 'is_admin-posts', |
|
|
'type' => 'is_admin-posts', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » All posts list', |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('All_blog_posts'), |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
@ -778,7 +778,7 @@ get('/admin/posts', function () { |
|
|
'type' => 'is_admin-posts', |
|
|
'type' => 'is_admin-posts', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'denied', |
|
|
'bodyclass' => 'denied', |
|
|
'breadcrumb' => '', |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('All_blog_posts') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
@ -809,12 +809,12 @@ get('/admin/popular', function () { |
|
|
|
|
|
|
|
|
// a non-existing page
|
|
|
// a non-existing page
|
|
|
render('no-posts', array( |
|
|
render('no-posts', array( |
|
|
'title' => 'Popular posts - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Popular_posts') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-popular', |
|
|
'bodyclass' => 'admin-popular', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Popular posts' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Popular_posts') |
|
|
)); |
|
|
)); |
|
|
|
|
|
|
|
|
die; |
|
|
die; |
|
|
@ -829,7 +829,7 @@ get('/admin/popular', function () { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
render('popular-posts', array( |
|
|
render('popular-posts', array( |
|
|
'title' => 'Popular posts - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Popular_posts') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'heading' => 'Popular posts', |
|
|
'heading' => 'Popular posts', |
|
|
@ -837,17 +837,17 @@ get('/admin/popular', function () { |
|
|
'posts' => $posts, |
|
|
'posts' => $posts, |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-popular', |
|
|
'bodyclass' => 'admin-popular', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Popular posts', |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Popular_posts'), |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
render('denied', array( |
|
|
render('denied', array( |
|
|
'title' => 'Popular posts - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Popular_posts') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'denied', |
|
|
'bodyclass' => 'denied', |
|
|
'breadcrumb' => '', |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Popular_posts') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
@ -883,7 +883,7 @@ get('/admin/mine', function () { |
|
|
|
|
|
|
|
|
if (empty($posts) || $page < 1) { |
|
|
if (empty($posts) || $page < 1) { |
|
|
render('user-posts', array( |
|
|
render('user-posts', array( |
|
|
'title' => 'My blog posts - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('My_posts') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'page' => $page, |
|
|
'page' => $page, |
|
|
@ -894,14 +894,14 @@ get('/admin/mine', function () { |
|
|
'type' => 'is_admin-mine', |
|
|
'type' => 'is_admin-mine', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-mine', |
|
|
'bodyclass' => 'admin-mine', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Profile for: ' . $author->name, |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('My_posts') . ': '. $author->name, |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
)); |
|
|
)); |
|
|
die; |
|
|
die; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
render('user-posts', array( |
|
|
render('user-posts', array( |
|
|
'title' => 'My blog posts - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('My_posts') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'heading' => i18n('My_posts'), |
|
|
'heading' => i18n('My_posts'), |
|
|
@ -912,7 +912,7 @@ get('/admin/mine', function () { |
|
|
'type' => 'is_admin-mine', |
|
|
'type' => 'is_admin-mine', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-mine', |
|
|
'bodyclass' => 'admin-mine', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Profile for: ' . $author->name, |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('My_posts') . ': '. $author->name, |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
@ -959,7 +959,7 @@ get('/admin/draft', function () { |
|
|
'type' => 'is_admin-draft', |
|
|
'type' => 'is_admin-draft', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-draft', |
|
|
'bodyclass' => 'admin-draft', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Draft for: ' . $author->name, |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('My_draft'). ': ' . $author->name, |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
)); |
|
|
)); |
|
|
die; |
|
|
die; |
|
|
@ -977,7 +977,7 @@ get('/admin/draft', function () { |
|
|
'type' => 'is_admin-draft', |
|
|
'type' => 'is_admin-draft', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-draft', |
|
|
'bodyclass' => 'admin-draft', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Draft for: ' . $author->name, |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('My_draft') . ': ' . $author->name, |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
@ -1024,7 +1024,7 @@ get('/admin/scheduled', function () { |
|
|
'type' => 'is_admin-scheduled', |
|
|
'type' => 'is_admin-scheduled', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-scheduled', |
|
|
'bodyclass' => 'admin-scheduled', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Scheduled posts for: ' . $author->name, |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Scheduled_posts') . ': ' . $author->name, |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
)); |
|
|
)); |
|
|
die; |
|
|
die; |
|
|
@ -1042,7 +1042,7 @@ get('/admin/scheduled', function () { |
|
|
'type' => 'is_admin-scheduled', |
|
|
'type' => 'is_admin-scheduled', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-scheduled', |
|
|
'bodyclass' => 'admin-scheduled', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Scheduled posts for: ' . $author->name, |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Scheduled_posts') . ': ' . $author->name, |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
'pagination' => has_pagination($total, $perpage, $page) |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
@ -1096,13 +1096,13 @@ get('/admin/import', function () { |
|
|
if (login()) { |
|
|
if (login()) { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('import', array( |
|
|
render('import', array( |
|
|
'title' => 'Import feed - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Import_Feed') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-import', |
|
|
'type' => 'is_admin-import', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-import', |
|
|
'bodyclass' => 'admin-import', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Import feed' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Import_Feed') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -1128,14 +1128,14 @@ post('/admin/import', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
|
|
|
|
|
|
render('import', array( |
|
|
render('import', array( |
|
|
'title' => 'Import feed - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Import_Feed') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'error' => '<ul>' . $log . '</ul>', |
|
|
'error' => '<ul>' . $log . '</ul>', |
|
|
'type' => 'is_admin-import', |
|
|
'type' => 'is_admin-import', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-import', |
|
|
'bodyclass' => 'admin-import', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Import feed' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Import_Feed') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
@ -1150,7 +1150,7 @@ post('/admin/import', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
|
|
|
|
|
|
render('import', array( |
|
|
render('import', array( |
|
|
'title' => 'Import feed - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Import_Feed') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
@ -1158,7 +1158,7 @@ post('/admin/import', function () { |
|
|
'type' => 'is_admin-import', |
|
|
'type' => 'is_admin-import', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-import', |
|
|
'bodyclass' => 'admin-import', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Login' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Import_Feed') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -1173,23 +1173,23 @@ get('/admin/config', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
if ($role === 'admin') { |
|
|
if ($role === 'admin') { |
|
|
render('config', array( |
|
|
render('config', array( |
|
|
'title' => 'Config - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Config') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-config', |
|
|
'type' => 'is_admin-config', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-config', |
|
|
'bodyclass' => 'admin-config', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Config' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
render('denied', array( |
|
|
render('denied', array( |
|
|
'title' => 'Config page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Config') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-config', |
|
|
'type' => 'is_admin-config', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'denied', |
|
|
'bodyclass' => 'denied', |
|
|
'breadcrumb' => '', |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
@ -1239,23 +1239,23 @@ get('/admin/config/custom', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
if ($role === 'admin') { |
|
|
if ($role === 'admin') { |
|
|
render('config-custom', array( |
|
|
render('config-custom', array( |
|
|
'title' => 'Config - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Config') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-config', |
|
|
'type' => 'is_admin-config', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-config', |
|
|
'bodyclass' => 'admin-config', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Config' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
render('denied', array( |
|
|
render('denied', array( |
|
|
'title' => 'Config page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Config') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-config', |
|
|
'type' => 'is_admin-config', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'denied', |
|
|
'bodyclass' => 'denied', |
|
|
'breadcrumb' => '', |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
@ -1307,23 +1307,23 @@ get('/admin/config/reading', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
if ($role === 'admin') { |
|
|
if ($role === 'admin') { |
|
|
render('config-reading', array( |
|
|
render('config-reading', array( |
|
|
'title' => 'Config - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Config') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-config', |
|
|
'type' => 'is_admin-config', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-config', |
|
|
'bodyclass' => 'admin-config', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Config' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
render('denied', array( |
|
|
render('denied', array( |
|
|
'title' => 'Config page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Config') . '- ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-config', |
|
|
'type' => 'is_admin-config', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'denied', |
|
|
'bodyclass' => 'denied', |
|
|
'breadcrumb' => '', |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
@ -1374,23 +1374,23 @@ get('/admin/config/widget', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
if ($role === 'admin') { |
|
|
if ($role === 'admin') { |
|
|
render('config-widget', array( |
|
|
render('config-widget', array( |
|
|
'title' => 'Config - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Config') . '- ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-config', |
|
|
'type' => 'is_admin-config', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-config', |
|
|
'bodyclass' => 'admin-config', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Config' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
render('denied', array( |
|
|
render('denied', array( |
|
|
'title' => 'Config page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Config') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-config', |
|
|
'type' => 'is_admin-config', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'denied', |
|
|
'bodyclass' => 'denied', |
|
|
'breadcrumb' => '', |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
@ -1441,23 +1441,23 @@ get('/admin/config/metatags', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
if ($role === 'admin') { |
|
|
if ($role === 'admin') { |
|
|
render('config-metatags', array( |
|
|
render('config-metatags', array( |
|
|
'title' => 'Config - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Config') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-config', |
|
|
'type' => 'is_admin-config', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-config', |
|
|
'bodyclass' => 'admin-config', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Config' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
render('denied', array( |
|
|
render('denied', array( |
|
|
'title' => 'Config page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Config') . '- ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-config', |
|
|
'type' => 'is_admin-config', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'denied', |
|
|
'bodyclass' => 'denied', |
|
|
'breadcrumb' => '', |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
@ -1508,23 +1508,23 @@ get('/admin/config/performance', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
if ($role === 'admin') { |
|
|
if ($role === 'admin') { |
|
|
render('config-performance', array( |
|
|
render('config-performance', array( |
|
|
'title' => 'Config - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Config') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-config', |
|
|
'type' => 'is_admin-config', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-config', |
|
|
'bodyclass' => 'admin-config', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Config' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
render('denied', array( |
|
|
render('denied', array( |
|
|
'title' => 'Config page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Config') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-config', |
|
|
'type' => 'is_admin-config', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'denied', |
|
|
'bodyclass' => 'denied', |
|
|
'breadcrumb' => '', |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Config') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
@ -1570,13 +1570,13 @@ get('/admin/backup', function () { |
|
|
if (login()) { |
|
|
if (login()) { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('backup', array( |
|
|
render('backup', array( |
|
|
'title' => 'Backup content - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Backup') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-backup', |
|
|
'type' => 'is_admin-backup', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-backup', |
|
|
'bodyclass' => 'admin-backup', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Backup' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Backup') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -1590,13 +1590,13 @@ get('/admin/backup-start', function () { |
|
|
if (login()) { |
|
|
if (login()) { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('backup-start', array( |
|
|
render('backup-start', array( |
|
|
'title' => 'Backup content started - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Create_backup') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-backup-start', |
|
|
'type' => 'is_admin-backup-start', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-backup-start', |
|
|
'bodyclass' => 'admin-backup-start', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Backup started' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Create_backup') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -1610,13 +1610,13 @@ get('/admin/clear-cache', function () { |
|
|
if (login()) { |
|
|
if (login()) { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('clear-cache', array( |
|
|
render('clear-cache', array( |
|
|
'title' => 'Clearing cache started - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Clear_cache') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-clear-cache', |
|
|
'type' => 'is_admin-clear-cache', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-clear-cache', |
|
|
'bodyclass' => 'admin-clear-cache', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Clearing cache started' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Clear_cache') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -1630,13 +1630,13 @@ get('/admin/update', function () { |
|
|
if (login()) { |
|
|
if (login()) { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('update', array( |
|
|
render('update', array( |
|
|
'title' => 'Check for Update - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Check_update') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-update', |
|
|
'type' => 'is_admin-update', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-update', |
|
|
'bodyclass' => 'admin-update', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Update HTMLy' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Check_update') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -1656,14 +1656,14 @@ get('/admin/update/now/:csrf', function ($CSRF) { |
|
|
$updater->update(); |
|
|
$updater->update(); |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('updated-to', array( |
|
|
render('updated-to', array( |
|
|
'title' => 'Updated - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Update') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'info' => $updater->getCurrentInfo(), |
|
|
'info' => $updater->getCurrentInfo(), |
|
|
'type' => 'is_admin-update', |
|
|
'type' => 'is_admin-update', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-update', |
|
|
'bodyclass' => 'admin-update', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Update HTMLy' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Update') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -1676,13 +1676,13 @@ get('/admin/menu', function () { |
|
|
if (login()) { |
|
|
if (login()) { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('menu', array( |
|
|
render('menu', array( |
|
|
'title' => 'Menu builder - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Menus') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-menu', |
|
|
'type' => 'is_admin-menu', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-menu', |
|
|
'bodyclass' => 'admin-menu', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Menu builder' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Menus') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -1708,13 +1708,13 @@ get('/admin/categories', function () { |
|
|
if (login()) { |
|
|
if (login()) { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('categories', array( |
|
|
render('categories', array( |
|
|
'title' => 'Categories - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Categories') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_admin-categories', |
|
|
'type' => 'is_admin-categories', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'admin-categories', |
|
|
'bodyclass' => 'admin-categories', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Categories' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Categories') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -1764,7 +1764,7 @@ get('/admin/categories/:category', function ($category) { |
|
|
'posts' => $posts, |
|
|
'posts' => $posts, |
|
|
'category' => $desc, |
|
|
'category' => $desc, |
|
|
'bodyclass' => 'in-category category-' . strtolower($category), |
|
|
'bodyclass' => 'in-category category-' . strtolower($category), |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . site_url() . 'admin/categories">Categories</a> » ' . $desc->title, |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . site_url() . 'admin/categories">' . i18n('Categories') .'</a> » ' . $desc->title, |
|
|
'pagination' => has_pagination($total, $perpage, $page), |
|
|
'pagination' => has_pagination($total, $perpage, $page), |
|
|
'is_category' => true, |
|
|
'is_category' => true, |
|
|
)); |
|
|
)); |
|
|
@ -1873,13 +1873,13 @@ get('/category/:category/edit', function ($category) { |
|
|
$post = $post[0]; |
|
|
$post = $post[0]; |
|
|
|
|
|
|
|
|
render('edit-page', array( |
|
|
render('edit-page', array( |
|
|
'title' => 'Edit category - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Edit_category') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_category', |
|
|
'type' => 'is_category', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'edit-category', |
|
|
'bodyclass' => 'edit-category', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . $post->title, |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Category') . ': ' . $post->title, |
|
|
'p' => $post |
|
|
'p' => $post |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
@ -1925,7 +1925,7 @@ post('/category/:category/edit', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
|
|
|
|
|
|
render('edit-page', array( |
|
|
render('edit-page', array( |
|
|
'title' => 'Edit category - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Edit_category') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
@ -1936,7 +1936,7 @@ post('/category/:category/edit', function () { |
|
|
'type' => 'is_category', |
|
|
'type' => 'is_category', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'edit-category', |
|
|
'bodyclass' => 'edit-category', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Edit category' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Edit_category') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -1956,13 +1956,13 @@ get('/category/:category/delete', function ($category) { |
|
|
$post = $post[0]; |
|
|
$post = $post[0]; |
|
|
|
|
|
|
|
|
render('delete-category', array( |
|
|
render('delete-category', array( |
|
|
'title' => 'Delete category - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Delete') . ' ' . i18n('Category') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_category', |
|
|
'type' => 'is_category', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'delete-category', |
|
|
'bodyclass' => 'delete-category', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . $post->title, |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Category') . ': ' . $post->title, |
|
|
'p' => $post, |
|
|
'p' => $post, |
|
|
'type' => 'categoryPage', |
|
|
'type' => 'categoryPage', |
|
|
)); |
|
|
)); |
|
|
@ -2421,9 +2421,9 @@ get('/post/:name/edit', function ($name) { |
|
|
$post = find_post(null, null, $name); |
|
|
$post = find_post(null, null, $name); |
|
|
|
|
|
|
|
|
if (!$post) { |
|
|
if (!$post) { |
|
|
$post = find_draft($year, $month, $name); |
|
|
|
|
|
|
|
|
$post = find_draft(null, null, $name); |
|
|
if (!$post) { |
|
|
if (!$post) { |
|
|
$post = find_scheduled($year, $month, $name); |
|
|
|
|
|
|
|
|
$post = find_scheduled(null, null, $name); |
|
|
if (!$post) { |
|
|
if (!$post) { |
|
|
not_found(); |
|
|
not_found(); |
|
|
} |
|
|
} |
|
|
@ -2615,7 +2615,7 @@ post('/post/:name/edit', function () { |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'postContent' => $content, |
|
|
'postContent' => $content, |
|
|
'bodyclass' => 'edit-post', |
|
|
'bodyclass' => 'edit-post', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Edit content' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Edit_content') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -2632,9 +2632,9 @@ get('/post/:name/delete', function ($name) { |
|
|
$post = find_post(null, null, $name); |
|
|
$post = find_post(null, null, $name); |
|
|
|
|
|
|
|
|
if (!$post) { |
|
|
if (!$post) { |
|
|
$post = find_draft($year, $month, $name); |
|
|
|
|
|
|
|
|
$post = find_draft(null, null, $name); |
|
|
if (!$post) { |
|
|
if (!$post) { |
|
|
$post = find_scheduled($year, $month, $name); |
|
|
|
|
|
|
|
|
$post = find_scheduled(null, null, $name); |
|
|
if (!$post) { |
|
|
if (!$post) { |
|
|
not_found(); |
|
|
not_found(); |
|
|
} |
|
|
} |
|
|
@ -2652,7 +2652,7 @@ get('/post/:name/delete', function ($name) { |
|
|
|
|
|
|
|
|
if ($user === $current->author || $role === 'admin') { |
|
|
if ($user === $current->author || $role === 'admin') { |
|
|
render('delete-post', array( |
|
|
render('delete-post', array( |
|
|
'title' => 'Delete post - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Delete') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'p' => $current, |
|
|
'p' => $current, |
|
|
@ -2730,7 +2730,7 @@ get('/:static', function ($static) { |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'bodyclass' => 'admin-front', |
|
|
'bodyclass' => 'admin-front', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Admin' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Admin') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -2741,22 +2741,22 @@ get('/:static', function ($static) { |
|
|
if (session_status() == PHP_SESSION_NONE) session_start(); |
|
|
if (session_status() == PHP_SESSION_NONE) session_start(); |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('login', array( |
|
|
render('login', array( |
|
|
'title' => 'Login - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Login'). ' - ' . blog_title(), |
|
|
'description' => 'Login page from ' . blog_title() . '.', |
|
|
'description' => 'Login page from ' . blog_title() . '.', |
|
|
'canonical' => site_url() . '/login', |
|
|
'canonical' => site_url() . '/login', |
|
|
'bodyclass' => 'in-login', |
|
|
'bodyclass' => 'in-login', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Login' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Login') |
|
|
)); |
|
|
)); |
|
|
die; |
|
|
die; |
|
|
} elseif ($static === 'logout') { |
|
|
} elseif ($static === 'logout') { |
|
|
if (login()) { |
|
|
if (login()) { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('logout', array( |
|
|
render('logout', array( |
|
|
'title' => 'Logout - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Logout') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'bodyclass' => 'in-logout', |
|
|
'bodyclass' => 'in-logout', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Logout' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Logout') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -2808,7 +2808,7 @@ get('/:static', function ($static) { |
|
|
// a non-existing page
|
|
|
// a non-existing page
|
|
|
render('no-posts', array( |
|
|
render('no-posts', array( |
|
|
'title' => 'Blog - ' . blog_title(), |
|
|
'title' => 'Blog - ' . blog_title(), |
|
|
'description' => blog_title() . ' Blog Homepage', |
|
|
|
|
|
|
|
|
'description' => blog_title() . ' Blog', |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'bodyclass' => 'no-posts', |
|
|
'bodyclass' => 'no-posts', |
|
|
'is_front' => true, |
|
|
'is_front' => true, |
|
|
@ -2819,7 +2819,7 @@ get('/:static', function ($static) { |
|
|
|
|
|
|
|
|
render($pview, array( |
|
|
render($pview, array( |
|
|
'title' => 'Blog - ' . blog_title(), |
|
|
'title' => 'Blog - ' . blog_title(), |
|
|
'description' => blog_title() . ' Blog Homepage', |
|
|
|
|
|
|
|
|
'description' => blog_title() . ' Blog', |
|
|
'canonical' => site_url() . 'blog', |
|
|
'canonical' => site_url() . 'blog', |
|
|
'page' => $page, |
|
|
'page' => $page, |
|
|
'posts' => $posts, |
|
|
'posts' => $posts, |
|
|
@ -2904,13 +2904,13 @@ get('/:static/add', function ($static) { |
|
|
$post = $post[0]; |
|
|
$post = $post[0]; |
|
|
|
|
|
|
|
|
render('add-page', array( |
|
|
render('add-page', array( |
|
|
'title' => 'Add page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Add_new_page') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'type' => 'is_page', |
|
|
'type' => 'is_page', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'add-page', |
|
|
'bodyclass' => 'add-page', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . $post->url . '">' . $post->title . '</a> Add page' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . $post->url . '">' . $post->title . '</a> » ' . i18n('Add_new_page') |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
$login = site_url() . 'login'; |
|
|
$login = site_url() . 'login'; |
|
|
@ -2947,7 +2947,7 @@ post('/:static/add', function ($static) { |
|
|
} |
|
|
} |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
render('add-page', array( |
|
|
render('add-page', array( |
|
|
'title' => 'Add page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Add_new_page') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
@ -2957,7 +2957,7 @@ post('/:static/add', function ($static) { |
|
|
'type' => 'is_page', |
|
|
'type' => 'is_page', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'add-page', |
|
|
'bodyclass' => 'add-page', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . $title . '">' . $title . '</a> Add page' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="' . $title . '">' . $title . '</a> » ' . i18n('Add_new_page') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -2977,7 +2977,7 @@ get('/:static/edit', function ($static) { |
|
|
$post = $post[0]; |
|
|
$post = $post[0]; |
|
|
|
|
|
|
|
|
render('edit-page', array( |
|
|
render('edit-page', array( |
|
|
'title' => 'Edit page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Edit') . ': ' . $post->title . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'bodyclass' => 'edit-page', |
|
|
'bodyclass' => 'edit-page', |
|
|
@ -3028,7 +3028,7 @@ post('/:static/edit', function () { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
|
|
|
|
|
|
render('edit-page', array( |
|
|
render('edit-page', array( |
|
|
'title' => 'Edit page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Edit') . ': ' . $post->title . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
@ -3038,7 +3038,7 @@ post('/:static/edit', function () { |
|
|
'postContent' => $content, |
|
|
'postContent' => $content, |
|
|
'bodyclass' => 'edit-page', |
|
|
'bodyclass' => 'edit-page', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Edit page' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Edit') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -3058,12 +3058,12 @@ get('/:static/delete', function ($static) { |
|
|
$post = $post[0]; |
|
|
$post = $post[0]; |
|
|
|
|
|
|
|
|
render('delete-page', array( |
|
|
render('delete-page', array( |
|
|
'title' => 'Delete page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Delete') . ': ' . $post->title . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'bodyclass' => 'delete-page', |
|
|
'bodyclass' => 'delete-page', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . $post->title, |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Delete') . ': ' . $post->title, |
|
|
'p' => $post, |
|
|
'p' => $post, |
|
|
'type' => 'staticPage', |
|
|
'type' => 'staticPage', |
|
|
)); |
|
|
)); |
|
|
@ -3176,12 +3176,12 @@ get('/:static/:sub/edit', function ($static, $sub) { |
|
|
$page = $page[0]; |
|
|
$page = $page[0]; |
|
|
|
|
|
|
|
|
render('edit-page', array( |
|
|
render('edit-page', array( |
|
|
'title' => 'Edit page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Edit') . ': ' . $page->title . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'bodyclass' => 'edit-page', |
|
|
'bodyclass' => 'edit-page', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'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> » ' . $page->title, |
|
|
'p' => $page, |
|
|
'p' => $page, |
|
|
'type' => 'subPage', |
|
|
'type' => 'subPage', |
|
|
)); |
|
|
)); |
|
|
@ -3230,7 +3230,7 @@ post('/:static/:sub/edit', function ($static, $sub) { |
|
|
config('views.root', 'system/admin/views'); |
|
|
config('views.root', 'system/admin/views'); |
|
|
|
|
|
|
|
|
render('edit-page', array( |
|
|
render('edit-page', array( |
|
|
'title' => 'Edit page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Edit') . ': ' . $page->title . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
'error' => '<ul>' . $message['error'] . '</ul>', |
|
|
@ -3242,7 +3242,7 @@ post('/:static/:sub/edit', function ($static, $sub) { |
|
|
'sub' => $sub, |
|
|
'sub' => $sub, |
|
|
'bodyclass' => 'edit-page', |
|
|
'bodyclass' => 'edit-page', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Edit page' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Edit') |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -3270,12 +3270,12 @@ get('/:static/:sub/delete', function ($static, $sub) { |
|
|
$page = $page[0]; |
|
|
$page = $page[0]; |
|
|
|
|
|
|
|
|
render('delete-page', array( |
|
|
render('delete-page', array( |
|
|
'title' => 'Delete page - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Delete') . ': ' . $page->title . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'bodyclass' => 'delete-page', |
|
|
'bodyclass' => 'delete-page', |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'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' => 'subPage', |
|
|
'type' => 'subPage', |
|
|
)); |
|
|
)); |
|
|
@ -3616,7 +3616,7 @@ post('/:year/:month/:name/edit', function () { |
|
|
'postContent' => $content, |
|
|
'postContent' => $content, |
|
|
'is_admin' => true, |
|
|
'is_admin' => true, |
|
|
'bodyclass' => 'edit-post', |
|
|
'bodyclass' => 'edit-post', |
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Edit content' |
|
|
|
|
|
|
|
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . $title |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -3647,7 +3647,7 @@ get('/:year/:month/:name/delete', function ($year, $month, $name) { |
|
|
|
|
|
|
|
|
if ($user === $current->author || $role === 'admin') { |
|
|
if ($user === $current->author || $role === 'admin') { |
|
|
render('delete-post', array( |
|
|
render('delete-post', array( |
|
|
'title' => 'Delete post - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Delete') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'p' => $current, |
|
|
'p' => $current, |
|
|
@ -3657,7 +3657,7 @@ get('/:year/:month/:name/delete', function ($year, $month, $name) { |
|
|
)); |
|
|
)); |
|
|
} else { |
|
|
} else { |
|
|
render('denied', array( |
|
|
render('denied', array( |
|
|
'title' => 'Delete post - ' . blog_title(), |
|
|
|
|
|
|
|
|
'title' => i18n('Delete') . ' - ' . blog_title(), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'description' => strip_tags(blog_description()), |
|
|
'canonical' => site_url(), |
|
|
'canonical' => site_url(), |
|
|
'p' => $current, |
|
|
'p' => $current, |
|
|
|