Skip to content

Commit

Permalink
Change version
Browse files Browse the repository at this point in the history
  • Loading branch information
danpros committed Dec 17, 2023
1 parent 66bce82 commit 70ccc40
Show file tree
Hide file tree
Showing 2 changed files with 178 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cache/installedVersion.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"id": 133359767,
"tag_name": "v2.8.8"
"tag_name": "v2.8.9"
}
179 changes: 177 additions & 2 deletions system/htmly.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,20 @@
if (!$proper) {
$message['error'] .= '<li class="alert alert-danger">CSRF Token not correct.</li>';
}
config('views.root', 'system/admin/views');

render('edit-page', array(
'title' => 'Edit profile - ' . blog_title(),
'description' => strip_tags(blog_description()),
'canonical' => site_url(),
'error' => '<ul>' . $message['error'] . '</ul>',
'postTitle' => $title,
'postContent' => $content,
'type' => 'is_profile',
'is_admin' => true,
'bodyclass' => 'edit-profile',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Edit profile'
));
}
});

Expand Down Expand Up @@ -361,7 +374,20 @@
if (!$proper) {
$message['error'] .= '<li class="alert alert-danger">CSRF Token not correct.</li>';
}
config('views.root', 'system/admin/views');

render('edit-page', array(
'title' => 'Edit frontpage - ' . blog_title(),
'description' => strip_tags(blog_description()),
'canonical' => site_url(),
'error' => '<ul>' . $message['error'] . '</ul>',
'postTitle' => $title,
'postContent' => $content,
'type' => 'is_frontpage',
'is_admin' => true,
'bodyclass' => 'edit-frontpage',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Edit frontpage'
));
}
});

Expand Down Expand Up @@ -534,6 +560,26 @@
}
}

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' => '<ul>' . $message['error'] . '</ul>',
'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' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Add_content')
));
}

});
Expand Down Expand Up @@ -587,6 +633,20 @@
if (!$proper) {
$message['error'] .= '<li class="alert alert-danger">CSRF Token not correct.</li>';
}
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' => '<ul>' . $message['error'] . '</ul>',
'postTitle' => $title,
'postUrl' => $url,
'postContent' => $content,
'type' => 'is_page',
'is_admin' => true,
'bodyclass' => 'add-page',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Add_new_page')
));
}
});

Expand Down Expand Up @@ -639,7 +699,20 @@
if (!$proper) {
$message['error'] .= '<li class="alert alert-danger">CSRF Token not correct.</li>';
}

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' => '<ul>' . $message['error'] . '</ul>',
'postTitle' => $title,
'postUrl' => $url,
'postContent' => $content,
'type' => 'is_category',
'is_admin' => true,
'bodyclass' => 'add-category',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Add_category')
));
}
});

Expand Down Expand Up @@ -1849,7 +1922,22 @@
if (!$proper) {
$message['error'] .= '<li class="alert alert-danger">CSRF Token not correct.</li>';
}
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' => '<ul>' . $message['error'] . '</ul>',
'oldfile' => $oldfile,
'postTitle' => $title,
'postUrl' => $url,
'postContent' => $content,
'type' => 'is_category',
'is_admin' => true,
'bodyclass' => 'edit-category',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Edit_category')
));
}
});

Expand Down Expand Up @@ -2518,6 +2606,28 @@
}
}

config('views.root', 'system/admin/views');

render('edit-content', array(
'title' => $title . ' - ' . blog_title(),
'description' => strip_tags(blog_description()),
'canonical' => site_url(),
'error' => '<ul>' . $message['error'] . '</ul>',
'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' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Edit_content')
));
}
});

Expand Down Expand Up @@ -2846,7 +2956,20 @@
if (!$proper) {
$message['error'] .= '<li class="alert alert-danger">CSRF Token not correct.</li>';
}

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' => '<ul>' . $message['error'] . '</ul>',
'postTitle' => $title,
'postUrl' => $url,
'postContent' => $content,
'type' => 'is_page',
'is_admin' => true,
'bodyclass' => 'add-page',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; <a href="' . $title . '">' . $title . '</a> &#187; ' . i18n('Add_new_page')
));
}
});

Expand Down Expand Up @@ -2913,7 +3036,21 @@
if (!$proper) {
$message['error'] .= '<li class="alert alert-danger">CSRF Token not correct.</li>';
}
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' => '<ul>' . $message['error'] . '</ul>',
'oldfile' => $oldfile,
'postTitle' => $title,
'postUrl' => $url,
'postContent' => $content,
'bodyclass' => 'edit-page',
'is_admin' => true,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Edit')
));
}
});

Expand Down Expand Up @@ -3101,7 +3238,23 @@
if (!$proper) {
$message['error'] .= '<li class="alert alert-danger">CSRF Token not correct.</li>';
}
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' => '<ul>' . $message['error'] . '</ul>',
'oldfile' => $oldfile,
'postTitle' => $title,
'postUrl' => $url,
'postContent' => $content,
'static' => $static,
'sub' => $sub,
'bodyclass' => 'edit-page',
'is_admin' => true,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Edit')
));
}
});

Expand Down Expand Up @@ -3454,6 +3607,28 @@
}
}

config('views.root', 'system/admin/views');

render('edit-content', array(
'title' => $title . ' - ' . blog_title(),
'description' => strip_tags(blog_description()),
'canonical' => site_url(),
'error' => '<ul>' . $message['error'] . '</ul>',
'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' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . $title
));
}
});

Expand Down

0 comments on commit 70ccc40

Please sign in to comment.