1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-17 07:10:48 +03:00

Вынос текстовок

This commit is contained in:
Denis Shakhov 2016-12-27 15:57:29 +07:00
parent 5dcf2abfc3
commit 6cae0cb342
8 changed files with 52 additions and 23 deletions

View file

@ -43,9 +43,9 @@
<h3>{lang 'blog.blocks.search.type.title'}</h3>
<div class="ls-field-checkbox-group">
{component 'field' template='radio' inputClasses='js-search-ajax-blog-type' name='blog_search_type' value='' label='Любой' checked=true}
{component 'field' template='radio' inputClasses='js-search-ajax-blog-type' name='blog_search_type' value='open' label='Открытый'}
{component 'field' template='radio' inputClasses='js-search-ajax-blog-type' name='blog_search_type' value='close' label='Закрытый'}
{component 'field' template='radio' inputClasses='js-search-ajax-blog-type' name='blog_search_type' value='' label={lang 'blog.search.form.type.any'} checked=true}
{component 'field' template='radio' inputClasses='js-search-ajax-blog-type' name='blog_search_type' value='open' label={lang 'blog.search.form.type.public'}}
{component 'field' template='radio' inputClasses='js-search-ajax-blog-type' name='blog_search_type' value='close' label={lang 'blog.search.form.type.private'}}
</div>
{* Тип принадлежности блога *}
@ -53,9 +53,9 @@
<h3>{lang 'blog.blocks.search.relation.title'}</h3>
<div class="ls-field-checkbox-group">
{component 'field' template='radio' inputClasses='js-search-ajax-blog-relation' name='blog_search_relation' value='all' label='Все' checked=true}
{component 'field' template='radio' inputClasses='js-search-ajax-blog-relation' name='blog_search_relation' value='my' label='Мои'}
{component 'field' template='radio' inputClasses='js-search-ajax-blog-relation' name='blog_search_relation' value='join' label='Читаю'}
{component 'field' template='radio' inputClasses='js-search-ajax-blog-relation' name='blog_search_relation' value='all' label={lang 'blog.search.form.relation.all'} checked=true}
{component 'field' template='radio' inputClasses='js-search-ajax-blog-relation' name='blog_search_relation' value='my' label={lang 'blog.search.form.relation.my'}}
{component 'field' template='radio' inputClasses='js-search-ajax-blog-relation' name='blog_search_relation' value='join' label={lang 'blog.search.form.relation.joined'}}
</div>
{/if}

View file

@ -176,13 +176,13 @@
this._load( 'load', params, function( response ) {
var commentsLoaded = response.comments,
сountLoaded = commentsLoaded.length;
countLoaded = commentsLoaded.length;
// Убираем подсветку у новых комментариев
if ( flush ) this.getCommentsNew().lsComment( 'notNew' );
// Скрываем сообщение о пустом списке
if ( ~ this.getComments().length && сountLoaded ) this.elements.empty.hide();
if ( ~ this.getComments().length && countLoaded ) this.elements.empty.hide();
// Вставляем новые комментарии
$.each( commentsLoaded, function( index, item ) {
@ -193,7 +193,7 @@
}.bind( this ));
// Обновляем данные
if ( сountLoaded && response.last_comment_id ) {
if ( countLoaded && response.last_comment_id ) {
this.setLastCommentId( response.last_comment_id );
// Обновляем кол-во комментариев в заголовке
@ -203,7 +203,7 @@
// Разворачиваем все ветки если идет просто подгрузка комментариев
// или если при добавления комментария текущим пользователем
// помимо этого комментария подгружаются еще и ранее добавленные комментарии
if ( this.options.folding && ( ( ! commentSelfId && сountLoaded ) || ( commentSelfId && сountLoaded - 1 > 0 ) ) ) {
if ( this.options.folding && ( ( ! commentSelfId && countLoaded ) || ( commentSelfId && countLoaded - 1 > 0 ) ) ) {
this.unfoldAll();
}

View file

@ -9,5 +9,5 @@
{component 'property' template='input.property.video-modal' value=$value}
<p class="ls-mb-20">
<a href="#" class="ls-link-dotted js-modal-toggle-default" data-lsmodaltoggle-modal="modal-property-type-video-{$value->getId()}">Смотреть</a>
<a href="#" class="ls-link-dotted js-modal-toggle-default" data-lsmodaltoggle-modal="modal-property-type-video-{$value->getId()}">{lang 'property.video.watch'}</a>
</p>

View file

@ -10,12 +10,12 @@
{if $oUserCurrent || ! $property->getParam('access_only_auth')}
<a href="{router page="property/download"}{$value->getValueVarchar()}/">{$value->getValueForDisplay()}</a>
{if $valueType->getCountDownloads()}
<br/>Загрузок: {$valueType->getCountDownloads()}
<br/>{lang 'property.file.downloads'}: {$valueType->getCountDownloads()}
{/if}
{else}
Для доступа к файлу <a href="#" class="js-modal-toggle-login">необходимо авторизоваться</a>
{lang 'property.file.forbidden'}
{/if}
{else}
файла нет
{lang 'property.file.empty'}
{/if}
</div>

View file

@ -10,6 +10,6 @@
<img src="{$valueType->getImageWebPath( $valueType->getImageSizeFirst() )}" >
</a>
{else}
изображения нет
{lang 'property.image.empty'}
{/if}
</div>

View file

@ -8,14 +8,14 @@
name = 'is_online'
inputClasses = 'js-search-ajax-user-online'
checked = false
label = 'Сейчас на сайте'}
label = {lang 'user.search.form.is_online'}}
{* Пол *}
<p class="ls-mb-10">Пол</p>
<div class="ls-field-checkbox-group">
{component 'field' template='radio' inputClasses='js-search-ajax-user-sex' name='sex' value='' checked=true label='Любой'}
{component 'field' template='radio' inputClasses='js-search-ajax-user-sex' name='sex' value='man' label='Мужской'}
{component 'field' template='radio' inputClasses='js-search-ajax-user-sex' name='sex' value='woman' label='Женский'}
{component 'field' template='radio' inputClasses='js-search-ajax-user-sex' name='sex' value='' checked=true label={lang 'user.search.form.gender.any'}}
{component 'field' template='radio' inputClasses='js-search-ajax-user-sex' name='sex' value='man' label={lang 'user.search.form.gender.male'}}
{component 'field' template='radio' inputClasses='js-search-ajax-user-sex' name='sex' value='woman' label={lang 'user.search.form.gender.female'}}
</div>
{* Страна/город *}

View file

@ -43,7 +43,7 @@
{* @hook Рейтинг пользователя *}
{hookb run='user_rating' user=$user}
<div class="{$component}-rating">
<div class="{$component}-rating-label">Рейтинг</div>
<div class="{$component}-rating-label">{lang 'vote.rating'}</div>
<div class="{$component}-rating-value">{$user->getRating()}</div>
</div>
{/hookb}

View file

@ -134,7 +134,19 @@ return array(
*/
'search' => array(
'placeholder' => 'Поиск по названию',
'result_title' => 'Найден %%count%% блог;Найдено %%count%% блога;Найдено %%count%% блогов'
'result_title' => 'Найден %%count%% блог;Найдено %%count%% блога;Найдено %%count%% блогов',
'form' => array(
'type' => array(
'any' => 'Любой',
'public' => 'Открытый',
'private' => 'Закрытый'
),
'relation' => array(
'all' => 'Все',
'my' => 'Мои',
'joined' => 'Читаю'
)
)
),
/**
* Приглашения
@ -1223,7 +1235,15 @@ return array(
'search' => array(
'title' => 'Поиск по пользователям',
'placeholder' => 'Поиск по логину',
'result_title' => 'Найден %%count%% пользователь;Найдено %%count%% пользователя;Найдено %%count%% пользователей'
'result_title' => 'Найден %%count%% пользователь;Найдено %%count%% пользователя;Найдено %%count%% пользователей',
'form' => array(
'is_online' => 'Сейчас на сайте',
'gender' => array(
'any' => 'Любой',
'male' => 'Мужской',
'female' => 'Женский'
)
)
),
// Публикации
'publications' => array(
@ -1459,7 +1479,16 @@ return array(
*/
'property' => array(
'video' => array(
'preview' => 'Предпросмотр видео'
'preview' => 'Предпросмотр видео',
'watch' => 'Смотреть'
),
'image' => array(
'empty' => 'Изображения нет'
),
'file' => array(
'forbidden' => 'Для доступа к файлу необходимо авторизоваться',
'downloads' => 'Загрузок',
'empty' => 'Файла нет'
)
),
/**