mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
Переименование компонента tags-favourite -> tags-personal
This commit is contained in:
parent
3f01348fbf
commit
aff748533d
|
@ -543,7 +543,7 @@ $config['components'] = array(
|
|||
|
||||
// Компоненты LS CMS
|
||||
'favourite', 'vote', 'auth', 'media', 'property', 'photo', 'note', 'user-list-add', 'subscribe', 'content', 'report', 'comment',
|
||||
'toolbar-scrollup', 'toolbar-scrollnav', 'tags-favourite', 'search-ajax', 'search', 'sort', 'search-form', 'info-list',
|
||||
'toolbar-scrollup', 'toolbar-scrollnav', 'tags-personal', 'search-ajax', 'search', 'sort', 'search-form', 'info-list',
|
||||
'tags', 'userbar', 'modal-create', 'admin', 'user', 'wall', 'blog', 'topic', 'poll', 'activity', 'feed', 'talk'
|
||||
);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "tags-favourite",
|
||||
"name": "tags-personal",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"ls-component": "*",
|
||||
|
@ -7,14 +7,14 @@
|
|||
"modal": "*"
|
||||
},
|
||||
"templates": {
|
||||
"modal": "modal.favourite_tags.tpl",
|
||||
"modal": "modal.tags_personal.tpl",
|
||||
"cloud": "tags-cloud.tpl",
|
||||
"tags-favourite": "tags.tpl"
|
||||
"tags-personal": "tags.tpl"
|
||||
},
|
||||
"scripts": {
|
||||
"tags-favourite": "js/tags-favourite.js"
|
||||
"tags-personal": "js/tags-personal.js"
|
||||
},
|
||||
"styles": {
|
||||
"tags-favourite": "css/tags-favourite.css"
|
||||
"tags-personal": "css/tags-personal.css"
|
||||
}
|
||||
}
|
|
@ -13,7 +13,7 @@
|
|||
{/capture}
|
||||
|
||||
{component 'modal'
|
||||
title = {lang 'favourite_tags.title'}
|
||||
title = {lang 'tags_personal.title'}
|
||||
content = $smarty.capture.modal_content
|
||||
classes = 'js-modal-default'
|
||||
mods = 'favourite-tags'
|
|
@ -17,5 +17,5 @@
|
|||
|
||||
{component 'details'
|
||||
classes = 'js-tags-favourite-cloud'
|
||||
title = "{lang 'favourite_tags.title'} {if $activeTag}({$activeTag}){/if}"
|
||||
title = "{lang 'tags_personal.title'} {if $activeTag}({$activeTag}){/if}"
|
||||
content = $tags}
|
|
@ -13,7 +13,7 @@
|
|||
{block 'tags_list' append}
|
||||
{* Персональные теги *}
|
||||
{if $oUserCurrent}
|
||||
{foreach $smarty.local.tagsFavourite as $tag}
|
||||
{foreach $smarty.local.tagsPersonal as $tag}
|
||||
{component 'tags' template='item'
|
||||
text=$tag
|
||||
url="{$oUserCurrent->getUserWebPath()}favourites/topics/tag/{$tag|escape:'url'}/"
|
||||
|
@ -24,8 +24,8 @@
|
|||
{* Кнопка "Изменить теги" *}
|
||||
<li class="ls-tags-item ls-tags-personal-edit js-tags-personal-edit" {if $smarty.local.isEditable}style="display:none;"{/if}>
|
||||
<a href="#" class="link-dotted">
|
||||
{component 'icon' icon='edit'}
|
||||
{lang 'favourite_tags.edit'}
|
||||
{component 'icon' icon='edit'}
|
||||
{lang 'tags_personal.edit'}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
|
@ -140,10 +140,10 @@
|
|||
{$favourite = $topic->getFavourite()}
|
||||
|
||||
{if ! $isPreview}
|
||||
{component 'tags-favourite'
|
||||
{component 'tags-personal'
|
||||
classes = 'js-tags-favourite'
|
||||
tags = $topic->getTagsArray()
|
||||
tagsFavourite = ( $favourite ) ? $favourite->getTagsArray() : []
|
||||
tagsPersonal = ( $favourite ) ? $favourite->getTagsArray() : []
|
||||
isEditable = ! $favourite
|
||||
targetType = 'topic'
|
||||
targetId = $topic->getId()}
|
||||
|
|
|
@ -1629,9 +1629,9 @@ return array(
|
|||
),
|
||||
),
|
||||
/**
|
||||
* Теги избранных топиков
|
||||
* Персональные теги
|
||||
*/
|
||||
'favourite_tags' => array(
|
||||
'tags_personal' => array(
|
||||
'title' => 'Теги избранного',
|
||||
'edit' => 'изменить свои теги',
|
||||
),
|
||||
|
|
|
@ -163,7 +163,7 @@
|
|||
|
||||
{* Подключение модальных окон *}
|
||||
{if $oUserCurrent}
|
||||
{component 'tags-favourite' template='modal'}
|
||||
{component 'tags-personal' template='modal'}
|
||||
{else}
|
||||
{component 'auth' template='modal'}
|
||||
{/if}
|
||||
|
|
Loading…
Reference in a new issue