<{capture name="title"}><{$landing_page->getName()}><{/capture}>

<h1><{$landing_page->getName()|escape}></h1>

<p><{$landing_page->getDescription()}></p>

<{*
	<form action="" method="post">
		<{section name="i" loop=$products}>
			<{assign var="profile" value=$products[i]->getProfile()}>
			<{assign var="attr" value=$profile->getAttributeList()}>

			<h3><{$products[i]->getName()|escape}><h3>

			<{assign var="index" value=$smarty.section.i.index}>

			<{section name="j" loop=$attr}>
				<{if $attr[j]->getIsVariant() && $attr[j]->getDataType() == "valuelist"}>

					<{assign var="values" value=$attr[j]->getValues()}>

					<select name="add_to_basket[<{$index}>][attributes][<{$attr[j]->getAttributeId()}>]" id="a<{$attr[j]->getAttributeId()}>">

						<{section name="k" loop=$values}>

							<{assign var="attribute_price" value=$products[i]->getAttributePrice($values[k]->getAttributeValueId())}>
							<option value="<{$values[k]->getAttributeValueId()}>">
								<{$values[k]->getVal()|escape}>
								<{if $attribute_price}>
									[<{$attribute_price|number_format:2:",":"."}> <{$webshop->getCurrency()}>]
								<{/if}>
							</option>

						<{/section}>
					</select>

				<{/if}>

			<{/section}>

			<input type="hidden" name="add_to_basket[<{$index}>][product_id]" value="<{$products[i]->getProductId()}>"/>
			<input type='hidden' name="add_to_basket[<{$index}>][amount]" value="1"/>
		<{/section}>

		<input type="submit" value="Læg alle i kurven">
	</form>
*}>


<div class="products">
	<div class="row">
		<{section name="i" loop=$products}>
			<div class="col-lg-3 col-md-4 col-6 mb-3">
				<{include file="inner-product.html" product=$products[i]}>
			</div>
		<{/section}>
	</div>
</div>

<{if $pager}>
	<{assign var="pages" value=$pager->render()}>
	<{if $pages}>
		<p class="pager" id="pager"><{$pages}></p>
	<{/if}>
<{/if}>