{*
* 2013-2018 Ovidiu Cimpean
*
* Ovidiu Cimpean - Newsletter Pro © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at addons4prestashop@gmail.com.
*
* @author Ovidiu Cimpean <addons4prestashop@gmail.com>
* @copyright 2013-2018 Ovidiu Cimpean
* @license   Do not edit, modify or copy this file
* @version   Release: 4
*}

{capture name=path}<a href="{$link->getPageLink('my-account', true)|escape:'quotes':'UTF-8'}">{l s='My account' mod='newsletterpro'}</a><span class="navigation-pipe">{$navigationPipe|escape:'html':'UTF-8'}</span>{l s='Newsletter Pro Settings'  mod='newsletterpro'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
{include file="$tpl_dir./errors.tpl"}

<h1>{l s='Newsletter Pro Settings'  mod='newsletterpro'}</h1>
<h2>{l s='Set up your newsletter preferences.'  mod='newsletterpro'}</h2>

<div>
	<form action="{$my_account_url|escape:'quotes':'UTF-8'}" method="post" class="std">
		<fieldset>
			<div>
				<input type="checkbox" id="newsletter" name="newsletter" value="1" {if $is_subscribed == 1} checked="checked" {/if} autocomplete="off">
				<label for="newsletter">{l s='Sign up for our newsletter!' mod='newsletterpro'}</label>
			</div>
			
			<div class="clearfix">	
					{include file="$tpl_location"|cat:"templates/front/list_of_interests.tpl"}
			</div>
			
			{if $subscribe_by_category_active}
			<div class="clearfix">
				<h2 style="margin-bottom: 5px;">{l s='Choose your categories of interest:' mod='newsletterpro'}</h2>
				<div id="category-tree" class="category-tree">
					{* HTML CONTENT *}
					{$category_tree|strval}
				</div>
			</div>
			{/if}
			<div class="clearfix" style="margin-top: 15px;">
				<input style="padding-left: 20px; padding-right: 20px;" type="submit" class="button" name="submitNewsletterProSettings" value="Save">
			</div>

		</fieldset>
	</form>
</div>

<ul class="footer_links clearfix">
	<li><a href="{$link->getPageLink('my-account', true)|escape:'quotes':'UTF-8'}"><img src="{$img_dir|escape:'quotes':'UTF-8'}icon/my-account.gif" alt="" class="icon" /> {l s='Back to Your Account'  mod='newsletterpro'}</a></li>
	<li class="f_right"><a href="{$base_dir|escape:'quotes':'UTF-8'}"><img src="{$img_dir|escape:'quotes':'UTF-8'}icon/home.gif" alt="" class="icon" /> {l s='Home' mod='newsletterpro'}</a></li>
</ul>
