diff --git a/cache/installedVersion.json b/cache/installedVersion.json
index defa22d..c654cda 100644
--- a/cache/installedVersion.json
+++ b/cache/installedVersion.json
@@ -1,4 +1,4 @@
{
"id": 133359767,
- "tag_name": "v2.8.8"
+ "tag_name": "v2.8.9"
}
diff --git a/system/htmly.php b/system/htmly.php
index 2d2fd82..82bac2c 100644
--- a/system/htmly.php
+++ b/system/htmly.php
@@ -315,7 +315,20 @@ post('/edit/profile', function () {
if (!$proper) {
$message['error'] .= '
CSRF Token not correct.';
}
+ config('views.root', 'system/admin/views');
+ render('edit-page', array(
+ 'title' => 'Edit profile - ' . blog_title(),
+ 'description' => strip_tags(blog_description()),
+ 'canonical' => site_url(),
+ 'error' => '' . $message['error'] . '
',
+ 'postTitle' => $title,
+ 'postContent' => $content,
+ 'type' => 'is_profile',
+ 'is_admin' => true,
+ 'bodyclass' => 'edit-profile',
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » Edit profile'
+ ));
}
});
@@ -361,7 +374,20 @@ post('/edit/frontpage', function () {
if (!$proper) {
$message['error'] .= 'CSRF Token not correct.';
}
+ config('views.root', 'system/admin/views');
+ render('edit-page', array(
+ 'title' => 'Edit frontpage - ' . blog_title(),
+ 'description' => strip_tags(blog_description()),
+ 'canonical' => site_url(),
+ 'error' => '' . $message['error'] . '
',
+ 'postTitle' => $title,
+ 'postContent' => $content,
+ 'type' => 'is_frontpage',
+ 'is_admin' => true,
+ 'bodyclass' => 'edit-frontpage',
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » Edit frontpage'
+ ));
}
});
@@ -534,6 +560,26 @@ post('/add/content', function () {
}
}
+ config('views.root', 'system/admin/views');
+ render('add-content', array(
+ 'title' => i18n('Add_content') . ' - ' . blog_title(),
+ 'description' => strip_tags(blog_description()),
+ 'canonical' => site_url(),
+ 'error' => '' . $message['error'] . '
',
+ 'postTitle' => $title,
+ 'postImage' => $image,
+ 'postVideo' => $video,
+ 'postLink' => $link,
+ 'postQuote' => $quote,
+ 'postAudio' => $audio,
+ 'postTag' => $tag,
+ 'postUrl' => $url,
+ 'postContent' => $content,
+ 'type' => $type,
+ 'is_admin' => true,
+ 'bodyclass' => 'add-content',
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Add_content')
+ ));
}
});
@@ -587,6 +633,20 @@ post('/add/page', function () {
if (!$proper) {
$message['error'] .= 'CSRF Token not correct.';
}
+ config('views.root', 'system/admin/views');
+ render('add-page', array(
+ 'title' => i18n('Add_new_page') . ' - ' . blog_title(),
+ 'description' => strip_tags(blog_description()),
+ 'canonical' => site_url(),
+ 'error' => '' . $message['error'] . '
',
+ 'postTitle' => $title,
+ 'postUrl' => $url,
+ 'postContent' => $content,
+ 'type' => 'is_page',
+ 'is_admin' => true,
+ 'bodyclass' => 'add-page',
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Add_new_page')
+ ));
}
});
@@ -639,7 +699,20 @@ post('/add/category', function () {
if (!$proper) {
$message['error'] .= 'CSRF Token not correct.';
}
-
+ config('views.root', 'system/admin/views');
+ render('add-page', array(
+ 'title' => i18n('Add_category') . ' - ' . blog_title(),
+ 'description' => strip_tags(blog_description()),
+ 'canonical' => site_url(),
+ 'error' => '' . $message['error'] . '
',
+ 'postTitle' => $title,
+ 'postUrl' => $url,
+ 'postContent' => $content,
+ 'type' => 'is_category',
+ 'is_admin' => true,
+ 'bodyclass' => 'add-category',
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Add_category')
+ ));
}
});
@@ -1849,7 +1922,22 @@ post('/category/:category/edit', function () {
if (!$proper) {
$message['error'] .= 'CSRF Token not correct.';
}
+ config('views.root', 'system/admin/views');
+ render('edit-page', array(
+ 'title' => i18n('Edit_category') . ' - ' . blog_title(),
+ 'description' => strip_tags(blog_description()),
+ 'canonical' => site_url(),
+ 'error' => '' . $message['error'] . '
',
+ 'oldfile' => $oldfile,
+ 'postTitle' => $title,
+ 'postUrl' => $url,
+ 'postContent' => $content,
+ 'type' => 'is_category',
+ 'is_admin' => true,
+ 'bodyclass' => 'edit-category',
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Edit_category')
+ ));
}
});
@@ -2518,6 +2606,28 @@ post('/post/:name/edit', function () {
}
}
+ config('views.root', 'system/admin/views');
+
+ render('edit-content', array(
+ 'title' => $title . ' - ' . blog_title(),
+ 'description' => strip_tags(blog_description()),
+ 'canonical' => site_url(),
+ 'error' => '' . $message['error'] . '
',
+ 'oldfile' => $oldfile,
+ 'postTitle' => $title,
+ 'postImage' => $image,
+ 'postVideo' => $video,
+ 'postLink' => $link,
+ 'postQuote' => $quote,
+ 'postAudio' => $audio,
+ 'postTag' => $tag,
+ 'postUrl' => $url,
+ 'type' => $type,
+ 'is_admin' => true,
+ 'postContent' => $content,
+ 'bodyclass' => 'edit-post',
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Edit_content')
+ ));
}
});
@@ -2846,7 +2956,20 @@ post('/:static/add', function ($static) {
if (!$proper) {
$message['error'] .= 'CSRF Token not correct.';
}
-
+ config('views.root', 'system/admin/views');
+ render('add-page', array(
+ 'title' => i18n('Add_new_page') . ' - ' . blog_title(),
+ 'description' => strip_tags(blog_description()),
+ 'canonical' => site_url(),
+ 'error' => '' . $message['error'] . '
',
+ 'postTitle' => $title,
+ 'postUrl' => $url,
+ 'postContent' => $content,
+ 'type' => 'is_page',
+ 'is_admin' => true,
+ 'bodyclass' => 'add-page',
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $title . ' » ' . i18n('Add_new_page')
+ ));
}
});
@@ -2913,7 +3036,21 @@ post('/:static/edit', function () {
if (!$proper) {
$message['error'] .= 'CSRF Token not correct.';
}
+ config('views.root', 'system/admin/views');
+ render('edit-page', array(
+ 'title' => i18n('Edit') . ': ' . $post->title . ' - ' . blog_title(),
+ 'description' => strip_tags(blog_description()),
+ 'canonical' => site_url(),
+ 'error' => '' . $message['error'] . '
',
+ 'oldfile' => $oldfile,
+ 'postTitle' => $title,
+ 'postUrl' => $url,
+ 'postContent' => $content,
+ 'bodyclass' => 'edit-page',
+ 'is_admin' => true,
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Edit')
+ ));
}
});
@@ -3101,7 +3238,23 @@ post('/:static/:sub/edit', function ($static, $sub) {
if (!$proper) {
$message['error'] .= 'CSRF Token not correct.';
}
+ config('views.root', 'system/admin/views');
+ render('edit-page', array(
+ 'title' => i18n('Edit') . ': ' . $page->title . ' - ' . blog_title(),
+ 'description' => strip_tags(blog_description()),
+ 'canonical' => site_url(),
+ 'error' => '' . $message['error'] . '
',
+ 'oldfile' => $oldfile,
+ 'postTitle' => $title,
+ 'postUrl' => $url,
+ 'postContent' => $content,
+ 'static' => $static,
+ 'sub' => $sub,
+ 'bodyclass' => 'edit-page',
+ 'is_admin' => true,
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . i18n('Edit')
+ ));
}
});
@@ -3454,6 +3607,28 @@ post('/:year/:month/:name/edit', function () {
}
}
+ config('views.root', 'system/admin/views');
+
+ render('edit-content', array(
+ 'title' => $title . ' - ' . blog_title(),
+ 'description' => strip_tags(blog_description()),
+ 'canonical' => site_url(),
+ 'error' => '' . $message['error'] . '
',
+ 'oldfile' => $oldfile,
+ 'postTitle' => $title,
+ 'postImage' => $image,
+ 'postVideo' => $video,
+ 'postLink' => $link,
+ 'postQuote' => $quote,
+ 'postAudio' => $audio,
+ 'postTag' => $tag,
+ 'postUrl' => $url,
+ 'type' => $type,
+ 'postContent' => $content,
+ 'is_admin' => true,
+ 'bodyclass' => 'edit-post',
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $title
+ ));
}
});