mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 16:04:24 +03:00
16 lines
683 B
Smarty
16 lines
683 B
Smarty
{if $oPropertyItem}
|
|
{* Проверяем наличие кастомного шаблона item.[type].[target_type].tpl *}
|
|
{$sTemplateType="property/item.{$oPropertyItem->getType()}.{$oPropertyItem->getTargetType()}.tpl"}
|
|
{if $LS->Viewer_TemplateExists($sTemplateType)}
|
|
{include $sTemplateType}
|
|
{else}
|
|
{* Проверяем наличие кастомного шаблона item.[type].tpl *}
|
|
{$sTemplateType="property/item.{$oPropertyItem->getType()}.tpl"}
|
|
{if $LS->Viewer_TemplateExists($sTemplateType)}
|
|
{include $sTemplateType}
|
|
{else}
|
|
{* Показываем стандартный шаблон *}
|
|
{include 'property/item.base.tpl'}
|
|
{/if}
|
|
{/if}
|
|
{/if} |