DEV: Незначительные изменения (локализация)
This commit is contained in:
parent
2a64916486
commit
9aebe56148
40 changed files with 106 additions and 144 deletions
|
@ -44,7 +44,7 @@ class AnswerController extends MainController
|
|||
return Tpl::agRender(
|
||||
'/answer/answers',
|
||||
[
|
||||
'meta' => meta($m, Translate::get('all answers'), Translate::get('answers-desc')),
|
||||
'meta' => meta($m, Translate::get('all.answers'), Translate::get('answers-desc')),
|
||||
'data' => [
|
||||
'pagesCount' => ceil($pagesCount / $this->limit),
|
||||
'pNum' => $page,
|
||||
|
|
|
@ -44,7 +44,7 @@ class CommentController extends MainController
|
|||
return Tpl::agRender(
|
||||
'/comment/comments',
|
||||
[
|
||||
'meta' => meta($m, Translate::get('all comments'), Translate::get('comments-desc')),
|
||||
'meta' => meta($m, Translate::get('all.comments'), Translate::get('comments-desc')),
|
||||
'data' => [
|
||||
'pagesCount' => ceil($pagesCount / $this->limit),
|
||||
'pNum' => $page,
|
||||
|
|
|
@ -69,17 +69,13 @@ $data = [
|
|||
'format.Q&A' => 'Q&A-Format',
|
||||
'pin' => 'Stift',
|
||||
|
||||
'complained about' => 'beschwert ',
|
||||
'deleted' => 'Gelöscht',
|
||||
'remote' => 'Fernbedienung',
|
||||
'email activated' => 'E-Mail aktiviert',
|
||||
'not activated' => 'Nicht aktiviert',
|
||||
'email.activated' => 'E-Mail aktiviert',
|
||||
'not.activated' => 'Nicht aktiviert',
|
||||
'like' => 'Mögen',
|
||||
'i like comments' => 'Ich mag Kommentare',
|
||||
'i like posts' => 'Ich mag Beiträge',
|
||||
'by topic' => 'Nach Thema',
|
||||
'all comments' => 'Alle Kommentare',
|
||||
'all answers' => 'Alle Antworten',
|
||||
'all.comments' => 'Alle Kommentare',
|
||||
'all.answers' => 'Alle Antworten',
|
||||
'recommended' => 'Empfohlen',
|
||||
'notification' => 'Benachrichtigung',
|
||||
'notifications' => 'Benachrichtigungen',
|
||||
|
@ -88,8 +84,6 @@ $data = [
|
|||
'domain' => 'Domain',
|
||||
'domains' => 'Domänen',
|
||||
'posted' => 'Gesendet',
|
||||
'posted-help' => 'Das gepostete Material ist für die Teilnehmer sichtbar',
|
||||
'all domains' => 'Alle Domänen',
|
||||
'blog' => 'Blog',
|
||||
'blogs' => 'Blogs',
|
||||
'topics' => 'Themen',
|
||||
|
@ -247,7 +241,7 @@ $data = [
|
|||
'by default' => 'By default',
|
||||
'just me' => 'Just me',
|
||||
'publications' => 'Publications',
|
||||
'selected post' => 'Selected post',
|
||||
'selected.post' => 'Selected post',
|
||||
'color' => 'Color',
|
||||
'text' => 'Text',
|
||||
'author' => 'Author',
|
||||
|
@ -259,9 +253,7 @@ $data = [
|
|||
'supports.markdown' => 'Supports Markdown',
|
||||
'write-response' => 'Write an answer to the question',
|
||||
'write' => 'Write',
|
||||
'in-the-profile' => 'In profile',
|
||||
'add-favorites' => 'Add favorites',
|
||||
'remove-favorites' => 'Remove favorites',
|
||||
'in.profile' => 'In profile',
|
||||
|
||||
'language' => 'Lokalisierung',
|
||||
'ru-language' => 'Russisch (RU)',
|
||||
|
|
|
@ -68,17 +68,13 @@ $data = [
|
|||
'format.Q&A' => 'Q&A format',
|
||||
'pin' => 'Pin',
|
||||
|
||||
'complained about' => 'complained about ',
|
||||
'deleted' => 'Deleted',
|
||||
'remote' => 'Remote',
|
||||
'email activated' => 'Email activated',
|
||||
'not activated' => 'Not activated',
|
||||
'email.activated' => 'Email activated',
|
||||
'not.activated' => 'Not activated',
|
||||
'like' => 'Like',
|
||||
'i like comments' => 'I like comments',
|
||||
'i like posts' => 'I like posts',
|
||||
'by topic' => 'By topic',
|
||||
'all comments' => 'All comments',
|
||||
'all answers' => 'All answers',
|
||||
'all.comments' => 'All comments',
|
||||
'all.answers' => 'All answers',
|
||||
'recommended' => 'Recommended',
|
||||
'notification' => 'Notification',
|
||||
'notifications' => 'Notifications',
|
||||
|
@ -87,8 +83,6 @@ $data = [
|
|||
'domain' => 'Domain',
|
||||
'domains' => 'Domains',
|
||||
'posted' => 'Posted',
|
||||
'posted-help' => 'The posted material is visible to the participants',
|
||||
'all domains' => 'All domains',
|
||||
'blog' => 'Blog',
|
||||
'blogs' => 'Blogs',
|
||||
'topics' => 'Topics',
|
||||
|
@ -244,7 +238,7 @@ $data = [
|
|||
'by default' => 'By default',
|
||||
'just me' => 'Just me',
|
||||
'publications' => 'Publications',
|
||||
'selected post' => 'Selected post',
|
||||
'selected.post' => 'Selected post',
|
||||
'color' => 'Color',
|
||||
'text' => 'Text',
|
||||
'author' => 'Author',
|
||||
|
@ -256,9 +250,7 @@ $data = [
|
|||
'supports.markdown' => 'Supports Markdown',
|
||||
'write-response' => 'Write an answer to the question',
|
||||
'write' => 'Write',
|
||||
'in-the-profile' => 'In profile',
|
||||
'add-favorites' => 'Add favorites',
|
||||
'remove-favorites' => 'Remove favorites',
|
||||
'in.profile' => 'In profile',
|
||||
|
||||
'language' => 'Localization',
|
||||
'ru-language' => 'Russian (RU)',
|
||||
|
|
|
@ -69,17 +69,14 @@ $data = [
|
|||
'format.Q&A' => 'Format questions-réponses',
|
||||
'pin' => 'Épingler',
|
||||
|
||||
'complained about' => 'complained about ',
|
||||
'deleted' => 'Deleted',
|
||||
'remote' => 'Remote',
|
||||
'email activated' => 'Email activated',
|
||||
'not activated' => 'Not activated',
|
||||
'email.activated' => 'Email activated',
|
||||
'not.activated' => 'Not activated',
|
||||
'like' => 'Like',
|
||||
'i like comments' => 'I like comments',
|
||||
'i like posts' => 'I like posts',
|
||||
'by topic' => 'By topic',
|
||||
'all comments' => 'All comments',
|
||||
'all answers' => 'All answers',
|
||||
'all.comments' => 'All comments',
|
||||
'all.answers' => 'All answers',
|
||||
'recommended' => 'Recommended',
|
||||
'notification' => 'Notification',
|
||||
'notifications' => 'Notifications',
|
||||
|
@ -88,8 +85,6 @@ $data = [
|
|||
'domain' => 'Domain',
|
||||
'domains' => 'Domains',
|
||||
'posted' => 'Posted',
|
||||
'posted-help' => 'The posted material is visible to the participants',
|
||||
'all domains' => 'All domains',
|
||||
'blog' => 'Blog',
|
||||
'blogs' => 'Blogs',
|
||||
'topics' => 'Topics',
|
||||
|
@ -246,7 +241,7 @@ $data = [
|
|||
'by default' => 'By default',
|
||||
'just me' => 'Just me',
|
||||
'publications' => 'Publications',
|
||||
'selected post' => 'Selected post',
|
||||
'selected.post' => 'Selected post',
|
||||
'color' => 'Color',
|
||||
'text' => 'Text',
|
||||
'author' => 'Author',
|
||||
|
@ -258,9 +253,7 @@ $data = [
|
|||
'supports.markdown' => 'Supports Markdown',
|
||||
'write-response' => 'Write an answer to the question',
|
||||
'write' => 'Write',
|
||||
'in-the-profile' => 'In profile',
|
||||
'add-favorites' => 'Add favorites',
|
||||
'remove-favorites' => 'Remove favorites',
|
||||
'in.profile' => 'In profile',
|
||||
|
||||
'language' => 'Localisation',
|
||||
'ru-language' => 'Russe (RU)',
|
||||
|
|
|
@ -57,21 +57,17 @@ $data = [
|
|||
'format.Q&A' => 'Format de întrebări și răspunsuri',
|
||||
'pin' => 'Pin',
|
||||
|
||||
'complained about' => 'S-a plâns',
|
||||
'understands' => 'Înțelege',
|
||||
'create.account' => 'Creați un cont',
|
||||
'not.registered' => 'Postează, răspunde, comentează... <br>Nu v-ați înregistrat încă',
|
||||
'necessarily' => 'Necesar pentru a completa',
|
||||
'deleted' => 'Sters',
|
||||
'remote' => 'Remote',
|
||||
'email activated' => 'E-mail activat',
|
||||
'not activated' => 'Neactivat',
|
||||
'email.activated' => 'E-mail activat',
|
||||
'not.activated' => 'Neactivat',
|
||||
'like' => 'Apreciez',
|
||||
'i like comments' => 'Apreciez comentariile',
|
||||
'i like posts' => 'Îmi plac postările',
|
||||
'by topic' => 'Pe această temă',
|
||||
'all comments' => 'Toate comentariile',
|
||||
'all answers' => 'Toate răspunsurile',
|
||||
'all.comments' => 'Toate comentariile',
|
||||
'all.answers' => 'Toate răspunsurile',
|
||||
'recommended' => 'Recomandat',
|
||||
'notification' => 'notificare',
|
||||
'notifications' => 'Notificări',
|
||||
|
@ -80,9 +76,7 @@ $data = [
|
|||
'action' => 'Acțiune',
|
||||
'domain' => 'Domeniu',
|
||||
'domains' => 'Domenii',
|
||||
'all domains' => 'Toate domeniile',
|
||||
'posted' => 'Posted',
|
||||
'posted-help' => 'Materialul postat este vizibil pentru participanți',
|
||||
'blog' => 'Blog',
|
||||
'blogs' => 'Bloguri',
|
||||
'topics' => 'Subiecte',
|
||||
|
@ -239,7 +233,7 @@ $data = [
|
|||
'by default' => 'Mod implicit',
|
||||
'just me' => 'Doar eu',
|
||||
'publications' => 'Publicații',
|
||||
'selected post' => 'Postare recomandată',
|
||||
'selected.post' => 'Postare recomandată',
|
||||
'color' => 'Culoare',
|
||||
'text' => 'Text',
|
||||
'author' => 'Autor',
|
||||
|
@ -252,9 +246,7 @@ $data = [
|
|||
'supports.markdown' => 'Suportă Markdown',
|
||||
'write-response' => 'Scrie un răspuns la întrebare',
|
||||
'Write' => 'Scrie',
|
||||
'in-the-profile' => 'In profil',
|
||||
'add-favorites' => 'Adauga la favorite',
|
||||
'remove-favorites' => 'Sterge din favorite',
|
||||
'in.profile' => 'In profil',
|
||||
|
||||
'language' => 'Localization',
|
||||
'ru-language' => 'Rusă (RU)',
|
||||
|
|
|
@ -42,17 +42,13 @@ $data = [
|
|||
'content.added' => '%1$s добавлен',
|
||||
'content.restored' => '%1$s восстановлен',
|
||||
'time' => 'Время',
|
||||
'complained about' => 'пожаловался на',
|
||||
'deleted' => 'Удаленные',
|
||||
'remote' => 'Удаленный',
|
||||
'email activated' => 'Активирован e-mail',
|
||||
'not activated' => 'Не активирован',
|
||||
'email.activated' => 'Активирован e-mail',
|
||||
'not.activated' => 'Не активирован',
|
||||
'like' => 'Нравится',
|
||||
'i like comments' => 'Нравятся комментарии',
|
||||
'i like posts' => 'Нравятся посты',
|
||||
'by topic' => 'По теме',
|
||||
'all comments' => 'Все комментарии',
|
||||
'all answers' => 'Все ответы',
|
||||
'all.comments' => 'Все комментарии',
|
||||
'all.answers' => 'Все ответы',
|
||||
'recommended' => 'Рекомендовано',
|
||||
'notification' => 'уведомление',
|
||||
'notifications' => 'Уведомления',
|
||||
|
@ -60,7 +56,6 @@ $data = [
|
|||
'action' => 'Действие',
|
||||
'domain' => 'Домен',
|
||||
'domains' => 'Домены',
|
||||
'all domains' => 'Все домены',
|
||||
'blog' => 'Блог',
|
||||
'blogs' => 'Блоги',
|
||||
'topics' => 'Темы',
|
||||
|
@ -245,8 +240,7 @@ $data = [
|
|||
'just me' => 'Только я',
|
||||
'publications' => 'Публикации',
|
||||
'posted' => 'Размещен',
|
||||
'posted-help' => 'Размещенный материал виден участникам',
|
||||
'selected post' => 'Избранный пост',
|
||||
'selected.post' => 'Избранный пост',
|
||||
'color' => 'Цвет',
|
||||
'text' => 'Текст',
|
||||
'author' => 'Автор',
|
||||
|
@ -258,9 +252,7 @@ $data = [
|
|||
'supports.markdown' => 'Поддерживает Markdown',
|
||||
'write-response' => 'Напишите ответ на вопрос',
|
||||
'write' => 'Напишите',
|
||||
'in-the-profile' => 'в профиль',
|
||||
'add-favorites' => 'В закладки',
|
||||
'remove-favorites' => 'Убрать из закладок',
|
||||
'in.profile' => 'в профиль',
|
||||
|
||||
'close?' => 'Закрыть?',
|
||||
'repeat.password' => 'Повторите пароль',
|
||||
|
|
|
@ -68,17 +68,13 @@ $data = [
|
|||
'format.Q&A' => '問答形式',
|
||||
'pin' => '別針',
|
||||
|
||||
'complained about' => '抱怨 ',
|
||||
'deleted' => '已刪除',
|
||||
'remote' => '偏僻的',
|
||||
'email activated' => '電子郵件已激活',
|
||||
'not activated' => '未激活',
|
||||
'email.activated' => '電子郵件已激活',
|
||||
'not.activated' => '未激活',
|
||||
'like' => '喜歡',
|
||||
'i like comments' => '我喜歡評論',
|
||||
'i like posts' => '我喜歡帖子',
|
||||
'by topic' => '按主題',
|
||||
'all comments' => '所有評論',
|
||||
'all answers' => '所有答案',
|
||||
'all.comments' => '所有評論',
|
||||
'all.answers' => '所有答案',
|
||||
'recommended' => '受到推崇的',
|
||||
'notification' => '通知',
|
||||
'notifications' => '通知',
|
||||
|
@ -87,8 +83,6 @@ $data = [
|
|||
'domain' => '領域',
|
||||
'domains' => '域',
|
||||
'posted' => '已發布',
|
||||
'posted-help' => '發布的材料對參與者可見',
|
||||
'all domains' => '所有域',
|
||||
'blog' => '博客',
|
||||
'blogs' => '博客',
|
||||
'topics' => '話題',
|
||||
|
@ -245,7 +239,7 @@ $data = [
|
|||
'by default' => '默認情況下',
|
||||
'just me' => '只有我',
|
||||
'publications' => '出版物',
|
||||
'selected post' => '選擇的帖子',
|
||||
'selected.post' => '選擇的帖子',
|
||||
'color' => '顏色',
|
||||
'text' => '文本',
|
||||
'author' => '作者',
|
||||
|
@ -257,9 +251,7 @@ $data = [
|
|||
'supports.markdown' => '支持降價',
|
||||
'write-response' => '寫一個問題的答案',
|
||||
'write' => '寫',
|
||||
'in-the-profile' => '在個人資料中',
|
||||
'add-favorites' => '添加收藏夾',
|
||||
'remove-favorites' => '刪除收藏夾',
|
||||
'in.profile' => '在個人資料中',
|
||||
|
||||
'language' => '本土化',
|
||||
'ru-language' => '俄語 (RU)',
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
<input type="text" name="email" value="<?= $data['user']['email']; ?>" required>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<label for="activated"><?= Translate::get('email activated'); ?>?</label>
|
||||
<label for="activated"><?= Translate::get('email.activated'); ?>?</label>
|
||||
<input type="radio" name="activated" <?php if ($data['user']['activated'] == 0) { ?>checked<?php } ?> value="0"> <?= Translate::get('no'); ?>
|
||||
<input type="radio" name="activated" <?php if ($data['user']['activated'] == 1) { ?>checked<?php } ?> value="1"> <?= Translate::get('yes'); ?>
|
||||
</fieldset>
|
||||
|
|
|
@ -54,9 +54,9 @@
|
|||
<div class="text-sm">
|
||||
<?= $user['email']; ?>
|
||||
<?php if ($user['activated'] == 1) { ?>
|
||||
<div class="gray-600"><?= Translate::get('email activated'); ?></div>
|
||||
<div class="gray-600"><?= Translate::get('email.activated'); ?></div>
|
||||
<?php } else { ?>
|
||||
<div class="red-500"><?= Translate::get('not activated'); ?> e-mail</div>
|
||||
<div class="red-500"><?= Translate::get('not.activated'); ?> e-mail</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php if ($user['limiting_mode'] == 1) { ?>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
<?php if (!empty($data['answers'])) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray mt15 mb15 p15">
|
||||
<div class="box-white">
|
||||
<h2 class="lowercase m0 mb15 text-2xl">
|
||||
<?= num_word($post['amount_content'], Translate::get('num-answer'), true); ?>
|
||||
</h2>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php if (!empty($data['answers'])) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<h2 class="lowercase m0 text-2xl">
|
||||
<?= num_word($post['amount_content'], Translate::get('num-answer'), true); ?>
|
||||
</h2>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php if ($data['writers']) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<?php foreach ($data['writers'] as $writer) { ?>
|
||||
<div class="flex br-bottom">
|
||||
<div class="mr15 mt10">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<main class="col-span-10 mb-col-12 bg-white br-rd5 br-box-gray p15">
|
||||
<main class="col-span-10 mb-col-12 box-white">
|
||||
<h1 class="center"><?= Translate::get('password recovery'); ?></h1>
|
||||
<div class="box wide">
|
||||
<form action="<?= getUrlByName('recover'); ?>/send/pass" method="post">
|
||||
|
|
|
@ -120,7 +120,7 @@ $url = $fs['facet_type'] == 'category' ? getUrlByName('web.dir', ['cat' => 'cat'
|
|||
<?php } ?>
|
||||
|
||||
<?php if (!empty($data['high_arr'])) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<h3 class="uppercase-box"><?= Translate::get('parents'); ?></h3>
|
||||
<?php foreach ($data['high_arr'] as $high) { ?>
|
||||
<a class="flex relative pt5 pb5 items-center hidden gray-600" href="<?= $url; ?>">
|
||||
|
@ -132,7 +132,7 @@ $url = $fs['facet_type'] == 'category' ? getUrlByName('web.dir', ['cat' => 'cat'
|
|||
<?php } ?>
|
||||
|
||||
<?php if (!empty($data['low_arr'])) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<h3 class="uppercase-box"><?= Translate::get('children'); ?></h3>
|
||||
<?php foreach ($data['low_arr'] as $sub) { ?>
|
||||
<a class="flex relative pt5 pb5 items-center hidden gray-600" href="<?= $url; ?>">
|
||||
|
@ -180,7 +180,7 @@ $url = $fs['facet_type'] == 'category' ? getUrlByName('web.dir', ['cat' => 'cat'
|
|||
</fieldset>
|
||||
|
||||
<?php if (!empty($data['high_matching'])) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray max-w780 p15 mb15">
|
||||
<div class="box-white max-w780">
|
||||
<h3 class="uppercase-box"><?= Translate::get('bound (parents)'); ?></h3>
|
||||
<?php foreach ($data['high_matching'] as $low_mat) { ?>
|
||||
<a class="flex relative pt5 pb5 items-center hidden gray-600" href="<?= $url; ?>">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<main class="col-span-7">
|
||||
<div class="bg-white br-rd5 br-box-gray mb15 p15">
|
||||
<div class="box-white">
|
||||
<?php if ($data['site']['item_title_url']) { ?>
|
||||
<div class="right mt15">
|
||||
<?= votes($user['id'], $data['site'], 'item', 'ps', 'mr10'); ?>
|
||||
|
@ -31,7 +31,7 @@
|
|||
</main>
|
||||
<aside class="col-span-3">
|
||||
<div class="sticky top-sm">
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<?= Tpl::import('/_block/domains', ['data' => $data['domains']]); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -46,11 +46,11 @@
|
|||
<?php if ($user['login'] == $post['login']) { ?>
|
||||
<?php if ($post['my_post'] == $post['post_id']) { ?>
|
||||
<span class="add-profile active mr10 ml10" data-post="<?= $post['post_id']; ?>">
|
||||
+ <?= Translate::get('in-the-profile'); ?>
|
||||
+ <?= Translate::get('in.profile'); ?>
|
||||
</span>
|
||||
<?php } else { ?>
|
||||
<span class="add-profile mr10 ml10" data-post="<?= $post['post_id']; ?>">
|
||||
<?= Translate::get('in-the-profile'); ?>
|
||||
<?= Translate::get('in.profile'); ?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="bg-white br-rd5 br-box-gray br-rd5 p15">
|
||||
<div class="box-white">
|
||||
<?php if (!empty($data['drafts'])) { ?>
|
||||
<?php foreach ($data['drafts'] as $draft) { ?>
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
<?php if (!empty($data['favorites'])) { ?>
|
||||
<?php foreach ($data['favorites'] as $content) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray mt10 p15">
|
||||
<div class="box-white">
|
||||
<h3>
|
||||
<?php if ($content['favorite_type'] == 1) { ?>
|
||||
<div class="pr15 text-sm flex gray-400">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="box-flex-white">
|
||||
<p class="m0"><?= Translate::get($data['sheet']); ?></p>
|
||||
</div>
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<?php if ($user['trust_level'] > 1) { ?>
|
||||
<form method="post" action="<?= getUrlByName('invit.create'); ?>">
|
||||
<?php csrf_field(); ?>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<main class="col-span-9 mb-col-12">
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<h1 class="mt0 mb10 text-2xl font-normal"><?= Translate::get('invite'); ?></h1>
|
||||
<form class="" action="/invite" method="post">
|
||||
<?php csrf_field(); ?>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</div>
|
||||
<?php if (!empty($data['answers'])) { ?>
|
||||
<?php foreach ($data['answers'] as $answer) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<div class="text-sm mb5">
|
||||
<a class="gray" href="<?= getUrlByName('profile', ['login' => $answer['login']]); ?>">
|
||||
<?= user_avatar_img($answer['avatar'], 'small', $answer['login'], 'ava-sm'); ?>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<?php if ($profile['my_post'] != 0) { ?>
|
||||
<?php $post = $data['post']; ?>
|
||||
<div class="box-white">
|
||||
<h3 class="uppercase-box"><?= Translate::get('selected post'); ?></h3>
|
||||
<h3 class="uppercase-box"><?= Translate::get('selected.post'); ?></h3>
|
||||
<div class="mt5">
|
||||
<a href="<?= getUrlByName('post', ['id' => $post['post_id'], 'slug' => $post['post_slug']]); ?>">
|
||||
<?= $post['post_title']; ?>
|
||||
|
|
|
@ -89,13 +89,6 @@ a.active > i,
|
|||
position: absolute;
|
||||
}
|
||||
|
||||
.menu__left.menu__active,
|
||||
.menu__left.menu-none.menu__active {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transition: 0.25s;
|
||||
}
|
||||
|
||||
.menu__left {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
|
@ -105,10 +98,17 @@ a.active > i,
|
|||
top: 0;
|
||||
bottom: 0;
|
||||
min-width: 180px;
|
||||
max-width: 60%;
|
||||
background-color: #eaecf0;
|
||||
box-shadow: 5px 0 5px -5px rgba(0, 0, 0, 0.25);
|
||||
overflow-x: hidden;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.menu__left.menu__active,
|
||||
.menu__left.menu-none.menu__active {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transition: 0.25s;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ $form = new Forms();
|
|||
$form->html_form($user['trust_level'], Config::get('form/auth.login'));
|
||||
?>
|
||||
<div class="col-span-2 mb-none"></div>
|
||||
<main class="col-span-8 mb-col-12 bg-white br-rd5 br-box-gray p15 hidden">
|
||||
<main class="col-span-8 mb-col-12 box-white hidden">
|
||||
<h1 class="center"><?= Translate::get('authorization'); ?></h1>
|
||||
<form class="max-w300" action="<?= getUrlByName('login'); ?>" method="post">
|
||||
<?php csrf_field(); ?>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<main class="col-span-12 mb-col-12 bg-white br-rd5 br-box-gray p15">
|
||||
<main class="col-span-12 mb-col-12 box-white">
|
||||
<h1 class="center"><?= Translate::get('password recovery'); ?></h1>
|
||||
<div class="box wide">
|
||||
<form class="" action="<?= getUrlByName('recover'); ?>/send/pass" method="post">
|
||||
|
|
|
@ -36,7 +36,7 @@ $url = $fs['facet_type'] == 'category' ? getUrlByName('web.dir', ['cat' => 'cat'
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="bg-white p15">
|
||||
<div class="box-white">
|
||||
<form action="<?= getUrlByName($fs['facet_type'] . '.edit.pr'); ?>" method="post" enctype="multipart/form-data">
|
||||
<?= csrf_field() ?>
|
||||
|
||||
|
@ -120,7 +120,7 @@ $url = $fs['facet_type'] == 'category' ? getUrlByName('web.dir', ['cat' => 'cat'
|
|||
<?php } ?>
|
||||
|
||||
<?php if (!empty($data['high_arr'])) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<h3 class="uppercase-box"><?= Translate::get('parents'); ?></h3>
|
||||
<?php foreach ($data['high_arr'] as $high) { ?>
|
||||
<a class="flex relative pt5 pb5 items-center hidden gray-600" href="<?= getUrlByName('topic', ['slug' => $high['facet_slug']]); ?>">
|
||||
|
@ -132,7 +132,7 @@ $url = $fs['facet_type'] == 'category' ? getUrlByName('web.dir', ['cat' => 'cat'
|
|||
<?php } ?>
|
||||
|
||||
<?php if (!empty($data['low_arr'])) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<h3 class="uppercase-box"><?= Translate::get('children'); ?></h3>
|
||||
<?php foreach ($data['low_arr'] as $sub) { ?>
|
||||
<a class="flex relative pt5 pb5 items-center hidden gray-600" href="<?= getUrlByName('topic', ['slug' => $sub['facet_slug']]); ?>">
|
||||
|
@ -180,7 +180,7 @@ $url = $fs['facet_type'] == 'category' ? getUrlByName('web.dir', ['cat' => 'cat'
|
|||
]); ?>
|
||||
|
||||
<?php if (!empty($data['high_matching'])) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray max-w780 p15 mb15">
|
||||
<div class="box-white max-w780">
|
||||
<h3 class="uppercase-box"><?= Translate::get('bound (parents)'); ?></h3>
|
||||
<?php foreach ($data['high_matching'] as $low_mat) { ?>
|
||||
<a class="flex relative pt5 pb5 items-center hidden gray-600" href="<?= getUrlByName('topic', ['slug' => $low_mat['facet_slug']]); ?>">
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</form>
|
||||
</div>
|
||||
|
||||
<div class="bg-white br-rd5 br-box-gray ml10 mb-ml0 p15">
|
||||
<div class="box-white">
|
||||
<?php if ($data['list']) { ?>
|
||||
<?php foreach ($data['list'] as $key => $val) { ?>
|
||||
<div class="hidden">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="box-flex-white">
|
||||
<p class="m0"><?= Translate::get($data['sheet']); ?></p>
|
||||
</div>
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<?php if (!empty($data['messages'])) { ?>
|
||||
<?php foreach ($data['messages'] as $msg) { ?>
|
||||
<div class="hidden mt15 mb15<?php if (!$msg['unread'] > 0) { ?> bg-yellow-100<?php } ?>">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<main class="col-span-9 mb-col-12">
|
||||
<div class="bg-white br-rd5 br-box-gray pt5 pr15 pb10 pl15">
|
||||
<div class="box-white">
|
||||
<h1 class="mt0 mb10 text-2xl font-normal">
|
||||
<?= Translate::get('send a message'); ?> <?= $user['login']; ?> / <?= $data['login']; ?>
|
||||
<a class="right text-sm" href="<?= getUrlByName('send.messages', ['login' => $user['login']]); ?>">
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
</div>
|
||||
|
||||
<main class="col-span-7">
|
||||
<div class="bg-white br-rd5 br-box-gray mb15 p15">
|
||||
<div class="box-white">
|
||||
<?php if ($data['site']['item_title_url']) { ?>
|
||||
<div class="right mt10">
|
||||
<?= votes($user['id'], $data['site'], 'item', 'ps', 'mr10'); ?>
|
||||
|
@ -42,7 +42,7 @@
|
|||
</main>
|
||||
<aside class="col-span-3 mb-none">
|
||||
<div class="sticky top-sm">
|
||||
<div class="bg-white br-rd5 br-box-gray pt5 pr15 pb10 pl15">
|
||||
<div class="box-white">
|
||||
<?= Tpl::import('/_block/domains', ['data' => $data['domains']]); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -27,11 +27,11 @@
|
|||
<?php if ($user['login'] == $post['login']) { ?>
|
||||
<?php if ($post['my_post'] == $post['post_id']) { ?>
|
||||
<span class="add-profile active mr10 ml10" data-post="<?= $post['post_id']; ?>">
|
||||
+ <?= Translate::get('in-the-profile'); ?>
|
||||
+ <?= Translate::get('in.profile'); ?>
|
||||
</span>
|
||||
<?php } else { ?>
|
||||
<span class="add-profile mr10 ml10" data-post="<?= $post['post_id']; ?>">
|
||||
<?= Translate::get('in-the-profile'); ?>
|
||||
<?= Translate::get('in.profile'); ?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<main class="col-span-9 mb-col-12">
|
||||
<div class="bg-white box-flex br-box-gray">
|
||||
<div class="box-white">
|
||||
<ul class="nav">
|
||||
|
||||
<?= tabs_nav(
|
||||
|
@ -28,7 +28,7 @@
|
|||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="bg-white br-rd5 br-box-gray br-rd5 p15">
|
||||
<div class="box-white">
|
||||
<?php if (!empty($data['drafts'])) { ?>
|
||||
<?php foreach ($data['drafts'] as $draft) { ?>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<main class="col-span-9 mb-col-12">
|
||||
<div class="bg-white box-flex br-box-gray">
|
||||
<div class="box-white">
|
||||
<ul class="nav">
|
||||
|
||||
<?= tabs_nav(
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
<?php if (!empty($data['favorites'])) { ?>
|
||||
<?php foreach ($data['favorites'] as $content) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray mt10 p15">
|
||||
<div class="box-white">
|
||||
<h3>
|
||||
<?php if ($content['favorite_type'] == 1) { ?>
|
||||
<div class="pr15 text-sm flex gray-400">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<main class="col-span-9 mb-col-12">
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<h1 class="mt0 mb10 text-2xl font-normal"><?= Translate::get('invite'); ?></h1>
|
||||
<form class="" action="/invite" method="post">
|
||||
<?php csrf_field(); ?>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</div>
|
||||
<?php if (!empty($data['answers'])) { ?>
|
||||
<?php foreach ($data['answers'] as $answer) { ?>
|
||||
<div class="bg-white br-rd5 br-box-gray p15">
|
||||
<div class="box-white">
|
||||
<div class="text-sm mb5">
|
||||
<a class="gray" href="<?= getUrlByName('profile', ['login' => $answer['login']]); ?>">
|
||||
<?= user_avatar_img($answer['avatar'], 'small', $answer['login'], 'ava-sm'); ?>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<?php if ($profile['my_post'] != 0) { ?>
|
||||
<?php $post = $data['post']; ?>
|
||||
<div class="box-white bg-violet-50">
|
||||
<h3 class="uppercase-box"><?= Translate::get('selected post'); ?></h3>
|
||||
<h3 class="uppercase-box"><?= Translate::get('selected.post'); ?></h3>
|
||||
<div class="mt5">
|
||||
<a href="<?= getUrlByName('post', ['id' => $post['post_id'], 'slug' => $post['post_slug']]); ?>">
|
||||
<?= $post['post_title']; ?>
|
||||
|
|
|
@ -5,16 +5,25 @@ $facet = $data['facet'] ?? false; ?>
|
|||
|
||||
<?= Tpl::import('/meta', ['meta' => $meta]); ?>
|
||||
|
||||
<body<?php if (Request::getCookie('dayNight') == 'dark') { ?> class="dark"<?php } ?>>
|
||||
<body<?php if (Request::getCookie('dayNight') == 'dark') { ?> class="dark" <?php } ?>>
|
||||
|
||||
<header class="bg-white mt0 mb15">
|
||||
<div class="br-bottom mr-auto max-width w-100 pr10 pl15 mb10 mb-none items-center flex">
|
||||
<?php foreach (Config::get('menu.mobile') as $key => $topic) { ?>
|
||||
<a class="mr20 black text-xs" href="<?= $topic['url']; ?>">
|
||||
<i class="<?= $topic['icon']; ?> mr5"></i>
|
||||
<span><?= $topic['title']; ?> </span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
<a class="mr20 black text-xs" href="/topics">
|
||||
<i class="bi bi-columns-gap mr5"></i> <?= Translate::get('topics'); ?>
|
||||
</a>
|
||||
<a class="mr20 black text-xs" href="/blogs">
|
||||
<i class="bi bi-journals mr5"></i> <?= Translate::get('blogs'); ?>
|
||||
</a>
|
||||
<a class="mr20 black text-xs" href="/users">
|
||||
<i class="bi bi-people mr5"></i> <?= Translate::get('users'); ?>
|
||||
</a>
|
||||
<a class="mr20 black text-xs" href="/web">
|
||||
<i class="bi bi-link-45deg mr5"></i> <?= Translate::get('catalog'); ?>
|
||||
</a>
|
||||
<a class="mr20 black text-xs" href="/search">
|
||||
<i class="bi bi-search mr5"></i> <?= Translate::get('search'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="mr-auto max-width w-100 pr10 pl10 items-center flex justify-between">
|
||||
|
@ -28,7 +37,7 @@ $facet = $data['facet'] ?? false; ?>
|
|||
'menu',
|
||||
$type,
|
||||
$user,
|
||||
$pages = Config::get('menu.mobile')
|
||||
$pages = Config::get('menu.user')
|
||||
); ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -89,7 +98,7 @@ $facet = $data['facet'] ?? false; ?>
|
|||
); ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
|
|
@ -190,7 +190,7 @@ Route::get('/web/{cat}/{slug}/top')->module('catalog', 'App\Catalog', ['web.top'
|
|||
Route::get('/web/{cat}/top/page/{page?}')->module('catalog', 'App\Home', ['web.top', 'web']);
|
||||
Route::get('/web/{cat}/{slug}/page/{page?}')->module('catalog', 'App\Catalog', ['feed', 'web']);
|
||||
|
||||
Route::get('/serach')->module('search', 'App\Search')->name('search');
|
||||
Route::get('/search')->module('search', 'App\Search')->name('search');
|
||||
|
||||
Route::type(['get', 'post'])->get('/cleek')->module('catalog', 'App\Catalog@cleek');
|
||||
|
||||
|
|
Loading…
Reference in a new issue