{**
* XS2:
*
* This file is developed by Solutecs, LLC for the purpose of the company
* and is provided together with XS2 Framework as and inherent part of the
* system. This file can be used on the terms of License Agreement.
*
* +7 (495) 585-0833 / 13 Rusakovskaya street, Moscow 107140 Russia
*
* @link http://www.solutecs.com
* @copyright ©1998-2007 Solutecs, LLC
* @version 1.XX
*}
{* Отображение пути в каталоге *}
{xs2Fetch mod=$_THE.QUE.MOD met="path" atr=$_THE.PARAMS[0]}
{* /Отображение пути в каталоге *}
{* Отображение раздела каталога *}
{xs2GetChildren NType="category" ParId=$_THE.PARAMS[0] var="childCategories"}
{xs2GetNode NodId=$_THE.PARAMS[0] var="category"}
{if $category.Description}
<p>{$category.Description}</p>
{/if}
{if $childCategories}
{* Дочерние категории *}
<p>
{foreach from=$childCategories item="child"}
{strip}
<a href="{xs2Href mod=$_THE.QUE.MOD obj=$child.NType met=$_THE.QUE.MET atr=$child.NodId}">
{$child.NName}
</a>
<br>
{/strip}
{/foreach}
</p>
{/if}
{xs2GetChildren NType="item" ParId=$_THE.PARAMS[0] var="childItems"}
{if $childItems}
{* Товары текущего каталога *}
<p>
{if $childCategories}
<hr>
{/if}
{foreach from=$childItems item="child"}
{strip}
<p>
{if $child.Preview}
<img src="{$child.Preview.path}" width="{$child.Preview.width}" height="{$child.Preview.height}">
<br>
{/if}
<a href="{xs2Href mod=$_THE.QUE.MOD obj=$child.NType met=$_THE.QUE.MET atr=$child.NodId}">
{$child.NName}
</a>
{if $child.Short}
<br>
{$child.Short}
{/if}
</p>
{/strip}
{/foreach}
</p>
{/if}
{if (not $childItems) and (not $childCategories)}
<p>Раздел пуст</p>
{/if}
{* /Отображение раздела каталога *}
|
|