ADD: Sidebar
На страницах изменения и удаления контента. Мы можем использовать данное место для подсказок, помощи и др.
This commit is contained in:
parent
dd49c728c3
commit
92a01f7d49
|
@ -24,7 +24,7 @@ class AddFacetController extends MainController
|
|||
return Tpl::LaRender(
|
||||
'/facets/add',
|
||||
[
|
||||
'meta' => Meta::get(__('app.add_option', ['name' => __('app.topics')])),
|
||||
'meta' => Meta::get(__('app.add_' . $type)),
|
||||
'data' => [
|
||||
'type' => $type,
|
||||
]
|
||||
|
|
|
@ -46,7 +46,7 @@ class EditFacetController extends MainController
|
|||
'low_arr' => FacetModel::getLowLevelList($facet['facet_id']),
|
||||
'user' => UserModel::getUser($facet['facet_user_id'], 'id'),
|
||||
'sheet' => $facet['facet_type'] . 's',
|
||||
'type' => 'edit',
|
||||
'type' => $type,
|
||||
]
|
||||
]
|
||||
);
|
||||
|
|
|
@ -43,10 +43,8 @@ class AddPostController extends MainController
|
|||
$topic_id = Request::getInt('topic_id');
|
||||
$topic = FacetModel::getFacet($topic_id, 'id', 'topic');
|
||||
|
||||
$puth = $type == 'page' ? '/page/add' : '/post/add';
|
||||
|
||||
return Tpl::LaRender(
|
||||
$puth,
|
||||
'/post/add',
|
||||
[
|
||||
'meta' => Meta::get(__('app.add_option', ['name' => __('app.post')])),
|
||||
'data' => [
|
||||
|
|
|
@ -43,7 +43,7 @@ class EditPostController extends MainController
|
|||
return Tpl::LaRender(
|
||||
'/post/edit',
|
||||
[
|
||||
'meta' => Meta::get(__('app.edit_option', ['name' => __('app.post')])),
|
||||
'meta' => Meta::get(__('app.edit_' . $post['post_type'])),
|
||||
'data' => [
|
||||
'sheet' => 'edit-post',
|
||||
'type' => 'edit',
|
||||
|
|
|
@ -171,8 +171,13 @@ return [
|
|||
'edit' => 'Change',
|
||||
'save' => 'Save',
|
||||
'add' => 'Add',
|
||||
'add_option' => 'Add ({name})',
|
||||
'edit_option' => 'Change ({name})',
|
||||
'add_post' => 'Add post',
|
||||
'add_topic' => 'Add Topic',
|
||||
'add_blog' => 'Add blog',
|
||||
'edit_post' => 'Edit post',
|
||||
'edit_topic' => 'Edit Topic',
|
||||
'edit_blog' => 'Edit blog',
|
||||
'edit_page' => 'Edit page',
|
||||
|
||||
'being_developed' => 'Under development',
|
||||
'activity' => 'Activity',
|
||||
|
@ -338,22 +343,11 @@ return [
|
|||
'view_post_tl' => 'Who can view the post (from which TL)',
|
||||
'invited_you' => 'You were invited by a member from this site. Enter invite',
|
||||
'invite_features' => 'You can invite friends',
|
||||
'messages_info' => 'Private messages with site members',
|
||||
|
||||
'content_deleted' => '{name} deleted',
|
||||
|
||||
/* Setting */
|
||||
'setting_info' => 'Fill in your name, this will help the participants to refer to you by your first name. <br><br> Tell us something about yourself. You have a great opportunity to open up to please others and seem like an interesting person..',
|
||||
'avatar_info' => 'Upload an avatar and cover photo for your profile. <br><br> When each user has a unique avatar, it becomes much easier to follow discussions!',
|
||||
'security_info' => 'Make sure all your passwords are 8 characters or more, ideally a lot more.',
|
||||
'login_info' => 'Authorization gives you the ability to publish posts, reply, comment and vote.',
|
||||
'recover_info' => 'After you click the "Reset" button, check your email...',
|
||||
'favorite_info' => 'Posts, comments and questions in your bookmarks',
|
||||
'preferences_info' => 'Posts you follow. You will be notified of all new replies',
|
||||
'endless_scroll' => 'Enable infinite scroll?',
|
||||
'notification_email' => 'Notify by email',
|
||||
'notifications_info' => 'You can mark all ads as read by clicking on the link: "I have read".',
|
||||
'notification_info' => 'You can unsubscribe from all email notifications in this section',
|
||||
'notifications_limit' => 'Showing last 100 notifications',
|
||||
|
||||
/* Notifications and logs */
|
||||
|
|
32
app/Languages/en/help.php
Normal file
32
app/Languages/en/help.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* The following language strings are used for translating blocks
|
||||
* mostly located in the sidebar.
|
||||
*
|
||||
* Следующие языковые строки используются для переводя блоков
|
||||
* преимущественно расположенных в боковой панели (sidebar).
|
||||
*/
|
||||
|
||||
return [
|
||||
'setting_info' => 'Fill in your name, this will help the participants to refer to you by your first name. <br><br> Tell us something about yourself. You have a great opportunity to open up to please others and seem like an interesting person.',
|
||||
'avatar_info' => 'Upload an avatar and cover photo for your profile. <br><br> When each user has a unique avatar, it becomes much easier to follow discussions!',
|
||||
'security_info' => 'Make sure all your passwords are 8 characters or more, ideally a lot more.',
|
||||
'login_info' => 'Authorization gives you the ability to publish posts, reply, comment and vote.',
|
||||
'recover_info' => 'After you click the "Reset" button, check your e-mail.',
|
||||
'favorite_info' => 'Posts, comments and questions in your bookmarks.',
|
||||
'preferences_info' => 'Posts you follow. You will be notified of all new replies.',
|
||||
'notifications_info' => 'You can mark all ads as read by clicking on the link: "I have read".',
|
||||
'notification_info' => 'You can unsubscribe from all email notifications in this section.',
|
||||
|
||||
'messages_info' => 'Private messages with site members. Refrain from spam, be respectful!',
|
||||
|
||||
'add_post' => 'The first paragraph will be the text preview for the feed page. <br><br>Try not to include photos and videos in it. If you need to add a photo, then add it for Overview.',
|
||||
'edit_page' => 'Official documentation should be error-free and written more in a formal manner.',
|
||||
'edit_post' => 'See what the post looks like on the feed page and in the full version. Improve it here.',
|
||||
|
||||
'add_topic' => 'A topic is a node (for navigation) used by the system to organize content. The theme is a single point of view, the interpretation of various things, phenomena and other concepts.',
|
||||
'add_blog' => 'Add a blog (in development).',
|
||||
'edit_topic' => 'Change theme (in development).',
|
||||
'edit_blog' => 'Edit blog (in development).',
|
||||
];
|
|
@ -171,8 +171,13 @@ return [
|
|||
'edit' => 'Schimbare',
|
||||
'save' => 'Salva',
|
||||
'add' => 'Adăuga',
|
||||
'add_option' => 'Adăuga ({name})',
|
||||
'edit_option' => 'Schimbare ({name})',
|
||||
'add_post' => 'Adaugă postare',
|
||||
'add_topic' => 'Adaugă subiect',
|
||||
'add_blog' => 'Adaugă blog',
|
||||
'edit_post' => 'Editează postarea',
|
||||
'edit_topic' => 'Editați subiectul',
|
||||
'edit_blog' => 'Editează blogul',
|
||||
'edit_page' => 'Editați pagina',
|
||||
|
||||
'being_developed' => 'In dezvoltare',
|
||||
'activity' => 'Activitate',
|
||||
|
@ -338,22 +343,11 @@ return [
|
|||
'view_post_tl' => 'Cine poate vizualiza postarea (din care TL)',
|
||||
'invited_you' => 'Ai fost invitat de un membru de pe acest site. Introdu invitația',
|
||||
'invite_features' => 'Puteți invita prieteni',
|
||||
'messages_info' => 'Mesaje private cu membrii site-ului',
|
||||
|
||||
'content_deleted' => '{name} îndepărtat',
|
||||
|
||||
/* Setare */
|
||||
'setting_info' => 'Completează-ți numele, acest lucru îi va ajuta pe participanți să se refere la tine prin prenumele tău. <br><br> Spune-ne ceva despre tine. Ai o oportunitate grozavă să te deschizi pentru a le mulțumi altora și să pari o persoană interesantă.',
|
||||
'avatar_info' => 'Încarcă un avatar și o fotografie de copertă pentru profilul tău. <br><br> Când fiecare utilizator are un avatar unic, devine mult mai ușor să urmărești discuțiile!',
|
||||
'security_info' => 'Asigurați-vă că toate parolele dvs. au 8 caractere sau mai mult, în mod ideal, mult mai multe.',
|
||||
'login_info' => 'Autorizarea vă oferă posibilitatea de a publica postări, de a răspunde, de a comenta și de a vota.',
|
||||
'recover_info' => 'După ce faceți clic pe butonul „Resetare”, verificați-vă e-mailul...',
|
||||
'favorite_info' => 'Postări, comentarii și întrebări în marcajele dvs',
|
||||
'preferences_info' => 'Postări pe care le urmăriți. Veți fi notificat cu privire la toate răspunsurile noi',
|
||||
'endless_scroll' => 'Activați derularea infinită?',
|
||||
'notification_email' => 'Notificare prin e-mail',
|
||||
'notifications_info' => 'Puteți marca toate anunțurile ca citite făcând clic pe linkul: „Am citit”.',
|
||||
'notification_info' => 'Vă puteți dezabona de la toate notificările prin e-mail din această secțiune',
|
||||
'notifications_limit' => 'Se afișează ultimele 100 de notificări',
|
||||
|
||||
/* Уведомления и логи */
|
||||
|
|
32
app/Languages/ro/help.php
Normal file
32
app/Languages/ro/help.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* The following language strings are used for translating blocks
|
||||
* mostly located in the sidebar.
|
||||
*
|
||||
* Следующие языковые строки используются для переводя блоков
|
||||
* преимущественно расположенных в боковой панели (sidebar).
|
||||
*/
|
||||
|
||||
return [
|
||||
'setting_info' => 'Completează-ți numele, acest lucru îi va ajuta pe participanți să se refere la tine prin prenumele tău. <br><br> Spune-ne ceva despre tine. Ai o oportunitate grozavă să te deschizi pentru a le mulțumi altora și să pari o persoană interesantă.',
|
||||
'avatar_info' => 'Încarcă un avatar și o fotografie de copertă pentru profilul tău. <br><br> Când fiecare utilizator are un avatar unic, devine mult mai ușor să urmărești discuțiile!',
|
||||
'security_info' => 'Asigurați-vă că toate parolele dvs. au 8 caractere sau mai mult, în mod ideal, mult mai multe.',
|
||||
'login_info' => 'Autorizarea vă oferă posibilitatea de a publica postări, de a răspunde, de a comenta și de a vota.',
|
||||
'recover_info' => 'După ce faceți clic pe butonul „Resetare”, verificați-vă e-mailul.',
|
||||
'favorite_info' => 'Postări, comentarii și întrebări în marcajele dvs.',
|
||||
'preferences_info' => 'Postări pe care le urmăriți. Veți fi notificat cu privire la toate răspunsurile noi.',
|
||||
'notifications_info' => 'Puteți marca toate anunțurile ca citite făcând clic pe linkul: „Am citit”.',
|
||||
'notification_info' => 'Vă puteți dezabona de la toate notificările prin e-mail din această secțiune.',
|
||||
|
||||
'messages_info' => 'Mesaje private cu membrii site-ului. Ferește-te de spam, fii respectuos!',
|
||||
|
||||
'add_post' => 'Primul paragraf va fi previzualizarea textului pentru pagina de feed. <br><br>Încercați să nu includeți fotografii și videoclipuri în el. Dacă trebuie să adăugați o fotografie, adăugați-o pentru Prezentare generală.',
|
||||
'edit_page' => 'Documentația oficială ar trebui să nu aibă erori și să fie scrisă mai mult într-o manieră formală.',
|
||||
'edit_post' => 'Vezi cum arată postarea pe pagina de feed și în versiunea completă. Îmbunătățiți-l aici.',
|
||||
|
||||
'add_topic' => 'Un subiect este un nod (pentru navigare) folosit de sistem pentru a organiza conținutul. Tema este un singur punct de vedere, interpretarea diferitelor lucruri, fenomene și alte concepte.',
|
||||
'add_blog' => 'Adăugați un blog (în dezvoltare).',
|
||||
'edit_topic' => 'Schimbați tema (în dezvoltare).',
|
||||
'edit_blog' => 'Изменить блог (в разработке).',
|
||||
];
|
|
@ -171,8 +171,13 @@ return [
|
|||
'edit' => 'Изменить',
|
||||
'save' => 'Сохранить',
|
||||
'add' => 'Добавить',
|
||||
'add_option' => 'Добавить ({name})',
|
||||
'edit_option' => 'Изменить ({name})',
|
||||
'add_post' => 'Добавить пост',
|
||||
'add_topic' => 'Добавить тему',
|
||||
'add_blog' => 'Добавить блог',
|
||||
'edit_post' => 'Изменить пост',
|
||||
'edit_topic' => 'Изменить тему',
|
||||
'edit_blog' => 'Изменить блог',
|
||||
'edit_page' => 'Изменить страницу',
|
||||
|
||||
'being_developed' => 'В стадии разработки',
|
||||
'activity' => 'Активность',
|
||||
|
@ -338,22 +343,11 @@ return [
|
|||
'view_post_tl' => 'Кто может просматривать пост (с какого TL)',
|
||||
'invited_you' => 'Вас пригласил участник с этого сайта. Введите инвайт',
|
||||
'invite_features' => 'Вы можете пригласить друзей',
|
||||
'messages_info' => 'Личные сообщения с участниками сайта',
|
||||
|
||||
'content_deleted' => '{name} удален',
|
||||
|
||||
/* Setting */
|
||||
'setting_info' => 'Заполните ваше имя, это поможет участникам обращаться к вам по имени. <br><br> Расскажи что-нибудь о себе. У вас отличная возможность раскрыться, чтобы понравиться окружающим и показаться интересной личностью.',
|
||||
'avatar_info' => 'Загрузите аватар и обложку для своего профиля. <br><br> Когда каждый пользователь имеет уникальный аватар, следить за обсуждениями становится значительно легче!',
|
||||
'security_info' => 'Убедитесь, что все ваши пароли имеют 8 символов и более, в идеале намного больше.',
|
||||
'login_info' => 'Авторизация дает вам возможность публиковать посты, отвечать, комментировать и голосовать.',
|
||||
'recover_info' => 'После того, как нажмете кнопку «Сбросить», проверьте свой e-mail...',
|
||||
'favorite_info' => 'Посты, комментарии и вопросы в ваших закладках',
|
||||
'preferences_info' => 'Посты, на которые вы подписаны. Вы будете получать уведомления о всех новых ответах',
|
||||
'endless_scroll' => 'Включить бесконечный скролл?',
|
||||
'endless_scroll' => 'Включить скролл в ленте?',
|
||||
'notification_email' => 'Уведомлять по E-mail',
|
||||
'notifications_info' => 'Вы можете пометить все объявления, как прочитанные, нажать на ссылку: «Я прочитал».',
|
||||
'notification_info' => 'Вы можете отписаться от всех уведомлений на E-mail в этом разделе',
|
||||
'notifications_limit' => 'Показаны последние 100 уведомлений',
|
||||
|
||||
/* Уведомления и логи */
|
||||
|
|
32
app/Languages/ru/help.php
Normal file
32
app/Languages/ru/help.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* The following language strings are used for translating blocks
|
||||
* mostly located in the sidebar.
|
||||
*
|
||||
* Следующие языковые строки используются для переводя блоков
|
||||
* преимущественно расположенных в боковой панели (sidebar).
|
||||
*/
|
||||
|
||||
return [
|
||||
'setting_info' => 'Заполните ваше имя, это поможет участникам обращаться к вам по имени. <br><br> Расскажи что-нибудь о себе. У вас отличная возможность раскрыться, чтобы понравиться окружающим и показаться интересной личностью.',
|
||||
'avatar_info' => 'Загрузите аватар и обложку для своего профиля. <br><br> Когда каждый пользователь имеет уникальный аватар, следить за обсуждениями становится значительно легче!',
|
||||
'security_info' => 'Убедитесь, что все ваши пароли имеют 8 символов и более, в идеале намного больше.',
|
||||
'login_info' => 'Авторизация дает вам возможность публиковать посты, отвечать, комментировать и голосовать.',
|
||||
'recover_info' => 'После того, как нажмете кнопку «Сбросить», проверьте свой e-mail.',
|
||||
'favorite_info' => 'Посты, комментарии и вопросы в ваших закладках.',
|
||||
'preferences_info' => 'Посты, на которые вы подписаны. Вы будете получать уведомления о всех новых ответах.',
|
||||
'notifications_info' => 'Вы можете пометить все объявления, как прочитанные, нажать на ссылку: «Я прочитал».',
|
||||
'notification_info' => 'Вы можете отписаться от всех уведомлений на E-mail в этом разделе.',
|
||||
|
||||
'messages_info' => 'Личные сообщения с участниками сайта. Воздерживайтесь от спама, проявляйте уважение!',
|
||||
|
||||
'add_post' => 'Первый абзац будет превью текста для страницы ленты. <br><br>Постарайтесь не включать фото и видео в него. Если необходимо добавить фото, то добавьте его для Обзора.',
|
||||
'edit_page' => 'Официальная документация должна быть без ошибок и написана больше в официальной манере.',
|
||||
'edit_post' => 'Посмотрите, как выглядит пост на странице ленты и в полной версии. Улучшите его тут.',
|
||||
|
||||
'add_topic' => 'Тема — то узел (для навигации), используемый системой для организации контента. Тема является единой точкой взода, интерпретацией различных вещей, явлений и других понятий.',
|
||||
'add_blog' => 'Добавить блог (в разработке).',
|
||||
'edit_topic' => 'Изменить тему (в разработке).',
|
||||
'edit_blog' => 'Изменить блог (в разработке).',
|
||||
];
|
|
@ -3,9 +3,9 @@ $form = new Forms();
|
|||
$form->html_form(UserData::getUserTl(), config('form/facet.forma'));
|
||||
?>
|
||||
|
||||
<main class="col-two">
|
||||
<main>
|
||||
<div class="box">
|
||||
<h1 class="text-xl"><?= __('app.add'); ?> (<?= __('app.' . $data['type']); ?>)</h1>
|
||||
<h2 class="text-xl"><?= __('app.add_' . $data['type']); ?></h2>
|
||||
|
||||
<?php if (UserData::getRegType(config('trust-levels.tl_add_blog'))) : ?>
|
||||
<form class="max-w780" action="<?= url('content.create', ['type' => $data['type']]); ?>" method="post" enctype="multipart/form-data">
|
||||
|
@ -19,4 +19,11 @@ $form->html_form(UserData::getUserTl(), config('form/facet.forma'));
|
|||
<?= __('app.limit_content'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</main>
|
||||
</main>
|
||||
|
||||
<aside>
|
||||
<div class="box">
|
||||
<h3 class="uppercase-box"><?= __('app.help'); ?></h3>
|
||||
<?= __('help.add_' . $data['type']); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -3,9 +3,9 @@ $fs = $data['facet'];
|
|||
$url = $fs['facet_type'] == 'category' ? url('web.dir', ['cat' => 'cat', 'slug' => $fs['facet_slug']]) : url($fs['facet_type'], ['slug' => $fs['facet_slug']]);
|
||||
?>
|
||||
|
||||
<main class="col-two">
|
||||
<main>
|
||||
<div class="box-flex justify-between">
|
||||
<p class="m0 text-xl"><?= __('app.' . $fs['facet_type']); ?></p>
|
||||
<p class="m0 text-xl"><?= __('app.edit_' . $data['type']); ?></p>
|
||||
<ul class="nav">
|
||||
|
||||
<?= Tpl::insert(
|
||||
|
@ -29,7 +29,6 @@ $url = $fs['facet_type'] == 'category' ? url('web.dir', ['cat' => 'cat', 'slug'
|
|||
<div class="box">
|
||||
<form class="max-w780" action="<?= url('content.change', ['type' => $fs['facet_type']]); ?>" method="post" enctype="multipart/form-data">
|
||||
<?= csrf_field() ?>
|
||||
<i><?= __('app.edit'); ?></i>
|
||||
<?= Tpl::insert('/_block/facet/facet-type', ['type' => $fs['facet_type']]); ?>
|
||||
|
||||
<div class="file-upload mb10 mt15" id="file-drag">
|
||||
|
@ -199,4 +198,10 @@ $url = $fs['facet_type'] == 'category' ? url('web.dir', ['cat' => 'cat', 'slug'
|
|||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
</main>
|
||||
<aside>
|
||||
<div class="box">
|
||||
<h3 class="uppercase-box"><?= __('app.help'); ?></h3>
|
||||
<?= __('help.edit_' . $data['type']); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -44,6 +44,6 @@
|
|||
</main>
|
||||
<aside>
|
||||
<div class="box text-sm sticky top-sm">
|
||||
<?= __('app.messages_info'); ?>
|
||||
<?= __('help.messages_info'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -37,6 +37,6 @@
|
|||
</main>
|
||||
<aside>
|
||||
<div class="box text-sm sticky top-sm">
|
||||
<?= __('app.notifications_info'); ?>
|
||||
<?= __('help.notifications_info'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -1,8 +1,6 @@
|
|||
<main class="col-two">
|
||||
<main>
|
||||
<div class="box">
|
||||
|
||||
<a href="/"><?= __('app.home'); ?></a> /
|
||||
<span class="red"><?= __('app.add_option', ['name' => __('app.post')]); ?></span>
|
||||
<h2><?= __('app.add_post'); ?></h2>
|
||||
|
||||
<form class="max-w780" action="<?= url('content.create', ['type' => 'post']); ?>" method="post" enctype="multipart/form-data">
|
||||
<?= csrf_field() ?>
|
||||
|
@ -117,4 +115,10 @@
|
|||
<p><?= Html::sumbit(__('app.create')); ?></p>
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
</main>
|
||||
<aside>
|
||||
<div class="box">
|
||||
<h3 class="uppercase-box"><?= __('app.help'); ?></h3>
|
||||
<?= __('help.add_post'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -1,8 +1,7 @@
|
|||
<?php $post = $data['post']; ?>
|
||||
<main class="col-two">
|
||||
<main>
|
||||
<div class="box">
|
||||
|
||||
<a href="/"><?= __('app.home'); ?></a> / <span class="red"><?= __('app.edit_option', ['name' => __('app.' . $post['post_type'])]); ?></span>
|
||||
<h2><?= __('app.edit_' . $post['post_type']); ?></h2>
|
||||
|
||||
<form class="max-w780" action="<?= url('content.change', ['type' => 'post']); ?>" method="post" enctype="multipart/form-data">
|
||||
<?= csrf_field() ?>
|
||||
|
@ -173,4 +172,10 @@
|
|||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
</main>
|
||||
<aside>
|
||||
<div class="box">
|
||||
<h3 class="uppercase-box"><?= __('app.help'); ?></h3>
|
||||
<?= __('help.edit_' . $post['post_type']); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -59,6 +59,6 @@
|
|||
</main>
|
||||
<aside>
|
||||
<div class="box text-sm">
|
||||
<?= __('app.avatar_info'); ?>
|
||||
<?= __('help.avatar_info'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -21,6 +21,6 @@ $form->html_form(UserData::getUserTl(), config('form/user-notifications'));
|
|||
</main>
|
||||
<aside>
|
||||
<div class="box text-sm">
|
||||
<?= __('app.notification_info'); ?>
|
||||
<?= __('help.notification_info'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -22,6 +22,6 @@ $form->html_form(UserData::getUserTl(), config('form/user-security'));
|
|||
</main>
|
||||
<aside>
|
||||
<div class="box text-sm">
|
||||
<?= __('app.security_info'); ?>
|
||||
<?= __('help.security_info'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -91,6 +91,6 @@
|
|||
</main>
|
||||
<aside>
|
||||
<div class="box text-sm">
|
||||
<?= __('app.setting_info'); ?>
|
||||
<?= __('help.setting_info'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -3,9 +3,9 @@ $form = new Forms();
|
|||
$form->html_form(UserData::getUserTl(), config('form/facet.forma'));
|
||||
?>
|
||||
|
||||
<main class="w-100">
|
||||
<div class="box">
|
||||
<h1 class="text-xl"><?= __('app.add'); ?> (<?= __('app.' . $data['type']); ?>)</h1>
|
||||
<main class="col-two">
|
||||
<div class="box pt0">
|
||||
<h2 class="text-xl"><?= __('app.add_' . $data['type']); ?></h2>
|
||||
<?php if (UserData::getRegType(config('trust-levels.tl_add_blog'))) : ?>
|
||||
<form class="max-w780" action="<?= url('content.create', ['type' => $data['type']]); ?>" method="post" enctype="multipart/form-data">
|
||||
<?= csrf_field() ?>
|
||||
|
@ -18,4 +18,11 @@ $form->html_form(UserData::getUserTl(), config('form/facet.forma'));
|
|||
<?= __('app.limit_content'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</main>
|
||||
</main>
|
||||
|
||||
<aside>
|
||||
<div class="box text-sm bg-violet">
|
||||
<h3 class="uppercase-box"><?= __('app.help'); ?></h3>
|
||||
<?= __('help.add_' . $data['type']); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -3,10 +3,9 @@ $fs = $data['facet'];
|
|||
$url = $fs['facet_type'] == 'category' ? url('web.dir', ['cat' => 'cat', 'slug' => $fs['facet_slug']]) : url($fs['facet_type'], ['slug' => $fs['facet_slug']]);
|
||||
?>
|
||||
|
||||
<main class="w-100">
|
||||
|
||||
<main class="col-two">
|
||||
<div class="box-flex bg-violet justify-between">
|
||||
<p class="m0 text-xl"><?= __('app.' . $fs['facet_type']); ?></p>
|
||||
<p class="m0 text-xl"><?= __('app.edit_' . $data['type']); ?></p>
|
||||
<ul class="nav">
|
||||
|
||||
<?= Tpl::insert(
|
||||
|
@ -201,4 +200,10 @@ $url = $fs['facet_type'] == 'category' ? url('web.dir', ['cat' => 'cat', 'slug'
|
|||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
</main>
|
||||
<aside>
|
||||
<div class="box text-sm bg-violet">
|
||||
<h3 class="uppercase-box"><?= __('app.help'); ?></h3>
|
||||
<?= __('help.edit_' . $data['type']); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -1,5 +1,5 @@
|
|||
<main class="col-two">
|
||||
<div class="box-flex">
|
||||
<div class="box-flex bg-violet justify-between">
|
||||
<p class="m0"><?= __('app.' . $data['sheet']); ?></p>
|
||||
</div>
|
||||
<div class="box">
|
||||
|
@ -44,6 +44,6 @@
|
|||
</main>
|
||||
<aside>
|
||||
<div class="box bg-violet text-sm">
|
||||
<?= __('app.messages_info'); ?>
|
||||
<?= __('help.messages_info'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -1,4 +1,4 @@
|
|||
<main>
|
||||
<main class="col-two">
|
||||
<div class="box-flex bg-violet justify-between">
|
||||
<p class="m0"><?= __('app.' . $data['sheet']); ?></p>
|
||||
<form action="<?= url('notif.remove'); ?>" class="right">
|
||||
|
@ -37,6 +37,6 @@
|
|||
</main>
|
||||
<aside>
|
||||
<div class="box bg-violet text-sm sticky top-sm">
|
||||
<?= __('app.notifications_info'); ?>
|
||||
<?= __('help.notifications_info'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -1,8 +1,6 @@
|
|||
<main class="col-two">
|
||||
<div class="box">
|
||||
|
||||
<a href="/"><?= __('app.home'); ?></a> /
|
||||
<span class="red"><?= __('app.add_option', ['name' => __('app.post')]); ?></span>
|
||||
<div class="box pt0">
|
||||
<h2><?= __('app.add_post'); ?></h2>
|
||||
|
||||
<form class="max-w780" action="<?= url('content.create', ['type' => 'post']); ?>" method="post" enctype="multipart/form-data">
|
||||
<?= csrf_field() ?>
|
||||
|
@ -60,7 +58,7 @@
|
|||
|
||||
<?= Tpl::insert('/_block/form/editor', ['height' => '250px', 'type' => 'post-telo', 'id' => 0]); ?>
|
||||
|
||||
<?php if (UserData::getRegType(UserData::USER_FIRST_LEVEL))) : ?>
|
||||
<?php if (UserData::getRegType(UserData::USER_FIRST_LEVEL)) : ?>
|
||||
<?= Tpl::insert('/_block/form/radio', [
|
||||
'data' => [
|
||||
[
|
||||
|
@ -117,4 +115,10 @@
|
|||
<p><?= Html::sumbit(__('app.create')); ?></p>
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
</main>
|
||||
<aside>
|
||||
<div class="box text-sm bg-violet">
|
||||
<h3 class="uppercase-box"><?= __('app.help'); ?></h3>
|
||||
<?= __('help.add_post'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -1,8 +1,7 @@
|
|||
<?php $post = $data['post']; ?>
|
||||
<main class="col-two">
|
||||
<div class="box">
|
||||
|
||||
<a href="/"><?= __('app.home'); ?></a> / <span class="red"><?= __('app.edit_option', ['name' => __('app.' . $post['post_type'])]); ?></span>
|
||||
<div class="box pt0">
|
||||
<h2><?= __('app.edit_' . $post['post_type']); ?></h2>
|
||||
|
||||
<form class="max-w780" action="<?= url('content.change', ['type' => 'post']); ?>" method="post" enctype="multipart/form-data">
|
||||
<?= csrf_field() ?>
|
||||
|
@ -176,4 +175,10 @@
|
|||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
</main>
|
||||
<aside>
|
||||
<div class="box box text-sm bg-violet">
|
||||
<h3 class="uppercase-box"><?= __('app.help'); ?></h3>
|
||||
<?= __('help.edit_' . $post['post_type']); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -59,6 +59,6 @@
|
|||
</main>
|
||||
<aside>
|
||||
<div class="box bg-violet text-sm">
|
||||
<?= __('app.avatar_info'); ?>
|
||||
<?= __('help.avatar_info'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -20,6 +20,6 @@ $form->html_form(UserData::getUserTl(), config('form/user-notifications'));
|
|||
</main>
|
||||
<aside>
|
||||
<div class="box bg-violet text-sm">
|
||||
<?= __('app.notification_info'); ?>
|
||||
<?= __('help.notification_info'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -20,6 +20,6 @@ $form->html_form(UserData::getUserTl(), config('form/user-security'));
|
|||
</main>
|
||||
<aside>
|
||||
<div class="box bg-violet text-sm">
|
||||
<?= __('app.security_info'); ?>
|
||||
<?= __('help.security_info'); ?>
|
||||
</div>
|
||||
</aside>
|
|
@ -1,4 +1,4 @@
|
|||
<main>
|
||||
<main class="col-two">
|
||||
<?= Tpl::insert('/content/user/setting/nav', ['data' => $data]); ?>
|
||||
|
||||
<div class="box">
|
||||
|
@ -91,6 +91,6 @@
|
|||
</main>
|
||||
<aside>
|
||||
<div class="box text-sm bg-violet">
|
||||
<?= __('app.setting_info'); ?>
|
||||
<?= __('help.setting_info'); ?>
|
||||
</div>
|
||||
</aside>
|
14
resources/views/test/content/facets/topic.php
Normal file
14
resources/views/test/content/facets/topic.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php $topic = $data['facet']; ?>
|
||||
<main class="w-100">
|
||||
<?php if ($topic['facet_is_deleted'] == 0) : ?>
|
||||
<?= Tpl::insert('/content/facets/topic-header', ['topic' => $topic, 'data' => $data]); ?>
|
||||
<?= Tpl::insert('/content/post/post', ['data' => $data]); ?>
|
||||
<?= Html::pagination($data['pNum'], $data['pagesCount'], $data['sheet'], url('topic', ['slug' => $topic['facet_slug']])); ?>
|
||||
|
||||
<?php else : ?>
|
||||
<div class="center">
|
||||
<i class="bi-x-octagon text-8xl"></i>
|
||||
<div class="mt5 gray"><?= __('app.remote'); ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</main>
|
31
resources/views/test/content/post/link.php
Normal file
31
resources/views/test/content/post/link.php
Normal file
|
@ -0,0 +1,31 @@
|
|||
<main class="w-100">
|
||||
<div class="box">
|
||||
<?php if ($data['site']['item_title']) : ?>
|
||||
<div class="right mt15">
|
||||
<?= Html::votes($data['site'], 'item', 'ps', 'bi-heart mr10'); ?>
|
||||
</div>
|
||||
<h1><?= $data['site']['item_title']; ?>
|
||||
<?php if (UserData::checkAdmin()) : ?>
|
||||
<a class="text-sm ml5" title="<?= __('app.edit'); ?>" href="<?= url('web.edit', ['id' => $data['site']['item_id']]); ?>">
|
||||
<i class="bi-pencil"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</h1>
|
||||
<div class="gray">
|
||||
<?= Html::fragment(Content::text($data['site']['item_content'], 'line'), 200); ?>
|
||||
</div>
|
||||
<div class="gray mt5 mb5">
|
||||
<a class="green" rel="nofollow noreferrer ugc" href="<?= $data['site']['item_url']; ?>">
|
||||
<?= Html::websiteImage($data['site']['item_id'], 'favicon', $data['site']['item_domain'], 'favicons'); ?>
|
||||
<?= $data['site']['item_url']; ?>
|
||||
</a>
|
||||
<span class="right gray-600"><i class="bi-journal mr5"></i> <?= $data['site']['item_count']; ?></span>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<h1><?= __('app.domain') . ': ' . $data['domain']; ?></h1>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?= Tpl::insert('/content/post/post', ['data' => $data]); ?>
|
||||
<?= Html::pagination($data['pNum'], $data['pagesCount'], null, url('domain', ['domain' => $data['site']['item_domain']])); ?>
|
||||
</main>
|
|
@ -2,10 +2,10 @@
|
|||
<footer>
|
||||
<div class="wrap">
|
||||
<div class="text-sm right">
|
||||
<a class="gray-600 mr15" href="<?= url('search'); ?>"><?= __('search'); ?></a>
|
||||
<a class="gray-600 mr15" href="<?= url('blogs.all'); ?>"><?= __('blogs'); ?></a>
|
||||
<a class="gray-600 mr15" href="<?= url('topics.all'); ?>"><?= __('topics'); ?></a>
|
||||
<a class="gray-600" href="/info/article/information"><?= __('info'); ?></a>
|
||||
<a class="gray-600 mr15" href="<?= url('search'); ?>"><?= __('app.search'); ?></a>
|
||||
<a class="gray-600 mr15" href="<?= url('blogs.all'); ?>"><?= __('app.blogs'); ?></a>
|
||||
<a class="gray-600 mr15" href="<?= url('topics.all'); ?>"><?= __('app.topics'); ?></a>
|
||||
<a class="gray-600" href="/info/article/information"><?= __('app.info'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -45,7 +45,6 @@ Route::before('Designator', [UserData::USER_FIRST_LEVEL, '>='])->getGroup();
|
|||
// end
|
||||
|
||||
Route::get('/add/post/{topic_id}')->controller('Post\AddPostController', ['post'])->where(['topic_id' => '[0-9]+']);
|
||||
Route::get('/add/page/{topic_id}')->controller('Post\AddPostController', ['page'])->where(['topic_id' => '[0-9]+']);
|
||||
|
||||
Route::get('/post/img/{id}/remove')->controller('Post\EditPostController@imgPostRemove')->where(['id' => '[0-9]+']);
|
||||
Route::get('/@{login}/delete/cover')->controller('User\SettingController@coverRemove')->where(['login' => '[A-Za-z0-9]+'])->name('delete.cover');
|
||||
|
|
Loading…
Reference in a new issue