mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 09:24:25 +03:00
21 lines
585 B
Smarty
21 lines
585 B
Smarty
{**
|
|
* Избранные теги пользователя
|
|
*
|
|
* @param array $tags
|
|
* @param object $user
|
|
* @param object $activeTag
|
|
*}
|
|
|
|
{$user = $smarty.local.user}
|
|
{$activeTag = $smarty.local.activeTag}
|
|
|
|
{component 'tags' template='cloud'
|
|
tags = $smarty.local.tags
|
|
url = '{$user->getUserWebPath()}favourites/topics/tag/{$tag->getText()|escape:\'url\'}/'
|
|
active = $activeTag
|
|
assign = tags}
|
|
|
|
{component 'accordion' classes='js-tags-favourite-accordion' items=[[
|
|
'title' => "{lang 'favourite_tags.title'} {if $activeTag}({$activeTag}){/if}",
|
|
'content' => $tags
|
|
]]} |