<%IF $brand_id THEN
QUERY Product(brand_id=$brand_id) PAGE $brand_pagenum PAGEROWS $Pagerows DO $brand_numpages=$Numpages $Data.Brand_numproducts=$Pagerows
DISPLAY
NEXTROW ENDQUERY
ENDIF
$xView='DEFAULT'
$xTransform='THUMBS2'
%>
<%$prodvar_brand_id=$brand_id
$LINK = $Request.file
IF $Shop.opt_nice_url AND $seo_url THEN
$LINK = $LINK + "/"+$seo_url+"?"
ELSE
$LINK = $LINK + '?brand_id='+$brand_id+"&"
ENDIF
/* Filter */
IF $Shop.opt_filter AND $SHOW!="new" AND $SHOW!="campaign" AND $SHOW!="promote" THEN
QUERY BrandProductFilter(brand_id=$brand_id) DO
$no_of_filters=$Numrows
DISPLAY NEXTROW ENDQUERY
ENDIF
IF $Shop.opt_filter AND $no_of_filters THEN
INCLUDE 'filter-brand.htm'
ELSE
IF $Data.order=='DESC' THEN $rev_order='ASC' ELSE $rev_order='DESC' ENDIF
IF $opt_layout THEN
QUERY LayoutTemplate(template_type='product-small',available_in_shop=1,language=$language) DO
IF $Brand_numproducts AND ($product_display_sorting OR $LayoutTemplate.Numrows OR $show_numproduct_chooser) THEN%>
<%ENDIF /*IF $product_display_sorting OR....*/
ENDQUERY
ENDIF /*IF $opt_layout...*/%>
>' AND ''!='<
>' THEN%> data-url='/brand.html?brand_id=$brand_id' data-xTransform="$xTransform" data-required-params="saved_pagerows=$Data.saved_pagerows;<%IF $Data.orderby THEN%>&order=$Data.order&orderby=$Data.orderby<%ENDIF%>" data-pagenum-name='Pagenum' data-include='ppe-<>-<>'<%ENDIF%>>
<%%INCLUDE 'brand/brand-products-data.htm'%%>
<%ENDIF /*IF IF $Shop.opt_filter...*/%>