<%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 IF $Data.Brand_numproducts THEN $xView='DEFAULT' $xTransform='RS_THUMBS2' %> <%$prodvar_brand_id=$brand_id $LINK = CALL GET_SEO_URL('brand', $brand_id, $seo_url) $LINK = CALL SEO_URL_PREPARE_PARAMETER($LINK) /* 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 'rs/rs-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%>
<%IF $Brand_numproducts AND $show_numproduct_chooser THEN%>
<%ENDIF%> <%IF $product_display_sorting THEN%>
<%ENDIF%>
<%ENDIF /*IF $product_display_sorting...*/ IF $LayoutTemplate.Numrows>0 THEN%>
<%ENDIF DISPLAY /*LayoutTemplate*/%>
<%NEXTROW IF $LayoutTemplate.Numrows>0 THEN%>
<%ENDIF%> <%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...*/%>
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%> class="<> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <>"> <%%INCLUDE 'responsive/brand/brand-products-data.htm'%%>
<%ENDIF /*IF IF $Shop.opt_filter...*/%> <%ENDIF%>