mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 13:36:22 +05:30
commit
566dc424a5
5 changed files with 21 additions and 9 deletions
|
|
@ -262,3 +262,9 @@ Pass_Error="Password field is required"
|
||||||
Token_Error="CSRF Token not correct"
|
Token_Error="CSRF Token not correct"
|
||||||
Captcha_Error="reCaptcha not correct"
|
Captcha_Error="reCaptcha not correct"
|
||||||
Invalid_Error="ERROR: Invalid username or password"
|
Invalid_Error="ERROR: Invalid username or password"
|
||||||
|
;Profile
|
||||||
|
Post_by_author="Posts by this author"
|
||||||
|
Author_Description="Just another HTMLy user"
|
||||||
|
;404-search
|
||||||
|
Search_results_not_found="Search results not found!"
|
||||||
|
No_search_results="No search results"
|
||||||
|
|
|
||||||
|
|
@ -263,3 +263,9 @@ Pass_Error="Введите пароль"
|
||||||
Token_Error="Неправильный токен"
|
Token_Error="Неправильный токен"
|
||||||
Captcha_Error="reCaptcha не верна"
|
Captcha_Error="reCaptcha не верна"
|
||||||
Invalid_Error="ОШИБКА: Неверные имя пользователя или Пароль"
|
Invalid_Error="ОШИБКА: Неверные имя пользователя или Пароль"
|
||||||
|
;Profile
|
||||||
|
Post_by_author="Авторские статьи"
|
||||||
|
Author_Description="Еще один пользователь HTMLy"
|
||||||
|
;404-search
|
||||||
|
Search_results_not_found="По вашему запросу ничего не найдено!"
|
||||||
|
No_search_results="Безрезультатно"
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ if ($type == 'is_frontpage') {
|
||||||
$oldcontent = remove_html_comments($content);
|
$oldcontent = remove_html_comments($content);
|
||||||
} else {
|
} else {
|
||||||
$oldtitle = $user;
|
$oldtitle = $user;
|
||||||
$oldcontent = 'Just another HTMLy user.';
|
$oldcontent = i18n('Author_Description');
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -162,4 +162,4 @@ if ($type == 'is_frontpage') {
|
||||||
</div>
|
</div>
|
||||||
<!-- Declare the base path. Important -->
|
<!-- Declare the base path. Important -->
|
||||||
<script type="text/javascript">var base_path = '<?php echo site_url() ?>';</script>
|
<script type="text/javascript">var base_path = '<?php echo site_url() ?>';</script>
|
||||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/editor.js"></script>
|
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/editor.js"></script>
|
||||||
|
|
|
||||||
|
|
@ -2149,10 +2149,10 @@ get('/search/:keyword', function ($keyword) {
|
||||||
if (!$posts || $page < 1) {
|
if (!$posts || $page < 1) {
|
||||||
// a non-existing page or no search result
|
// a non-existing page or no search result
|
||||||
render('404-search', array(
|
render('404-search', array(
|
||||||
'title' => 'Search results not found! - ' . blog_title(),
|
'title' => i18n('Search_results_not_found') . ' - ' . blog_title(),
|
||||||
'description' => 'Search results not found!',
|
'description' => i18n('Search_results_not_found'),
|
||||||
'search' => $tsearch,
|
'search' => $tsearch,
|
||||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » No search results',
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('No_search_results'),
|
||||||
'canonical' => site_url(),
|
'canonical' => site_url(),
|
||||||
'bodyclass' => 'error-404-search',
|
'bodyclass' => 'error-404-search',
|
||||||
'is_404search' => true,
|
'is_404search' => true,
|
||||||
|
|
|
||||||
|
|
@ -295,7 +295,7 @@ function get_posts($posts, $page = 1, $perpage = 0)
|
||||||
$post->authorAbout = $profile[0]->about;
|
$post->authorAbout = $profile[0]->about;
|
||||||
} else {
|
} else {
|
||||||
$post->authorName = $author;
|
$post->authorName = $author;
|
||||||
$post->authorAbout = 'Just another HTMLy user';
|
$post->authorAbout = i18n('Author_Description');
|
||||||
}
|
}
|
||||||
|
|
||||||
$post->type = $type;
|
$post->type = $type;
|
||||||
|
|
@ -822,9 +822,9 @@ function default_profile($name)
|
||||||
$author = new stdClass;
|
$author = new stdClass;
|
||||||
|
|
||||||
$author->name = $name;
|
$author->name = $name;
|
||||||
$author->about = '<p>Just another HTMLy user.</p>';
|
$author->about = '<p>' . i18n('Author_Description') . '</p>';
|
||||||
|
|
||||||
$author->description = 'Just another HTMLy user';
|
$author->description = i18n('Author_Description');
|
||||||
|
|
||||||
return $tmp[] = $author;
|
return $tmp[] = $author;
|
||||||
}
|
}
|
||||||
|
|
@ -2304,7 +2304,7 @@ function not_found()
|
||||||
|
|
||||||
header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found");
|
header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found");
|
||||||
render('404', array(
|
render('404', array(
|
||||||
'title' => 'This page doesn\'t exist! - ' . blog_title(),
|
'title' => i18n('This_page_doesnt_exist') . ' - ' . blog_title(),
|
||||||
'description' => '404 Not Found',
|
'description' => '404 Not Found',
|
||||||
'canonical' => site_url(),
|
'canonical' => site_url(),
|
||||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » 404 Not Found',
|
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » 404 Not Found',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue