Added brand information page

This commit is contained in:
Franck Allimant
2014-06-30 23:02:28 +02:00
parent c1e3694ab8
commit a6ab169080
3 changed files with 232 additions and 24 deletions

View File

@@ -7,33 +7,72 @@
{/loop}
{if $_context_ == "catalog"}
<channel>
{if $_id_ == "" }
<title>{intl l="All products in"} {$store_name}</title>
<link>{url path="/"}</link>
<description>{$store_name}</description>
<language>{$locale|replace:'_':'-'|lower}</language>
<lastBuildDate>{$smarty.now|date_format:'r'}</lastBuildDate>
<generator>Thelia 2.0</generator>
{else}
{loop type="category" name="category" id=$_id_ lang=$_lang_ }
<title>{intl l="All products in"} {$TITLE} - {$store_name}</title>
<link>{$URL}</link>
<description>{$CHAPO}</description>
<language>{$LOCALE|replace:'_':'-'|lower}</language>
<pubDate>{format_date date=$UPDATE_DATE format="r"}</pubDate>
<lastBuildDate>{$smarty.now|date_format:'r'}</lastBuildDate>
<generator>Thelia 2.0</generator>
{if $_id_ == "" }
<title>{intl l="All products in"} {$store_name}</title>
<link>{url path="/"}</link>
<description>{$store_name}</description>
<language>{$locale|replace:'_':'-'|lower}</language>
<lastBuildDate>{$smarty.now|date_format:'r'}</lastBuildDate>
<generator>Thelia 2.0</generator>
{else}
{loop type="category" name="category" id=$_id_ lang=$_lang_ }
<title>{intl l="All products in"} {$TITLE} - {$store_name}</title>
<link>{$URL}</link>
<description>{$CHAPO}</description>
<language>{$LOCALE|replace:'_':'-'|lower}</language>
<pubDate>{format_date date=$UPDATE_DATE format="r"}</pubDate>
<lastBuildDate>{$smarty.now|date_format:'r'}</lastBuildDate>
<generator>Thelia 2.0</generator>
{/loop}
{/if}
{loop type="product" name="product" category_default=$_id_ lang=$_lang_ order="id_reverse" }
<item>
<title>{$TITLE}</title>
<link>{$URL}</link>
<description>{$CHAPO}</description>
<pubDate>{format_date date=$CREATE_DATE format="r"}</pubDate>
<guid>{$URL}</guid>
</item>
{/loop}
{/if}
{loop type="product" name="product" category_default=$_id_ lang=$_lang_ order="id_reverse" }
<item>
<title>{$TITLE}</title>
</channel>
{elseif $_context_ == "brand"}
<channel>
{if $_id_ == "" }
<title>{intl l="All brands in %store" store="$store_name"}</title>
<link>{url path="/"}</link>
<description>{$store_name}</description>
<language>{$locale|replace:'_':'-'|lower}</language>
<lastBuildDate>{$smarty.now|date_format:'r'}</lastBuildDate>
<generator>Thelia 2.0</generator>
{loop type="brand" name="brand-list" lang=$_lang_ order="id-reverse" }
<item>
<title>{$TITLE}</title>
<link>{$URL}</link>
<description>{$CHAPO}</description>
<pubDate>{format_date date=$CREATE_DATE format="r"}</pubDate>
<guid>{$URL}</guid>
</item>
{/loop}
{else}
{loop type="brand" name="brand-desc" lang=$_lang_ id=$_id_}
<title>{intl l="All products for brand %title in %store" title="$TITLE" store="$store_name"}</title>
<link>{$URL}</link>
<description>{$CHAPO}</description>
<pubDate>{format_date date=$CREATE_DATE format="r"}</pubDate>
<guid>{$URL}</guid>
</item>
{/loop}
<language>{$locale|replace:'_':'-'|lower}</language>
<lastBuildDate>{$smarty.now|date_format:'r'}</lastBuildDate>
<generator>Thelia 2.0</generator>
{/loop}
{/if}
{loop type="product" name="products-in-brand" brand=$_id_ lang=$_lang_ order="id_reverse" }
<item>
<title>{$TITLE}</title>
<link>{$URL}</link>
<description>{$CHAPO}</description>
<pubDate>{format_date date=$CREATE_DATE format="r"}</pubDate>
<guid>{$URL}</guid>
</item>
{/loop}
</channel>
{else}
<channel>