Для отображения столбцов в последовательности ФОТО | Обьявление | ЦЕНА | Дата публикации, дата окончания публикации необходимо в приведенном выше XSL-шаблоне отображения списка объявлений следующий код:
<!-- Шаблон для товара -->
<xsl:template match="item">
<!-- Определяем цвет фона -->
<xsl:variable name="background_color">
<xsl:choose>
<xsl:when test="(position() + 1) mod 2 > 0">#f7f7f7</xsl:when>
<xsl:otherwise>#ffffff</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<table width="97%" border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 7px; margin-bottom: 15px; margin-right: 10px; border-bottom: 1px solid #dadada">
<tr>
<td width="130" class="cat_price_label" style="padding-left: 10px" valign="middle">
<div style="display: inline">
<xsl:choose>
<xsl:when test="price != 0">
<span style="font-size: 11pt">
<b>
<xsl:variable name="price" select="price"/>
<xsl:value-of select="format-number($price, '### ###', 'my')"/> <xsl:value-of disable-output-escaping="yes" select="currency"/>
</b>
</span>
</xsl:when>
<xsl:otherwise>
<span style="font-size: 11pt">
<b>цена договорная</b>
</span>
</xsl:otherwise>
</xsl:choose>
<!-- Если цена со скидкой - выводим ее -->
<xsl:if test="price!=price_tax">
<br/>
<font color="gray">
<strike>
<span style="font-size: 12pt">
<xsl:value-of disable-output-escaping="yes" select="price_tax"/> <xsl:value-of disable-output-escaping="yes" select="currency"/></span>
</strike>
</font>
</xsl:if>
</div>
</td>
<xsl:if test="small_image != ''">
<xsl:variable name="td_image_width" select="small_image/@width +10"/>
<td class="cat_t" style="width:{$td_image_width}px" valign="top" align="center">
<!-- Изображение для товара, если есть -->
<xsl:if test="small_image/node() and small_image!=''">
<a href="{/shop/path}{fullpath}{path}/">
<img src="{small_image}" style="border: 1px solid #dadada"/>
</a>
</xsl:if>
</td>
</xsl:if>
<td style="padding-left:12px;" valign="middle">
<div>
<a href="{/shop/path}{fullpath}{path}/" class="cat_title">
<span style="font-size: 13pt">
<b>
<xsl:value-of disable-output-escaping="yes" select="name"/>
</b>
</span>
</a>
</div>
<div style="margin-top:4px;margin-bottom:10px;margin-left:5px;font-size:11px;"></div>
</td>
<td width="128" valign="middle">
<xsl:value-of disable-output-escaping="yes" select="property[@id = 61]/value"/>
</td>
</tr>
</table>
<!--</div>-->
</xsl:template>
Заменить на код:
<!-- Шаблон для товара -->
<xsl:template match="item">
<!-- Определяем цвет фона -->
<xsl:variable name="background_color">
<xsl:choose>
<xsl:when test="(position() + 1) mod 2 > 0">#f7f7f7</xsl:when>
<xsl:otherwise>#ffffff</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<table width="97%" border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 7px; margin-bottom: 15px; margin-right: 10px; border-bottom: 1px solid #dadada">
<tr>
<xsl:if test="small_image != ''">
<xsl:variable name="td_image_width" select="small_image/@width +10"/>
<td class="cat_t" style="width:{$td_image_width}px" valign="top" align="center">
<!-- Изображение для товара, если есть -->
<xsl:if test="small_image/node() and small_image!=''">
<a href="{/shop/path}{fullpath}{path}/">
<img src="{small_image}" style="border: 1px solid #dadada"/>
</a>
</xsl:if>
</td>
</xsl:if>
<td style="padding-left:12px;" valign="middle">
<div>
<a href="{/shop/path}{fullpath}{path}/" class="cat_title">
<span style="font-size: 13pt">
<b>
<xsl:value-of disable-output-escaping="yes" select="name"/>
</b>
</span>
</a>
</div>
<div style="margin-top:4px;margin-bottom:10px;margin-left:5px;font-size:11px;"></div>
</td>
<td width="130" class="cat_price_label" style="padding-left: 10px" valign="middle">
<div style="display: inline">
<xsl:choose>
<xsl:when test="price != 0">
<span style="font-size: 11pt">
<b>
<xsl:variable name="price" select="price"/>
<xsl:value-of select="format-number($price, '### ###', 'my')"/> <xsl:value-of disable-output-escaping="yes" select="currency"/>
</b>
</span>
</xsl:when>
<xsl:otherwise>
<span style="font-size: 11pt">
<b>цена договорная</b>
</span>
</xsl:otherwise>
</xsl:choose>
<!-- Если цена со скидкой - выводим ее -->
<xsl:if test="price!=price_tax">
<br/>
<font color="gray">
<strike>
<span style="font-size: 12pt">
<xsl:value-of disable-output-escaping="yes" select="price_tax"/> <xsl:value-of disable-output-escaping="yes" select="currency"/></span>
</strike>
</font>
</xsl:if>
</div>
</td>
<!-- Дата публикации -->
<td>
<xsl:value-of select="date" />
</td>
<!-- Дата окончания публикации -->
<td>
<xsl:if test="putend_date != '00.00.0000 00:00:00'">
<xsl:value-of select="substring-before(putend_date, ' ')" />
</xsl:if>
</td>
<td width="128" valign="middle">
<xsl:value-of disable-output-escaping="yes" select="property[@id = 61]/value"/>
</td>
</tr>
</table>
<!--</div>-->
</xsl:template>
Для отображения на главной количества объявлений в каждой категории необходимо в XSL-шаблоне, отвечающем за отображение данного списка категорий, рядом с отображением названия категории добавить код
<span style="color: #aaaaaa">(<xsl:value-of select="count_all_items"/>)</span>