1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-28 20:45:00 +03:00
ifhub.club/application/frontend/components/topic/topic-add-type.tpl

26 lines
902 B
Smarty
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{**
* Подключение шаблона редактировани топика определенного типа
*
* @param object $topic
* @param boolean $isPreview
*}
{$type = $smarty.local.type}
{$typeCode = $type->getCode()}
{if $LS->Topic_IsAllowTopicType( $typeCode )}
{$template = $LS->Component_GetTemplatePath('topic', "topic-add-type-{$typeCode}" )}
{* Если для указанного типа существует шаблон, то подключаем его *}
{* Иначе подключаем дефолтный шаблон топика *}
{if ! $template}
{$template = $LS->Component_GetTemplatePath('topic', 'add')}
{/if}
{include "$template"
topic=$smarty.local.topic
type=$smarty.local.type
blogs=$smarty.local.blogs
blogId=$smarty.local.blogId
skipBlogs=$smarty.local.skipBlogs }
{/if}