1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 01:14:24 +03:00
ifhub.club/application/frontend/components/topic/topic-add-type.tpl
2016-04-07 14:11:09 +07:00

20 lines
627 B
Smarty

{**
* Подключение шаблона редактировани топика определенного типа
*
* @param object $topic
* @param boolean $isPreview
*}
{component_define_params params=[ 'topic', 'type', 'blogs', 'blogId', 'skipBlogs', 'mods', 'classes', 'attributes' ]}
{$typeCode = $type->getCode()}
{if $LS->Topic_IsAllowTopicType($typeCode)}
{$template = $LS->Component_GetTemplatePath('topic', "topic-add-type-{$typeCode}")}
{if $template}
{component "topic.topic-add-type-$typeCode" params=$params}
{else}
{component 'topic.add' params=$params}
{/if}
{/if}