1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-17 05:44:26 +03:00
ifhub.club/application/frontend/components/tags-personal/tags.tpl

34 lines
1,018 B
Smarty
Raw Normal View History

2014-10-22 17:55:32 +03:00
{**
* Список тегов
*}
{extends 'component@tags.tags'}
{block 'tags_options' append}
2016-01-19 04:34:44 +02:00
{component_define_params params=[ 'targetId', 'tagsPersonal', 'isEditable' ]}
2015-10-27 11:02:57 +02:00
{$attributes = array_merge( $attributes|default:[], [
2016-01-19 04:34:44 +02:00
'data-param-target_id' => $targetId
2015-10-27 11:02:57 +02:00
])}
{/block}
2014-10-22 17:55:32 +03:00
{block 'tags_list' append}
2015-10-27 11:02:57 +02:00
{* Персональные теги *}
{if $oUserCurrent}
2016-01-19 04:34:44 +02:00
{foreach $tagsPersonal as $tag}
2015-10-27 11:02:57 +02:00
{component 'tags' template='item'
2015-11-09 16:37:00 +02:00
text=$tag->getText()
url=$tag->getUrl()
2015-10-27 11:02:57 +02:00
classes="js-tags-personal-tag"
mods="personal"}
{/foreach}
2014-10-22 17:55:32 +03:00
2015-10-27 11:02:57 +02:00
{* Кнопка "Изменить теги" *}
2016-01-19 04:34:44 +02:00
<li class="ls-tags-item ls-tags-personal-edit js-tags-personal-edit" {if $isEditable}style="display:none;"{/if}>
2015-10-28 13:00:45 +02:00
<a href="#" class="ls-link-dotted">
2015-10-27 11:02:57 +02:00
{component 'icon' icon='edit'}
{lang 'tags_personal.edit'}
</a>
</li>
{/if}
2014-10-22 17:55:32 +03:00
{/block}