<{if $subject}>

	<{t section="Mail"}>Hvad synes du om din ordre?<{/t}>

<{else}>

	<html>

	<head>
		<title><{t section="Mail"}>Hvad synes du om din ordre?<{/t}></title>
		<style type="text/css">
			html, body {
				background:#f2f2f2;
				font-family:helvetica, sans-serif;
				margin:0px;
				padding:0px;
			}

			#main {
				margin:50px;
				padding:20px;
				background:#fff;
			}

			fieldset {
				border:1px solid #eee;
				margin: 20px 0px 20px 0px;
			}

			fieldset legend {
				font-weight:bold;
			}

			a {
				color:#00a;
				text-decoration:none;
			}

			.product {
				margin-bottom:20px;
			}

			.product .img {
				width:70px;
				float:left;
			}

			.product .inner-product {
				padding:0px 0px 0px 0px;
				float:left;
			}
		</style>
	</head>

	<body>

		<div id="main">

			<{if $logo = $webshop->getLogo()}>
				<h1><a href="/"><img src="<{$logo->getInline(100, 100, 'fit')}>" alt="<{$webshop->getName()|escape}>" /></a></h1>
			<{else}>
				<h1><a href="/"><{$webshop->getName()|escape}></a></h1>
			<{/if}>

			<p><strong><{t section="Mail"}>Hej<{/t}> <{$order->getOrderFirstName()|escape}></strong></p>
			<p><{t section="Mail"}>For noget tid siden købte du:<{/t}></p>

			<{assign var="products" value=$order->getProducts()}>
			<{section name="i" loop=$products}>
				<div class="product">
					<div class="img">
						<{assign var="image" value=$products[i]->getImage()}>
						<{if $image}>
							<a href="<{$products[i]->getRemoteUrl()|escape}>" target="_blank"><img src="<{$image->getInline(60, 60, 'box')}>" style="border-radius:5px; float:left;"></a>
						<{/if}>
					</div>

					<div class="inner-product">
						<div><strong><{$products[i]->getAmount()}> stk. <a href="<{$products[i]->getRemoteUrl()|escape}>" target="_blank"><{$products[i]->getName()|escape}></a></strong></div>

						<{assign var="attributes" value=$products[i]->getAttributes()}>
						<{if $attributes}>
							<{section name="j" loop=$attributes}>
								<div style="font-size:0.9em;"><{$attributes[j].name}>: <{$attributes[j].val}></div>
							<{/section}>
						<{/if}>

					</div>

					<div style="clear:both;"></div>
				</div>
			<{/section}>

			<div class="clear"></div>

			<p><{t section="Mail" url=$order->getPublicUrl('product_review')}>Vi ville blive rigtig glade hvis du ville skrive en <a href="{url}">anmeldelse af dem</a>.<{/t}></p>

			<br/><br/><br/>
			<p><small><a href="<{$webshop->getUrl()|escape}>/unsubscribe?email=<{$order->getEmail()|escape}>&type=product_review"><{t section="Mail"}>Afmeld disse mails<{/t}></a></small></p>

		</div>

	</body>

	</html>

<{/if}>