function content_55ccecdca7e3d0_14419675($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php';
        }
        fn_preload_lang_vars(array('close'));
        echo smarty_function_math(array('equation' => "rand()", 'assign' => "rnd"), $_smarty_tpl);
        ?>

<div class="clear" id="ds_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['rnd']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
    <div class="section-border">
        <?php 
        echo $_smarty_tpl->tpl_vars['section_content']->value;
        ?>

        <?php 
        if ($_smarty_tpl->tpl_vars['section_state']->value) {
            ?>
            <p align="right">
                <a href="<?php 
            echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "close_section=" . (string) $_smarty_tpl->tpl_vars['key']->value)), ENT_QUOTES, 'UTF-8');
            ?>
" class="underlined"><?php 
            echo $_smarty_tpl->__("close");
            ?>
</a>
            </p>
        <?php 
        }
        ?>
    </div>
</div><?php 
    }
    function content_55e61f9bdb93e2_96432545($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
        }
        fn_preload_lang_vars(array('close'));
        echo smarty_function_math(array('equation' => "rand()", 'assign' => "rnd"), $_smarty_tpl);
        ?>

<div class="clear" id="ds_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['rnd']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
    <div class="section-border">
        <?php 
        echo $_smarty_tpl->tpl_vars['section_content']->value;
        ?>

        <?php 
        if ($_smarty_tpl->tpl_vars['section_state']->value) {
            ?>
            <p align="right">
                <a href="<?php 
            echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "close_section=" . (string) $_smarty_tpl->tpl_vars['key']->value)), ENT_QUOTES, 'UTF-8');
            ?>
" class="underlined"><?php 
            echo $_smarty_tpl->__("close");
            ?>
</a>
            </p>
        <?php 
        }
        ?>
    </div>
</div><?php 
    }
    function content_555a2c22033094_64219097($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/home/matej/webapps/webshop/tools/smarty/plugins/function.math.php';
        }
        if ($_smarty_tpl->tpl_vars['ajax']->value) {
            ?>
	<script type="text/javascript">
		$(function () {
			$(".ajax_table_link").click(function () {
				var link = $(this);
				$.post($(this).attr('href'), function (data) {
					if (data.success == 1) {
						showSuccessMessage(data.text);
						if (link.hasClass('action-disabled')){
							link.removeClass('action-disabled').addClass('action-enabled');
						} else {
							link.removeClass('action-enabled').addClass('action-disabled');
						}
						link.children().each(function () {
							if ($(this).hasClass('hidden')) {
								$(this).removeClass('hidden');
							} else {
								$(this).addClass('hidden');
							}
						});
					} else {
						showErrorMessage(data.text);
					}
				}, 'json');
				return false;
			});
		});
	</script>
<?php 
        }
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['is_order_position']->value) {
            ?>
	<script type="text/javascript" src="../js/jquery/plugins/jquery.tablednd.js"></script>
	<script type="text/javascript">
		var come_from = '<?php 
            echo addslashes($_smarty_tpl->tpl_vars['list_id']->value);
            ?>
';
		var alternate = <?php 
            if ($_smarty_tpl->tpl_vars['order_way']->value == 'DESC') {
                ?>
'1'<?php 
            } else {
                ?>
'0'<?php 
            }
            ?>
;
	</script>
	<script type="text/javascript" src="../js/admin/dnd.js"></script>
<?php 
        }
        if (!$_smarty_tpl->tpl_vars['simple_header']->value) {
            ?>
	<script type="text/javascript">
		$(function() {
			$('table.<?php 
            echo $_smarty_tpl->tpl_vars['list_id']->value;
            ?>
 .filter').keypress(function(e){
				var key = (e.keyCode ? e.keyCode : e.which);
				if (key == 13)
				{
					e.preventDefault();
					formSubmit(e, 'submitFilterButton<?php 
            echo $_smarty_tpl->tpl_vars['list_id']->value;
            ?>
');
				}
			})
			$('#submitFilterButton<?php 
            echo $_smarty_tpl->tpl_vars['list_id']->value;
            ?>
').click(function() {
				$('#submitFilter<?php 
            echo $_smarty_tpl->tpl_vars['list_id']->value;
            ?>
').val(1);
			});

			if ($("table .datepicker").length > 0) {
				$("table .datepicker").datepicker({
					prevText: '',
					nextText: '',
					altFormat: 'yy-mm-dd'
				});
			}
		});
	</script>
<?php 
        }
        ?>

<?php 
        if (!$_smarty_tpl->tpl_vars['simple_header']->value) {
            ?>
	<div class="leadin">
		
	</div>
<?php 
        }
        ?>



<?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => 'displayAdminListBefore'), $_smarty_tpl);
        ?>


<?php 
        if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) {
            ?>
	<?php 
            $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null);
            ob_start();
            ?>
display<?php 
            echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value);
            ?>
ListBefore<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
	<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl);
            ?>

<?php 
        } elseif (isset($_GET['controller'])) {
            ?>
	<?php 
            $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null);
            ob_start();
            ?>
display<?php 
            echo htmlentities(ucfirst($_GET['controller']));
            ?>
ListBefore<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
	<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl);
            ?>

<?php 
        }
        ?>

<div class="alert alert-warning" id="<?php 
        echo $_smarty_tpl->tpl_vars['list_id']->value;
        ?>
-empty-filters-alert" style="display:none;"><?php 
        echo smartyTranslate(array('s' => 'Please fill at least one field to perform a search in this list.'), $_smarty_tpl);
        ?>
</div>

<?php 
        if (isset($_smarty_tpl->tpl_vars['sql']->value) && $_smarty_tpl->tpl_vars['sql']->value) {
            ?>
	<form id="sql_form" action="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminRequestSql'), ENT_QUOTES, 'UTF-8', true);
            ?>
&amp;addrequest_sql" method="post" class="hide">
		<input type="hidden" id="sql_query" name="sql" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['sql']->value, ENT_QUOTES, 'UTF-8', true);
            ?>
" />
		<input type="hidden" id="sql_name" name="name" value="Plop" />
	</form>
<?php 
        }
        ?>


	<form method="post" action="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
" class="form-horizontal clearfix" id="form-<?php 
        echo $_smarty_tpl->tpl_vars['list_id']->value;
        ?>
">


<?php 
        if (!$_smarty_tpl->tpl_vars['simple_header']->value) {
            ?>
	<input type="hidden" id="submitFilter<?php 
            echo $_smarty_tpl->tpl_vars['list_id']->value;
            ?>
" name="submitFilter<?php 
            echo $_smarty_tpl->tpl_vars['list_id']->value;
            ?>
" value="0"/>
	
	<div class="panel col-lg-12">
		<div class="panel-heading">
			<?php 
            if (isset($_smarty_tpl->tpl_vars['icon']->value)) {
                ?>
<i class="<?php 
                echo $_smarty_tpl->tpl_vars['icon']->value;
                ?>
"></i> <?php 
            }
            if (is_array($_smarty_tpl->tpl_vars['title']->value)) {
                echo end($_smarty_tpl->tpl_vars['title']->value);
            } else {
                echo $_smarty_tpl->tpl_vars['title']->value;
            }
            ?>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value) && count($_smarty_tpl->tpl_vars['toolbar_btn']->value) > 0) {
                ?>
				<span class="badge"><?php 
                echo $_smarty_tpl->tpl_vars['list_total']->value;
                ?>
</span>
				<span class="panel-heading-action">
				<?php 
                $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['btn']->_loop = false;
                $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['toolbar_btn']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
                    $_smarty_tpl->tpl_vars['btn']->_loop = true;
                    $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
                    ?>
					<?php 
                    if ($_smarty_tpl->tpl_vars['k']->value != 'modules-list' && $_smarty_tpl->tpl_vars['k']->value != 'back') {
                        ?>
						<a id="desc-<?php 
                        echo $_smarty_tpl->tpl_vars['table']->value;
                        ?>
-<?php 
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {
                            echo $_smarty_tpl->tpl_vars['btn']->value['imgclass'];
                        } else {
                            echo $_smarty_tpl->tpl_vars['k']->value;
                        }
                        ?>
" class="list-toolbar-btn<?php 
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['target']) && $_smarty_tpl->tpl_vars['btn']->value['target']) {
                            ?>
 _blank<?php 
                        }
                        ?>
"<?php 
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['href'])) {
                            ?>
 href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true);
                            ?>
"<?php 
                        }
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) {
                            ?>
 onclick="<?php 
                            echo $_smarty_tpl->tpl_vars['btn']->value['js'];
                            ?>
"<?php 
                        }
                        ?>
>
							<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="<?php 
                        echo smartyTranslate(array('s' => $_smarty_tpl->tpl_vars['btn']->value['desc']), $_smarty_tpl);
                        ?>
" data-html="true" data-placement="left">
								<i class="process-icon-<?php 
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {
                            echo $_smarty_tpl->tpl_vars['btn']->value['imgclass'];
                        } else {
                            echo $_smarty_tpl->tpl_vars['k']->value;
                        }
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {
                            ?>
 <?php 
                            echo $_smarty_tpl->tpl_vars['btn']->value['class'];
                        }
                        ?>
"></i>
							</span>
						</a>
					<?php 
                    }
                    ?>
				<?php 
                }
                ?>
					<a class="list-toolbar-btn" href="javascript:location.reload();">
						<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="<?php 
                echo smartyTranslate(array('s' => 'Refresh list'), $_smarty_tpl);
                ?>
" data-html="true" data-placement="left">
							<i class="process-icon-refresh" ></i>
						</span>
					</a>
				<?php 
                if (isset($_smarty_tpl->tpl_vars['sql']->value) && $_smarty_tpl->tpl_vars['sql']->value) {
                    ?>
					<?php 
                    if (@constant('_PS_MODE_DEV_')) {
                        ?>
						<a class="list-toolbar-btn" href="javascript:void(0);" onclick="$('.leadin').first().append('<div class=\'alert alert-info\'>' + $('#sql_query').val() + '</div>'); $(this).attr('onclick', '');">
							<span class="label-tooltip" data-toggle="tooltip" data-original-title="<?php 
                        echo smartyTranslate(array('s' => 'Show SQL query'), $_smarty_tpl);
                        ?>
" data-html="true" data-placement="left" >
								<i class="process-icon-terminal"></i>
							</span>
						</a>
					<?php 
                    }
                    ?>
					<a class="list-toolbar-btn" href="javascript:void(0);" onclick="$('#sql_name').val(createSqlQueryName()); $('#sql_query').val($('#sql_query').val().replace(/\s+limit\s+[0-9,\s]+$/ig, '').trim()); $('#sql_form').submit();">
						<span class="label-tooltip" data-toggle="tooltip" data-original-title="<?php 
                    echo smartyTranslate(array('s' => 'Export to SQL Manager'), $_smarty_tpl);
                    ?>
" data-html="true" data-placement="left" >
							<i class="process-icon-database"></i>
						</span>
					</a>
				<?php 
                }
                ?>
				</span>
			<?php 
            }
            ?>
		</div>
		<?php 
            if ($_smarty_tpl->tpl_vars['show_toolbar']->value) {
                ?>
			<script type="text/javascript">
				//<![CDATA[
				var submited = false;
				$(function() {
					//get reference on save link
					btn_save = $('i[class~="process-icon-save"]').parent();
					//get reference on form submit button
					btn_submit = $('#<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_form_submit_btn');
					if (btn_save.length > 0 && btn_submit.length > 0) {
						//get reference on save and stay link
						btn_save_and_stay = $('i[class~="process-icon-save-and-stay"]').parent();
						//get reference on current save link label
						lbl_save = $('#desc-<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
-save div');
						//override save link label with submit button value
						if (btn_submit.val().length > 0) {
							lbl_save.html(btn_submit.attr("value"));
						}
						if (btn_save_and_stay.length > 0) {
							//get reference on current save link label
							lbl_save_and_stay = $('#desc-<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
-save-and-stay div');
							//override save and stay link label with submit button value
							if (btn_submit.val().length > 0 && lbl_save_and_stay && !lbl_save_and_stay.hasClass('locked')) {
								lbl_save_and_stay.html(btn_submit.val() + " <?php 
                echo smartyTranslate(array('s' => 'and stay'), $_smarty_tpl);
                ?>
 ");
							}
						}
						//hide standard submit button
						btn_submit.hide();
						//bind enter key press to validate form
						$('#<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_form').keypress(function (e) {
							if (e.which == 13 && e.target.localName != 'textarea') {
								$('#desc-<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
-save').click();
							}
						});
						//submit the form
						
							btn_save.click(function() {
								// Avoid double click
								if (submited) {
									return false;
								}
								submited = true;
								//add hidden input to emulate submit button click when posting the form -> field name posted
								btn_submit.before('<input type="hidden" name="'+btn_submit.attr("name")+'" value="1" />');
								$('#<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_form').submit();
								return false;
							});
							if (btn_save_and_stay) {
								btn_save_and_stay.click(function() {
									//add hidden input to emulate submit button click when posting the form -> field name posted
									btn_submit.before('<input type="hidden" name="'+btn_submit.attr("name")+'AndStay" value="1" />');
									$('#<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_form').submit();
									return false;
								});
							}
						
					}
				});
				//]]>
			</script>
		<?php 
            }
        } elseif ($_smarty_tpl->tpl_vars['simple_header']->value) {
            ?>
	<div class="panel col-lg-12">
		<?php 
            if (isset($_smarty_tpl->tpl_vars['title']->value)) {
                ?>
<h3><?php 
                if (isset($_smarty_tpl->tpl_vars['icon']->value)) {
                    ?>
<i class="<?php 
                    echo $_smarty_tpl->tpl_vars['icon']->value;
                    ?>
"></i> <?php 
                }
                if (is_array($_smarty_tpl->tpl_vars['title']->value)) {
                    echo end($_smarty_tpl->tpl_vars['title']->value);
                } else {
                    echo $_smarty_tpl->tpl_vars['title']->value;
                }
                ?>
</h3><?php 
            }
        }
        ?>


	<?php 
        if ($_smarty_tpl->tpl_vars['bulk_actions']->value && $_smarty_tpl->tpl_vars['has_bulk_actions']->value) {
            ?>
		<?php 
            $_smarty_tpl->tpl_vars['y'] = new Smarty_variable(2, null, 0);
            ?>
	<?php 
        } else {
            ?>
		<?php 
            $_smarty_tpl->tpl_vars['y'] = new Smarty_variable(1, null, 0);
            ?>
	<?php 
        }
        ?>
	<style>
	@media (max-width: 992px) {
		<?php 
        $_smarty_tpl->tpl_vars['param'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['param']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['fields_display']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['params']['index'] = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['param']->key => $_smarty_tpl->tpl_vars['param']->value) {
            $_smarty_tpl->tpl_vars['param']->_loop = true;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['params']['index']++;
            ?>
			.table-responsive-row td:nth-of-type(<?php 
            echo smarty_function_math(array('equation' => "x+y", 'x' => $_smarty_tpl->getVariable('smarty')->value['foreach']['params']['index'], 'y' => $_smarty_tpl->tpl_vars['y']->value), $_smarty_tpl);
            ?>
):before {
				content: "<?php 
            echo $_smarty_tpl->tpl_vars['param']->value['title'];
            ?>
";
			}
		<?php 
        }
        ?>
	}
	</style>

	
	<div class="table-responsive-row clearfix<?php 
        if (isset($_smarty_tpl->tpl_vars['use_overflow']->value) && $_smarty_tpl->tpl_vars['use_overflow']->value) {
            ?>
 overflow-y<?php 
        }
        ?>
">
		<table<?php 
        if ($_smarty_tpl->tpl_vars['table_id']->value) {
            ?>
 id="table-<?php 
            echo $_smarty_tpl->tpl_vars['table_id']->value;
            ?>
"<?php 
        }
        ?>
 class="table<?php 
        if ($_smarty_tpl->tpl_vars['table_dnd']->value) {
            ?>
 tableDnD<?php 
        }
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['table']->value;
        ?>
" >
			<thead>
				<tr class="nodrag nodrop">
					<?php 
        if ($_smarty_tpl->tpl_vars['bulk_actions']->value && $_smarty_tpl->tpl_vars['has_bulk_actions']->value) {
            ?>
						<th class="center fixed-width-xs"></th>
					<?php 
        }
        ?>
					<?php 
        $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['params']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['fields_display']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
            $_smarty_tpl->tpl_vars['params']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
            ?>
					<th class="<?php 
            if (isset($_smarty_tpl->tpl_vars['params']->value['class'])) {
                echo $_smarty_tpl->tpl_vars['params']->value['class'];
            }
            if (isset($_smarty_tpl->tpl_vars['params']->value['align'])) {
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['params']->value['align'];
            }
            ?>
">
						<span class="title_box<?php 
            if (isset($_smarty_tpl->tpl_vars['order_by']->value) && $_smarty_tpl->tpl_vars['key']->value == $_smarty_tpl->tpl_vars['order_by']->value) {
                ?>
 active<?php 
            }
            ?>
">
							<?php 
            if (isset($_smarty_tpl->tpl_vars['params']->value['hint'])) {
                ?>
								<span class="label-tooltip" data-toggle="tooltip"
									title="
										<?php 
                if (is_array($_smarty_tpl->tpl_vars['params']->value['hint'])) {
                    ?>
											<?php 
                    $_smarty_tpl->tpl_vars['hint'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['hint']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['params']->value['hint'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['hint']->key => $_smarty_tpl->tpl_vars['hint']->value) {
                        $_smarty_tpl->tpl_vars['hint']->_loop = true;
                        ?>
												<?php 
                        if (is_array($_smarty_tpl->tpl_vars['hint']->value)) {
                            ?>
													<?php 
                            echo $_smarty_tpl->tpl_vars['hint']->value['text'];
                            ?>

												<?php 
                        } else {
                            ?>
													<?php 
                            echo $_smarty_tpl->tpl_vars['hint']->value;
                            ?>

												<?php 
                        }
                        ?>
											<?php 
                    }
                    ?>
										<?php 
                } else {
                    ?>
											<?php 
                    echo $_smarty_tpl->tpl_vars['params']->value['hint'];
                    ?>

										<?php 
                }
                ?>
									">
									<?php 
                echo $_smarty_tpl->tpl_vars['params']->value['title'];
                ?>

								</span>
							<?php 
            } else {
                ?>
								<?php 
                echo $_smarty_tpl->tpl_vars['params']->value['title'];
                ?>

							<?php 
            }
            ?>
							<?php 
            if ((!isset($_smarty_tpl->tpl_vars['params']->value['orderby']) || $_smarty_tpl->tpl_vars['params']->value['orderby']) && !$_smarty_tpl->tpl_vars['simple_header']->value && $_smarty_tpl->tpl_vars['show_filters']->value) {
                ?>
								<a <?php 
                if (isset($_smarty_tpl->tpl_vars['order_by']->value) && $_smarty_tpl->tpl_vars['key']->value == $_smarty_tpl->tpl_vars['order_by']->value && $_smarty_tpl->tpl_vars['order_way']->value == 'DESC') {
                    ?>
class="active"<?php 
                }
                ?>
 href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);
                ?>
&amp;<?php 
                echo $_smarty_tpl->tpl_vars['list_id']->value;
                ?>
Orderby=<?php 
                echo urlencode($_smarty_tpl->tpl_vars['key']->value);
                ?>
&amp;<?php 
                echo $_smarty_tpl->tpl_vars['list_id']->value;
                ?>
Orderway=desc&amp;token=<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);
                if (isset($_GET[$_smarty_tpl->tpl_vars['identifier']->value])) {
                    ?>
&amp;<?php 
                    echo $_smarty_tpl->tpl_vars['identifier']->value;
                    ?>
=<?php 
                    echo intval($_GET[$_smarty_tpl->tpl_vars['identifier']->value]);
                }
                ?>
">
									<i class="icon-caret-down"></i>
								</a>
								<a <?php 
                if (isset($_smarty_tpl->tpl_vars['order_by']->value) && $_smarty_tpl->tpl_vars['key']->value == $_smarty_tpl->tpl_vars['order_by']->value && $_smarty_tpl->tpl_vars['order_way']->value == 'ASC') {
                    ?>
class="active"<?php 
                }
                ?>
 href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);
                ?>
&amp;<?php 
                echo $_smarty_tpl->tpl_vars['list_id']->value;
                ?>
Orderby=<?php 
                echo urlencode($_smarty_tpl->tpl_vars['key']->value);
                ?>
&amp;<?php 
                echo $_smarty_tpl->tpl_vars['list_id']->value;
                ?>
Orderway=asc&amp;token=<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);
                if (isset($_GET[$_smarty_tpl->tpl_vars['identifier']->value])) {
                    ?>
&amp;<?php 
                    echo $_smarty_tpl->tpl_vars['identifier']->value;
                    ?>
=<?php 
                    echo intval($_GET[$_smarty_tpl->tpl_vars['identifier']->value]);
                }
                ?>
">
									<i class="icon-caret-up"></i>
								</a>
							<?php 
            }
            ?>
						</span>
					</th>
					<?php 
        }
        ?>
					<?php 
        if ($_smarty_tpl->tpl_vars['shop_link_type']->value) {
            ?>
						<th>
							<span class="title_box">
							<?php 
            if ($_smarty_tpl->tpl_vars['shop_link_type']->value == 'shop') {
                ?>
								<?php 
                echo smartyTranslate(array('s' => 'Shop'), $_smarty_tpl);
                ?>

							<?php 
            } else {
                ?>
								<?php 
                echo smartyTranslate(array('s' => 'Shop group'), $_smarty_tpl);
                ?>

							<?php 
            }
            ?>
							</span>
						</th>
					<?php 
        }
        ?>
					<?php 
        if ($_smarty_tpl->tpl_vars['has_actions']->value || $_smarty_tpl->tpl_vars['show_filters']->value) {
            ?>
						<th><?php 
            if (!$_smarty_tpl->tpl_vars['simple_header']->value) {
            }
            ?>
</th>
					<?php 
        }
        ?>
				</tr>
			<?php 
        if (!$_smarty_tpl->tpl_vars['simple_header']->value && $_smarty_tpl->tpl_vars['show_filters']->value) {
            ?>
				<tr class="nodrag nodrop filter <?php 
            if ($_smarty_tpl->tpl_vars['row_hover']->value) {
                ?>
row_hover<?php 
            }
            ?>
">
					<?php 
            if ($_smarty_tpl->tpl_vars['has_bulk_actions']->value) {
                ?>
						<th class="text-center">
							--
						</th>
					<?php 
            }
            ?>
					
					<?php 
            $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['params']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['fields_display']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
                $_smarty_tpl->tpl_vars['params']->_loop = true;
                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
                ?>
						<th <?php 
                if (isset($_smarty_tpl->tpl_vars['params']->value['align'])) {
                    ?>
 class="<?php 
                    echo $_smarty_tpl->tpl_vars['params']->value['align'];
                    ?>
" <?php 
                }
                ?>
>
							<?php 
                if (isset($_smarty_tpl->tpl_vars['params']->value['search']) && !$_smarty_tpl->tpl_vars['params']->value['search']) {
                    ?>
								--
							<?php 
                } else {
                    ?>
								<?php 
                    if ($_smarty_tpl->tpl_vars['params']->value['type'] == 'bool') {
                        ?>
									<select class="filter fixed-width-sm" name="<?php 
                        echo $_smarty_tpl->tpl_vars['list_id']->value;
                        ?>
Filter_<?php 
                        echo $_smarty_tpl->tpl_vars['key']->value;
                        ?>
">
										<option value="">-</option>
										<option value="1" <?php 
                        if ($_smarty_tpl->tpl_vars['params']->value['value'] == 1) {
                            ?>
 selected="selected" <?php 
                        }
                        ?>
><?php 
                        echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl);
                        ?>
</option>
										<option value="0" <?php 
                        if ($_smarty_tpl->tpl_vars['params']->value['value'] == 0 && $_smarty_tpl->tpl_vars['params']->value['value'] != '') {
                            ?>
 selected="selected" <?php 
                        }
                        ?>
><?php 
                        echo smartyTranslate(array('s' => 'No'), $_smarty_tpl);
                        ?>
</option>
									</select>
								<?php 
                    } elseif ($_smarty_tpl->tpl_vars['params']->value['type'] == 'date' || $_smarty_tpl->tpl_vars['params']->value['type'] == 'datetime') {
                        ?>
									<div class="date_range row">
 										<div class="input-group fixed-width-md">
											<input type="text" class="filter datepicker date-input form-control" id="local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_0" name="local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['name_date'];
                        ?>
[0]"  placeholder="<?php 
                        echo smartyTranslate(array('s' => 'From'), $_smarty_tpl);
                        ?>
" />
											<input type="hidden" id="<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_0" name="<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['name_date'];
                        ?>
[0]" value="<?php 
                        if (isset($_smarty_tpl->tpl_vars['params']->value['value'][0])) {
                            echo $_smarty_tpl->tpl_vars['params']->value['value'][0];
                        }
                        ?>
">
											<span class="input-group-addon">
												<i class="icon-calendar"></i>
											</span>
										</div>
 										<div class="input-group fixed-width-md">
											<input type="text" class="filter datepicker date-input form-control" id="local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_1" name="local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['name_date'];
                        ?>
[1]"  placeholder="<?php 
                        echo smartyTranslate(array('s' => 'To'), $_smarty_tpl);
                        ?>
" />
											<input type="hidden" id="<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_1" name="<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['name_date'];
                        ?>
[1]" value="<?php 
                        if (isset($_smarty_tpl->tpl_vars['params']->value['value'][1])) {
                            echo $_smarty_tpl->tpl_vars['params']->value['value'][1];
                        }
                        ?>
">
											<span class="input-group-addon">
												<i class="icon-calendar"></i>
											</span>
										</div>
										<script>
											$(function() {
												var dateStart = parseDate($("#<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_0").val());
												var dateEnd = parseDate($("#<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_1").val());
												$("#local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_0").datepicker("option", "altField", "#<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_0");
												$("#local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_1").datepicker("option", "altField", "#<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_1");
												if (dateStart !== null){
													$("#local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_0").datepicker("setDate", dateStart);
												}
												if (dateEnd !== null){
													$("#local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_1").datepicker("setDate", dateEnd);
												}
											});
										</script>
									</div>
								<?php 
                    } elseif ($_smarty_tpl->tpl_vars['params']->value['type'] == 'select') {
                        ?>
									<?php 
                        if (isset($_smarty_tpl->tpl_vars['params']->value['filter_key'])) {
                            ?>
										<select class="filter" onchange="$('#submitFilterButton<?php 
                            echo $_smarty_tpl->tpl_vars['list_id']->value;
                            ?>
').focus();$('#submitFilterButton<?php 
                            echo $_smarty_tpl->tpl_vars['list_id']->value;
                            ?>
').click();" name="<?php 
                            echo $_smarty_tpl->tpl_vars['list_id']->value;
                            ?>
Filter_<?php 
                            echo $_smarty_tpl->tpl_vars['params']->value['filter_key'];
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['params']->value['width'])) {
                                ?>
 style="width:<?php 
                                echo $_smarty_tpl->tpl_vars['params']->value['width'];
                                ?>
px"<?php 
                            }
                            ?>
>
											<option value="" <?php 
                            if ($_smarty_tpl->tpl_vars['params']->value['value'] == '') {
                                ?>
 selected="selected" <?php 
                            }
                            ?>
>-</option>
											<?php 
                            if (isset($_smarty_tpl->tpl_vars['params']->value['list']) && is_array($_smarty_tpl->tpl_vars['params']->value['list'])) {
                                ?>
												<?php 
                                $_smarty_tpl->tpl_vars['option_display'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['option_display']->_loop = false;
                                $_smarty_tpl->tpl_vars['option_value'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['params']->value['list'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['option_display']->key => $_smarty_tpl->tpl_vars['option_display']->value) {
                                    $_smarty_tpl->tpl_vars['option_display']->_loop = true;
                                    $_smarty_tpl->tpl_vars['option_value']->value = $_smarty_tpl->tpl_vars['option_display']->key;
                                    ?>
													<option value="<?php 
                                    echo $_smarty_tpl->tpl_vars['option_value']->value;
                                    ?>
" <?php 
                                    if ((string) $_smarty_tpl->tpl_vars['option_display']->value === (string) $_smarty_tpl->tpl_vars['params']->value['value'] || (string) $_smarty_tpl->tpl_vars['option_value']->value === (string) $_smarty_tpl->tpl_vars['params']->value['value']) {
                                        ?>
 selected="selected"<?php 
                                    }
                                    ?>
><?php 
                                    echo $_smarty_tpl->tpl_vars['option_display']->value;
                                    ?>
</option>
												<?php 
                                }
                                ?>
											<?php 
                            }
                            ?>
										</select>
									<?php 
                        }
                        ?>
								<?php 
                    } else {
                        ?>
									<input type="text" class="filter" name="<?php 
                        echo $_smarty_tpl->tpl_vars['list_id']->value;
                        ?>
Filter_<?php 
                        if (isset($_smarty_tpl->tpl_vars['params']->value['filter_key'])) {
                            echo $_smarty_tpl->tpl_vars['params']->value['filter_key'];
                        } else {
                            echo $_smarty_tpl->tpl_vars['key']->value;
                        }
                        ?>
" value="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['params']->value['value'], ENT_QUOTES, 'UTF-8', true);
                        ?>
" <?php 
                        if (isset($_smarty_tpl->tpl_vars['params']->value['width']) && $_smarty_tpl->tpl_vars['params']->value['width'] != 'auto') {
                            ?>
 style="width:<?php 
                            echo $_smarty_tpl->tpl_vars['params']->value['width'];
                            ?>
px"<?php 
                        }
                        ?>
 />
								<?php 
                    }
                    ?>
							<?php 
                }
                ?>
						</th>
					<?php 
            }
            ?>

					<?php 
            if ($_smarty_tpl->tpl_vars['shop_link_type']->value) {
                ?>
						<th>--</th>
					<?php 
            }
            ?>
					<?php 
            if ($_smarty_tpl->tpl_vars['has_actions']->value || $_smarty_tpl->tpl_vars['show_filters']->value) {
                ?>
						<th class="actions">
							<?php 
                if ($_smarty_tpl->tpl_vars['show_filters']->value) {
                    ?>
							<span class="pull-right">
								
								<button type="submit" id="submitFilterButton<?php 
                    echo $_smarty_tpl->tpl_vars['list_id']->value;
                    ?>
" name="submitFilter" class="btn btn-default" data-list-id="<?php 
                    echo $_smarty_tpl->tpl_vars['list_id']->value;
                    ?>
">
									<i class="icon-search"></i> <?php 
                    echo smartyTranslate(array('s' => 'Search'), $_smarty_tpl);
                    ?>

								</button>
								<?php 
                    if ($_smarty_tpl->tpl_vars['filters_has_value']->value) {
                        ?>
									<button type="submit" name="submitReset<?php 
                        echo $_smarty_tpl->tpl_vars['list_id']->value;
                        ?>
" class="btn btn-warning">
										<i class="icon-eraser"></i> <?php 
                        echo smartyTranslate(array('s' => 'Reset'), $_smarty_tpl);
                        ?>

									</button>
								<?php 
                    }
                    ?>
							</span>
							<?php 
                }
                ?>
						</th>
					<?php 
            }
            ?>
				</tr>
			<?php 
        }
        ?>
			</thead>
<?php 
    }
    function content_56d218e757a521_02767541($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/home/miscal5/industrialdelivery.net/public_html/tools/smarty/plugins/function.math.php';
        }
        if (isset($_smarty_tpl->tpl_vars['products']->value) && $_smarty_tpl->tpl_vars['products']->value) {
            ?>
	
	<?php 
            if ($_smarty_tpl->tpl_vars['page_name']->value != 'index' && $_smarty_tpl->tpl_vars['page_name']->value != 'product') {
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable(3, null, 0);
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['nbItemsPerLineTablet'] = new Smarty_variable(2, null, 0);
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['nbItemsPerLineMobile'] = new Smarty_variable(3, null, 0);
                ?>
	<?php 
            } else {
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable(4, null, 0);
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['nbItemsPerLineTablet'] = new Smarty_variable(3, null, 0);
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['nbItemsPerLineMobile'] = new Smarty_variable(2, null, 0);
                ?>
	<?php 
            }
            ?>
	
	<?php 
            $_smarty_tpl->tpl_vars['nbLi'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['products']->value), null, 0);
            ?>
	<?php 
            echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLine", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'nbLines'), $_smarty_tpl);
            ?>

	<?php 
            echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLineTablet", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLineTablet' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'nbLinesTablet'), $_smarty_tpl);
            ?>

	<!-- Products list -->
	<ul<?php 
            if (isset($_smarty_tpl->tpl_vars['id']->value) && $_smarty_tpl->tpl_vars['id']->value) {
                ?>
 id="<?php 
                echo $_smarty_tpl->tpl_vars['id']->value;
                ?>
"<?php 
            }
            ?>
 class="product_list grid row<?php 
            if (isset($_smarty_tpl->tpl_vars['class']->value) && $_smarty_tpl->tpl_vars['class']->value) {
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['class']->value;
            }
            ?>
">
	<?php 
            $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['product']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['products']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['product']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['total'] = $_smarty_tpl->tpl_vars['product']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['iteration'] = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
                $_smarty_tpl->tpl_vars['product']->_loop = true;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['iteration']++;
                ?>
		<?php 
                echo smarty_function_math(array('equation' => "(total%perLine)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'], 'perLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'totModulo'), $_smarty_tpl);
                ?>

		<?php 
                echo smarty_function_math(array('equation' => "(total%perLineT)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'], 'perLineT' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'totModuloTablet'), $_smarty_tpl);
                ?>

		<?php 
                echo smarty_function_math(array('equation' => "(total%perLineT)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'], 'perLineT' => $_smarty_tpl->tpl_vars['nbItemsPerLineMobile']->value, 'assign' => 'totModuloMobile'), $_smarty_tpl);
                ?>

		<?php 
                if ($_smarty_tpl->tpl_vars['totModulo']->value == 0) {
                    $_smarty_tpl->tpl_vars['totModulo'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLine']->value, null, 0);
                }
                ?>
		<?php 
                if ($_smarty_tpl->tpl_vars['totModuloTablet']->value == 0) {
                    $_smarty_tpl->tpl_vars['totModuloTablet'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, null, 0);
                }
                ?>
		<?php 
                if ($_smarty_tpl->tpl_vars['totModuloMobile']->value == 0) {
                    $_smarty_tpl->tpl_vars['totModuloMobile'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLineMobile']->value, null, 0);
                }
                ?>
		<li class="ajax_block_product<?php 
                if ($_smarty_tpl->tpl_vars['page_name']->value == 'index' || $_smarty_tpl->tpl_vars['page_name']->value == 'product') {
                    ?>
 col-xs-12 col-sm-4 col-md-3<?php 
                } else {
                    ?>
 col-xs-12 col-sm-6 col-md-4<?php 
                }
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 0) {
                    ?>
 last-in-line<?php 
                } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 1) {
                    ?>
 first-in-line<?php 
                }
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] > $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'] - $_smarty_tpl->tpl_vars['totModulo']->value) {
                    ?>
 last-line<?php 
                }
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value == 0) {
                    ?>
 last-item-of-tablet-line<?php 
                } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value == 1) {
                    ?>
 first-item-of-tablet-line<?php 
                }
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineMobile']->value == 0) {
                    ?>
 last-item-of-mobile-line<?php 
                } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineMobile']->value == 1) {
                    ?>
 first-item-of-mobile-line<?php 
                }
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] > $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'] - $_smarty_tpl->tpl_vars['totModuloMobile']->value) {
                    ?>
 last-mobile-line<?php 
                }
                ?>
">
			<div class="product-container" itemscope itemtype="http://schema.org/Product">
				<div class="left-block">
					<div class="product-image-container">
						<a class="product_img_link"	href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['link'], ENT_QUOTES, 'UTF-8', true);
                ?>
" title="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);
                ?>
" itemprop="url">
							<img class="replace-2x img-responsive" src="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['id_image'], 'home_default'), ENT_QUOTES, 'UTF-8', true);
                ?>
" alt="<?php 
                if (!empty($_smarty_tpl->tpl_vars['product']->value['legend'])) {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                } else {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);
                }
                ?>
" title="<?php 
                if (!empty($_smarty_tpl->tpl_vars['product']->value['legend'])) {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                } else {
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);
                }
                ?>
" <?php 
                if (isset($_smarty_tpl->tpl_vars['homeSize']->value)) {
                    ?>
 width="<?php 
                    echo $_smarty_tpl->tpl_vars['homeSize']->value['width'];
                    ?>
" height="<?php 
                    echo $_smarty_tpl->tpl_vars['homeSize']->value['height'];
                    ?>
"<?php 
                }
                ?>
 itemprop="image" />
						</a>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['quick_view']->value) && $_smarty_tpl->tpl_vars['quick_view']->value) {
                    ?>
							<div class="quick-view-wrapper-mobile">
							<a class="quick-view-mobile" href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['link'], ENT_QUOTES, 'UTF-8', true);
                    ?>
" rel="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['link'], ENT_QUOTES, 'UTF-8', true);
                    ?>
">
								<i class="icon-eye-open"></i>
							</a>
						</div>
						<a class="quick-view" href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['link'], ENT_QUOTES, 'UTF-8', true);
                    ?>
" rel="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['link'], ENT_QUOTES, 'UTF-8', true);
                    ?>
">
							<span><?php 
                    echo smartyTranslate(array('s' => 'Quick view'), $_smarty_tpl);
                    ?>
</span>
						</a>
						<?php 
                }
                ?>
						<?php 
                if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && (isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] || isset($_smarty_tpl->tpl_vars['product']->value['available_for_order']) && $_smarty_tpl->tpl_vars['product']->value['available_for_order'])) {
                    ?>
							<div class="content_price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
								<?php 
                    if (isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] && !isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value)) {
                        ?>
									<span itemprop="price" class="price product-price">
										<?php 
                        if (!$_smarty_tpl->tpl_vars['priceDisplay']->value) {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['price']), $_smarty_tpl);
                        } else {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['price_tax_exc']), $_smarty_tpl);
                        }
                        ?>
									</span>
									<meta itemprop="priceCurrency" content="<?php 
                        echo $_smarty_tpl->tpl_vars['currency']->value->iso_code;
                        ?>
" />
									<?php 
                        if (isset($_smarty_tpl->tpl_vars['product']->value['specific_prices']) && $_smarty_tpl->tpl_vars['product']->value['specific_prices'] && isset($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction']) && $_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction'] > 0) {
                            ?>
										<?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "old_price"), $_smarty_tpl);
                            ?>

										<span class="old-price product-price">
											<?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p' => $_smarty_tpl->tpl_vars['product']->value['price_without_reduction']), $_smarty_tpl);
                            ?>

										</span>
										<?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction_type'] == 'percentage') {
                                ?>
											<span class="price-percent-reduction">-<?php 
                                echo $_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction'] * 100;
                                ?>
%</span>
										<?php 
                            }
                            ?>
									<?php 
                        }
                        ?>
									<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "price"), $_smarty_tpl);
                        ?>

									<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "unit_price"), $_smarty_tpl);
                        ?>

								<?php 
                    }
                    ?>
							</div>
						<?php 
                }
                ?>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['product']->value['new']) && $_smarty_tpl->tpl_vars['product']->value['new'] == 1) {
                    ?>
							<a class="new-box" href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['link'], ENT_QUOTES, 'UTF-8', true);
                    ?>
">
								<span class="new-label"><?php 
                    echo smartyTranslate(array('s' => 'New'), $_smarty_tpl);
                    ?>
</span>
							</a>
						<?php 
                }
                ?>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['product']->value['on_sale']) && $_smarty_tpl->tpl_vars['product']->value['on_sale'] && isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] && !$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
							<a class="sale-box" href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['link'], ENT_QUOTES, 'UTF-8', true);
                    ?>
">
								<span class="sale-label"><?php 
                    echo smartyTranslate(array('s' => 'Sale!'), $_smarty_tpl);
                    ?>
</span>
							</a>
						<?php 
                }
                ?>
					</div>
					<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductDeliveryTime", 'product' => $_smarty_tpl->tpl_vars['product']->value), $_smarty_tpl);
                ?>

					<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "weight"), $_smarty_tpl);
                ?>

				</div>
				<div class="right-block">
					<h5 itemprop="name">
						<?php 
                if (isset($_smarty_tpl->tpl_vars['product']->value['pack_quantity']) && $_smarty_tpl->tpl_vars['product']->value['pack_quantity']) {
                    echo intval($_smarty_tpl->tpl_vars['product']->value['pack_quantity']) . ' x ';
                }
                ?>
						<a class="product-name" href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['link'], ENT_QUOTES, 'UTF-8', true);
                ?>
" title="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);
                ?>
" itemprop="url" >
							<?php 
                echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['product']->value['name'], 45, '...'), ENT_QUOTES, 'UTF-8', true);
                ?>

						</a>
					</h5>
					<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => 'displayProductListReviews', 'product' => $_smarty_tpl->tpl_vars['product']->value), $_smarty_tpl);
                ?>

					<p class="product-desc" itemprop="description">
						<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate(strip_tags($_smarty_tpl->tpl_vars['product']->value['description_short']), 360, '...');
                ?>

					</p>
					<?php 
                if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && (isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] || isset($_smarty_tpl->tpl_vars['product']->value['available_for_order']) && $_smarty_tpl->tpl_vars['product']->value['available_for_order'])) {
                    ?>
					<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="content_price">
						<?php 
                    if (isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] && !isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value)) {
                        ?>
							<span itemprop="price" class="price product-price">
								<?php 
                        if (!$_smarty_tpl->tpl_vars['priceDisplay']->value) {
                            ?>
								  <?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['price']), $_smarty_tpl);
                            ?>

								  <p class="listimp"> <?php 
                            echo smartyTranslate(array('s' => 'IVA incluido'), $_smarty_tpl);
                            ?>
 </p>
								<?php 
                        } else {
                            ?>
								  <?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['price_tax_exc']), $_smarty_tpl);
                            ?>

								  <p class="listimp"><?php 
                            echo smartyTranslate(array('s' => 'Sin IVA'), $_smarty_tpl);
                            ?>
 </p>
								<?php 
                        }
                        ?>
							</span>
							<meta itemprop="priceCurrency" content="<?php 
                        echo $_smarty_tpl->tpl_vars['currency']->value->iso_code;
                        ?>
" />
							<?php 
                        if (isset($_smarty_tpl->tpl_vars['product']->value['specific_prices']) && $_smarty_tpl->tpl_vars['product']->value['specific_prices'] && isset($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction']) && $_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction'] > 0) {
                            ?>
								<?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "old_price"), $_smarty_tpl);
                            ?>

								<span class="old-price product-price">
									<?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p' => $_smarty_tpl->tpl_vars['product']->value['price_without_reduction']), $_smarty_tpl);
                            ?>

								</span>
								<?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'id_product' => $_smarty_tpl->tpl_vars['product']->value['id_product'], 'type' => "old_price"), $_smarty_tpl);
                            ?>

								<?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction_type'] == 'percentage') {
                                ?>
									<span class="price-percent-reduction">-<?php 
                                echo $_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction'] * 100;
                                ?>
%</span>
								<?php 
                            }
                            ?>
							<?php 
                        }
                        ?>
							<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "price"), $_smarty_tpl);
                        ?>

							<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "unit_price"), $_smarty_tpl);
                        ?>

						<?php 
                    }
                    ?>
					</div>
					<?php 
                }
                ?>
					<div class="button-container">
						<?php 
                if (($_smarty_tpl->tpl_vars['product']->value['id_product_attribute'] == 0 || isset($_smarty_tpl->tpl_vars['add_prod_display']->value) && $_smarty_tpl->tpl_vars['add_prod_display']->value == 1) && $_smarty_tpl->tpl_vars['product']->value['available_for_order'] && !isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value) && $_smarty_tpl->tpl_vars['product']->value['minimal_quantity'] <= 1 && $_smarty_tpl->tpl_vars['product']->value['customizable'] != 2 && !$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
							<?php 
                    if ((!isset($_smarty_tpl->tpl_vars['product']->value['customization_required']) || !$_smarty_tpl->tpl_vars['product']->value['customization_required']) && ($_smarty_tpl->tpl_vars['product']->value['allow_oosp'] || $_smarty_tpl->tpl_vars['product']->value['quantity'] > 0)) {
                        ?>
								<?php 
                        if (isset($_smarty_tpl->tpl_vars['static_token']->value)) {
                            ?>
									<a class="button ajax_add_to_cart_button btn btn-default" href="<?php 
                            ob_start();
                            echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);
                            $_tmp1 = ob_get_clean();
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', false, null, "add=1&amp;id_product=" . $_tmp1 . "&amp;token=" . (string) $_smarty_tpl->tpl_vars['static_token']->value, false), ENT_QUOTES, 'UTF-8', true);
                            ?>
" rel="nofollow" title="<?php 
                            echo smartyTranslate(array('s' => 'Add to cart'), $_smarty_tpl);
                            ?>
" data-id-product="<?php 
                            echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);
                            ?>
">
										<span><?php 
                            echo smartyTranslate(array('s' => 'Add to cart'), $_smarty_tpl);
                            ?>
</span>
									</a>
								<?php 
                        } else {
                            ?>
									<a class="button ajax_add_to_cart_button btn btn-default" href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', false, null, 'add=1&amp;id_product={$product.id_product|intval}', false), ENT_QUOTES, 'UTF-8', true);
                            ?>
" rel="nofollow" title="<?php 
                            echo smartyTranslate(array('s' => 'Add to cart'), $_smarty_tpl);
                            ?>
" data-id-product="<?php 
                            echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);
                            ?>
">
										<span><?php 
                            echo smartyTranslate(array('s' => 'Add to cart'), $_smarty_tpl);
                            ?>
</span>
									</a>
								<?php 
                        }
                        ?>
							<?php 
                    } else {
                        ?>
								<span class="button ajax_add_to_cart_button btn btn-default disabled">
									<span><?php 
                        echo smartyTranslate(array('s' => 'Add to cart'), $_smarty_tpl);
                        ?>
</span>
								</span>
							<?php 
                    }
                    ?>
						<?php 
                }
                ?>
						<a itemprop="url" class="button lnk_view btn btn-default" href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['link'], ENT_QUOTES, 'UTF-8', true);
                ?>
" title="<?php 
                echo smartyTranslate(array('s' => 'View'), $_smarty_tpl);
                ?>
">
							<span><?php 
                if (isset($_smarty_tpl->tpl_vars['product']->value['customization_required']) && $_smarty_tpl->tpl_vars['product']->value['customization_required']) {
                    echo smartyTranslate(array('s' => 'Customize'), $_smarty_tpl);
                } else {
                    echo smartyTranslate(array('s' => 'More'), $_smarty_tpl);
                }
                ?>
</span>
						</a>
					</div>
					<?php 
                if (isset($_smarty_tpl->tpl_vars['product']->value['color_list'])) {
                    ?>
						<div class="color-list-container"><?php 
                    echo $_smarty_tpl->tpl_vars['product']->value['color_list'];
                    ?>
</div>
					<?php 
                }
                ?>
					<div class="product-flags">
						<?php 
                if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && (isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] || isset($_smarty_tpl->tpl_vars['product']->value['available_for_order']) && $_smarty_tpl->tpl_vars['product']->value['available_for_order'])) {
                    ?>
							<?php 
                    if (isset($_smarty_tpl->tpl_vars['product']->value['online_only']) && $_smarty_tpl->tpl_vars['product']->value['online_only']) {
                        ?>
								<span class="online_only"><?php 
                        echo smartyTranslate(array('s' => 'Online only'), $_smarty_tpl);
                        ?>
</span>
							<?php 
                    }
                    ?>
						<?php 
                }
                ?>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['product']->value['on_sale']) && $_smarty_tpl->tpl_vars['product']->value['on_sale'] && isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] && !$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
							<?php 
                } elseif (isset($_smarty_tpl->tpl_vars['product']->value['reduction']) && $_smarty_tpl->tpl_vars['product']->value['reduction'] && isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] && !$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
								<span class="discount"><?php 
                    echo smartyTranslate(array('s' => 'Reduced price!'), $_smarty_tpl);
                    ?>
</span>
							<?php 
                }
                ?>
					</div>
					<?php 
                if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && $_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value && (isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] || isset($_smarty_tpl->tpl_vars['product']->value['available_for_order']) && $_smarty_tpl->tpl_vars['product']->value['available_for_order'])) {
                    ?>
						<?php 
                    if (isset($_smarty_tpl->tpl_vars['product']->value['available_for_order']) && $_smarty_tpl->tpl_vars['product']->value['available_for_order'] && !isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value)) {
                        ?>
							<span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="availability">
								<?php 
                        if ($_smarty_tpl->tpl_vars['product']->value['allow_oosp'] || $_smarty_tpl->tpl_vars['product']->value['quantity'] > 0) {
                            ?>
									<span class="<?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['quantity'] <= 0 && !$_smarty_tpl->tpl_vars['product']->value['allow_oosp']) {
                                ?>
out-of-stock<?php 
                            } else {
                                ?>
available-now<?php 
                            }
                            ?>
">
										<link itemprop="availability" href="http://schema.org/InStock" /><?php 
                            if ($_smarty_tpl->tpl_vars['product']->value['quantity'] <= 0) {
                                if ($_smarty_tpl->tpl_vars['product']->value['allow_oosp']) {
                                    if (isset($_smarty_tpl->tpl_vars['product']->value['available_later']) && $_smarty_tpl->tpl_vars['product']->value['available_later']) {
                                        echo $_smarty_tpl->tpl_vars['product']->value['available_later'];
                                    } else {
                                        echo smartyTranslate(array('s' => 'In Stock'), $_smarty_tpl);
                                    }
                                } else {
                                    echo smartyTranslate(array('s' => 'Out of stock'), $_smarty_tpl);
                                }
                            } else {
                                if (isset($_smarty_tpl->tpl_vars['product']->value['available_now']) && $_smarty_tpl->tpl_vars['product']->value['available_now']) {
                                    echo $_smarty_tpl->tpl_vars['product']->value['available_now'];
                                } else {
                                    echo smartyTranslate(array('s' => 'In Stock'), $_smarty_tpl);
                                }
                            }
                            ?>
									</span>
								<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['product']->value['quantity_all_versions']) && $_smarty_tpl->tpl_vars['product']->value['quantity_all_versions'] > 0) {
                            ?>
									<span class="available-dif">
										<link itemprop="availability" href="http://schema.org/LimitedAvailability" /><?php 
                            echo smartyTranslate(array('s' => 'Product available with different options'), $_smarty_tpl);
                            ?>

									</span>
								<?php 
                        } else {
                            ?>
									<span class="out-of-stock">
										<link itemprop="availability" href="http://schema.org/OutOfStock" /><?php 
                            echo smartyTranslate(array('s' => 'Out of stock'), $_smarty_tpl);
                            ?>

									</span>
								<?php 
                        }
                        ?>
							</span>
						<?php 
                    }
                    ?>
					<?php 
                }
                ?>
				</div>
				<?php 
                if ($_smarty_tpl->tpl_vars['page_name']->value != 'index') {
                    ?>
	 				<div class="functional-buttons clearfix">
						<?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => 'displayProductListFunctionalButtons', 'product' => $_smarty_tpl->tpl_vars['product']->value), $_smarty_tpl);
                    ?>

						<?php 
                    if (isset($_smarty_tpl->tpl_vars['comparator_max_item']->value) && $_smarty_tpl->tpl_vars['comparator_max_item']->value) {
                        ?>
							<div class="compare">
								<a class="add_to_compare" href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['link'], ENT_QUOTES, 'UTF-8', true);
                        ?>
" data-id-product="<?php 
                        echo $_smarty_tpl->tpl_vars['product']->value['id_product'];
                        ?>
"><?php 
                        echo smartyTranslate(array('s' => 'Add to Compare'), $_smarty_tpl);
                        ?>
</a>
							</div>
						<?php 
                    }
                    ?>
					</div>
				<?php 
                }
                ?>
			</div><!-- .product-container> -->
		</li>
	<?php 
            }
            ?>
	</ul>
<?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'min_item'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'min_item'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'Please select at least one product', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'min_item'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

<?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'max_item'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'max_item'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'You cannot add more than %d product(s) to the product comparison', 'sprintf' => $_smarty_tpl->tpl_vars['comparator_max_item']->value, 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'max_item'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('comparator_max_item' => $_smarty_tpl->tpl_vars['comparator_max_item']->value), $_smarty_tpl);
            ?>

<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('comparedProductsIds' => $_smarty_tpl->tpl_vars['compared_products']->value), $_smarty_tpl);
            ?>

<?php 
        }
    }
<th>メッセージ (任意)</th>
<td>
<textarea name="message" rows="5" cols="40"><?php 
        echo smarty_modifier_t_escape($this->_tpl_vars['requests']['message']);
        ?>
</textarea>
</td>
</tr>
<?php 
        if (@OPENPNE_USE_CAPTCHA) {
            ?>
<tr>
<th>確認キーワード</th>
<td>
<p><img src="./cap.php?rand=<?php 
            echo smarty_function_math(array('equation' => "rand(0,99999999)"), $this);
            ?>
" alt="確認キーワード" /></p>
<p>※上に表示されているキーワードをご記入下さい。</p>
<input type="text" class="input_text" name="captcha" value="" size="30" />
</td>
</tr>
<?php 
        }
        ?>
</table>
<div class="operation">
<ul class="moreInfo button">
<li><input type="submit" class="input_submit" value="確認画面" /></li>
</ul>
</div>
    function content_561617a650eec8_42585878($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include 'D:\\workspace\\php\\nagoya6\\tools\\smarty\\plugins\\function.math.php';
        }
        ?>
<div id="view_wishlist">
    <?php 
        $_smarty_tpl->_capture_stack[0][] = array('path', null, null);
        ob_start();
        ?>
        <a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), ENT_QUOTES, 'UTF-8', true);
        ?>
"><?php 
        echo smartyTranslate(array('s' => 'My account', 'mod' => 'blockwishlist'), $_smarty_tpl);
        ?>
</a>
        <span class="navigation-pipe"><?php 
        echo $_smarty_tpl->tpl_vars['navigationPipe']->value;
        ?>
</span>
        <a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getModuleLink('blockwishlist', 'mywishlist'), ENT_QUOTES, 'UTF-8', true);
        ?>
"><?php 
        echo smartyTranslate(array('s' => 'My wishlists', 'mod' => 'blockwishlist'), $_smarty_tpl);
        ?>
</a>
        <span class="navigation-pipe"><?php 
        echo $_smarty_tpl->tpl_vars['navigationPipe']->value;
        ?>
</span>
        <?php 
        echo $_smarty_tpl->tpl_vars['current_wishlist']->value['name'];
        ?>

    <?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

    <h1 class="page-heading bottom-indent">
        <?php 
        echo smartyTranslate(array('s' => 'Wishlist', 'mod' => 'blockwishlist'), $_smarty_tpl);
        ?>

    </h1>
    <?php 
        if ($_smarty_tpl->tpl_vars['wishlists']->value) {
            ?>
        <p>
            <strong class="dark">
                <?php 
            echo smartyTranslate(array('s' => 'Other wishlists of %1s %2s:', 'sprintf' => array($_smarty_tpl->tpl_vars['current_wishlist']->value['firstname'], $_smarty_tpl->tpl_vars['current_wishlist']->value['lastname']), 'mod' => 'blockwishlist'), $_smarty_tpl);
            ?>

            </strong>
            <?php 
            $_smarty_tpl->tpl_vars['wishlist'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['wishlist']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['wishlists']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['wishlist']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['wishlist']->iteration = 0;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['total'] = $_smarty_tpl->tpl_vars['wishlist']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['iteration'] = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['wishlist']->key => $_smarty_tpl->tpl_vars['wishlist']->value) {
                $_smarty_tpl->tpl_vars['wishlist']->_loop = true;
                $_smarty_tpl->tpl_vars['wishlist']->iteration++;
                $_smarty_tpl->tpl_vars['wishlist']->last = $_smarty_tpl->tpl_vars['wishlist']->iteration === $_smarty_tpl->tpl_vars['wishlist']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['iteration']++;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['last'] = $_smarty_tpl->tpl_vars['wishlist']->last;
                ?>
                <?php 
                if ($_smarty_tpl->tpl_vars['wishlist']->value['id_wishlist'] != $_smarty_tpl->tpl_vars['current_wishlist']->value['id_wishlist']) {
                    ?>
                    <a href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getModuleLink('blockwishlist', 'view', array('token' => $_smarty_tpl->tpl_vars['wishlist']->value['token'])), ENT_QUOTES, 'UTF-8', true);
                    ?>
" rel="nofollow" title="<?php 
                    echo $_smarty_tpl->tpl_vars['wishlist']->value['name'];
                    ?>
">
                        <?php 
                    echo $_smarty_tpl->tpl_vars['wishlist']->value['name'];
                    ?>

                    </a>
                    <?php 
                    if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['i']['last']) {
                        ?>
                        /
                    <?php 
                    }
                    ?>
                <?php 
                }
                ?>
            <?php 
            }
            ?>
        </p>
    <?php 
        }
        ?>

    <div class="wlp_bought">
        <?php 
        $_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable(3, null, 0);
        ?>
        <?php 
        $_smarty_tpl->tpl_vars['nbItemsPerLineTablet'] = new Smarty_variable(2, null, 0);
        ?>
        <?php 
        $_smarty_tpl->tpl_vars['nbLi'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['products']->value), null, 0);
        ?>
        <?php 
        echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLine", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'nbLines'), $_smarty_tpl);
        ?>

        <?php 
        echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLineTablet", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLineTablet' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'nbLinesTablet'), $_smarty_tpl);
        ?>

        <ul class="row wlp_bought_list">
            <?php 
        $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['product']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['products']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['product']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['product']->iteration = 0;
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['total'] = $_smarty_tpl->tpl_vars['product']->total;
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['iteration'] = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
            $_smarty_tpl->tpl_vars['product']->_loop = true;
            $_smarty_tpl->tpl_vars['product']->iteration++;
            $_smarty_tpl->tpl_vars['product']->last = $_smarty_tpl->tpl_vars['product']->iteration === $_smarty_tpl->tpl_vars['product']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['iteration']++;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['last'] = $_smarty_tpl->tpl_vars['product']->last;
            ?>
                <?php 
            echo smarty_function_math(array('equation' => "(total%perLine)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['i']['total'], 'perLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'totModulo'), $_smarty_tpl);
            ?>

                <?php 
            echo smarty_function_math(array('equation' => "(total%perLineT)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['i']['total'], 'perLineT' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'totModuloTablet'), $_smarty_tpl);
            ?>

                <?php 
            if ($_smarty_tpl->tpl_vars['totModulo']->value == 0) {
                $_smarty_tpl->tpl_vars['totModulo'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLine']->value, null, 0);
            }
            ?>
                <?php 
            if ($_smarty_tpl->tpl_vars['totModuloTablet']->value == 0) {
                $_smarty_tpl->tpl_vars['totModuloTablet'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, null, 0);
            }
            ?>
                <li
                        id="wlp_<?php 
            echo $_smarty_tpl->tpl_vars['product']->value['id_product'];
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];
            ?>
"
                        class="ajax_block_product col-xs-12 col-sm-6 col-md-4 <?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 0) {
                ?>
 last-in-line<?php 
            } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 1) {
                ?>
 first-in-line<?php 
            }
            ?>
 <?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['iteration'] > $_smarty_tpl->getVariable('smarty')->value['foreach']['i']['total'] - $_smarty_tpl->tpl_vars['totModulo']->value) {
                ?>
last-line<?php 
            }
            ?>
 <?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value == 0) {
                ?>
last-item-of-tablet-line<?php 
            } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value == 1) {
                ?>
first-item-of-tablet-line<?php 
            }
            ?>
 <?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['iteration'] > $_smarty_tpl->getVariable('smarty')->value['foreach']['i']['total'] - $_smarty_tpl->tpl_vars['totModuloTablet']->value) {
                ?>
last-tablet-line<?php 
            }
            ?>
">
                    <div class="row">
                        <div class="col-xs-6 col-sm-12">
                            <div class="product_image">
                                <a
                                        href="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductlink($_smarty_tpl->tpl_vars['product']->value['id_product'], $_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['category_rewrite']), ENT_QUOTES, 'UTF-8', true);
            ?>
"
                                        title="<?php 
            echo smartyTranslate(array('s' => 'Product detail', 'mod' => 'blockwishlist'), $_smarty_tpl);
            ?>
">
                                    <img
                                            class="replace-2x img-responsive"
                                            src="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['cover'], 'home_default'), ENT_QUOTES, 'UTF-8', true);
            ?>
"
                                            alt="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);
            ?>
"/>
                                </a>
                            </div>
                        </div>
                        <div class="col-xs-6 col-sm-12">
                            <div class="product_infos">
                                <p id="s_title" class="product-name">
                                    <?php 
            echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['product']->value['name'], 30, '...'), ENT_QUOTES, 'UTF-8', true);
            ?>

                                    <?php 
            if (isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) {
                ?>
                                        <a
                                                href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductlink($_smarty_tpl->tpl_vars['product']->value['id_product'], $_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['category_rewrite']), ENT_QUOTES, 'UTF-8', true);
                ?>
"
                                                title="<?php 
                echo smartyTranslate(array('s' => 'Product detail', 'mod' => 'blockwishlist'), $_smarty_tpl);
                ?>
">
                                            <small><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['attributes_small'], ENT_QUOTES, 'UTF-8', true);
                ?>
</small>
                                        </a>
                                    <?php 
            }
            ?>
                                </p>
                                <div class="wishlist_product_detail">
                                    <p class="form-group">
                                        <label for="quantity_<?php 
            echo $_smarty_tpl->tpl_vars['product']->value['id_product'];
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];
            ?>
">
                                            <?php 
            echo smartyTranslate(array('s' => 'Quantity', 'mod' => 'blockwishlist'), $_smarty_tpl);
            ?>
:
                                        </label>
                                        <input class="form-control grey" type="text"
                                               id="quantity_<?php 
            echo $_smarty_tpl->tpl_vars['product']->value['id_product'];
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];
            ?>
"
                                               value="<?php 
            echo intval($_smarty_tpl->tpl_vars['product']->value['quantity']);
            ?>
" size="3"/>
                                    </p>

                                    <p class="form-group selector1">
                                        <span><strong><?php 
            echo smartyTranslate(array('s' => 'Priority', 'mod' => 'blockwishlist'), $_smarty_tpl);
            ?>
:</strong> <?php 
            echo $_smarty_tpl->tpl_vars['product']->value['priority_name'];
            ?>
</span>
                                    </p>
                                    <div class="btn_action">
                                        <?php 
            if (isset($_smarty_tpl->tpl_vars['product']->value['attribute_quantity']) && $_smarty_tpl->tpl_vars['product']->value['attribute_quantity'] >= 1 || !isset($_smarty_tpl->tpl_vars['product']->value['attribute_quantity']) && $_smarty_tpl->tpl_vars['product']->value['product_quantity'] >= 1 || isset($_smarty_tpl->tpl_vars['product']->value['allow_oosp']) && $_smarty_tpl->tpl_vars['product']->value['allow_oosp']) {
                ?>
                                            <?php 
                if (!$_smarty_tpl->tpl_vars['ajax']->value) {
                    ?>
                                                <form id="addtocart_<?php 
                    echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);
                    ?>
_<?php 
                    echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);
                    ?>
"
                                                      action="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart'), ENT_QUOTES, 'UTF-8', true);
                    ?>
"
                                                      method="post">
                                                    <p class="hidden">
                                                        <input type="hidden" name="id_product"
                                                               value="<?php 
                    echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);
                    ?>
"
                                                               id="product_page_product_id"/>
                                                        <input type="hidden" name="add" value="1"/>
                                                        <input type="hidden" name="token" value="<?php 
                    echo $_smarty_tpl->tpl_vars['token']->value;
                    ?>
"/>
                                                        <input type="hidden" name="id_product_attribute"
                                                               id="idCombination"
                                                               value="<?php 
                    echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);
                    ?>
"/>
                                                    </p>
                                                </form>
                                            <?php 
                }
                ?>
                                            <a
                                                    href="javascript:void(0);"
                                                    class="button ajax_add_to_cart_button btn btn-default"
                                                    onclick="WishlistBuyProduct('<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);
                ?>
', '<?php 
                echo $_smarty_tpl->tpl_vars['product']->value['id_product'];
                ?>
', '<?php 
                echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];
                ?>
', '<?php 
                echo $_smarty_tpl->tpl_vars['product']->value['id_product'];
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];
                ?>
', this, <?php 
                echo $_smarty_tpl->tpl_vars['ajax']->value;
                ?>
);"
                                                    title="<?php 
                echo smartyTranslate(array('s' => 'Add to cart', 'mod' => 'blockwishlist'), $_smarty_tpl);
                ?>
"
                                                    rel="nofollow">
                                                <span><?php 
                echo smartyTranslate(array('s' => 'Add to cart', 'mod' => 'blockwishlist'), $_smarty_tpl);
                ?>
</span>
                                            </a>
                                        <?php 
            } else {
                ?>
                                            <span class="button ajax_add_to_cart_button btn btn-default disabled">
												<span><?php 
                echo smartyTranslate(array('s' => 'Add to cart', 'mod' => 'blockwishlist'), $_smarty_tpl);
                ?>
</span>
											</span>
                                        <?php 
            }
            ?>
                                        <a
                                                class="button lnk_view btn btn-default"
                                                href="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'], $_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['category_rewrite']), ENT_QUOTES, 'UTF-8', true);
            ?>
"
                                                title="<?php 
            echo smartyTranslate(array('s' => 'View', 'mod' => 'blockwishlist'), $_smarty_tpl);
            ?>
"
                                                rel="nofollow">
                                            <span><?php 
            echo smartyTranslate(array('s' => 'View', 'mod' => 'blockwishlist'), $_smarty_tpl);
            ?>
</span>
                                        </a>
                                    </div>
                                    <!-- .btn_action -->
                                </div>
                                <!-- .wishlist_product_detail -->
                            </div>
                            <!-- .product_infos -->
                        </div>
                    </div>
                </li>
            <?php 
        }
        ?>
        </ul>
    </div>
</div> <!-- #view_wishlist -->
<?php 
    }
						<?php 
        echo $_smarty_tpl->getVariable('Shopping')->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]->price;
        ?>

					</td>
					<td>
						<img src="<?php 
        echo $_smarty_tpl->getVariable('tmp')->value;
        echo $_smarty_tpl->getVariable('Shopping')->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]->photoLink;
        ?>
" width="80" height="90">
					</td>			
					<td>
						<?php 
        ob_start();
        echo smarty_function_math(array('equation' => "(x * y)", 'x' => $_smarty_tpl->getVariable('Shopping')->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]->quantity, 'y' => $_smarty_tpl->getVariable('Shopping')->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]->price), $_smarty_tpl);
        $_tmp1 = ob_get_clean();
        $_smarty_tpl->tpl_vars['total'] = new Smarty_variable($_tmp1, null, null);
        ?>
						<?php 
        echo number_format($_smarty_tpl->getVariable('total')->value, 0, ".", ",");
        ?>

					</td>
				</tr>
				<?php 
    }
}
?>
				<tr><td align="center" colspan ="6"><p>Số tiền phải trả:&nbsp <?php 
echo number_format($_smarty_tpl->getVariable('totalAll')->value, 0, ".", ",");
    function content_5669016c7d1356_20702564($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include 'E:\\Xampp\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\function.math.php';
        }
        ?>
<div class="ptsmaplocator">
    <h3 class="page-subheading"><?php 
        echo smartyTranslate(array('s' => 'Map Locator', 'mod' => 'ptsmaplocator'), $_smarty_tpl);
        ?>
</h3>
    <div class="box-content">
        <?php 
        if (!empty($_smarty_tpl->tpl_vars['pts_description']->value)) {
            ?>
            <div class="description"><?php 
            echo $_smarty_tpl->tpl_vars['pts_description']->value;
            ?>
</div>
        <?php 
        }
        ?>
        <div class="maplocator">
            <div id="directory-main-bar-<?php 
        echo $_smarty_tpl->tpl_vars['mod_id']->value;
        ?>
" class="gmap"></div>
        </div>
        
        <div class="box-shop">
            <?php 
        if (isset($_smarty_tpl->tpl_vars['pts_stores']->value)) {
            ?>
                <?php 
            $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(0, null, 0);
            ?>
                <?php 
            $_smarty_tpl->tpl_vars['location'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['location']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['pts_stores']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['location']->key => $_smarty_tpl->tpl_vars['location']->value) {
                $_smarty_tpl->tpl_vars['location']->_loop = true;
                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['location']->key;
                ?>
                    <?php 
                echo smarty_function_math(array('equation' => "x + y", 'x' => $_smarty_tpl->tpl_vars['i']->value, 'y' => 1, 'assign' => 'i'), $_smarty_tpl);
                ?>

                    <div class="item-location" id="location-<?php 
                echo $_smarty_tpl->tpl_vars['location']->value["id_store"];
                ?>
" data-id="shop<?php 
                echo $_smarty_tpl->tpl_vars['i']->value;
                ?>
" data-lat="<?php 
                echo $_smarty_tpl->tpl_vars['location']->value["latitude"];
                ?>
" data-lon="<?php 
                echo $_smarty_tpl->tpl_vars['location']->value["longitude"];
                ?>
">
                        <div class="shop-title">
                            <i class="icon-map-marker"></i><?php 
                echo $_smarty_tpl->tpl_vars['location']->value['name'];
                ?>

                        </div>
                        <div class="shop-address"><?php 
                echo $_smarty_tpl->tpl_vars['location']->value['address1'];
                ?>
</div>
                    </div>
                <?php 
            }
            ?>
            <?php 
        }
        ?>
        </div>
    </div>
</div>

<script type="text/javascript">

var mapDiv, map, infobox;
jQuery(document).ready(function($){
	mapDiv = $("#directory-main-bar-<?php 
        echo $_smarty_tpl->tpl_vars['mod_id']->value;
        ?>
");
	mapDiv.height(<?php 
        echo $_smarty_tpl->tpl_vars['pts_height']->value;
        ?>
).gmap3({
		map: {
			options: {
				"draggable": true
				,"mapTypeControl": true
				,"mapTypeId": google.maps.MapTypeId.ROADMAP
				,"scrollwheel": true //Alow scroll zoom in, zoom out
				,"panControl": true
				,"rotateControl": false
				,"scaleControl": true
				,"streetViewControl": true
				,"zoomControl": true
			}
		}
		,marker: {
			values: [
                            <?php 
        $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(0, null, 0);
        ?>
                            <?php 
        $_smarty_tpl->tpl_vars['location'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['location']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['pts_stores']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['location']->key => $_smarty_tpl->tpl_vars['location']->value) {
            $_smarty_tpl->tpl_vars['location']->_loop = true;
            ?>
                            {
                                <?php 
            echo smarty_function_math(array('equation' => "x + y", 'x' => $_smarty_tpl->tpl_vars['i']->value, 'y' => 1, 'assign' => 'i'), $_smarty_tpl);
            ?>

                                    
                                    latLng: [<?php 
            echo $_smarty_tpl->tpl_vars['location']->value['latitude'];
            ?>
, <?php 
            echo $_smarty_tpl->tpl_vars['location']->value['longitude'];
            ?>
],
                                    options: { 
                                            icon: "<?php 
            echo $_smarty_tpl->tpl_vars['location']->value['icon'];
            ?>
",
                                            //shadow: "icon-shadow.png",
                                    
                                    },
                                            
                                    data: '<div class="marker-holder">\n\
                                    <div class="marker-content with-image"><?php 
            if ($_smarty_tpl->tpl_vars['location']->value['has_picture']) {
                ?>
<img src="<?php 
                echo $_smarty_tpl->tpl_vars['img_store_dir']->value;
                echo $_smarty_tpl->tpl_vars['location']->value['id_store'];
                ?>
.jpg" alt=""><?php 
            }
            ?>
 \n\
                                        <div class="map-item-info">\n\
                                            <div class="title">'+"<?php 
            echo $_smarty_tpl->tpl_vars['location']->value['name'];
            ?>
"+'</div>\n\
                                            <div class="address">'+"<?php 
            echo $_smarty_tpl->tpl_vars['location']->value['address1'];
            ?>
"+'</div>\n\
                                            <div class="description">'+'<?php 
            echo $_smarty_tpl->tpl_vars['location']->value['working_hours'];
            ?>
'+'</div>\n\
                                            </div><div class="arrow"></div>\n\
                                            <div class="close"></div>\n\
                                        </div>\n\
                                    </div>\n\
                                </div>', 'id':'shop<?php 
            echo $_smarty_tpl->tpl_vars['i']->value;
            ?>
'
                            },
                            <?php 
        }
        ?>
                            
			],
			options:{
				draggable: false, //Alow move icon location
			},
			cluster:{
				radius: 20,
				// This style will be used for clusters with more than 0 markers
				0: {
					content: "<div class='cluster cluster-1'>CLUSTER_COUNT</div>",
					width: 90,
					height: 80
				},
				// This style will be used for clusters with more than 20 markers
				20: {
					content: "<div class='cluster cluster-2'>CLUSTER_COUNT</div>",
					width: 90,
					height: 80
				},
				// This style will be used for clusters with more than 50 markers
				50: {
					content: "<div class='cluster cluster-3'>CLUSTER_COUNT</div>",
					width: 90,
					height: 80
				},
				events: {
					click: function(cluster) {
						map.panTo(cluster.main.getPosition());
						map.setZoom(map.getZoom() + 2);
					}
				}
			},
			events: {
				click: function(marker, event, context){
					map.panTo(marker.getPosition());

					infobox.setContent(context.data);
					infobox.open(map,marker);

					// if map is small
					var iWidth = 260;
					var iHeight = 300;
					if((mapDiv.width() / 2) < iWidth ){
						var offsetX = iWidth - (mapDiv.width() / 2);
						map.panBy(offsetX,0);
					}
					if((mapDiv.height() / 2) < iHeight ){
						var offsetY = -(iHeight - (mapDiv.height() / 2));
						map.panBy(0,offsetY);
					}

				}
			}
		}
	},"autofit");

	map = mapDiv.gmap3("get");
	infobox = new InfoBox({
		pixelOffset: new google.maps.Size(-50, -65),
		closeBoxURL: '',
		enableEventPropagation: true
	});
	mapDiv.delegate('.infoBox .close','click',function () {
		infobox.close();
	});
        
	$(".box-shop .item-location").click(function(){
		var id = $(this).attr('data-id');
		var marker = $("#directory-main-bar-<?php 
        echo $_smarty_tpl->tpl_vars['mod_id']->value;
        ?>
").gmap3({ get: { id: id } });
		google.maps.event.trigger(marker, 'click');
		map.setCenter(marker.getPosition());
		map.setZoom(15);
	});
});

</script>
<?php 
    }
    function content_564727d8890760_83195767($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/home/activeciuk/www/bap/tools/smarty/plugins/function.math.php';
        }
        ?>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array('path', null, null);
        ob_start();
        echo smartyTranslate(array('s' => 'Manufacturers:'), $_smarty_tpl);
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<h1 class="page-heading product-listing">
	<?php 
        echo smartyTranslate(array('s' => 'Brands'), $_smarty_tpl);
        ?>

    <span class="heading-counter"><?php 
        if ($_smarty_tpl->tpl_vars['nbManufacturers']->value == 0) {
            echo smartyTranslate(array('s' => 'There are no manufacturers.'), $_smarty_tpl);
        } else {
            if ($_smarty_tpl->tpl_vars['nbManufacturers']->value == 1) {
                echo smartyTranslate(array('s' => 'There is 1 brand'), $_smarty_tpl);
            } else {
                echo smartyTranslate(array('s' => 'There are %d brands', 'sprintf' => $_smarty_tpl->tpl_vars['nbManufacturers']->value), $_smarty_tpl);
            }
        }
        ?>
</span>
</h1>
<?php 
        if (isset($_smarty_tpl->tpl_vars['errors']->value) && $_smarty_tpl->tpl_vars['errors']->value) {
            ?>
	<?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

<?php 
        } else {
            ?>
	<?php 
            if ($_smarty_tpl->tpl_vars['nbManufacturers']->value > 0) {
                ?>
    	<div class="content_sortPagiBar">
        	<div class="sortPagiBar clearfix">
				<?php 
                if (isset($_smarty_tpl->tpl_vars['manufacturer']->value) && isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']) && $_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'] > 0) {
                    ?>
					<ul class="display hidden-xs">
						<li class="display-title">
							<?php 
                    echo smartyTranslate(array('s' => 'View:'), $_smarty_tpl);
                    ?>

						</li>
						<li id="grid">
							<a rel="nofollow" href="#" title="<?php 
                    echo smartyTranslate(array('s' => 'Grid'), $_smarty_tpl);
                    ?>
">
								<i class="icon-th-large"></i><?php 
                    echo smartyTranslate(array('s' => 'Grid'), $_smarty_tpl);
                    ?>

							</a>
						</li>
						<li id="list">
							<a rel="nofollow" href="#" title="<?php 
                    echo smartyTranslate(array('s' => 'List'), $_smarty_tpl);
                    ?>
">
								<i class="icon-th-list"></i><?php 
                    echo smartyTranslate(array('s' => 'List'), $_smarty_tpl);
                    ?>

							</a>
						</li>
					</ul>
				<?php 
                }
                ?>
                <?php 
                echo $_smarty_tpl->getSubTemplate("./nbr-product-page.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

            </div>
        	<div class="top-pagination-content clearfix bottom-line">
				<?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('no_follow' => 1), 0);
                ?>

            </div>
        </div> <!-- .content_sortPagiBar -->

        <?php 
                $_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable(3, null, 0);
                ?>
        <?php 
                $_smarty_tpl->tpl_vars['nbItemsPerLineTablet'] = new Smarty_variable(2, null, 0);
                ?>
        <?php 
                $_smarty_tpl->tpl_vars['nbLi'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['manufacturers']->value), null, 0);
                ?>
        <?php 
                echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLine", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'nbLines'), $_smarty_tpl);
                ?>

        <?php 
                echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLineTablet", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLineTablet' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'nbLinesTablet'), $_smarty_tpl);
                ?>


		<ul id="manufacturers_list" class="list row">
			<?php 
                $_smarty_tpl->tpl_vars['manufacturer'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['manufacturer']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['manufacturers']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['manufacturer']->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars['manufacturer']->iteration = 0;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['manufacturers']['total'] = $_smarty_tpl->tpl_vars['manufacturer']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['manufacturers']['iteration'] = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars['manufacturer']->key => $_smarty_tpl->tpl_vars['manufacturer']->value) {
                    $_smarty_tpl->tpl_vars['manufacturer']->_loop = true;
                    $_smarty_tpl->tpl_vars['manufacturer']->iteration++;
                    $_smarty_tpl->tpl_vars['manufacturer']->last = $_smarty_tpl->tpl_vars['manufacturer']->iteration === $_smarty_tpl->tpl_vars['manufacturer']->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['manufacturers']['iteration']++;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['manufacturers']['last'] = $_smarty_tpl->tpl_vars['manufacturer']->last;
                    ?>
	        	<?php 
                    echo smarty_function_math(array('equation' => "(total%perLine)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['total'], 'perLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'totModulo'), $_smarty_tpl);
                    ?>

	            <?php 
                    echo smarty_function_math(array('equation' => "(total%perLineT)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['total'], 'perLineT' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'totModuloTablet'), $_smarty_tpl);
                    ?>

	            <?php 
                    if ($_smarty_tpl->tpl_vars['totModulo']->value == 0) {
                        $_smarty_tpl->tpl_vars['totModulo'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLine']->value, null, 0);
                    }
                    ?>
	            <?php 
                    if ($_smarty_tpl->tpl_vars['totModuloTablet']->value == 0) {
                        $_smarty_tpl->tpl_vars['totModuloTablet'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, null, 0);
                    }
                    ?>
				<li class="<?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 0) {
                        ?>
 last-in-line<?php 
                    } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 1) {
                        ?>
 first-in-line<?php 
                    }
                    ?>
 <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration'] > $_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['total'] - $_smarty_tpl->tpl_vars['totModulo']->value) {
                        ?>
last-line<?php 
                    }
                    ?>
 <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value == 0) {
                        ?>
last-item-of-tablet-line<?php 
                    } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value == 1) {
                        ?>
first-item-of-tablet-line<?php 
                    }
                    ?>
 <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration'] > $_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['total'] - $_smarty_tpl->tpl_vars['totModuloTablet']->value) {
                        ?>
last-tablet-line<?php 
                    }
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['last']) {
                        ?>
 item-last<?php 
                    }
                    ?>
 col-xs-12">
					<div class="mansup-container">
						<div class="row">
			            	<div class="left-side col-xs-12 col-sm-3">
								<div class="logo">
									<?php 
                    if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']) && $_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'] > 0) {
                        ?>
										<a
										class="lnk_img"
										href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getmanufacturerLink($_smarty_tpl->tpl_vars['manufacturer']->value['id_manufacturer'], $_smarty_tpl->tpl_vars['manufacturer']->value['link_rewrite']), ENT_QUOTES, 'UTF-8', true);
                        ?>
"
										title="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['manufacturer']->value['name'], ENT_QUOTES, 'UTF-8', true);
                        ?>
" >
									<?php 
                    }
                    ?>
										<img src="<?php 
                    echo $_smarty_tpl->tpl_vars['img_manu_dir']->value;
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['manufacturer']->value['image'], ENT_QUOTES, 'UTF-8', true);
                    ?>
-medium_default.jpg" alt="" />
									<?php 
                    if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']) && $_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'] > 0) {
                        ?>
										</a>
									<?php 
                    }
                    ?>
								</div> <!-- .logo -->
							</div> <!-- .left-side -->

							<div class="middle-side col-xs-12 col-sm-5">
								<h3>
									<?php 
                    if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']) && $_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'] > 0) {
                        ?>
										<a
										class="product-name"
										href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getmanufacturerLink($_smarty_tpl->tpl_vars['manufacturer']->value['id_manufacturer'], $_smarty_tpl->tpl_vars['manufacturer']->value['link_rewrite']), ENT_QUOTES, 'UTF-8', true);
                        ?>
">
									<?php 
                    }
                    ?>
										<?php 
                    echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['manufacturer']->value['name'], 60, '...'), ENT_QUOTES, 'UTF-8', true);
                    ?>

									<?php 
                    if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']) && $_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'] > 0) {
                        ?>
										</a>
									<?php 
                    }
                    ?>
								</h3>
								<div class="description rte">
									<?php 
                    echo $_smarty_tpl->tpl_vars['manufacturer']->value['short_description'];
                    ?>

								</div>
			                </div> <!-- .middle-side -->

							<div class="right-side col-xs-12 col-sm-4">
			                	<div class="right-side-content">
			                        <p class="product-counter">
			                            <?php 
                    if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']) && $_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'] > 0) {
                        ?>
			                            	<a href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getmanufacturerLink($_smarty_tpl->tpl_vars['manufacturer']->value['id_manufacturer'], $_smarty_tpl->tpl_vars['manufacturer']->value['link_rewrite']), ENT_QUOTES, 'UTF-8', true);
                        ?>
">
			                            <?php 
                    }
                    ?>
			                            <?php 
                    if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']) && $_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'] == 1) {
                        ?>
			                            	<?php 
                        echo smartyTranslate(array('s' => '%d product', 'sprintf' => intval($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])), $_smarty_tpl);
                        ?>

			                            <?php 
                    } else {
                        ?>
			                              <?php 
                        if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']) && $_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'] > 0) {
                            ?>
			                            	<?php 
                            echo smartyTranslate(array('s' => '%d products', 'sprintf' => intval($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])), $_smarty_tpl);
                            ?>

			                              <?php 
                        }
                        ?>
			                            <?php 
                    }
                    ?>
			                            <?php 
                    if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']) && $_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'] > 0) {
                        ?>
			                        		</a>
			                        	<?php 
                    }
                    ?>
			                        </p>
				                    <?php 
                    if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']) && $_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'] > 0) {
                        ?>
				                        <a
				                        class="btn btn-default button exclusive-medium"
				                        href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getmanufacturerLink($_smarty_tpl->tpl_vars['manufacturer']->value['id_manufacturer'], $_smarty_tpl->tpl_vars['manufacturer']->value['link_rewrite']), ENT_QUOTES, 'UTF-8', true);
                        ?>
">
				                        	<span>
				                        		<?php 
                        echo smartyTranslate(array('s' => 'view products'), $_smarty_tpl);
                        ?>
 <i class="icon-chevron-right right"></i>
				                        	</span>
				                        </a>
				                    <?php 
                    }
                    ?>
			                    </div>
			                </div> <!-- .right-side -->
			            </div>
			        </div>
				</li>
			<?php 
                }
                ?>
		</ul>
        <div class="content_sortPagiBar">
        	<div class="bottom-pagination-content clearfix">
				<?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('no_follow' => 1, 'paginationId' => 'bottom'), 0);
                ?>

            </div>
        </div>
	<?php 
            }
        }
    }
    function content_56692eb37dd4d4_45149524($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include 'E:\\Xampp\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\function.math.php';
        }
        ?>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array('path', null, null);
        ob_start();
        echo smartyTranslate(array('s' => 'Suppliers:'), $_smarty_tpl);
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<h1 class="page-heading product-listing"><?php 
        echo smartyTranslate(array('s' => 'Suppliers:'), $_smarty_tpl);
        ?>

	<span class="heading-counter"><?php 
        if ($_smarty_tpl->tpl_vars['nbSuppliers']->value == 0) {
            echo smartyTranslate(array('s' => 'There are no suppliers.'), $_smarty_tpl);
        } else {
            if ($_smarty_tpl->tpl_vars['nbSuppliers']->value == 1) {
                echo smartyTranslate(array('s' => 'There is %d supplier.', 'sprintf' => $_smarty_tpl->tpl_vars['nbSuppliers']->value), $_smarty_tpl);
            } else {
                echo smartyTranslate(array('s' => 'There are %d suppliers.', 'sprintf' => $_smarty_tpl->tpl_vars['nbSuppliers']->value), $_smarty_tpl);
            }
        }
        ?>
</span>
</h1>

<?php 
        if (isset($_smarty_tpl->tpl_vars['errors']->value) && $_smarty_tpl->tpl_vars['errors']->value) {
            ?>
	<?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

<?php 
        } else {
            ?>
	
<?php 
            if ($_smarty_tpl->tpl_vars['nbSuppliers']->value > 0) {
                ?>

    <?php 
                $_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable(4, null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars['nbItemsPerLineTablet'] = new Smarty_variable(2, null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars['nbLi'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['suppliers_list']->value), null, 0);
                ?>
    <?php 
                echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLine", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'nbLines'), $_smarty_tpl);
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLineTablet", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLineTablet' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'nbLinesTablet'), $_smarty_tpl);
                ?>


	<ul id="suppliers_list" class="list-unstyled list row">
		<?php 
                $_smarty_tpl->tpl_vars['supplier'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['supplier']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['suppliers_list']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['supplier']->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['supplier']['total'] = $_smarty_tpl->tpl_vars['supplier']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['supplier']['iteration'] = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars['supplier']->key => $_smarty_tpl->tpl_vars['supplier']->value) {
                    $_smarty_tpl->tpl_vars['supplier']->_loop = true;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['supplier']['iteration']++;
                    ?>
	    	<?php 
                    echo smarty_function_math(array('equation' => "(total%perLine)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['supplier']['total'], 'perLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'totModulo'), $_smarty_tpl);
                    ?>

	        <?php 
                    echo smarty_function_math(array('equation' => "(total%perLineT)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['supplier']['total'], 'perLineT' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'totModuloTablet'), $_smarty_tpl);
                    ?>

	        <?php 
                    if ($_smarty_tpl->tpl_vars['totModulo']->value == 0) {
                        $_smarty_tpl->tpl_vars['totModulo'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLine']->value, null, 0);
                    }
                    ?>
	        <?php 
                    if ($_smarty_tpl->tpl_vars['totModuloTablet']->value == 0) {
                        $_smarty_tpl->tpl_vars['totModuloTablet'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, null, 0);
                    }
                    ?>
			<li class="<?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['supplier']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 0) {
                        ?>
 last-in-line<?php 
                    } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['supplier']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 1) {
                        ?>
 first-in-line<?php 
                    }
                    ?>
 <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['supplier']['iteration'] > $_smarty_tpl->getVariable('smarty')->value['foreach']['supplier']['total'] - $_smarty_tpl->tpl_vars['totModulo']->value) {
                        ?>
last-line<?php 
                    }
                    ?>
 <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['supplier']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value == 0) {
                        ?>
last-item-of-tablet-line<?php 
                    } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['supplier']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value == 1) {
                        ?>
first-item-of-tablet-line<?php 
                    }
                    ?>
 <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['supplier']['iteration'] > $_smarty_tpl->getVariable('smarty')->value['foreach']['supplier']['total'] - $_smarty_tpl->tpl_vars['totModuloTablet']->value) {
                        ?>
last-tablet-line<?php 
                    }
                    ?>
 col-xs-12 col-sm-<?php 
                    echo 12 / $_smarty_tpl->tpl_vars['nbItemsPerLine']->value;
                    ?>
 col-md-<?php 
                    echo 12 / $_smarty_tpl->tpl_vars['nbItemsPerLine']->value;
                    ?>
">
				<div class="mansup-container">
	            	<div class="left-side">
						<!-- logo -->
						<div class="logo">
							<?php 
                    if ($_smarty_tpl->tpl_vars['supplier']->value['nb_products'] > 0) {
                        ?>
								<a href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getsupplierLink($_smarty_tpl->tpl_vars['supplier']->value['id_supplier'], $_smarty_tpl->tpl_vars['supplier']->value['link_rewrite']), ENT_QUOTES, 'UTF-8', true);
                        ?>
" title="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['supplier']->value['name'], ENT_QUOTES, 'UTF-8', true);
                        ?>
">
							<?php 
                    }
                    ?>
							<img src="<?php 
                    echo $_smarty_tpl->tpl_vars['img_sup_dir']->value;
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['supplier']->value['image'], ENT_QUOTES, 'UTF-8', true);
                    ?>
-medium_default.jpg" alt="" width="<?php 
                    echo $_smarty_tpl->tpl_vars['mediumSize']->value['width'];
                    ?>
" height="<?php 
                    echo $_smarty_tpl->tpl_vars['mediumSize']->value['height'];
                    ?>
" />
							<?php 
                    if ($_smarty_tpl->tpl_vars['supplier']->value['nb_products'] > 0) {
                        ?>
								</a>
							<?php 
                    }
                    ?>
						</div> <!-- .logo -->
					</div> <!-- .left-side -->

					<div class="middle-side">	
						<h3>
							<?php 
                    if ($_smarty_tpl->tpl_vars['supplier']->value['nb_products'] > 0) {
                        ?>
								<a class="product-name" href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getsupplierLink($_smarty_tpl->tpl_vars['supplier']->value['id_supplier'], $_smarty_tpl->tpl_vars['supplier']->value['link_rewrite']), ENT_QUOTES, 'UTF-8', true);
                        ?>
">
							<?php 
                    }
                    ?>
							<?php 
                    echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['supplier']->value['name'], 60, '...'), ENT_QUOTES, 'UTF-8', true);
                    ?>

							<?php 
                    if ($_smarty_tpl->tpl_vars['supplier']->value['nb_products'] > 0) {
                        ?>
								</a>
							<?php 
                    }
                    ?>
						</h3>
						<div class="description">
							<?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['supplier']->value['description'], 180, '...');
                    ?>

						</div>
		            </div><!-- .middle-side -->

					<div class="right-side">
		            	<div class="right-side-content">
		                    <p class="product-counter">
		                        <?php 
                    if ($_smarty_tpl->tpl_vars['supplier']->value['nb_products'] > 0) {
                        ?>
		                            <a href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getsupplierLink($_smarty_tpl->tpl_vars['supplier']->value['id_supplier'], $_smarty_tpl->tpl_vars['supplier']->value['link_rewrite']), ENT_QUOTES, 'UTF-8', true);
                        ?>
">
		                        <?php 
                    }
                    ?>
		                        <?php 
                    if ($_smarty_tpl->tpl_vars['supplier']->value['nb_products'] == 1) {
                        echo smartyTranslate(array('s' => '%d product', 'sprintf' => intval($_smarty_tpl->tpl_vars['supplier']->value['nb_products'])), $_smarty_tpl);
                    } else {
                        echo smartyTranslate(array('s' => '%d products', 'sprintf' => intval($_smarty_tpl->tpl_vars['supplier']->value['nb_products'])), $_smarty_tpl);
                    }
                    ?>
		                    	<?php 
                    if ($_smarty_tpl->tpl_vars['supplier']->value['nb_products'] > 0) {
                        ?>
		                        	</a>
		                    	<?php 
                    }
                    ?>
		                    </p>
		                    <?php 
                    if ($_smarty_tpl->tpl_vars['supplier']->value['nb_products'] > 0) {
                        ?>
		                        <a class="btn btn-default button exclusive-medium" href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getsupplierLink($_smarty_tpl->tpl_vars['supplier']->value['id_supplier'], $_smarty_tpl->tpl_vars['supplier']->value['link_rewrite']), ENT_QUOTES, 'UTF-8', true);
                        ?>
"><span><?php 
                        echo smartyTranslate(array('s' => 'View products'), $_smarty_tpl);
                        ?>
 <i class="icon-chevron-right right"></i></span></a>
		                    <?php 
                    }
                    ?>
		                </div>
					</div><!-- .right-side -->
		        </div>
			</li>
		<?php 
                }
                ?>
	</ul>
	<div class="bottom-pagination-content content_sortPagiBar clearfix">
            <?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('no_follow' => 1, 'paginationId' => 'bottom'), 0);
                ?>

    </div>
<?php 
            }
        }
    }
Example #11
0
                    ?>
								<span class="shop_desc"><?php 
                    echo $this->_tpl_vars['locale']['index_shop']['main_field_price'];
                    ?>
:</span> <span class="shop_extra"><?php 
                    echo $this->_tpl_vars['data']['netto'];
                    ?>
</span>
								+ <?php 
                    echo $this->_tpl_vars['data']['afa'];
                    ?>
% <?php 
                    echo $this->_tpl_vars['locale']['index_shop']['main_field_vat'];
                    ?>
 = <span class="shop_extra"><b><?php 
                    echo smarty_function_math(array('equation' => "x + (x/100*y)", 'x' => $this->_tpl_vars['data']['netto'], 'y' => $this->_tpl_vars['data']['afa']), $this);
                    ?>
</b></span>
							<?php 
                }
                ?>
						</p>
					<?php 
            }
            ?>

										<?php 
            $_from = $this->_tpl_vars['tplfields'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
    function content_55e61f9ae0ca45_28054294($_smarty_tpl)
    {
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_math')) {
            include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
        }
        if (!is_callable('smarty_modifier_enum')) {
            include '/var/www/html/market/app/functions/smarty_plugins/modifier.enum.php';
        }
        if (!is_callable('smarty_modifier_in_array')) {
            include '/var/www/html/market/app/functions/smarty_plugins/modifier.in_array.php';
        }
        fn_preload_lang_vars(array('information', 'name', 'text_ult_product_store_field_tooltip', 'categories', 'tt_views_products_update_categories', 'price', 'full_description', 'edit_content_on_site', 'images', 'text_product_thumbnail', 'text_product_detailed_image', 'options_settings', 'options_type', 'simultaneous', 'sequential', 'exceptions_type', 'forbidden', 'allowed', 'pricing_inventory', 'sku', 'list_price', 'tt_views_products_update_list_price', 'in_stock', 'edit', 'zero_price_action', 'zpa_refuse', 'zpa_permit', 'zpa_ask_price', 'inventory', 'tt_views_products_update_inventory', 'track_with_options', 'track_without_options', 'dont_track', 'min_order_qty', 'max_order_qty', 'quantity_step', 'list_quantity_count', 'taxes', 'availability', 'usergroups', 'creation_date', 'available_since', 'out_of_stock_actions', 'tt_views_products_update_out_of_stock_actions', 'none', 'buy_in_advance', 'sign_up_for_notification', 'extra', 'product_details_view', 'feature_comparison', 'downloadable', 'edp_enable_shipping', 'time_unlimited_download', 'short_description', 'popularity', 'ttc_popularity', 'search_words', 'promo_text', 'additional_images', 'sort_images', 'sort', 'additional_thumbnail', 'additional_popup_larger_image', 'text_additional_thumbnail', 'text_additional_detailed_image', 'additional_thumbnail', 'additional_popup_larger_image', 'text_additional_thumbnail', 'text_additional_detailed_image', 'seo_meta_data', 'page_title', 'ttc_page_title', 'meta_description', 'meta_keywords', 'preview', 'clone', 'delete', 'editing_product', 'new_product'));
        $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null);
        ob_start();
        ?>

    <?php 
        $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null);
        ob_start();
        ?>
        

        <?php 
        $_smarty_tpl->tpl_vars["categories_company_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_data']->value['company_id'], null, 0);
        ?>
        <?php 
        $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['product_data']->value, "product"), null, 0);
        ?>

        <?php 
        if (fn_allowed_for("ULTIMATE")) {
            ?>
            <?php 
            $_smarty_tpl->tpl_vars["categories_company_id"] = new Smarty_variable('', null, 0);
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) {
                ?>
                <?php 
                $_smarty_tpl->tpl_vars["no_hide_input_if_shared_product"] = new Smarty_variable("cm-no-hide-input", null, 0);
                ?>
            <?php 
            }
            ?>

            <?php 
            if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y") {
                ?>
                <?php 
                $_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(true, null, 0);
                ?>
            <?php 
            }
            ?>
        <?php 
        }
        ?>

        <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['product_id']) {
            ?>
            <?php 
            $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_data']->value['product_id'], null, 0);
            ?>
        <?php 
        } else {
            ?>
            <?php 
            $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0);
            ?>
        <?php 
        }
        ?>
        <form id='form' action="<?php 
        echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
        ?>
" method="post" name="product_update_form" class="form-horizontal form-edit  cm-disable-empty-files <?php 
        if (fn_check_form_permissions('') || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) {
            ?>
 cm-hide-inputs<?php 
        }
        ?>
" enctype="multipart/form-data"> 
            <input type="hidden" name="fake" value="1" />
            <input type="hidden" class="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
        ?>
" name="selected_section" id="selected_section" value="<?php 
        echo htmlspecialchars($_REQUEST['selected_section'], ENT_QUOTES, 'UTF-8');
        ?>
" />
            <input type="hidden" class="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
        ?>
" name="product_id" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" />

            

            <div class="product-manage" id="content_detailed"> 

                
                <?php 
        echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("information"), 'target' => "#acc_information"), 0);
        ?>


                <div id="acc_information" class="collapse in">

                    <div class="control-group <?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
                        <label for="product_description_product" class="control-label cm-required"><?php 
        echo $_smarty_tpl->__("name");
        ?>
</label>
                        <div class="controls">
                            <input class="input-large" form="form" type="text" name="product_data[product]" id="product_description_product" size="55" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['product'], ENT_QUOTES, 'UTF-8');
        ?>
" />
                            <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => 'product', 'name' => "update_all_vendors[product]"), 0);
        ?>

                        </div>
                    </div>

                    <?php 
        $_smarty_tpl->tpl_vars["result_ids"] = new Smarty_variable("product_categories", null, 0);
        ?>

                    <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "companies:product_details_fields"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "companies:product_details_fields"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

                    <?php 
            if (fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['mode']->value != "add") {
                ?>
                        <?php 
                $_smarty_tpl->tpl_vars["reload_form"] = new Smarty_variable(true, null, 0);
                ?>
                    <?php 
            }
            ?>

                    <?php 
            if (fn_allowed_for("ULTIMATE")) {
                ?>
                        <?php 
                $_smarty_tpl->tpl_vars["companies_tooltip"] = new Smarty_variable($_smarty_tpl->__("text_ult_product_store_field_tooltip"), null, 0);
                ?>
                    <?php 
            }
            ?>

                    <?php 
            echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "product_data[company_id]", 'id' => "product_data_company_id", 'selected' => $_smarty_tpl->tpl_vars['product_data']->value['company_id'], 'tooltip' => $_smarty_tpl->tpl_vars['companies_tooltip']->value, 'reload_form' => $_smarty_tpl->tpl_vars['reload_form']->value), 0);
            ?>


                    <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "companies:product_details_fields"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


                    <input type="hidden" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['result_ids']->value, ENT_QUOTES, 'UTF-8');
        ?>
" name="result_ids">

                    <div class="control-group <?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
        ?>
" id="product_categories">
                        <?php 
        echo smarty_function_math(array('equation' => "rand()", 'assign' => "rnd"), $_smarty_tpl);
        ?>

                        <?php 
        if ($_REQUEST['category_id']) {
            ?>
                            <?php 
            $_smarty_tpl->tpl_vars["request_category_id"] = new Smarty_variable(explode(",", $_REQUEST['category_id']), null, 0);
            ?>
                        <?php 
        } else {
            ?>
                            <?php 
            $_smarty_tpl->tpl_vars["request_category_id"] = new Smarty_variable('', null, 0);
            ?>
                        <?php 
        }
        ?>
                        <label for="ccategories_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['rnd']->value, ENT_QUOTES, 'UTF-8');
        ?>
_ids" class="control-label cm-required"><?php 
        echo $_smarty_tpl->__("categories");
        echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_categories")), 0);
        ?>
</label>
                        <div class="controls">
                            <?php 
        echo $_smarty_tpl->getSubTemplate("pickers/categories/picker.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('hide_input' => $_smarty_tpl->tpl_vars['product_data']->value['shared_product'], 'company_ids' => $_smarty_tpl->tpl_vars['product_data']->value['company_id'], 'rnd' => $_smarty_tpl->tpl_vars['rnd']->value, 'data_id' => "categories", 'input_name' => "product_data[category_ids]", 'radio_input_name' => "product_data[main_category]", 'main_category' => $_smarty_tpl->tpl_vars['product_data']->value['main_category'], 'item_ids' => ($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['category_ids']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['request_category_id']->value : $tmp, 'hide_link' => true, 'hide_delete_button' => true, 'display_input_id' => "category_ids", 'disable_no_item_text' => true, 'view_mode' => "list", 'but_meta' => "btn"), 0);
        ?>

                        </div>
                    <!--product_categories--></div>

                    <div class="control-group <?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
                        <label for="elm_price_price" class="control-label cm-required"><?php 
        echo $_smarty_tpl->__("price");
        ?>
 (<?php 
        echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol'];
        ?>
):</label>
                        <div class="controls">
                            <input type="text" name="product_data[price]" id="elm_price_price" size="10" value="<?php 
        echo htmlspecialchars(fn_format_price(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['price']) === null || $tmp === '' ? "0.00" : $tmp, $_smarty_tpl->tpl_vars['primary_currency']->value, null, false), ENT_QUOTES, 'UTF-8');
        ?>
" class="input-long" />
                            <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => 'price', 'name' => "update_all_vendors[price]"), 0);
        ?>

                        </div>
                    </div>

                    <div class="control-group cm-no-hide-input">
                        <label class="control-label" for="elm_product_full_descr"><?php 
        echo $_smarty_tpl->__("full_description");
        ?>
:</label>
                        <div class="controls">
                            <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => 'full_description', 'name' => "update_all_vendors[full_description]"), 0);
        ?>

                            <textarea id="elm_product_full_descr" name="product_data[full_description]" cols="55" rows="8" class="cm-wysiwyg input-large"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['full_description'], ENT_QUOTES, 'UTF-8');
        ?>
</textarea>

                            <?php 
        if ($_smarty_tpl->tpl_vars['view_uri']->value) {
            ?>
                                <?php 
            ob_start();
            echo htmlspecialchars(urlencode($_smarty_tpl->tpl_vars['view_uri']->value), ENT_QUOTES, 'UTF-8');
            $_tmp1 = ob_get_clean();
            ob_start();
            if (fn_allowed_for("ULTIMATE")) {
                echo "&switch_company_id=";
                echo (string) $_smarty_tpl->tpl_vars['product_data']->value['company_id'];
            }
            $_tmp2 = ob_get_clean();
            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=live_editor&status=enable&frontend_url=" . $_tmp1 . $_tmp2, 'but_text' => __("edit_content_on_site"), 'but_role' => "action", 'but_meta' => "btn-small btn-live-edit cm-post", 'but_target' => "_blank"), 0);
            ?>

                            <?php 
        }
        ?>
                        </div>
                    </div>
                    

                    <?php 
        echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "product_data[status]", 'id' => "elm_product_status", 'obj' => $_smarty_tpl->tpl_vars['product_data']->value, 'hidden' => true), 0);
        ?>


                    <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_detailed_images"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "products:update_detailed_images"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

                    <div class="control-group">
                        <label class="control-label"><?php 
            echo $_smarty_tpl->__("images");
            ?>
:</label>
                        <div class="controls">
                            <?php 
            echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "product_main", 'image_object_type' => "product", 'image_pair' => $_smarty_tpl->tpl_vars['product_data']->value['main_pair'], 'icon_text' => __("text_product_thumbnail"), 'detailed_text' => __("text_product_detailed_image"), 'no_thumbnail' => true), 0);
            ?>

                        </div>
                    </div>
                    <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "products:update_detailed_images"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


                </div>

                <hr>

                <?php 
        echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("options_settings"), 'target' => "#acc_options"), 0);
        ?>

                <?php 
        if (fn_allowed_for("ULTIMATE:FREE")) {
            ?>
                    <?php 
            $_smarty_tpl->tpl_vars['promo_class'] = new Smarty_variable("cm-promo-popup", null, 0);
            ?>
                    <?php 
            $_smarty_tpl->tpl_vars['disable_selectors'] = new Smarty_variable(true, null, 0);
            ?>
                <?php 
        }
        ?>

                <div id="acc_options" class="collapse in">
                    <div class="control-group <?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['promo_class']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
                        <label class="control-label" for="elm_options_type"><?php 
        echo $_smarty_tpl->__("options_type");
        ?>
:</label>
                        <div class="controls">
                            <select class="span3" name="product_data[options_type]" id="elm_options_type" <?php 
        if ($_smarty_tpl->tpl_vars['disable_selectors']->value) {
            ?>
disabled="disabled"<?php 
        }
        ?>
>
                                <option value="P" <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['options_type'] == "P") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("simultaneous");
        ?>
</option>
                                <option value="S" <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['options_type'] == "S") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("sequential");
        ?>
</option>
                            </select>
                        </div>
                    </div>
                    <div class="control-group <?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['promo_class']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
                        <label class="control-label" for="elm_exceptions_type"><?php 
        echo $_smarty_tpl->__("exceptions_type");
        ?>
:</label>
                        <div class="controls">
                            <select class="span3" name="product_data[exceptions_type]" id="elm_exceptions_type" <?php 
        if ($_smarty_tpl->tpl_vars['disable_selectors']->value) {
            ?>
disabled="disabled"<?php 
        }
        ?>
>
                                <option value="F" <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['exceptions_type'] == "F") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("forbidden");
        ?>
</option>
                                <option value="A" <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['exceptions_type'] == "A") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("allowed");
        ?>
</option>
                            </select>
                        </div>
                    </div>
                </div>

                <hr>

                <?php 
        echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("pricing_inventory"), 'target' => "#acc_pricing_inventory"), 0);
        ?>

                <div id="acc_pricing_inventory" class="collapse in">
                    <div class="control-group">
                        <label class="control-label" for="elm_product_code"><?php 
        echo $_smarty_tpl->__("sku");
        ?>
:</label>
                        <div class="controls">
                            <input type="text" name="product_data[product_code]" id="elm_product_code" size="20" maxlength="32"  value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['product_code'], ENT_QUOTES, 'UTF-8');
        ?>
" class="input-long" />
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="elm_list_price"><?php 
        echo $_smarty_tpl->__("list_price");
        ?>
 (<?php 
        echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol'];
        ?>
) <?php 
        echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_list_price")), 0);
        ?>
:</label>
                        <div class="controls">
                            <input type="text" name="product_data[list_price]" id="elm_list_price" size="10" value="<?php 
        echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['list_price']) === null || $tmp === '' ? "0.00" : $tmp, ENT_QUOTES, 'UTF-8');
        ?>
" class="input-long" />
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="elm_in_stock"><?php 
        echo $_smarty_tpl->__("in_stock");
        ?>
:</label>
                        <div class="controls">
                            <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS")) {
            ?>
                                <?php 
            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("edit"), 'but_href' => "product_options.inventory?product_id=" . (string) $_smarty_tpl->tpl_vars['id']->value, 'but_role' => "edit"), 0);
            ?>

                            <?php 
        } else {
            ?>
                                <input type="text" name="product_data[amount]" id="elm_in_stock" size="10" value="<?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['amount']) === null || $tmp === '' ? "1" : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
" class="input-small" />
                            <?php 
        }
        ?>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="elm_zero_price_action"><?php 
        echo $_smarty_tpl->__("zero_price_action");
        ?>
:</label>
                        <div class="controls">
                            <select class="span5" name="product_data[zero_price_action]" id="elm_zero_price_action">
                                <option value="R" <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['zero_price_action'] == "R") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("zpa_refuse");
        ?>
</option>
                                <option value="P" <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['zero_price_action'] == "P") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("zpa_permit");
        ?>
</option>
                                <option value="A" <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['zero_price_action'] == "A") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("zpa_ask_price");
        ?>
</option>
                            </select>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="elm_product_tracking"><?php 
        echo $_smarty_tpl->__("inventory");
        echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_inventory")), 0);
        ?>
:</label>
                        <div class="controls">
                            <select class="span3" name="product_data[tracking]" id="elm_product_tracking" <?php 
        if ($_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "N") {
            ?>
disabled="disabled"<?php 
        }
        ?>
>
                                <?php 
        if ($_smarty_tpl->tpl_vars['product_options']->value) {
            ?>
                                    <option value="<?php 
            echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS"), ENT_QUOTES, 'UTF-8');
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS") && $_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "Y") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->__("track_with_options");
            ?>
</option>
                                <?php 
        }
        ?>
                                <option value="<?php 
        echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITHOUT_OPTIONS"), ENT_QUOTES, 'UTF-8');
        ?>
" <?php 
        ob_start();
        echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITHOUT_OPTIONS"), ENT_QUOTES, 'UTF-8');
        $_tmp3 = ob_get_clean();
        if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == $_tmp3 && $_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "Y") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("track_without_options");
        ?>
</option>
                                <option value="<?php 
        echo htmlspecialchars(smarty_modifier_enum("ProductTracking::DO_NOT_TRACK"), ENT_QUOTES, 'UTF-8');
        ?>
" <?php 
        ob_start();
        echo htmlspecialchars(smarty_modifier_enum("ProductTracking::DO_NOT_TRACK"), ENT_QUOTES, 'UTF-8');
        $_tmp4 = ob_get_clean();
        if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == $_tmp4 || $_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "N") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("dont_track");
        ?>
</option>
                            </select>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="elm_min_qty"><?php 
        echo $_smarty_tpl->__("min_order_qty");
        ?>
:</label>
                        <div class="controls">
                            <input type="text" name="product_data[min_qty]" size="10" id="elm_min_qty" value="<?php 
        echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['min_qty']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8');
        ?>
" class="input-small" />
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="elm_max_qty"><?php 
        echo $_smarty_tpl->__("max_order_qty");
        ?>
:</label>
                        <div class="controls">
                            <input type="text" name="product_data[max_qty]" id="elm_max_qty" size="10" value="<?php 
        echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['max_qty']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8');
        ?>
" class="input-small" />
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="elm_qty_step"><?php 
        echo $_smarty_tpl->__("quantity_step");
        ?>
:</label>
                        <div class="controls">
                            <input type="text" name="product_data[qty_step]" id="elm_qty_step" size="10" value="<?php 
        echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['qty_step']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8');
        ?>
" class="input-small" />
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="elm_list_qty_count"><?php 
        echo $_smarty_tpl->__("list_quantity_count");
        ?>
:</label>
                        <div class="controls">
                            <input type="text" name="product_data[list_qty_count]" id="elm_list_qty_count" size="10" value="<?php 
        echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['list_qty_count']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8');
        ?>
" class="input-small" />
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label"><?php 
        echo $_smarty_tpl->__("taxes");
        ?>
:</label>
                        <div class="controls">
                            <input type="hidden" name="product_data[tax_ids]" value="" />
                            <?php 
        $_smarty_tpl->tpl_vars["tax"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["tax"]->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['taxes']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["tax"]->key => $_smarty_tpl->tpl_vars["tax"]->value) {
            $_smarty_tpl->tpl_vars["tax"]->_loop = true;
            ?>
                                <label class="checkbox inline" for="elm_taxes_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8');
            ?>
">
                                    <input type="checkbox" name="product_data[tax_ids][<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8');
            ?>
]" id="elm_taxes_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8');
            ?>
" <?php 
            if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['tax']->value['tax_id'], $_smarty_tpl->tpl_vars['product_data']->value['tax_ids'])) {
                ?>
checked="checked"<?php 
            }
            ?>
 value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8');
            ?>
" />
                                    <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax'], ENT_QUOTES, 'UTF-8');
            ?>
</label>
                                <?php 
        }
        if (!$_smarty_tpl->tpl_vars["tax"]->_loop) {
            ?>
                                &ndash;
                            <?php 
        }
        ?>
                        </div>
                    </div>
                </div>

                <hr>
                <?php 
        echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("availability"), 'target' => "#acc_availability"), 0);
        ?>

                <div id="acc_availability" class="collapse in">
                    <?php 
        if (!fn_allowed_for("ULTIMATE:FREE")) {
            ?>
                        <div class="control-group">
                            <label class="control-label"><?php 
            echo $_smarty_tpl->__("usergroups");
            ?>
:</label>
                            <div class="controls">
                                <?php 
            echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "ug_id", 'name' => "product_data[usergroup_ids]", 'usergroups' => fn_get_usergroups(array("type" => "C", "status" => array("A", "H")), @constant('DESCR_SL')), 'usergroup_ids' => $_smarty_tpl->tpl_vars['product_data']->value['usergroup_ids'], 'input_extra' => '', 'list_mode' => false), 0);
            ?>

                            </div>
                        </div>
                    <?php 
        }
        ?>

                    <div class="control-group">
                        <label class="control-label" for="elm_date_holder"><?php 
        echo $_smarty_tpl->__("creation_date");
        ?>
:</label>
                        <div class="controls">
                            <?php 
        echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_date_holder", 'date_name' => "product_data[timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0);
        ?>

                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="elm_date_avail_holder"><?php 
        echo $_smarty_tpl->__("available_since");
        ?>
:</label>
                        <div class="controls">
                            <?php 
        echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_date_avail_holder", 'date_name' => "product_data[avail_since]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['avail_since']) === null || $tmp === '' ? '' : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0);
        ?>

                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="elm_out_of_stock_actions"><?php 
        echo $_smarty_tpl->__("out_of_stock_actions");
        echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_out_of_stock_actions")), 0);
        ?>
:</label>
                        <div class="controls">
                            <select class="span3" name="product_data[out_of_stock_actions]" id="elm_out_of_stock_actions">
                                <option value="N" <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['out_of_stock_actions'] == "N") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("none");
        ?>
</option>
                                <option value="B" <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['out_of_stock_actions'] == "B") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("buy_in_advance");
        ?>
</option>
                                <option value="S" <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['out_of_stock_actions'] == "S") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("sign_up_for_notification");
        ?>
</option>
                            </select>
                        </div>
                    </div>
                </div>

                <hr>

                <?php 
        echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("extra"), 'target' => "#acc_extra"), 0);
        ?>

                <div id="acc_extra" class="collapse in">
                    <div class="control-group">
                        <label class="control-label" for="elm_details_layout"><?php 
        echo $_smarty_tpl->__("product_details_view");
        ?>
:</label>
                        <div class="controls">
                            <select class="span5" id="elm_details_layout" name="product_data[details_layout]">
                                <?php 
        $_smarty_tpl->tpl_vars["item"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["item"]->_loop = false;
        $_smarty_tpl->tpl_vars["layout"] = new Smarty_Variable();
        $_from = fn_get_product_details_views($_smarty_tpl->tpl_vars['id']->value);
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars["item"]->key => $_smarty_tpl->tpl_vars["item"]->value) {
            $_smarty_tpl->tpl_vars["item"]->_loop = true;
            $_smarty_tpl->tpl_vars["layout"]->value = $_smarty_tpl->tpl_vars["item"]->key;
            ?>
                                    <option <?php 
            if ($_smarty_tpl->tpl_vars['product_data']->value['details_layout'] == $_smarty_tpl->tpl_vars['layout']->value) {
                ?>
selected="selected"<?php 
            }
            ?>
 value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['layout']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value, ENT_QUOTES, 'UTF-8');
            ?>
</option>
                                <?php 
        }
        ?>
                            </select>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="elm_product_feature_comparison"><?php 
        echo $_smarty_tpl->__("feature_comparison");
        ?>
:</label>
                        <div class="controls">
                            <label class="checkbox">
                                <input type="hidden" name="product_data[feature_comparison]" value="N" />
                                <input type="checkbox" name="product_data[feature_comparison]" id="elm_product_feature_comparison" value="Y" <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['feature_comparison'] == "Y") {
            ?>
checked="checked"<?php 
        }
        ?>
/>
                            </label>
                        </div>
                    </div>

                    <?php 
        if ($_smarty_tpl->tpl_vars['settings']->value['General']['enable_edp'] == "Y") {
            ?>
                    <div class="control-group">
                        <label class="control-label" for="elm_product_is_edp"><?php 
            echo $_smarty_tpl->__("downloadable");
            ?>
:</label>
                        <div class="controls">
                            <label class="checkbox">
                                <input type="hidden" name="product_data[is_edp]" value="N" />
                                <input type="checkbox" name="product_data[is_edp]" id="elm_product_is_edp" value="Y" <?php 
            if ($_smarty_tpl->tpl_vars['product_data']->value['is_edp'] == "Y") {
                ?>
checked="checked"<?php 
            }
            ?>
 onclick="Tygh.$('#edp_shipping').toggleBy(); Tygh.$('#edp_unlimited').toggleBy();"/>
                            </label>
                        </div>
                    </div>

                    <div class="control-group <?php 
            if ($_smarty_tpl->tpl_vars['product_data']->value['is_edp'] != "Y") {
                ?>
hidden<?php 
            }
            ?>
" id="edp_shipping">
                        <label class="control-label" for="elm_product_edp_shipping"><?php 
            echo $_smarty_tpl->__("edp_enable_shipping");
            ?>
:</label>
                        <div class="controls">
                            <label class="checkbox">
                                <input type="hidden" name="product_data[edp_shipping]" value="N" />
                                <input type="checkbox" name="product_data[edp_shipping]" id="elm_product_edp_shipping" value="Y"<?php 
            if ($_smarty_tpl->tpl_vars['product_data']->value['edp_shipping'] == "Y") {
                ?>
checked="checked"<?php 
            }
            ?>
 />
                            </label>
                        </div>
                    </div>

                    <div class="control-group <?php 
            if ($_smarty_tpl->tpl_vars['product_data']->value['is_edp'] != "Y") {
                ?>
hidden<?php 
            }
            ?>
" id="edp_unlimited">
                        <label class="control-label" for="elm_product_edp_unlimited"><?php 
            echo $_smarty_tpl->__("time_unlimited_download");
            ?>
:</label>
                        <div class="controls">
                            <label class="checkbox">
                                <input type="hidden" name="product_data[unlimited_download]" value="N" />
                                <input type="checkbox" name="product_data[unlimited_download]" id="elm_product_edp_unlimited" value="Y" <?php 
            if ($_smarty_tpl->tpl_vars['product_data']->value['unlimited_download'] == "Y") {
                ?>
checked="checked"<?php 
            }
            ?>
 />
                            </label>
                        </div>
                    </div>
                    <?php 
        }
        ?>

                    <?php 
        echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_from' => $_smarty_tpl->tpl_vars['product_data']->value['localization'], 'data_name' => "product_data[localization]"), 0);
        ?>


                    <div class="control-group <?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
                        <label class="control-label" for="elm_product_short_descr"><?php 
        echo $_smarty_tpl->__("short_description");
        ?>
:</label>
                        <div class="controls">
                            <textarea id="elm_product_short_descr" name="product_data[short_description]" cols="55" rows="2" class="cm-wysiwyg input-large"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['short_description'], ENT_QUOTES, 'UTF-8');
        ?>
</textarea>
                            <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "short_description", 'name' => "update_all_vendors[short_description]"), 0);
        ?>

                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="elm_product_popularity"><?php 
        echo $_smarty_tpl->__("popularity");
        echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_popularity")), 0);
        ?>
:</label>
                        <div class="controls">
                            <input type="text" name="product_data[popularity]" id="elm_product_popularity" size="55" value="<?php 
        echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['popularity']) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8');
        ?>
" class="input-long" />
                        </div>
                    </div>

                    <div class="control-group <?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
                        <label class="control-label" for="elm_product_search_words"><?php 
        echo $_smarty_tpl->__("search_words");
        ?>
:</label>
                        <div class="controls">
                            <textarea name="product_data[search_words]" id="elm_product_search_words" cols="55" rows="2" class="input-large"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['search_words'], ENT_QUOTES, 'UTF-8');
        ?>
</textarea>
                            <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => 'search_words', 'name' => "update_all_vendors[search_words]"), 0);
        ?>

                        </div>
                    </div>

                    <div class="control-group <?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
                        <label class="control-label" for="elm_product_promo_text"><?php 
        echo $_smarty_tpl->__("promo_text");
        ?>
:</label>
                        <div class="controls">
                            <textarea id="elm_product_promo_text" name="product_data[promo_text]" cols="55" rows="2" class="cm-wysiwyg input-large"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['promo_text'], ENT_QUOTES, 'UTF-8');
        ?>
</textarea>
                            <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "promo_text", 'name' => "update_all_vendors[promo_text]"), 0);
        ?>

                        </div>
                    </div>
                </div>
                <!--content_detailed--></div> 

            

            
            <div id="content_images" class="hidden clearfix"> 
                <?php 
        echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("additional_images")), 0);
        ?>

                <?php 
        if ($_smarty_tpl->tpl_vars['product_data']->value['image_pairs']) {
            ?>
                    <div class="cm-sortable sortable-box" data-ca-sortable-table="images_links" data-ca-sortable-id-name="pair_id" id="additional_images">
                        <?php 
            $_smarty_tpl->tpl_vars["new_image_position"] = new Smarty_variable("0", null, 0);
            ?>
                        <?php 
            $_smarty_tpl->tpl_vars['pair'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['pair']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['product_data']->value['image_pairs'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['pair']->key => $_smarty_tpl->tpl_vars['pair']->value) {
                $_smarty_tpl->tpl_vars['pair']->_loop = true;
                ?>
                            <div class="cm-row-item cm-sortable-id-<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['pair']->value['pair_id'], ENT_QUOTES, 'UTF-8');
                ?>
 cm-sortable-box">
                                <div class="cm-sortable-handle sortable-bar"><img src="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['images_dir']->value, ENT_QUOTES, 'UTF-8');
                ?>
/icon_sort_bar.gif" width="26" height="25" border="0" title="<?php 
                echo $_smarty_tpl->__("sort_images");
                ?>
" alt="<?php 
                echo $_smarty_tpl->__("sort");
                ?>
" class="valign" /></div>
                                <div class="sortable-item">
                                    <?php 
                echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "product_additional", 'image_object_type' => "product", 'image_key' => $_smarty_tpl->tpl_vars['pair']->value['pair_id'], 'image_type' => "A", 'image_pair' => $_smarty_tpl->tpl_vars['pair']->value, 'icon_title' => __("additional_thumbnail"), 'detailed_title' => __("additional_popup_larger_image"), 'icon_text' => __("text_additional_thumbnail"), 'detailed_text' => __("text_additional_detailed_image"), 'delete_pair' => true, 'no_thumbnail' => true), 0);
                ?>

                                </div>
                                <div class="clear"></div>
                            </div>
                            <?php 
                if ($_smarty_tpl->tpl_vars['new_image_position']->value <= $_smarty_tpl->tpl_vars['pair']->value['position']) {
                    ?>
                                <?php 
                    $_smarty_tpl->tpl_vars["new_image_position"] = new Smarty_variable($_smarty_tpl->tpl_vars['pair']->value['position'], null, 0);
                    ?>
                            <?php 
                }
                ?>
                        <?php 
            }
            ?>
                    </div>
                <?php 
        }
        ?>

                <div id="box_new_image">
                    <div class="clear cm-row-item">
                        <input type="hidden" name="product_add_additional_image_data[0][position]" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['new_image_position']->value, ENT_QUOTES, 'UTF-8');
        ?>
" class="cm-image-field" />
                        <div class="image-upload-wrap pull-left"><?php 
        echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "product_add_additional", 'image_object_type' => "product", 'image_type' => "A", 'icon_title' => __("additional_thumbnail"), 'detailed_title' => __("additional_popup_larger_image"), 'icon_text' => __("text_additional_thumbnail"), 'detailed_text' => __("text_additional_detailed_image"), 'no_thumbnail' => true), 0);
        ?>
</div>
                        <div class="pull-right"><?php 
        echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "new_image"), 0);
        ?>
</div>
                    </div>
                </div>

            </div> 
            

            
            <div id="content_seo" class="hidden">

                <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_seo"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "products:update_seo"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

                <?php 
            echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("seo_meta_data"), 'target' => "#acc_seo_meta"), 0);
            ?>

                <div id="acc_seo_meta" class="collapse in">
                    <div class="control-group <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
                        <label class="control-label" for="elm_product_page_title"><?php 
            echo $_smarty_tpl->__("page_title");
            echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_page_title")), 0);
            ?>
:</label>
                        <div class="controls">
                            <input type="text" name="product_data[page_title]" id="elm_product_page_title" size="55" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['page_title'], ENT_QUOTES, 'UTF-8');
            ?>
" class="input-large" />
                            <?php 
            echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "page_title", 'name' => "update_all_vendors[page_title]"), 0);
            ?>

                        </div>
                    </div>

                    <div class="control-group <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
                        <label class="control-label" for="elm_product_meta_descr"><?php 
            echo $_smarty_tpl->__("meta_description");
            ?>
:</label>
                        <div class="controls">
                            <textarea name="product_data[meta_description]" id="elm_product_meta_descr" cols="55" rows="2" class="input-large"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['meta_description'], ENT_QUOTES, 'UTF-8');
            ?>
</textarea>
                            <?php 
            echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "meta_description", 'name' => "update_all_vendors[meta_description]"), 0);
            ?>

                        </div>
                    </div>

                    <div class="control-group <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
                        <label class="control-label" for="elm_product_meta_keywords"><?php 
            echo $_smarty_tpl->__("meta_keywords");
            ?>
:</label>
                        <div class="controls">
                            <textarea name="product_data[meta_keywords]" id="elm_product_meta_keywords" cols="55" rows="2" class="input-large"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['meta_keywords'], ENT_QUOTES, 'UTF-8');
            ?>
</textarea>
                            <?php 
            echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "meta_keywords", 'name' => "update_all_vendors[meta_keywords]"), 0);
            ?>

                        </div>
                    </div>
                </div>
                <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "products:update_seo"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

            </div>
            

            
            <div id="content_shippings" class="hidden"> 
                <?php 
        echo $_smarty_tpl->getSubTemplate("views/products/components/products_shipping_settings.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

            </div> 
            

            
            <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_qty_discounts"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "products:update_qty_discounts"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

            <?php 
            echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_qty_discounts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

            <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "products:update_qty_discounts"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

            
            
            <?php 
        echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_features.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_id' => $_smarty_tpl->tpl_vars['product_data']->value['product_id']), 0);
        ?>

            


            <div id="content_addons">
                <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:detailed_content"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "products:detailed_content"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

                <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "products:detailed_content"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

            </div>


            <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:tabs_content"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "products:tabs_content"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

            <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "products:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


            
            <?php 
        $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null);
        ob_start();
        ?>
                <?php 
        echo $_smarty_tpl->getSubTemplate("common/view_tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('url' => "products.update?product_id="), 0);
        ?>


                <?php 
        if ($_smarty_tpl->tpl_vars['id']->value) {
            ?>
                    <?php 
            $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null);
            ob_start();
            ?>
                        <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_tools_list"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "products:update_tools_list"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

                            <?php 
                if ($_smarty_tpl->tpl_vars['view_uri']->value) {
                    ?>
                                <li><?php 
                    smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("preview"), 'href' => $_smarty_tpl->tpl_vars['view_uri']->value));
                    ?>
</li>
                                <li class="divider"></li>
                            <?php 
                }
                ?>
                            <li><?php 
                smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("clone"), 'class' => "cm-post", 'href' => "products.clone?product_id=" . (string) $_smarty_tpl->tpl_vars['id']->value));
                ?>
</li>
                            <?php 
                if ($_smarty_tpl->tpl_vars['allow_save']->value) {
                    ?>
                                <li><?php 
                    smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm cm-post", 'href' => "products.delete?product_id=" . (string) $_smarty_tpl->tpl_vars['id']->value));
                    ?>
</li>
                            <?php 
                }
                ?>
                        <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "products:update_tools_list"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

                    <?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
                    <?php 
            smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list']));
            ?>

                <?php 
        }
        ?>
                <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_role' => "submit-link", 'but_name' => "dispatch[products.update]", 'but_target_form' => "product_update_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0);
        ?>

            <?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>
            

        </form> 

        <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:tabs_extra"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "products:tabs_extra"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "products:tabs_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


        <?php 
        if ($_smarty_tpl->tpl_vars['id']->value) {
            ?>
            
            <div class="cm-hide-save-button hidden" id="content_options">
                <?php 
            echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_options.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

            </div>
            

            
            <?php 
            if ($_smarty_tpl->tpl_vars['settings']->value['General']['enable_edp'] == "Y") {
                ?>
            <div id="content_files" class="cm-hide-save-button hidden">
                <?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:content_files"));
                $_block_repeat = true;
                echo smarty_block_hook(array('name' => "products:content_files"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

                <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_files.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

                <?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_hook(array('name' => "products:content_files"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

            </div>
            <?php 
            }
            ?>
            

            
            <div id="content_subscribers" class="cm-hide-save-button hidden">
                <?php 
            echo $_smarty_tpl->getSubTemplate("views/products/components/product_subscribers.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_id' => $_smarty_tpl->tpl_vars['id']->value), 0);
            ?>

            </div>
            
        <?php 
        }
        ?>

    <?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>
    <?php 
        echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'group_name' => $_smarty_tpl->tpl_vars['runtime']->value['controller'], 'active_tab' => $_REQUEST['selected_section'], 'track' => true), 0);
        ?>


<?php 
        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
        if (!empty($_capture_buffer)) {
            if (isset($_capture_assign)) {
                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
            }
            if (isset($_capture_append)) {
                $_smarty_tpl->append($_capture_append, ob_get_contents());
            }
            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
        } else {
            $_smarty_tpl->capture_error();
        }
        ?>

<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_mainbox_params"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "products:update_mainbox_params"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>


<?php 
            if ($_smarty_tpl->tpl_vars['id']->value) {
                ?>
    <?php 
                $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
                ob_start();
                ?>
        <?php 
                ob_start();
                echo $_smarty_tpl->__("editing_product");
                $_tmp5 = ob_get_clean();
                echo htmlspecialchars(preg_replace('!<[^>]*?>!', ' ', $_tmp5 . ": " . (string) $_smarty_tpl->tpl_vars['product_data']->value['product']), ENT_QUOTES, 'UTF-8');
                ?>

    <?php 
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
            } else {
                ?>
    <?php 
                $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
                ob_start();
                ?>
        <?php 
                echo $_smarty_tpl->__("new_product");
                ?>

    <?php 
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
            }
            ?>

<?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "products:update_mainbox_params"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>


<?php 
        echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => Smarty::$_smarty_vars['capture']['mainbox_title'], 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'select_languages' => $_smarty_tpl->tpl_vars['id']->value, 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons']), 0);
    }
    function content_55db8f57aa4f74_91096835($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
        }
        fn_preload_lang_vars(array('previous', 'next', 'total_items'));
        $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['div_id']->value) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0);
        $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove(($tmp = @$_smarty_tpl->tpl_vars['current_url']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['config']->value['current_url'] : $tmp, "page"), null, 0);
        $_smarty_tpl->tpl_vars["pagination"] = new Smarty_variable(fn_generate_pagination($_smarty_tpl->tpl_vars['search']->value), null, 0);
        ?>

<?php 
        if (Smarty::$_smarty_vars['capture']['pagination_open'] == "Y") {
            ?>
    <?php 
            $_smarty_tpl->tpl_vars["pagination_meta"] = new Smarty_variable(" paginate-top", null, 0);
        }
        ?>

<?php 
        if (Smarty::$_smarty_vars['capture']['pagination_open'] != "Y") {
            ?>
<div class="cm-pagination-container<?php 
            if ($_smarty_tpl->tpl_vars['pagination_class']->value) {
                ?>
 <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination_class']->value, ENT_QUOTES, 'UTF-8');
            }
            ?>
" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
<?php 
        }
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['pagination']->value) {
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['save_current_page']->value) {
                ?>
        <input type="hidden" name="page" value="<?php 
                echo htmlspecialchars(($tmp = @(($tmp = @$_smarty_tpl->tpl_vars['search']->value['page']) === null || $tmp === '' ? $_REQUEST['page'] : $tmp)) === null || $tmp === '' ? 1 : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
" />
    <?php 
            }
            ?>

    <?php 
            if ($_smarty_tpl->tpl_vars['save_current_url']->value) {
                ?>
        <input type="hidden" name="redirect_url" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8');
                ?>
" />
    <?php 
            }
            ?>

    <?php 
            if (!$_smarty_tpl->tpl_vars['disable_history']->value) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["history_class"] = new Smarty_variable(" cm-history", null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["history_class"] = new Smarty_variable(" cm-ajax-cache", null, 0);
                ?>
    <?php 
            }
            ?>
    <div class="pagination-wrap clearfix">
    <?php 
            if ($_smarty_tpl->tpl_vars['pagination']->value['total_pages'] > 1) {
                ?>
    <div class="pagination pull-left">
        <ul>
        <?php 
                if ($_smarty_tpl->tpl_vars['pagination']->value['current_page'] != "full_list" && $_smarty_tpl->tpl_vars['pagination']->value['total_pages'] > 1) {
                    ?>
            <li class="<?php 
                    if (!$_smarty_tpl->tpl_vars['pagination']->value['prev_page']) {
                        ?>
disabled<?php 
                    }
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
                    ?>
"><a data-ca-scroll=".cm-pagination-container" class="cm-ajax<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" <?php 
                    if ($_smarty_tpl->tpl_vars['pagination']->value['prev_page']) {
                        ?>
href="<?php 
                        echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['prev_page']), ENT_QUOTES, 'UTF-8');
                        ?>
" data-ca-page="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['prev_page'], ENT_QUOTES, 'UTF-8');
                        ?>
" data-ca-target-id="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
"<?php 
                    }
                    ?>
>&laquo;&nbsp;<?php 
                    echo $_smarty_tpl->__("previous");
                    ?>
</a></li>

            <?php 
                    $_smarty_tpl->tpl_vars["pg"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["pg"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['pagination']->value['navi_pages'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars["pg"]->total = $_smarty_tpl->_count($_from);
                    $_smarty_tpl->tpl_vars["pg"]->iteration = 0;
                    $_smarty_tpl->tpl_vars["pg"]->index = -1;
                    foreach ($_from as $_smarty_tpl->tpl_vars["pg"]->key => $_smarty_tpl->tpl_vars["pg"]->value) {
                        $_smarty_tpl->tpl_vars["pg"]->_loop = true;
                        $_smarty_tpl->tpl_vars["pg"]->iteration++;
                        $_smarty_tpl->tpl_vars["pg"]->index++;
                        $_smarty_tpl->tpl_vars["pg"]->first = $_smarty_tpl->tpl_vars["pg"]->index === 0;
                        $_smarty_tpl->tpl_vars["pg"]->last = $_smarty_tpl->tpl_vars["pg"]->iteration === $_smarty_tpl->tpl_vars["pg"]->total;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["f_pg"]['first'] = $_smarty_tpl->tpl_vars["pg"]->first;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["f_pg"]['last'] = $_smarty_tpl->tpl_vars["pg"]->last;
                        ?>
            <li <?php 
                        if ($_smarty_tpl->tpl_vars['pg']->value == $_smarty_tpl->tpl_vars['pagination']->value['current_page']) {
                            ?>
class="active" <?php 
                        }
                        ?>
>
                <?php 
                        if ($_smarty_tpl->getVariable('smarty')->value['foreach']['f_pg']['first'] && $_smarty_tpl->tpl_vars['pg']->value > 1) {
                            ?>
                <a data-ca-scroll=".cm-pagination-container" class="cm-ajax<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" href="<?php 
                            echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=1`"), ENT_QUOTES, 'UTF-8');
                            ?>
" data-ca-page="1" data-ca-target-id="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
">1</a>
                <?php 
                            if ($_smarty_tpl->tpl_vars['pg']->value != 2) {
                                ?>
<a data-ca-scroll=".cm-pagination-container" class="<?php 
                                if ($_smarty_tpl->tpl_vars['pagination']->value['prev_range']) {
                                    ?>
cm-ajax<?php 
                                }
                                ?>
 prev-range<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
                                ?>
" <?php 
                                if ($_smarty_tpl->tpl_vars['pagination']->value['prev_range']) {
                                    ?>
href="<?php 
                                    echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['prev_range']), ENT_QUOTES, 'UTF-8');
                                    ?>
" data-ca-page="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['prev_range'], ENT_QUOTES, 'UTF-8');
                                    ?>
" data-ca-target-id="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"<?php 
                                }
                                ?>
>&nbsp;...&nbsp;</a><?php 
                            }
                            ?>
                <?php 
                        }
                        ?>
                <?php 
                        if ($_smarty_tpl->tpl_vars['pg']->value != $_smarty_tpl->tpl_vars['pagination']->value['current_page']) {
                            ?>
<a data-ca-scroll=".cm-pagination-container" class="cm-ajax<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" href="<?php 
                            echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pg']->value), ENT_QUOTES, 'UTF-8');
                            ?>
" data-ca-page="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['pg']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" data-ca-target-id="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
"><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['pg']->value, ENT_QUOTES, 'UTF-8');
                            ?>
</a><?php 
                        } else {
                            ?>
<a href="#"><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['pg']->value, ENT_QUOTES, 'UTF-8');
                            ?>
</a><?php 
                        }
                        ?>
                <?php 
                        if ($_smarty_tpl->getVariable('smarty')->value['foreach']['f_pg']['last'] && $_smarty_tpl->tpl_vars['pg']->value < $_smarty_tpl->tpl_vars['pagination']->value['total_pages']) {
                            ?>
                <?php 
                            if ($_smarty_tpl->tpl_vars['pg']->value != $_smarty_tpl->tpl_vars['pagination']->value['total_pages'] - 1) {
                                ?>
<a data-ca-scroll=".cm-pagination-container" class="<?php 
                                if ($_smarty_tpl->tpl_vars['pagination']->value['next_range']) {
                                    ?>
cm-ajax<?php 
                                }
                                ?>
 next-range<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
                                ?>
" <?php 
                                if ($_smarty_tpl->tpl_vars['pagination']->value['next_range']) {
                                    ?>
href="<?php 
                                    echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['next_range']), ENT_QUOTES, 'UTF-8');
                                    ?>
" data-ca-page="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['next_range'], ENT_QUOTES, 'UTF-8');
                                    ?>
" data-ca-target-id="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"<?php 
                                }
                                ?>
>&nbsp;...&nbsp;</a><?php 
                            }
                            ?>
<a data-ca-scroll=".cm-pagination-container" class="cm-ajax<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" href="<?php 
                            echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['total_pages']), ENT_QUOTES, 'UTF-8');
                            ?>
" data-ca-page="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['total_pages'], ENT_QUOTES, 'UTF-8');
                            ?>
" data-ca-target-id="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
"><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['total_pages'], ENT_QUOTES, 'UTF-8');
                            ?>
</a>
                <?php 
                        }
                        ?>
            </li>
            <?php 
                    }
                    ?>
            <li class="<?php 
                    if (!$_smarty_tpl->tpl_vars['pagination']->value['next_page']) {
                        ?>
disabled<?php 
                    }
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
                    ?>
"><a data-ca-scroll=".cm-pagination-container" class="<?php 
                    if ($_smarty_tpl->tpl_vars['pagination']->value['next_page']) {
                        ?>
cm-ajax<?php 
                    }
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" <?php 
                    if ($_smarty_tpl->tpl_vars['pagination']->value['next_page']) {
                        ?>
href="<?php 
                        echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['next_page']), ENT_QUOTES, 'UTF-8');
                        ?>
" data-ca-page="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['next_page'], ENT_QUOTES, 'UTF-8');
                        ?>
" data-ca-target-id="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
"<?php 
                    }
                    ?>
><?php 
                    echo $_smarty_tpl->__("next");
                    ?>
&nbsp;&raquo;</a></li>
        <?php 
                }
                ?>
        </ul>
    </div>
        <?php 
                if ($_smarty_tpl->tpl_vars['pagination']->value['total_items']) {
                    ?>
            <div class="pagination-desc pull-left">
            <div class="btn-toolbar">
            <span class="pagination-total-items">&nbsp;<?php 
                    echo $_smarty_tpl->__("total_items");
                    ?>
:&nbsp;<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['total_items'], ENT_QUOTES, 'UTF-8');
                    ?>
&nbsp;/&nbsp;</span>
            <?php 
                    $_smarty_tpl->_capture_stack[0][] = array("pagination_list", null, null);
                    ob_start();
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars["range_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['c_url']->value, "items_per_page"), null, 0);
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars["step"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["step"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['pagination']->value['per_page_range'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars["step"]->key => $_smarty_tpl->tpl_vars["step"]->value) {
                        $_smarty_tpl->tpl_vars["step"]->_loop = true;
                        ?>
                        <li><a data-ca-scroll=".cm-pagination-container" class="cm-ajax<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
                        ?>
" href="<?php 
                        echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&items_per_page=" . (string) $_smarty_tpl->tpl_vars['step']->value), ENT_QUOTES, 'UTF-8');
                        ?>
" data-ca-target-id="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['step']->value, ENT_QUOTES, 'UTF-8');
                        ?>
</a></li>
                    <?php 
                    }
                    ?>
            <?php 
                    list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                    if (!empty($_capture_buffer)) {
                        if (isset($_capture_assign)) {
                            $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                        }
                        if (isset($_capture_append)) {
                            $_smarty_tpl->append($_capture_append, ob_get_contents());
                        }
                        Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                    } else {
                        $_smarty_tpl->capture_error();
                    }
                    ?>
            <?php 
                    echo smarty_function_math(array('equation' => "rand()", 'assign' => "rnd"), $_smarty_tpl);
                    ?>

            <?php 
                    echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('prefix' => "pagination_" . (string) $_smarty_tpl->tpl_vars['rnd']->value, 'hide_actions' => true, 'tools_list' => Smarty::$_smarty_vars['capture']['pagination_list'], 'link_text' => $_smarty_tpl->tpl_vars['pagination']->value['items_per_page'], 'override_meta' => "btn-text", 'skip_check_permissions' => "true", 'tool_meta' => (string) $_smarty_tpl->tpl_vars['pagination_meta']->value . " ", 'caret' => true), 0);
                    ?>

            </div></div>
        <?php 
                }
                ?>
    <?php 
            }
            ?>
    </div>
<?php 
        }
        ?>


<?php 
        if (Smarty::$_smarty_vars['capture']['pagination_open'] == "Y") {
            ?>
    <!--<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
--></div>
    <?php 
            $_smarty_tpl->_capture_stack[0][] = array("pagination_open", null, null);
            ob_start();
            ?>
N<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
        } elseif (Smarty::$_smarty_vars['capture']['pagination_open'] != "Y") {
            ?>
    <?php 
            $_smarty_tpl->_capture_stack[0][] = array("pagination_open", null, null);
            ob_start();
            ?>
Y<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
        }
    }
    function content_561cd0cde53cc9_57239698($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\modifier.date_format.php';
        }
        if (!is_callable('smarty_function_math')) {
            include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\function.math.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\function.cycle.php';
        }
        if (!is_callable('smarty_function_counter')) {
            include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
        }
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

<?php 
        if (count($_smarty_tpl->tpl_vars['errors']->value) == 0) {
            ?>
	<?php 
            if (!isset($_smarty_tpl->tpl_vars['priceDisplayPrecision']->value)) {
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['priceDisplayPrecision'] = new Smarty_variable(2, null, 0);
                ?>
	<?php 
            }
            ?>
	<?php 
            if (!$_smarty_tpl->tpl_vars['priceDisplay']->value || $_smarty_tpl->tpl_vars['priceDisplay']->value == 2) {
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['productPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPrice(true, @constant('NULL'), 6), null, 0);
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['productPriceWithoutReduction'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(false, @constant('NULL')), null, 0);
                ?>
	<?php 
            } elseif ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['productPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPrice(false, @constant('NULL'), 6), null, 0);
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['productPriceWithoutReduction'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(true, @constant('NULL')), null, 0);
                ?>
	<?php 
            }
            ?>
<div itemscope itemtype="https://schema.org/Product">
	<meta itemprop="url" content="<?php 
            echo $_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value);
            ?>
">
	<div class="primary_block row">
		<?php 
            if (!$_smarty_tpl->tpl_vars['content_only']->value) {
                ?>
			<div class="container">
				<div class="top-hr"></div>
			</div>
		<?php 
            }
            ?>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['adminActionDisplay']->value) && $_smarty_tpl->tpl_vars['adminActionDisplay']->value) {
                ?>
			<div id="admin-action" class="container">
				<p class="alert alert-info"><?php 
                echo smartyTranslate(array('s' => 'This product is not visible to your customers.'), $_smarty_tpl);
                ?>

					<input type="hidden" id="admin-action-product-id" value="<?php 
                echo $_smarty_tpl->tpl_vars['product']->value->id;
                ?>
" />
					<a id="publish_button" class="btn btn-default button button-small" href="#">
						<span><?php 
                echo smartyTranslate(array('s' => 'Publish'), $_smarty_tpl);
                ?>
</span>
					</a>
					<a id="lnk_view" class="btn btn-default button button-small" href="#">
						<span><?php 
                echo smartyTranslate(array('s' => 'Back'), $_smarty_tpl);
                ?>
</span>
					</a>
				</p>
				<p id="admin-action-result"></p>
			</div>
		<?php 
            }
            ?>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['confirmation']->value) && $_smarty_tpl->tpl_vars['confirmation']->value) {
                ?>
			<p class="confirmation">
				<?php 
                echo $_smarty_tpl->tpl_vars['confirmation']->value;
                ?>

			</p>
		<?php 
            }
            ?>
		<!-- left infos-->
		<div class="pb-left-column col-xs-12 col-sm-4 col-md-5">
			<!-- product img-->
			<div id="image-block" class="clearfix">
				<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->new) {
                ?>
					<span class="new-box">
						<span class="new-label"><?php 
                echo smartyTranslate(array('s' => 'New'), $_smarty_tpl);
                ?>
</span>
					</span>
				<?php 
            }
            ?>
				<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->on_sale) {
                ?>
					<span class="sale-box no-print">
						<span class="sale-label"><?php 
                echo smartyTranslate(array('s' => 'Sale!'), $_smarty_tpl);
                ?>
</span>
					</span>
				<?php 
            } elseif ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] && $_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value > $_smarty_tpl->tpl_vars['productPrice']->value) {
                ?>
					<span class="discount"><?php 
                echo smartyTranslate(array('s' => 'Reduced price!'), $_smarty_tpl);
                ?>
</span>
				<?php 
            }
            ?>
				<?php 
            if ($_smarty_tpl->tpl_vars['have_image']->value) {
                ?>
					<span id="view_full_size">
						<?php 
                if ($_smarty_tpl->tpl_vars['jqZoomEnabled']->value && $_smarty_tpl->tpl_vars['have_image']->value && !$_smarty_tpl->tpl_vars['content_only']->value) {
                    ?>
							<a class="jqzoom" title="<?php 
                    if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                    } else {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
                    }
                    ?>
" rel="gal1" href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['cover']->value['id_image'], 'thickbox_default'), ENT_QUOTES, 'UTF-8', true);
                    ?>
">
								<img itemprop="image" src="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['cover']->value['id_image'], 'large_default'), ENT_QUOTES, 'UTF-8', true);
                    ?>
" title="<?php 
                    if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                    } else {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
                    }
                    ?>
" alt="<?php 
                    if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                    } else {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
                    }
                    ?>
"/>
							</a>
						<?php 
                } else {
                    ?>
							<img id="bigpic" itemprop="image" src="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['cover']->value['id_image'], 'large_default'), ENT_QUOTES, 'UTF-8', true);
                    ?>
" title="<?php 
                    if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                    } else {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
                    }
                    ?>
" alt="<?php 
                    if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                    } else {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
                    }
                    ?>
" width="<?php 
                    echo $_smarty_tpl->tpl_vars['largeSize']->value['width'];
                    ?>
" height="<?php 
                    echo $_smarty_tpl->tpl_vars['largeSize']->value['height'];
                    ?>
"/>
							<?php 
                    if (!$_smarty_tpl->tpl_vars['content_only']->value) {
                        ?>
								<span class="span_link no-print"><?php 
                        echo smartyTranslate(array('s' => 'View larger'), $_smarty_tpl);
                        ?>
</span>
							<?php 
                    }
                    ?>
						<?php 
                }
                ?>
					</span>
				<?php 
            } else {
                ?>
					<span id="view_full_size">
						<img itemprop="image" src="<?php 
                echo $_smarty_tpl->tpl_vars['img_prod_dir']->value;
                echo $_smarty_tpl->tpl_vars['lang_iso']->value;
                ?>
-default-large_default.jpg" id="bigpic" alt="" title="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
                ?>
" width="<?php 
                echo $_smarty_tpl->tpl_vars['largeSize']->value['width'];
                ?>
" height="<?php 
                echo $_smarty_tpl->tpl_vars['largeSize']->value['height'];
                ?>
"/>
						<?php 
                if (!$_smarty_tpl->tpl_vars['content_only']->value) {
                    ?>
							<span class="span_link">
								<?php 
                    echo smartyTranslate(array('s' => 'View larger'), $_smarty_tpl);
                    ?>

							</span>
						<?php 
                }
                ?>
					</span>
				<?php 
            }
            ?>
			</div> <!-- end image-block -->
			<?php 
            if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 0) {
                ?>
				<!-- thumbnails -->
				<div id="views_block" class="clearfix <?php 
                if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) < 2) {
                    ?>
hidden<?php 
                }
                ?>
">
					<?php 
                if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 2) {
                    ?>
						<span class="view_scroll_spacer">
							<a id="view_scroll_left" class="" title="<?php 
                    echo smartyTranslate(array('s' => 'Other views'), $_smarty_tpl);
                    ?>
" href="javascript:{}">
								<?php 
                    echo smartyTranslate(array('s' => 'Previous'), $_smarty_tpl);
                    ?>

							</a>
						</span>
					<?php 
                }
                ?>
					<div id="thumbs_list">
						<ul id="thumbs_list_frame">
						<?php 
                if (isset($_smarty_tpl->tpl_vars['images']->value)) {
                    ?>
							<?php 
                    $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['image']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['images']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['image']->total = $_smarty_tpl->_count($_from);
                    $_smarty_tpl->tpl_vars['image']->iteration = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value) {
                        $_smarty_tpl->tpl_vars['image']->_loop = true;
                        $_smarty_tpl->tpl_vars['image']->iteration++;
                        $_smarty_tpl->tpl_vars['image']->last = $_smarty_tpl->tpl_vars['image']->iteration === $_smarty_tpl->tpl_vars['image']->total;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['thumbnails']['last'] = $_smarty_tpl->tpl_vars['image']->last;
                        ?>
								<?php 
                        $_smarty_tpl->tpl_vars['imageIds'] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['product']->value->id . "-" . (string) $_smarty_tpl->tpl_vars['image']->value['id_image'], null, 0);
                        ?>
								<?php 
                        if (!empty($_smarty_tpl->tpl_vars['image']->value['legend'])) {
                            ?>
									<?php 
                            $_smarty_tpl->tpl_vars['imageTitle'] = new Smarty_variable(htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['legend'], ENT_QUOTES, 'UTF-8', true), null, 0);
                            ?>
								<?php 
                        } else {
                            ?>
									<?php 
                            $_smarty_tpl->tpl_vars['imageTitle'] = new Smarty_variable(htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true), null, 0);
                            ?>
								<?php 
                        }
                        ?>
								<li id="thumbnail_<?php 
                        echo $_smarty_tpl->tpl_vars['image']->value['id_image'];
                        ?>
"<?php 
                        if ($_smarty_tpl->getVariable('smarty')->value['foreach']['thumbnails']['last']) {
                            ?>
 class="last"<?php 
                        }
                        ?>
>
									<a<?php 
                        if ($_smarty_tpl->tpl_vars['jqZoomEnabled']->value && $_smarty_tpl->tpl_vars['have_image']->value && !$_smarty_tpl->tpl_vars['content_only']->value) {
                            ?>
 href="javascript:void(0);" rel="{gallery: 'gal1', smallimage: '<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['imageIds']->value, 'large_default'), ENT_QUOTES, 'UTF-8', true);
                            ?>
',largeimage: '<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['imageIds']->value, 'thickbox_default'), ENT_QUOTES, 'UTF-8', true);
                            ?>
'}"<?php 
                        } else {
                            ?>
 href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['imageIds']->value, 'thickbox_default'), ENT_QUOTES, 'UTF-8', true);
                            ?>
"	data-fancybox-group="other-views" class="fancybox<?php 
                            if ($_smarty_tpl->tpl_vars['image']->value['id_image'] == $_smarty_tpl->tpl_vars['cover']->value['id_image']) {
                                ?>
 shown<?php 
                            }
                            ?>
"<?php 
                        }
                        ?>
 title="<?php 
                        echo $_smarty_tpl->tpl_vars['imageTitle']->value;
                        ?>
">
										<img class="img-responsive" id="thumb_<?php 
                        echo $_smarty_tpl->tpl_vars['image']->value['id_image'];
                        ?>
" src="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['imageIds']->value, 'cart_default'), ENT_QUOTES, 'UTF-8', true);
                        ?>
" alt="<?php 
                        echo $_smarty_tpl->tpl_vars['imageTitle']->value;
                        ?>
" title="<?php 
                        echo $_smarty_tpl->tpl_vars['imageTitle']->value;
                        ?>
"<?php 
                        if (isset($_smarty_tpl->tpl_vars['cartSize']->value)) {
                            ?>
 height="<?php 
                            echo $_smarty_tpl->tpl_vars['cartSize']->value['height'];
                            ?>
" width="<?php 
                            echo $_smarty_tpl->tpl_vars['cartSize']->value['width'];
                            ?>
"<?php 
                        }
                        ?>
 itemprop="image" />
									</a>
								</li>
							<?php 
                    }
                    ?>
						<?php 
                }
                ?>
						</ul>
					</div> <!-- end thumbs_list -->
					<?php 
                if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 2) {
                    ?>
						<a id="view_scroll_right" title="<?php 
                    echo smartyTranslate(array('s' => 'Other views'), $_smarty_tpl);
                    ?>
" href="javascript:{}">
							<?php 
                    echo smartyTranslate(array('s' => 'Next'), $_smarty_tpl);
                    ?>

						</a>
					<?php 
                }
                ?>
				</div> <!-- end views-block -->
				<!-- end thumbnails -->
			<?php 
            }
            ?>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 1) {
                ?>
				<p class="resetimg clear no-print">
					<span id="wrapResetImages" style="display: none;">
						<a href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value), ENT_QUOTES, 'UTF-8', true);
                ?>
" data-id="resetImages">
							<i class="icon-repeat"></i>
							<?php 
                echo smartyTranslate(array('s' => 'Display all pictures'), $_smarty_tpl);
                ?>

						</a>
					</span>
				</p>
			<?php 
            }
            ?>
		</div> <!-- end pb-left-column -->
		<!-- end left infos-->
		<!-- center infos -->
		<div class="pb-center-column col-xs-12 col-sm-4">
			<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->online_only) {
                ?>
				<p class="online_only"><?php 
                echo smartyTranslate(array('s' => 'Online only'), $_smarty_tpl);
                ?>
</p>
			<?php 
            }
            ?>
			<h1 itemprop="name"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
            ?>
</h1>
			<p id="product_reference"<?php 
            if (empty($_smarty_tpl->tpl_vars['product']->value->reference) || !$_smarty_tpl->tpl_vars['product']->value->reference) {
                ?>
 style="display: none;"<?php 
            }
            ?>
>
				<label><?php 
            echo smartyTranslate(array('s' => 'Reference:'), $_smarty_tpl);
            ?>
 </label>
				<span class="editable" itemprop="sku"<?php 
            if (!empty($_smarty_tpl->tpl_vars['product']->value->reference) && $_smarty_tpl->tpl_vars['product']->value->reference) {
                ?>
 content="<?php 
                echo $_smarty_tpl->tpl_vars['product']->value->reference;
                ?>
"<?php 
            }
            ?>
><?php 
            if (!isset($_smarty_tpl->tpl_vars['groups']->value)) {
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->reference, ENT_QUOTES, 'UTF-8', true);
            }
            ?>
</span>
			</p>
			<?php 
            if (!$_smarty_tpl->tpl_vars['product']->value->is_virtual && $_smarty_tpl->tpl_vars['product']->value->condition) {
                ?>
			<p id="product_condition">
				<label><?php 
                echo smartyTranslate(array('s' => 'Condition:'), $_smarty_tpl);
                ?>
 </label>
				<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->condition == 'new') {
                    ?>
					<link itemprop="itemCondition" href="https://schema.org/NewCondition"/>
					<span class="editable"><?php 
                    echo smartyTranslate(array('s' => 'New product'), $_smarty_tpl);
                    ?>
</span>
				<?php 
                } elseif ($_smarty_tpl->tpl_vars['product']->value->condition == 'used') {
                    ?>
					<link itemprop="itemCondition" href="https://schema.org/UsedCondition"/>
					<span class="editable"><?php 
                    echo smartyTranslate(array('s' => 'Used'), $_smarty_tpl);
                    ?>
</span>
				<?php 
                } elseif ($_smarty_tpl->tpl_vars['product']->value->condition == 'refurbished') {
                    ?>
					<link itemprop="itemCondition" href="https://schema.org/RefurbishedCondition"/>
					<span class="editable"><?php 
                    echo smartyTranslate(array('s' => 'Refurbished'), $_smarty_tpl);
                    ?>
</span>
				<?php 
                }
                ?>
			</p>
			<?php 
            }
            ?>
			<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->description_short || count($_smarty_tpl->tpl_vars['packItems']->value) > 0) {
                ?>
				<div id="short_description_block">
					<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->description_short) {
                    ?>
						<div id="short_description_content" class="rte align_justify" itemprop="description"><?php 
                    echo $_smarty_tpl->tpl_vars['product']->value->description_short;
                    ?>
</div>
					<?php 
                }
                ?>

					<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->description) {
                    ?>
						<p class="buttons_bottom_block">
							<a href="javascript:{}" class="button">
								<?php 
                    echo smartyTranslate(array('s' => 'More details'), $_smarty_tpl);
                    ?>

							</a>
						</p>
					<?php 
                }
                ?>
					<!--<?php 
                if (count($_smarty_tpl->tpl_vars['packItems']->value) > 0) {
                    ?>
						<div class="short_description_pack">
						<h3><?php 
                    echo smartyTranslate(array('s' => 'Pack content'), $_smarty_tpl);
                    ?>
</h3>
							<?php 
                    $_smarty_tpl->tpl_vars['packItem'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['packItem']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['packItems']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['packItem']->key => $_smarty_tpl->tpl_vars['packItem']->value) {
                        $_smarty_tpl->tpl_vars['packItem']->_loop = true;
                        ?>

							<div class="pack_content">
								<?php 
                        echo $_smarty_tpl->tpl_vars['packItem']->value['pack_quantity'];
                        ?>
 x <a href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['packItem']->value['id_product'], $_smarty_tpl->tpl_vars['packItem']->value['link_rewrite'], $_smarty_tpl->tpl_vars['packItem']->value['category']), ENT_QUOTES, 'UTF-8', true);
                        ?>
"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['packItem']->value['name'], ENT_QUOTES, 'UTF-8', true);
                        ?>
</a>
								<p><?php 
                        echo $_smarty_tpl->tpl_vars['packItem']->value['description_short'];
                        ?>
</p>
							</div>
							<?php 
                    }
                    ?>
						</div>
					<?php 
                }
                ?>
-->
				</div> <!-- end short_description_block -->
			<?php 
            }
            ?>
			<?php 
            if ($_smarty_tpl->tpl_vars['display_qties']->value == 1 && !$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && $_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value && $_smarty_tpl->tpl_vars['product']->value->available_for_order) {
                ?>
				<!-- number of item in stock -->
				<p id="pQuantityAvailable"<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0) {
                    ?>
 style="display: none;"<?php 
                }
                ?>
>
					<span id="quantityAvailable"><?php 
                echo intval($_smarty_tpl->tpl_vars['product']->value->quantity);
                ?>
</span>
					<span <?php 
                if ($_smarty_tpl->tpl_vars['product']->value->quantity > 1) {
                    ?>
 style="display: none;"<?php 
                }
                ?>
 id="quantityAvailableTxt"><?php 
                echo smartyTranslate(array('s' => 'Item'), $_smarty_tpl);
                ?>
</span>
					<span <?php 
                if ($_smarty_tpl->tpl_vars['product']->value->quantity == 1) {
                    ?>
 style="display: none;"<?php 
                }
                ?>
 id="quantityAvailableTxtMultiple"><?php 
                echo smartyTranslate(array('s' => 'Items'), $_smarty_tpl);
                ?>
</span>
				</p>
			<?php 
            }
            ?>
			<!-- availability or doesntExist -->
			<p id="availability_statut"<?php 
            if (!$_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value || $_smarty_tpl->tpl_vars['product']->value->quantity <= 0 && !$_smarty_tpl->tpl_vars['product']->value->available_later && $_smarty_tpl->tpl_vars['allow_oosp']->value || $_smarty_tpl->tpl_vars['product']->value->quantity > 0 && !$_smarty_tpl->tpl_vars['product']->value->available_now || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                ?>
 style="display: none;"<?php 
            }
            ?>
>
				
				<span id="availability_value" class="label<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0 && !$_smarty_tpl->tpl_vars['allow_oosp']->value) {
                ?>
 label-danger<?php 
            } elseif ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0) {
                ?>
 label-warning<?php 
            } else {
                ?>
 label-success<?php 
            }
            ?>
"><?php 
            if ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0) {
                if ($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value && $_smarty_tpl->tpl_vars['allow_oosp']->value) {
                    echo $_smarty_tpl->tpl_vars['product']->value->available_later;
                } else {
                    echo smartyTranslate(array('s' => 'This product is no longer in stock'), $_smarty_tpl);
                }
            } elseif ($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value) {
                echo $_smarty_tpl->tpl_vars['product']->value->available_now;
            }
            ?>
</span>
			</p>
			<?php 
            if ($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value) {
                ?>
				<?php 
                if (!$_smarty_tpl->tpl_vars['product']->value->is_virtual) {
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductDeliveryTime", 'product' => $_smarty_tpl->tpl_vars['product']->value), $_smarty_tpl);
                }
                ?>
				<p class="warning_inline" id="last_quantities"<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->quantity > $_smarty_tpl->tpl_vars['last_qties']->value || $_smarty_tpl->tpl_vars['product']->value->quantity <= 0 || $_smarty_tpl->tpl_vars['allow_oosp']->value || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
 style="display: none"<?php 
                }
                ?>
 ><?php 
                echo smartyTranslate(array('s' => 'Warning: Last items in stock!'), $_smarty_tpl);
                ?>
</p>
			<?php 
            }
            ?>
			<p id="availability_date"<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->quantity > 0 || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value || !isset($_smarty_tpl->tpl_vars['product']->value->available_date) || $_smarty_tpl->tpl_vars['product']->value->available_date < smarty_modifier_date_format(time(), '%Y-%m-%d')) {
                ?>
 style="display: none;"<?php 
            }
            ?>
>
				<span id="availability_date_label"><?php 
            echo smartyTranslate(array('s' => 'Availability date:'), $_smarty_tpl);
            ?>
</span>
				<span id="availability_date_value"><?php 
            if (Validate::isDate($_smarty_tpl->tpl_vars['product']->value->available_date)) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['product']->value->available_date, 'full' => false), $_smarty_tpl);
            }
            ?>
</span>
			</p>
			<!-- Out of stock hook -->
			<div id="oosHook"<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->quantity > 0) {
                ?>
 style="display: none;"<?php 
            }
            ?>
>
				<?php 
            echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_OOS']->value;
            ?>

			</div>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['HOOK_EXTRA_RIGHT']->value) && $_smarty_tpl->tpl_vars['HOOK_EXTRA_RIGHT']->value) {
                echo $_smarty_tpl->tpl_vars['HOOK_EXTRA_RIGHT']->value;
            }
            ?>
			<?php 
            if (!$_smarty_tpl->tpl_vars['content_only']->value) {
                ?>
				<!-- usefull links-->
				<ul id="usefull_link_block" class="clearfix no-print">
					<?php 
                if ($_smarty_tpl->tpl_vars['HOOK_EXTRA_LEFT']->value) {
                    echo $_smarty_tpl->tpl_vars['HOOK_EXTRA_LEFT']->value;
                }
                ?>
					<li class="print">
						<a href="javascript:print();">
							<?php 
                echo smartyTranslate(array('s' => 'Print'), $_smarty_tpl);
                ?>

						</a>
					</li>
				</ul>
			<?php 
            }
            ?>
		</div>
		<!-- end center infos-->
		<!-- pb-right-column-->
		<div class="pb-right-column col-xs-12 col-sm-4 col-md-3">
			<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->show_price && !isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value) || isset($_smarty_tpl->tpl_vars['groups']->value) || $_smarty_tpl->tpl_vars['product']->value->reference || isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value) {
                ?>
			<!-- add to cart form-->
			<form id="buy_block"<?php 
                if ($_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && !isset($_smarty_tpl->tpl_vars['groups']->value) && $_smarty_tpl->tpl_vars['product']->value->quantity > 0) {
                    ?>
 class="hidden"<?php 
                }
                ?>
 action="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart'), ENT_QUOTES, 'UTF-8', true);
                ?>
" method="post">
				<!-- hidden datas -->
				<p class="hidden">
					<input type="hidden" name="token" value="<?php 
                echo $_smarty_tpl->tpl_vars['static_token']->value;
                ?>
" />
					<input type="hidden" name="id_product" value="<?php 
                echo intval($_smarty_tpl->tpl_vars['product']->value->id);
                ?>
" id="product_page_product_id" />
					<input type="hidden" name="add" value="1" />
					<input type="hidden" name="id_product_attribute" id="idCombination" value="" />
				</p>
				<div class="box-info-product">
					<div class="content_prices clearfix">
						<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->show_price && !isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value) && !$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
							<!-- prices -->
							<div>
								<p class="our_price_display" itemprop="offers" itemscope itemtype="https://schema.org/Offer"><?php 
                    if ($_smarty_tpl->tpl_vars['product']->value->quantity > 0) {
                        ?>
<link itemprop="availability" href="https://schema.org/InStock"/><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['priceDisplay']->value >= 0 && $_smarty_tpl->tpl_vars['priceDisplay']->value <= 2) {
                        ?>
<span id="our_price_display" class="price" itemprop="price" content="<?php 
                        echo $_smarty_tpl->tpl_vars['productPrice']->value;
                        ?>
"><?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPrice']->value)), $_smarty_tpl);
                        ?>
</span><?php 
                        if ($_smarty_tpl->tpl_vars['tax_enabled']->value && (isset($_smarty_tpl->tpl_vars['display_tax_label']->value) && $_smarty_tpl->tpl_vars['display_tax_label']->value == 1 || !isset($_smarty_tpl->tpl_vars['display_tax_label']->value))) {
                            if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                                ?>
 <?php 
                                echo smartyTranslate(array('s' => 'tax excl.'), $_smarty_tpl);
                            } else {
                                ?>
 <?php 
                                echo smartyTranslate(array('s' => 'tax incl.'), $_smarty_tpl);
                            }
                        }
                        ?>
<meta itemprop="priceCurrency" content="<?php 
                        echo $_smarty_tpl->tpl_vars['currency']->value->iso_code;
                        ?>
" /><?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "price"), $_smarty_tpl);
                    }
                    ?>
</p>
								<p id="reduction_percent" <?php 
                    if (!$_smarty_tpl->tpl_vars['product']->value->specificPrice || $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] != 'percentage') {
                        ?>
 style="display:none;"<?php 
                    }
                    ?>
><span id="reduction_percent_display"><?php 
                    if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'percentage') {
                        ?>
-<?php 
                        echo $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] * 100;
                        ?>
%<?php 
                    }
                    ?>
</span></p>
								<p id="reduction_amount" <?php 
                    if (!$_smarty_tpl->tpl_vars['product']->value->specificPrice || $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] != 'amount' || floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) == 0) {
                        ?>
 style="display:none"<?php 
                    }
                    ?>
><span id="reduction_amount_display"><?php 
                    if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'amount' && floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) != 0) {
                        ?>
-<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['productPrice']->value)), $_smarty_tpl);
                    }
                    ?>
</span></p>
								<p id="old_price"<?php 
                    if (!$_smarty_tpl->tpl_vars['product']->value->specificPrice || !$_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) {
                        ?>
 class="hidden"<?php 
                    }
                    ?>
><?php 
                    if ($_smarty_tpl->tpl_vars['priceDisplay']->value >= 0 && $_smarty_tpl->tpl_vars['priceDisplay']->value <= 2) {
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "old_price"), $_smarty_tpl);
                        ?>
<span id="old_price_display"><span class="price"><?php 
                        if ($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value > $_smarty_tpl->tpl_vars['productPrice']->value) {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value)), $_smarty_tpl);
                        }
                        ?>
</span><?php 
                        if ($_smarty_tpl->tpl_vars['tax_enabled']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value == 1) {
                            ?>
 <?php 
                            if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                                echo smartyTranslate(array('s' => 'tax excl.'), $_smarty_tpl);
                            } else {
                                echo smartyTranslate(array('s' => 'tax incl.'), $_smarty_tpl);
                            }
                        }
                        ?>
</span><?php 
                    }
                    ?>
</p>
								<?php 
                    if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 2) {
                        ?>
									<br />
									<span id="pretaxe_price"><span id="pretaxe_price_display"><?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value->getPrice(false, @constant('NULL'))), $_smarty_tpl);
                        ?>
</span> <?php 
                        echo smartyTranslate(array('s' => 'tax excl.'), $_smarty_tpl);
                        ?>
</span>
								<?php 
                    }
                    ?>
							</div> <!-- end prices -->
							<?php 
                    if (count($_smarty_tpl->tpl_vars['packItems']->value) && $_smarty_tpl->tpl_vars['productPrice']->value < $_smarty_tpl->tpl_vars['product']->value->getNoPackPrice()) {
                        ?>
								<p class="pack_price"><?php 
                        echo smartyTranslate(array('s' => 'Instead of'), $_smarty_tpl);
                        ?>
 <span style="text-decoration: line-through;"><?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value->getNoPackPrice()), $_smarty_tpl);
                        ?>
</span></p>
							<?php 
                    }
                    ?>
							<?php 
                    if ($_smarty_tpl->tpl_vars['product']->value->ecotax != 0) {
                        ?>
								<p class="price-ecotax"><?php 
                        echo smartyTranslate(array('s' => 'Including'), $_smarty_tpl);
                        ?>
 <span id="ecotax_price_display"><?php 
                        if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 2) {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['convertAndFormatPrice'][0][0]->convertAndFormatPrice($_smarty_tpl->tpl_vars['ecotax_tax_exc']->value);
                        } else {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['convertAndFormatPrice'][0][0]->convertAndFormatPrice($_smarty_tpl->tpl_vars['ecotax_tax_inc']->value);
                        }
                        ?>
</span> <?php 
                        echo smartyTranslate(array('s' => 'for ecotax'), $_smarty_tpl);
                        ?>

									<?php 
                        if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) {
                            ?>
									<br /><?php 
                            echo smartyTranslate(array('s' => '(not impacted by the discount)'), $_smarty_tpl);
                            ?>

									<?php 
                        }
                        ?>
								</p>
							<?php 
                    }
                    ?>
							<?php 
                    if (!empty($_smarty_tpl->tpl_vars['product']->value->unity) && $_smarty_tpl->tpl_vars['product']->value->unit_price_ratio > 0.0) {
                        ?>
								<?php 
                        echo smarty_function_math(array('equation' => "pprice / punit_price", 'pprice' => $_smarty_tpl->tpl_vars['productPrice']->value, 'punit_price' => $_smarty_tpl->tpl_vars['product']->value->unit_price_ratio, 'assign' => 'unit_price'), $_smarty_tpl);
                        ?>

								<p class="unit-price"><span id="unit_price_display"><?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['unit_price']->value), $_smarty_tpl);
                        ?>
</span> <?php 
                        echo smartyTranslate(array('s' => 'per'), $_smarty_tpl);
                        ?>
 <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->unity, ENT_QUOTES, 'UTF-8', true);
                        ?>
</p>
								<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "unit_price"), $_smarty_tpl);
                        ?>

							<?php 
                    }
                    ?>
						<?php 
                }
                ?>
 
						<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "weight", 'hook_origin' => 'product_sheet'), $_smarty_tpl);
                ?>

                        <?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "after_price"), $_smarty_tpl);
                ?>

						<div class="clear"></div>
					</div> <!-- end content_prices -->
					<div class="product_attributes clearfix">
						<!-- quantity wanted -->
						<?php 
                if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
						<p id="quantity_wanted_p"<?php 
                    if (!$_smarty_tpl->tpl_vars['allow_oosp']->value && $_smarty_tpl->tpl_vars['product']->value->quantity <= 0 || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                        ?>
 style="display: none;"<?php 
                    }
                    ?>
>
							<label for="quantity_wanted"><?php 
                    echo smartyTranslate(array('s' => 'Quantity'), $_smarty_tpl);
                    ?>
</label>
							<input type="number" min="1" name="qty" id="quantity_wanted" class="text" value="<?php 
                    if (isset($_smarty_tpl->tpl_vars['quantityBackup']->value)) {
                        echo intval($_smarty_tpl->tpl_vars['quantityBackup']->value);
                    } else {
                        if ($_smarty_tpl->tpl_vars['product']->value->minimal_quantity > 1) {
                            echo $_smarty_tpl->tpl_vars['product']->value->minimal_quantity;
                        } else {
                            ?>
1<?php 
                        }
                    }
                    ?>
" />
							<a href="#" data-field-qty="qty" class="btn btn-default button-minus product_quantity_down">
								<span><i class="icon-minus"></i></span>
							</a>
							<a href="#" data-field-qty="qty" class="btn btn-default button-plus product_quantity_up">
								<span><i class="icon-plus"></i></span>
							</a>
							<span class="clearfix"></span>
						</p>
						<?php 
                }
                ?>
						<!-- minimal quantity wanted -->
						<p id="minimal_quantity_wanted_p"<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->minimal_quantity <= 1 || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
 style="display: none;"<?php 
                }
                ?>
>
							<?php 
                echo smartyTranslate(array('s' => 'The minimum purchase order quantity for the product is'), $_smarty_tpl);
                ?>
 <b id="minimal_quantity_label"><?php 
                echo $_smarty_tpl->tpl_vars['product']->value->minimal_quantity;
                ?>
</b>
						</p>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['groups']->value)) {
                    ?>
							<!-- attributes -->
							<div id="attributes">
								<div class="clearfix"></div>
								<?php 
                    $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['group']->_loop = false;
                    $_smarty_tpl->tpl_vars['id_attribute_group'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['groups']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value) {
                        $_smarty_tpl->tpl_vars['group']->_loop = true;
                        $_smarty_tpl->tpl_vars['id_attribute_group']->value = $_smarty_tpl->tpl_vars['group']->key;
                        ?>
									<?php 
                        if (count($_smarty_tpl->tpl_vars['group']->value['attributes'])) {
                            ?>
										<fieldset class="attribute_fieldset">
											<label class="attribute_label" <?php 
                            if ($_smarty_tpl->tpl_vars['group']->value['group_type'] != 'color' && $_smarty_tpl->tpl_vars['group']->value['group_type'] != 'radio') {
                                ?>
for="group_<?php 
                                echo intval($_smarty_tpl->tpl_vars['id_attribute_group']->value);
                                ?>
"<?php 
                            }
                            ?>
><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['group']->value['name'], ENT_QUOTES, 'UTF-8', true);
                            ?>
&nbsp;</label>
											<?php 
                            $_smarty_tpl->tpl_vars["groupName"] = new Smarty_variable("group_" . (string) $_smarty_tpl->tpl_vars['id_attribute_group']->value, null, 0);
                            ?>
											<div class="attribute_list">
												<?php 
                            if ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'select') {
                                ?>
													<select name="<?php 
                                echo $_smarty_tpl->tpl_vars['groupName']->value;
                                ?>
" id="group_<?php 
                                echo intval($_smarty_tpl->tpl_vars['id_attribute_group']->value);
                                ?>
" class="form-control attribute_select no-print">
														<?php 
                                $_smarty_tpl->tpl_vars['group_attribute'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['group_attribute']->_loop = false;
                                $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['group']->value['attributes'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['group_attribute']->key => $_smarty_tpl->tpl_vars['group_attribute']->value) {
                                    $_smarty_tpl->tpl_vars['group_attribute']->_loop = true;
                                    $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['group_attribute']->key;
                                    ?>
															<option value="<?php 
                                    echo intval($_smarty_tpl->tpl_vars['id_attribute']->value);
                                    ?>
"<?php 
                                    if (isset($_GET[$_smarty_tpl->tpl_vars['groupName']->value]) && intval($_GET[$_smarty_tpl->tpl_vars['groupName']->value]) == $_smarty_tpl->tpl_vars['id_attribute']->value || $_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) {
                                        ?>
 selected="selected"<?php 
                                    }
                                    ?>
 title="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['group_attribute']->value, ENT_QUOTES, 'UTF-8', true);
                                    ?>
"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['group_attribute']->value, ENT_QUOTES, 'UTF-8', true);
                                    ?>
</option>
														<?php 
                                }
                                ?>
													</select>
												<?php 
                            } elseif ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'color') {
                                ?>
													<ul id="color_to_pick_list" class="clearfix">
														<?php 
                                $_smarty_tpl->tpl_vars["default_colorpicker"] = new Smarty_variable('', null, 0);
                                ?>
														<?php 
                                $_smarty_tpl->tpl_vars['group_attribute'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['group_attribute']->_loop = false;
                                $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['group']->value['attributes'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['group_attribute']->key => $_smarty_tpl->tpl_vars['group_attribute']->value) {
                                    $_smarty_tpl->tpl_vars['group_attribute']->_loop = true;
                                    $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['group_attribute']->key;
                                    ?>
															<?php 
                                    $_smarty_tpl->tpl_vars['img_color_exists'] = new Smarty_variable(file_exists($_smarty_tpl->tpl_vars['col_img_dir']->value . $_smarty_tpl->tpl_vars['id_attribute']->value . '.jpg'), null, 0);
                                    ?>
															<li<?php 
                                    if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) {
                                        ?>
 class="selected"<?php 
                                    }
                                    ?>
>
																<a href="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value), ENT_QUOTES, 'UTF-8', true);
                                    ?>
" id="color_<?php 
                                    echo intval($_smarty_tpl->tpl_vars['id_attribute']->value);
                                    ?>
" name="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name'], ENT_QUOTES, 'UTF-8', true);
                                    ?>
" class="color_pick<?php 
                                    if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) {
                                        ?>
 selected<?php 
                                    }
                                    ?>
"<?php 
                                    if (!$_smarty_tpl->tpl_vars['img_color_exists']->value && isset($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['value']) && $_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['value']) {
                                        ?>
 style="background:<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['value'], ENT_QUOTES, 'UTF-8', true);
                                        ?>
;"<?php 
                                    }
                                    ?>
 title="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name'], ENT_QUOTES, 'UTF-8', true);
                                    ?>
">
																	<?php 
                                    if ($_smarty_tpl->tpl_vars['img_color_exists']->value) {
                                        ?>
																		<img src="<?php 
                                        echo $_smarty_tpl->tpl_vars['img_col_dir']->value;
                                        echo intval($_smarty_tpl->tpl_vars['id_attribute']->value);
                                        ?>
.jpg" alt="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name'], ENT_QUOTES, 'UTF-8', true);
                                        ?>
" title="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name'], ENT_QUOTES, 'UTF-8', true);
                                        ?>
" width="20" height="20" />
																	<?php 
                                    }
                                    ?>
																</a>
															</li>
															<?php 
                                    if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) {
                                        ?>
																<?php 
                                        $_smarty_tpl->tpl_vars['default_colorpicker'] = new Smarty_variable($_smarty_tpl->tpl_vars['id_attribute']->value, null, 0);
                                        ?>
															<?php 
                                    }
                                    ?>
														<?php 
                                }
                                ?>
													</ul>
													<input type="hidden" class="color_pick_hidden" name="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['groupName']->value, ENT_QUOTES, 'UTF-8', true);
                                ?>
" value="<?php 
                                echo intval($_smarty_tpl->tpl_vars['default_colorpicker']->value);
                                ?>
" />
												<?php 
                            } elseif ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'radio') {
                                ?>
													<ul>
														<?php 
                                $_smarty_tpl->tpl_vars['group_attribute'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['group_attribute']->_loop = false;
                                $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['group']->value['attributes'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['group_attribute']->key => $_smarty_tpl->tpl_vars['group_attribute']->value) {
                                    $_smarty_tpl->tpl_vars['group_attribute']->_loop = true;
                                    $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['group_attribute']->key;
                                    ?>
															<li>
																<input type="radio" class="attribute_radio" name="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['groupName']->value, ENT_QUOTES, 'UTF-8', true);
                                    ?>
" value="<?php 
                                    echo $_smarty_tpl->tpl_vars['id_attribute']->value;
                                    ?>
" <?php 
                                    if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) {
                                        ?>
 checked="checked"<?php 
                                    }
                                    ?>
 />
																<span><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['group_attribute']->value, ENT_QUOTES, 'UTF-8', true);
                                    ?>
</span>
															</li>
														<?php 
                                }
                                ?>
													</ul>
												<?php 
                            }
                            ?>
											</div> <!-- end attribute_list -->
										</fieldset>
									<?php 
                        }
                        ?>
								<?php 
                    }
                    ?>
							</div> <!-- end attributes -->
						<?php 
                }
                ?>
					</div> <!-- end product_attributes -->
					<div class="box-cart-bottom">
						<div<?php 
                if (!$_smarty_tpl->tpl_vars['allow_oosp']->value && $_smarty_tpl->tpl_vars['product']->value->quantity <= 0 || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value) && $_smarty_tpl->tpl_vars['restricted_country_mode']->value || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
 class="unvisible"<?php 
                }
                ?>
>
							<p id="add_to_cart" class="buttons_bottom_block no-print">
								<button type="submit" name="Submit" class="exclusive">
									<span><?php 
                if ($_smarty_tpl->tpl_vars['content_only']->value && (isset($_smarty_tpl->tpl_vars['product']->value->customization_required) && $_smarty_tpl->tpl_vars['product']->value->customization_required)) {
                    echo smartyTranslate(array('s' => 'Customize'), $_smarty_tpl);
                } else {
                    echo smartyTranslate(array('s' => 'Add to cart'), $_smarty_tpl);
                }
                ?>
</span>
								</button>
							</p>
						</div>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value) {
                    echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value;
                }
                ?>
					</div> <!-- end box-cart-bottom -->
				</div> <!-- end box-info-product -->
			</form>
			<?php 
            }
            ?>
		</div> <!-- end pb-right-column-->
	</div> <!-- end primary_block -->
	<?php 
            if (!$_smarty_tpl->tpl_vars['content_only']->value) {
                if (isset($_smarty_tpl->tpl_vars['quantity_discounts']->value) && count($_smarty_tpl->tpl_vars['quantity_discounts']->value) > 0) {
                    ?>
			<!-- quantity discount -->
			<section class="page-product-box">
				<h3 class="page-product-heading"><?php 
                    echo smartyTranslate(array('s' => 'Volume discounts'), $_smarty_tpl);
                    ?>
</h3>
				<div id="quantityDiscount">
					<table class="std table-product-discounts">
						<thead>
							<tr>
								<th><?php 
                    echo smartyTranslate(array('s' => 'Quantity'), $_smarty_tpl);
                    ?>
</th>
								<th><?php 
                    if ($_smarty_tpl->tpl_vars['display_discount_price']->value) {
                        echo smartyTranslate(array('s' => 'Price'), $_smarty_tpl);
                    } else {
                        echo smartyTranslate(array('s' => 'Discount'), $_smarty_tpl);
                    }
                    ?>
</th>
								<th><?php 
                    echo smartyTranslate(array('s' => 'You Save'), $_smarty_tpl);
                    ?>
</th>
							</tr>
						</thead>
						<tbody>
							<?php 
                    $_smarty_tpl->tpl_vars['quantity_discount'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['quantity_discount']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['quantity_discounts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['quantity_discount']->key => $_smarty_tpl->tpl_vars['quantity_discount']->value) {
                        $_smarty_tpl->tpl_vars['quantity_discount']->_loop = true;
                        ?>
							<tr id="quantityDiscount_<?php 
                        echo $_smarty_tpl->tpl_vars['quantity_discount']->value['id_product_attribute'];
                        ?>
" class="quantityDiscount_<?php 
                        echo $_smarty_tpl->tpl_vars['quantity_discount']->value['id_product_attribute'];
                        ?>
" data-discount-type="<?php 
                        echo $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type'];
                        ?>
" data-discount="<?php 
                        echo floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']);
                        ?>
" data-discount-quantity="<?php 
                        echo intval($_smarty_tpl->tpl_vars['quantity_discount']->value['quantity']);
                        ?>
">
								<td>
									<?php 
                        echo intval($_smarty_tpl->tpl_vars['quantity_discount']->value['quantity']);
                        ?>

								</td>
								<td>
									<?php 
                        if ($_smarty_tpl->tpl_vars['quantity_discount']->value['price'] >= 0 || $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type'] == 'amount') {
                            ?>
										<?php 
                            if ($_smarty_tpl->tpl_vars['display_discount_price']->value) {
                                ?>
											<?php 
                                if ($_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_tax'] == 0 && !$_smarty_tpl->tpl_vars['quantity_discount']->value['price']) {
                                    ?>
												<?php 
                                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_with_tax'])), $_smarty_tpl);
                                    ?>

											<?php 
                                } else {
                                    ?>
												<?php 
                                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value'])), $_smarty_tpl);
                                    ?>

											<?php 
                                }
                                ?>
										<?php 
                            } else {
                                ?>
											<?php 
                                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value'])), $_smarty_tpl);
                                ?>

										<?php 
                            }
                            ?>
									<?php 
                        } else {
                            ?>
										<?php 
                            if ($_smarty_tpl->tpl_vars['display_discount_price']->value) {
                                ?>
											<?php 
                                if ($_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_tax'] == 0) {
                                    ?>
												<?php 
                                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_with_tax'])), $_smarty_tpl);
                                    ?>

											<?php 
                                } else {
                                    ?>
												<?php 
                                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction'])), $_smarty_tpl);
                                    ?>

											<?php 
                                }
                                ?>
										<?php 
                            } else {
                                ?>
											<?php 
                                echo floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']);
                                ?>
%
										<?php 
                            }
                            ?>
									<?php 
                        }
                        ?>
								</td>
								<td>
									<span><?php 
                        echo smartyTranslate(array('s' => 'Up to'), $_smarty_tpl);
                        ?>
</span>
									<?php 
                        if ($_smarty_tpl->tpl_vars['quantity_discount']->value['price'] >= 0 || $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type'] == 'amount') {
                            ?>
										<?php 
                            $_smarty_tpl->tpl_vars['discountPrice'] = new Smarty_variable(floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']), null, 0);
                            ?>
									<?php 
                        } else {
                            ?>
										<?php 
                            $_smarty_tpl->tpl_vars['discountPrice'] = new Smarty_variable(floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction']), null, 0);
                            ?>
									<?php 
                        }
                        ?>
									<?php 
                        $_smarty_tpl->tpl_vars['discountPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['discountPrice']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['quantity'], null, 0);
                        ?>
									<?php 
                        $_smarty_tpl->tpl_vars['qtyProductPrice'] = new Smarty_variable(floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) * $_smarty_tpl->tpl_vars['quantity_discount']->value['quantity'], null, 0);
                        ?>
									<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['qtyProductPrice']->value - $_smarty_tpl->tpl_vars['discountPrice']->value), $_smarty_tpl);
                        ?>

								</td>
							</tr>
							<?php 
                    }
                    ?>
						</tbody>
					</table>
				</div>
			</section>
		<?php 
                }
                ?>
		<?php 
                if (isset($_smarty_tpl->tpl_vars['features']->value) && $_smarty_tpl->tpl_vars['features']->value) {
                    ?>
			<!-- Data sheet -->
			<section class="page-product-box">
				<h3 class="page-product-heading"><?php 
                    echo smartyTranslate(array('s' => 'Data sheet'), $_smarty_tpl);
                    ?>
</h3>
				<table class="table-data-sheet">
					<?php 
                    $_smarty_tpl->tpl_vars['feature'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['feature']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['features']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['feature']->key => $_smarty_tpl->tpl_vars['feature']->value) {
                        $_smarty_tpl->tpl_vars['feature']->_loop = true;
                        ?>
					<tr class="<?php 
                        echo smarty_function_cycle(array('values' => "odd,even"), $_smarty_tpl);
                        ?>
">
						<?php 
                        if (isset($_smarty_tpl->tpl_vars['feature']->value['value'])) {
                            ?>
						<td><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['name'], ENT_QUOTES, 'UTF-8', true);
                            ?>
</td>
						<td><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['value'], ENT_QUOTES, 'UTF-8', true);
                            ?>
</td>
						<?php 
                        }
                        ?>
					</tr>
					<?php 
                    }
                    ?>
				</table>
			</section>
			<!--end Data sheet -->
		<?php 
                }
                ?>
		<?php 
                if (isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->description) {
                    ?>
			<!-- More info -->
			<section class="page-product-box">
				<h3 class="page-product-heading"><?php 
                    echo smartyTranslate(array('s' => 'More info'), $_smarty_tpl);
                    ?>
</h3>
				<!-- full description -->
				<div  class="rte"><?php 
                    echo $_smarty_tpl->tpl_vars['product']->value->description;
                    ?>
</div>
			</section>
			<!--end  More info -->
		<?php 
                }
                ?>
		<?php 
                if (isset($_smarty_tpl->tpl_vars['packItems']->value) && count($_smarty_tpl->tpl_vars['packItems']->value) > 0) {
                    ?>
		<section id="blockpack">
			<h3 class="page-product-heading"><?php 
                    echo smartyTranslate(array('s' => 'Pack content'), $_smarty_tpl);
                    ?>
</h3>
			<?php 
                    echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('products' => $_smarty_tpl->tpl_vars['packItems']->value), 0);
                    ?>

		</section>
		<?php 
                }
                ?>
		<!--HOOK_PRODUCT_TAB -->
		<section class="page-product-box">
			<?php 
                echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB']->value;
                ?>

			<?php 
                if (isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB_CONTENT']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB_CONTENT']->value) {
                    echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB_CONTENT']->value;
                }
                ?>
		</section>
		<!--end HOOK_PRODUCT_TAB -->
		<?php 
                if (isset($_smarty_tpl->tpl_vars['accessories']->value) && $_smarty_tpl->tpl_vars['accessories']->value) {
                    ?>
			<!--Accessories -->
			<section class="page-product-box">
				<h3 class="page-product-heading"><?php 
                    echo smartyTranslate(array('s' => 'Accessories'), $_smarty_tpl);
                    ?>
</h3>
				<div class="block products_block accessories-block clearfix">
					<div class="block_content">
						<ul id="bxslider" class="bxslider clearfix">
							<?php 
                    $_smarty_tpl->tpl_vars['accessory'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['accessory']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['accessories']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['accessory']->total = $_smarty_tpl->_count($_from);
                    $_smarty_tpl->tpl_vars['accessory']->iteration = 0;
                    $_smarty_tpl->tpl_vars['accessory']->index = -1;
                    foreach ($_from as $_smarty_tpl->tpl_vars['accessory']->key => $_smarty_tpl->tpl_vars['accessory']->value) {
                        $_smarty_tpl->tpl_vars['accessory']->_loop = true;
                        $_smarty_tpl->tpl_vars['accessory']->iteration++;
                        $_smarty_tpl->tpl_vars['accessory']->index++;
                        $_smarty_tpl->tpl_vars['accessory']->first = $_smarty_tpl->tpl_vars['accessory']->index === 0;
                        $_smarty_tpl->tpl_vars['accessory']->last = $_smarty_tpl->tpl_vars['accessory']->iteration === $_smarty_tpl->tpl_vars['accessory']->total;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['accessories_list']['first'] = $_smarty_tpl->tpl_vars['accessory']->first;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['accessories_list']['last'] = $_smarty_tpl->tpl_vars['accessory']->last;
                        ?>
								<?php 
                        if (($_smarty_tpl->tpl_vars['accessory']->value['allow_oosp'] || $_smarty_tpl->tpl_vars['accessory']->value['quantity_all_versions'] > 0 || $_smarty_tpl->tpl_vars['accessory']->value['quantity'] > 0) && $_smarty_tpl->tpl_vars['accessory']->value['available_for_order'] && !isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value)) {
                            ?>
									<?php 
                            $_smarty_tpl->tpl_vars['accessoryLink'] = new Smarty_variable($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['accessory']->value['id_product'], $_smarty_tpl->tpl_vars['accessory']->value['link_rewrite'], $_smarty_tpl->tpl_vars['accessory']->value['category']), null, 0);
                            ?>
									<li class="item product-box ajax_block_product<?php 
                            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['accessories_list']['first']) {
                                ?>
 first_item<?php 
                            } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['accessories_list']['last']) {
                                ?>
 last_item<?php 
                            } else {
                                ?>
 item<?php 
                            }
                            ?>
 product_accessories_description">
										<div class="product_desc">
											<a href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['accessoryLink']->value, ENT_QUOTES, 'UTF-8', true);
                            ?>
" title="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['accessory']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                            ?>
" class="product-image product_image">
												<img class="lazyOwl" src="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['accessory']->value['link_rewrite'], $_smarty_tpl->tpl_vars['accessory']->value['id_image'], 'home_default'), ENT_QUOTES, 'UTF-8', true);
                            ?>
" alt="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['accessory']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                            ?>
" width="<?php 
                            echo $_smarty_tpl->tpl_vars['homeSize']->value['width'];
                            ?>
" height="<?php 
                            echo $_smarty_tpl->tpl_vars['homeSize']->value['height'];
                            ?>
"/>
											</a>
											<div class="block_description">
												<a href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['accessoryLink']->value, ENT_QUOTES, 'UTF-8', true);
                            ?>
" title="<?php 
                            echo smartyTranslate(array('s' => 'More'), $_smarty_tpl);
                            ?>
" class="product_description">
													<?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['accessory']->value['description_short']), 25, '...');
                            ?>

												</a>
											</div>
										</div>
										<div class="s_title_block">
											<h5 itemprop="name" class="product-name">
												<a href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['accessoryLink']->value, ENT_QUOTES, 'UTF-8', true);
                            ?>
">
													<?php 
                            echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['accessory']->value['name'], 20, '...', true), ENT_QUOTES, 'UTF-8', true);
                            ?>

												</a>
											</h5>
											<?php 
                            if ($_smarty_tpl->tpl_vars['accessory']->value['show_price'] && !isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value) && !$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                                ?>
											<span class="price">
												<?php 
                                if ($_smarty_tpl->tpl_vars['priceDisplay']->value != 1) {
                                    ?>
												<?php 
                                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p' => $_smarty_tpl->tpl_vars['accessory']->value['price']), $_smarty_tpl);
                                } else {
                                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p' => $_smarty_tpl->tpl_vars['accessory']->value['price_tax_exc']), $_smarty_tpl);
                                    ?>

												<?php 
                                }
                                ?>
											</span>
											<?php 
                            }
                            ?>
										</div>
										<div class="clearfix" style="margin-top:5px">
											<?php 
                            if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && ($_smarty_tpl->tpl_vars['accessory']->value['allow_oosp'] || $_smarty_tpl->tpl_vars['accessory']->value['quantity'] > 0)) {
                                ?>
												<div class="no-print">
													<a class="exclusive button ajax_add_to_cart_button" href="<?php 
                                ob_start();
                                echo intval($_smarty_tpl->tpl_vars['accessory']->value['id_product']);
                                $_tmp43 = ob_get_clean();
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', true, null, "qty=1&amp;id_product=" . $_tmp43 . "&amp;token=" . (string) $_smarty_tpl->tpl_vars['static_token']->value . "&amp;add"), ENT_QUOTES, 'UTF-8', true);
                                ?>
" data-id-product="<?php 
                                echo intval($_smarty_tpl->tpl_vars['accessory']->value['id_product']);
                                ?>
" title="<?php 
                                echo smartyTranslate(array('s' => 'Add to cart'), $_smarty_tpl);
                                ?>
">
														<span><?php 
                                echo smartyTranslate(array('s' => 'Add to cart'), $_smarty_tpl);
                                ?>
</span>
													</a>
												</div>
											<?php 
                            }
                            ?>
										</div>
									</li>
								<?php 
                        }
                        ?>
							<?php 
                    }
                    ?>
						</ul>
					</div>
				</div>
			</section>
			<!--end Accessories -->
		<?php 
                }
                ?>
		<?php 
                if (isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_FOOTER']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_FOOTER']->value) {
                    echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_FOOTER']->value;
                }
                ?>
		<!-- description & features -->
		<?php 
                if (isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->description || isset($_smarty_tpl->tpl_vars['features']->value) && $_smarty_tpl->tpl_vars['features']->value || isset($_smarty_tpl->tpl_vars['accessories']->value) && $_smarty_tpl->tpl_vars['accessories']->value || isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB']->value || isset($_smarty_tpl->tpl_vars['attachments']->value) && $_smarty_tpl->tpl_vars['attachments']->value || isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->customizable) {
                    ?>
			<?php 
                    if (isset($_smarty_tpl->tpl_vars['attachments']->value) && $_smarty_tpl->tpl_vars['attachments']->value) {
                        ?>
			<!--Download -->
			<section class="page-product-box">
				<h3 class="page-product-heading"><?php 
                        echo smartyTranslate(array('s' => 'Download'), $_smarty_tpl);
                        ?>
</h3>
				<?php 
                        $_smarty_tpl->tpl_vars['attachment'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['attachment']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['attachments']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        $_smarty_tpl->tpl_vars['attachment']->total = $_smarty_tpl->_count($_from);
                        $_smarty_tpl->tpl_vars['attachment']->iteration = 0;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['attachements']['iteration'] = 0;
                        foreach ($_from as $_smarty_tpl->tpl_vars['attachment']->key => $_smarty_tpl->tpl_vars['attachment']->value) {
                            $_smarty_tpl->tpl_vars['attachment']->_loop = true;
                            $_smarty_tpl->tpl_vars['attachment']->iteration++;
                            $_smarty_tpl->tpl_vars['attachment']->last = $_smarty_tpl->tpl_vars['attachment']->iteration === $_smarty_tpl->tpl_vars['attachment']->total;
                            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['attachements']['iteration']++;
                            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['attachements']['last'] = $_smarty_tpl->tpl_vars['attachment']->last;
                            ?>
					<?php 
                            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['attachements']['iteration'] % 3 == 1) {
                                ?>
<div class="row"><?php 
                            }
                            ?>
						<div class="col-lg-4">
							<h4><a href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('attachment', true, null, "id_attachment=" . (string) $_smarty_tpl->tpl_vars['attachment']->value['id_attachment']), ENT_QUOTES, 'UTF-8', true);
                            ?>
"><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['attachment']->value['name'], ENT_QUOTES, 'UTF-8', true);
                            ?>
</a></h4>
							<p class="text-muted"><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['attachment']->value['description'], ENT_QUOTES, 'UTF-8', true);
                            ?>
</p>
							<a class="btn btn-default btn-block" href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('attachment', true, null, "id_attachment=" . (string) $_smarty_tpl->tpl_vars['attachment']->value['id_attachment']), ENT_QUOTES, 'UTF-8', true);
                            ?>
">
								<i class="icon-download"></i>
								<?php 
                            echo smartyTranslate(array('s' => "Download"), $_smarty_tpl);
                            ?>
 (<?php 
                            echo Tools::formatBytes($_smarty_tpl->tpl_vars['attachment']->value['file_size'], 2);
                            ?>
)
							</a>
							<hr />
						</div>
					<?php 
                            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['attachements']['iteration'] % 3 == 0 || $_smarty_tpl->getVariable('smarty')->value['foreach']['attachements']['last']) {
                                ?>
</div><?php 
                            }
                            ?>
				<?php 
                        }
                        ?>
			</section>
			<!--end Download -->
			<?php 
                    }
                    ?>
			<?php 
                    if (isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->customizable) {
                        ?>
			<!--Customization -->
			<section class="page-product-box">
				<h3 class="page-product-heading"><?php 
                        echo smartyTranslate(array('s' => 'Product customization'), $_smarty_tpl);
                        ?>
</h3>
				<!-- Customizable products -->
				<form method="post" action="<?php 
                        echo $_smarty_tpl->tpl_vars['customizationFormTarget']->value;
                        ?>
" enctype="multipart/form-data" id="customizationForm" class="clearfix">
					<p class="infoCustomizable">
						<?php 
                        echo smartyTranslate(array('s' => 'After saving your customized product, remember to add it to your cart.'), $_smarty_tpl);
                        ?>

						<?php 
                        if ($_smarty_tpl->tpl_vars['product']->value->uploadable_files) {
                            ?>
						<br />
						<?php 
                            echo smartyTranslate(array('s' => 'Allowed file formats are: GIF, JPG, PNG'), $_smarty_tpl);
                        }
                        ?>
					</p>
					<?php 
                        if (intval($_smarty_tpl->tpl_vars['product']->value->uploadable_files)) {
                            ?>
						<div class="customizableProductsFile">
							<h5 class="product-heading-h5"><?php 
                            echo smartyTranslate(array('s' => 'Pictures'), $_smarty_tpl);
                            ?>
</h5>
							<ul id="uploadable_files" class="clearfix">
								<?php 
                            echo smarty_function_counter(array('start' => 0, 'assign' => 'customizationField'), $_smarty_tpl);
                            ?>

								<?php 
                            $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['field']->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['customizationFields']->value;
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
                                $_smarty_tpl->tpl_vars['field']->_loop = true;
                                ?>
									<?php 
                                if ($_smarty_tpl->tpl_vars['field']->value['type'] == 0) {
                                    ?>
										<li class="customizationUploadLine<?php 
                                    if ($_smarty_tpl->tpl_vars['field']->value['required']) {
                                        ?>
 required<?php 
                                    }
                                    ?>
"><?php 
                                    $_smarty_tpl->tpl_vars['key'] = new Smarty_variable('pictures_' . $_smarty_tpl->tpl_vars['product']->value->id . '_' . $_smarty_tpl->tpl_vars['field']->value['id_customization_field'], null, 0);
                                    ?>
											<?php 
                                    if (isset($_smarty_tpl->tpl_vars['pictures']->value[$_smarty_tpl->tpl_vars['key']->value])) {
                                        ?>
												<div class="customizationUploadBrowse">
													<img src="<?php 
                                        echo $_smarty_tpl->tpl_vars['pic_dir']->value;
                                        echo $_smarty_tpl->tpl_vars['pictures']->value[$_smarty_tpl->tpl_vars['key']->value];
                                        ?>
_small" alt="" />
														<a href="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductDeletePictureLink($_smarty_tpl->tpl_vars['product']->value, $_smarty_tpl->tpl_vars['field']->value['id_customization_field']), ENT_QUOTES, 'UTF-8', true);
                                        ?>
" title="<?php 
                                        echo smartyTranslate(array('s' => 'Delete'), $_smarty_tpl);
                                        ?>
" >
															<img src="<?php 
                                        echo $_smarty_tpl->tpl_vars['img_dir']->value;
                                        ?>
icon/delete.gif" alt="<?php 
                                        echo smartyTranslate(array('s' => 'Delete'), $_smarty_tpl);
                                        ?>
" class="customization_delete_icon" width="11" height="13" />
														</a>
												</div>
											<?php 
                                    }
                                    ?>
											<div class="customizationUploadBrowse form-group">
												<label class="customizationUploadBrowseDescription">
													<?php 
                                    if (!empty($_smarty_tpl->tpl_vars['field']->value['name'])) {
                                        ?>
														<?php 
                                        echo $_smarty_tpl->tpl_vars['field']->value['name'];
                                        ?>

													<?php 
                                    } else {
                                        ?>
														<?php 
                                        echo smartyTranslate(array('s' => 'Please select an image file from your computer'), $_smarty_tpl);
                                        ?>

													<?php 
                                    }
                                    ?>
													<?php 
                                    if ($_smarty_tpl->tpl_vars['field']->value['required']) {
                                        ?>
<sup>*</sup><?php 
                                    }
                                    ?>
												</label>
												<input type="file" name="file<?php 
                                    echo $_smarty_tpl->tpl_vars['field']->value['id_customization_field'];
                                    ?>
" id="img<?php 
                                    echo $_smarty_tpl->tpl_vars['customizationField']->value;
                                    ?>
" class="form-control customization_block_input <?php 
                                    if (isset($_smarty_tpl->tpl_vars['pictures']->value[$_smarty_tpl->tpl_vars['key']->value])) {
                                        ?>
filled<?php 
                                    }
                                    ?>
" />
											</div>
										</li>
										<?php 
                                    echo smarty_function_counter(array(), $_smarty_tpl);
                                    ?>

									<?php 
                                }
                                ?>
								<?php 
                            }
                            ?>
							</ul>
						</div>
					<?php 
                        }
                        ?>
					<?php 
                        if (intval($_smarty_tpl->tpl_vars['product']->value->text_fields)) {
                            ?>
						<div class="customizableProductsText">
							<h5 class="product-heading-h5"><?php 
                            echo smartyTranslate(array('s' => 'Text'), $_smarty_tpl);
                            ?>
</h5>
							<ul id="text_fields">
							<?php 
                            echo smarty_function_counter(array('start' => 0, 'assign' => 'customizationField'), $_smarty_tpl);
                            ?>

							<?php 
                            $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable();
                            $_smarty_tpl->tpl_vars['field']->_loop = false;
                            $_from = $_smarty_tpl->tpl_vars['customizationFields']->value;
                            if (!is_array($_from) && !is_object($_from)) {
                                settype($_from, 'array');
                            }
                            foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
                                $_smarty_tpl->tpl_vars['field']->_loop = true;
                                ?>
								<?php 
                                if ($_smarty_tpl->tpl_vars['field']->value['type'] == 1) {
                                    ?>
									<li class="customizationUploadLine<?php 
                                    if ($_smarty_tpl->tpl_vars['field']->value['required']) {
                                        ?>
 required<?php 
                                    }
                                    ?>
">
										<label for ="textField<?php 
                                    echo $_smarty_tpl->tpl_vars['customizationField']->value;
                                    ?>
">
											<?php 
                                    $_smarty_tpl->tpl_vars['key'] = new Smarty_variable('textFields_' . $_smarty_tpl->tpl_vars['product']->value->id . '_' . $_smarty_tpl->tpl_vars['field']->value['id_customization_field'], null, 0);
                                    ?>
											<?php 
                                    if (!empty($_smarty_tpl->tpl_vars['field']->value['name'])) {
                                        ?>
												<?php 
                                        echo $_smarty_tpl->tpl_vars['field']->value['name'];
                                        ?>

											<?php 
                                    }
                                    ?>
											<?php 
                                    if ($_smarty_tpl->tpl_vars['field']->value['required']) {
                                        ?>
<sup>*</sup><?php 
                                    }
                                    ?>
										</label>
										<textarea name="textField<?php 
                                    echo $_smarty_tpl->tpl_vars['field']->value['id_customization_field'];
                                    ?>
" class="form-control customization_block_input" id="textField<?php 
                                    echo $_smarty_tpl->tpl_vars['customizationField']->value;
                                    ?>
" rows="3" cols="20"><?php 
                                    if (isset($_smarty_tpl->tpl_vars['textFields']->value[$_smarty_tpl->tpl_vars['key']->value])) {
                                        echo stripslashes($_smarty_tpl->tpl_vars['textFields']->value[$_smarty_tpl->tpl_vars['key']->value]);
                                    }
                                    ?>
</textarea>
									</li>
									<?php 
                                    echo smarty_function_counter(array(), $_smarty_tpl);
                                    ?>

								<?php 
                                }
                                ?>
							<?php 
                            }
                            ?>
							</ul>
						</div>
					<?php 
                        }
                        ?>
					<p id="customizedDatas">
						<input type="hidden" name="quantityBackup" id="quantityBackup" value="" />
						<input type="hidden" name="submitCustomizedDatas" value="1" />
						<button class="button btn btn-default button button-small" name="saveCustomization">
							<span><?php 
                        echo smartyTranslate(array('s' => 'Save'), $_smarty_tpl);
                        ?>
</span>
						</button>
						<span id="ajax-loader" class="unvisible">
							<img src="<?php 
                        echo $_smarty_tpl->tpl_vars['img_ps_dir']->value;
                        ?>
loader.gif" alt="loader" />
						</span>
					</p>
				</form>
				<p class="clear required"><sup>*</sup> <?php 
                        echo smartyTranslate(array('s' => 'required fields'), $_smarty_tpl);
                        ?>
</p>
			</section>
			<!--end Customization -->
			<?php 
                    }
                    ?>
		<?php 
                }
                ?>
	<?php 
            }
            ?>
</div> <!-- itemscope product wrapper -->
<?php 
            if (isset($_GET['ad']) && $_GET['ad']) {
                $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'ad'));
                $_block_repeat = true;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'ad'), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['base_dir']->value . $_GET['ad'], ENT_QUOTES, 'UTF-8', true);
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'ad'), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
            }
            if (isset($_GET['adtoken']) && $_GET['adtoken']) {
                $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'adtoken'));
                $_block_repeat = true;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'adtoken'), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    echo htmlspecialchars($_GET['adtoken'], ENT_QUOTES, 'UTF-8', true);
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'adtoken'), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
            }
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('allowBuyWhenOutOfStock' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['allow_oosp']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('availableNowValue' => preg_replace("%(?<!\\\\)'%", "\\'", $_smarty_tpl->tpl_vars['product']->value->available_now)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('availableLaterValue' => preg_replace("%(?<!\\\\)'%", "\\'", $_smarty_tpl->tpl_vars['product']->value->available_later)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('attribute_anchor_separator' => preg_replace("%(?<!\\\\)'%", "\\'", $_smarty_tpl->tpl_vars['attribute_anchor_separator']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('attributesCombinations' => $_smarty_tpl->tpl_vars['attributesCombinations']->value), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('currentDate' => smarty_modifier_date_format(time(), '%Y-%m-%d %H:%M:%S')), $_smarty_tpl);
            if (isset($_smarty_tpl->tpl_vars['combinations']->value) && $_smarty_tpl->tpl_vars['combinations']->value) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('combinations' => $_smarty_tpl->tpl_vars['combinations']->value), $_smarty_tpl);
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('combinationsFromController' => $_smarty_tpl->tpl_vars['combinations']->value), $_smarty_tpl);
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('displayDiscountPrice' => $_smarty_tpl->tpl_vars['display_discount_price']->value), $_smarty_tpl);
                $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'upToTxt'));
                $_block_repeat = true;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'upToTxt'), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    echo smartyTranslate(array('s' => 'Up to', 'js' => 1), $_smarty_tpl);
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'upToTxt'), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
            }
            if (isset($_smarty_tpl->tpl_vars['combinationImages']->value) && $_smarty_tpl->tpl_vars['combinationImages']->value) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('combinationImages' => $_smarty_tpl->tpl_vars['combinationImages']->value), $_smarty_tpl);
            }
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('customizationId' => $_smarty_tpl->tpl_vars['id_customization']->value), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('customizationFields' => $_smarty_tpl->tpl_vars['customizationFields']->value), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('default_eco_tax' => floatval($_smarty_tpl->tpl_vars['product']->value->ecotax)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('displayPrice' => intval($_smarty_tpl->tpl_vars['priceDisplay']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('ecotaxTax_rate' => floatval($_smarty_tpl->tpl_vars['ecotaxTax_rate']->value)), $_smarty_tpl);
            if (isset($_smarty_tpl->tpl_vars['cover']->value['id_image_only'])) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('idDefaultImage' => intval($_smarty_tpl->tpl_vars['cover']->value['id_image_only'])), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('idDefaultImage' => 0), $_smarty_tpl);
            }
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('img_ps_dir' => $_smarty_tpl->tpl_vars['img_ps_dir']->value), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('img_prod_dir' => $_smarty_tpl->tpl_vars['img_prod_dir']->value), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('id_product' => intval($_smarty_tpl->tpl_vars['product']->value->id)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('jqZoomEnabled' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['jqZoomEnabled']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('maxQuantityToAllowDisplayOfLastQuantityMessage' => intval($_smarty_tpl->tpl_vars['last_qties']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('minimalQuantity' => intval($_smarty_tpl->tpl_vars['product']->value->minimal_quantity)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('noTaxForThisProduct' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['no_tax']->value)), $_smarty_tpl);
            if (isset($_smarty_tpl->tpl_vars['customer_group_without_tax']->value)) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('customerGroupWithoutTax' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['customer_group_without_tax']->value)), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('customerGroupWithoutTax' => false), $_smarty_tpl);
            }
            if (isset($_smarty_tpl->tpl_vars['group_reduction']->value)) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('groupReduction' => floatval($_smarty_tpl->tpl_vars['group_reduction']->value)), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('groupReduction' => false), $_smarty_tpl);
            }
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('oosHookJsCodeFunctions' => array()), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productHasAttributes' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval(isset($_smarty_tpl->tpl_vars['groups']->value))), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productPriceTaxExcluded' => floatval((($tmp = @$_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(true)) === null || $tmp === '' ? 'null' : $tmp) - $_smarty_tpl->tpl_vars['product']->value->ecotax)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productPriceTaxIncluded' => floatval((($tmp = @$_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(false)) === null || $tmp === '' ? 'null' : $tmp) - $_smarty_tpl->tpl_vars['product']->value->ecotax * (1 + $_smarty_tpl->tpl_vars['ecotaxTax_rate']->value / 100))), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productBasePriceTaxExcluded' => floatval($_smarty_tpl->tpl_vars['product']->value->getPrice(false, null, 6, null, false, false) - $_smarty_tpl->tpl_vars['product']->value->ecotax)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productBasePriceTaxExcl' => floatval($_smarty_tpl->tpl_vars['product']->value->getPrice(false, null, 6, null, false, false))), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productBasePriceTaxIncl' => floatval($_smarty_tpl->tpl_vars['product']->value->getPrice(true, null, 6, null, false, false))), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productReference' => htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->reference, ENT_QUOTES, 'UTF-8', true)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productAvailableForOrder' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['product']->value->available_for_order)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productPriceWithoutReduction' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productPrice' => floatval($_smarty_tpl->tpl_vars['productPrice']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productUnitPriceRatio' => floatval($_smarty_tpl->tpl_vars['product']->value->unit_price_ratio)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productShowPrice' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval(!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && $_smarty_tpl->tpl_vars['product']->value->show_price)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('PS_CATALOG_MODE' => $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value), $_smarty_tpl);
            if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && count($_smarty_tpl->tpl_vars['product']->value->specificPrice)) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('product_specific_price' => $_smarty_tpl->tpl_vars['product']->value->specificPrice), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('product_specific_price' => array()), $_smarty_tpl);
            }
            if ($_smarty_tpl->tpl_vars['display_qties']->value == 1 && $_smarty_tpl->tpl_vars['product']->value->quantity) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('quantityAvailable' => $_smarty_tpl->tpl_vars['product']->value->quantity), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('quantityAvailable' => 0), $_smarty_tpl);
            }
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('quantitiesDisplayAllowed' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['display_qties']->value)), $_smarty_tpl);
            if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'percentage') {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('reduction_percent' => $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] * floatval(100)), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('reduction_percent' => 0), $_smarty_tpl);
            }
            if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'amount') {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('reduction_price' => floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'])), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('reduction_price' => 0), $_smarty_tpl);
            }
            if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['price']) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('specific_price' => floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['price'])), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('specific_price' => 0), $_smarty_tpl);
            }
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('specific_currency' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['id_currency'])), $_smarty_tpl);
            ?>
 <?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('stock_management' => intval($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('taxRate' => floatval($_smarty_tpl->tpl_vars['tax_rate']->value)), $_smarty_tpl);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'doesntExist'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExist'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'This combination does not exist for this product. Please select another combination.', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExist'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'doesntExistNoMore'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExistNoMore'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'This product is no longer in stock', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExistNoMore'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'doesntExistNoMoreBut'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExistNoMoreBut'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'with those attributes but is available with others.', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExistNoMoreBut'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'fieldRequired'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'fieldRequired'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'Please fill in all the required fields before saving your customization.', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'fieldRequired'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'uploading_in_progress'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'uploading_in_progress'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'Uploading in progress, please be patient.', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'uploading_in_progress'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'product_fileDefaultHtml'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_fileDefaultHtml'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'No file selected', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_fileDefaultHtml'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'product_fileButtonHtml'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_fileButtonHtml'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'Choose File', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_fileButtonHtml'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

<?php 
        }
    }
    function content_55dc75a003e1f6_47584415($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_function_split')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.split.php';
        }
        if (!is_callable('smarty_function_math')) {
            include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('empty', 'empty'));
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            if ($_smarty_tpl->tpl_vars['products']->value) {
                ?>

    <?php 
                echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
                ?>

    

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>
    
    <?php 
                if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
                    ?>

    <?php 
                } else {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
                    ?>

    <?php 
                }
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
                    ?>
    <?php 
                }
                ?>

    
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/product_image_gallery.js"), $_smarty_tpl);
                ?>


    <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0);
                    ?>
    <?php 
                }
                ?>
    <div class="grid-list">
        <?php 
                $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["sproducts"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) {
                    $_smarty_tpl->tpl_vars["sproducts"]->_loop = true;
                    $_smarty_tpl->tpl_vars["sproducts"]->iteration++;
                    $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last;
                    $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["product"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['sproducts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                        $_smarty_tpl->tpl_vars["product"]->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration']++;
                        ?>
<div class="ty-column<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        if ($_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0);
                            ?>
<div class="ty-grid-list__item ty-quick-view-button__wrapper"><?php 
                            $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                ?>
<div class="ty-grid-list__image"><?php 
                                echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_gallery' => true), 0);
                                $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                                ?>
</div><div class="ty-grid-list__item-name"><?php 
                                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                                    ?>
<span class="item-number"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
.&nbsp;</span><?php 
                                    echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl);
                                }
                                $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['name']->value];
                                ?>
</div><div class="ty-grid-list__price <?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) {
                                    ?>
ty-grid-list__no-price<?php 
                                }
                                ?>
"><?php 
                                $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) {
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value];
                                }
                                $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                                $_smarty_tpl->tpl_vars["clean_price"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value];
                                $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value];
                                ?>
</div><?php 
                                $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) {
                                    ?>
<div class="grid-list__rating"><?php 
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value];
                                    ?>
</div><?php 
                                }
                                ?>
<div class="ty-grid-list__control"><?php 
                                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                }
                                if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    ?>
<div class="button-container"><?php 
                                    $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value];
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                            ?>
</div><?php 
                        }
                        ?>
</div><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) {
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0);
                        $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                        ob_start();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                        if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                            echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                                unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                            }
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                            unset($_loop);
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                                if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                                }
                            } else {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                            }
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                                    ?>
<div class="ty-column<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><div class="ty-product-empty"><span class="ty-product-empty__text"><?php 
                                    echo $_smarty_tpl->__("empty");
                                    ?>
</span></div></div><?php 
                                }
                            }
                        }
                    }
                }
                ?>
    </div>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8');
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="blocks/list_templates/grid_list.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/list_templates/grid_list.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            if ($_smarty_tpl->tpl_vars['products']->value) {
                ?>

    <?php 
                echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
                ?>

    

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>
    
    <?php 
                if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
                    ?>

    <?php 
                } else {
                    ?>
        <?php 
                    echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
                    ?>

    <?php 
                }
                ?>

    <?php 
                echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
                ?>

    <?php 
                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
                    ?>
    <?php 
                }
                ?>

    
    <?php 
                echo smarty_function_script(array('src' => "js/tygh/product_image_gallery.js"), $_smarty_tpl);
                ?>


    <?php 
                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0);
                    ?>
    <?php 
                }
                ?>
    <div class="grid-list">
        <?php 
                $_smarty_tpl->tpl_vars["sproducts"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["sproducts"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['splitted_products']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars["sproducts"]->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars["sproducts"]->iteration = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars["sproducts"]->key => $_smarty_tpl->tpl_vars["sproducts"]->value) {
                    $_smarty_tpl->tpl_vars["sproducts"]->_loop = true;
                    $_smarty_tpl->tpl_vars["sproducts"]->iteration++;
                    $_smarty_tpl->tpl_vars["sproducts"]->last = $_smarty_tpl->tpl_vars["sproducts"]->iteration === $_smarty_tpl->tpl_vars["sproducts"]->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sprod"]['last'] = $_smarty_tpl->tpl_vars["sproducts"]->last;
                    $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars["product"]->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['sproducts']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration'] = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) {
                        $_smarty_tpl->tpl_vars["product"]->_loop = true;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["sproducts"]['iteration']++;
                        ?>
<div class="ty-column<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        if ($_smarty_tpl->tpl_vars['product']->value) {
                            $_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            $_smarty_tpl->tpl_vars["obj_id_prefix"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], null, 0);
                            echo $_smarty_tpl->getSubTemplate("common/product_data.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value), 0);
                            ?>
<div class="ty-grid-list__item ty-quick-view-button__wrapper"><?php 
                            $_smarty_tpl->tpl_vars["form_open"] = new Smarty_variable("form_open_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_open']->value];
                            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:product_multicolumns_list"));
                            $_block_repeat = true;
                            echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), null, $_smarty_tpl, $_block_repeat);
                            while ($_block_repeat) {
                                ob_start();
                                ?>
<div class="ty-grid-list__image"><?php 
                                echo $_smarty_tpl->getSubTemplate("views/products/components/product_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product' => $_smarty_tpl->tpl_vars['product']->value, 'show_gallery' => true), 0);
                                $_smarty_tpl->tpl_vars["discount_label"] = new Smarty_variable("discount_label_" . (string) $_smarty_tpl->tpl_vars['obj_prefix']->value . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['discount_label']->value];
                                ?>
</div><div class="ty-grid-list__item-name"><?php 
                                if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
                                    ?>
<span class="item-number"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['cur_number']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
.&nbsp;</span><?php 
                                    echo smarty_function_math(array('equation' => "num + 1", 'num' => $_smarty_tpl->tpl_vars['cur_number']->value, 'assign' => "cur_number"), $_smarty_tpl);
                                }
                                $_smarty_tpl->tpl_vars["name"] = new Smarty_variable("name_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['name']->value];
                                ?>
</div><div class="ty-grid-list__price <?php 
                                if ($_smarty_tpl->tpl_vars['product']->value['price'] == 0) {
                                    ?>
ty-grid-list__no-price<?php 
                                }
                                ?>
"><?php 
                                $_smarty_tpl->tpl_vars["old_price"] = new Smarty_variable("old_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                if (trim(Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value])) {
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['old_price']->value];
                                }
                                $_smarty_tpl->tpl_vars["price"] = new Smarty_variable("price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['price']->value];
                                $_smarty_tpl->tpl_vars["clean_price"] = new Smarty_variable("clean_price_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['clean_price']->value];
                                $_smarty_tpl->tpl_vars["list_discount"] = new Smarty_variable("list_discount_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['list_discount']->value];
                                ?>
</div><?php 
                                $_smarty_tpl->tpl_vars["rating"] = new Smarty_variable("rating_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                if (Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value]) {
                                    ?>
<div class="grid-list__rating"><?php 
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['rating']->value];
                                    ?>
</div><?php 
                                }
                                ?>
<div class="ty-grid-list__control"><?php 
                                if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
                                    echo $_smarty_tpl->getSubTemplate("views/products/components/quick_view_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('quick_nav_ids' => $_smarty_tpl->tpl_vars['quick_nav_ids']->value), 0);
                                }
                                if ($_smarty_tpl->tpl_vars['show_add_to_cart']->value) {
                                    ?>
<div class="button-container"><?php 
                                    $_smarty_tpl->tpl_vars["add_to_cart"] = new Smarty_variable("add_to_cart_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                                    echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['add_to_cart']->value];
                                    ?>
</div><?php 
                                }
                                ?>
</div><?php 
                                $_block_content = ob_get_clean();
                                $_block_repeat = false;
                                echo smarty_block_hook(array('name' => "products:product_multicolumns_list"), $_block_content, $_smarty_tpl, $_block_repeat);
                            }
                            array_pop($_smarty_tpl->smarty->_tag_stack);
                            $_smarty_tpl->tpl_vars["form_close"] = new Smarty_variable("form_close_" . (string) $_smarty_tpl->tpl_vars['obj_id']->value, null, 0);
                            echo Smarty::$_smarty_vars['capture'][$_smarty_tpl->tpl_vars['form_close']->value];
                            ?>
</div><?php 
                        }
                        ?>
</div><?php 
                    }
                    if ($_smarty_tpl->tpl_vars['show_empty']->value && $_smarty_tpl->getVariable('smarty')->value['foreach']['sprod']['last']) {
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['sproducts']['iteration'], null, 0);
                        $_smarty_tpl->_capture_stack[0][] = array("iteration", null, null);
                        ob_start();
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['iteration']->value, ENT_QUOTES, 'UTF-8');
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:products_multicolumns_extra"));
                        $_block_repeat = true;
                        echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), null, $_smarty_tpl, $_block_repeat);
                        while ($_block_repeat) {
                            ob_start();
                            $_block_content = ob_get_clean();
                            $_block_repeat = false;
                            echo smarty_block_hook(array('name' => "products:products_multicolumns_extra"), $_block_content, $_smarty_tpl, $_block_repeat);
                        }
                        array_pop($_smarty_tpl->smarty->_tag_stack);
                        $_smarty_tpl->tpl_vars["iteration"] = new Smarty_variable(Smarty::$_smarty_vars['capture']['iteration'], null, 0);
                        if ($_smarty_tpl->tpl_vars['iteration']->value % $_smarty_tpl->tpl_vars['columns']->value != 0) {
                            echo smarty_function_math(array('assign' => "empty_count", 'equation' => "c - it%c", 'it' => $_smarty_tpl->tpl_vars['iteration']->value, 'c' => $_smarty_tpl->tpl_vars['columns']->value), $_smarty_tpl);
                            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"])) {
                                unset($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]);
                            }
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['empty_count']->value) ? count($_loop) : max(0, (int) $_loop);
                            unset($_loop);
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['name'] = "empty_rows";
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = true;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] = 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'] - 1;
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['loop'];
                                if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] == 0) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show'] = false;
                                }
                            } else {
                                $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'] = 0;
                            }
                            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['show']) {
                                for ($_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration']++) {
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['step'];
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == 1;
                                    $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["empty_rows"]['total'];
                                    ?>
<div class="ty-column<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['columns']->value, ENT_QUOTES, 'UTF-8');
                                    ?>
"><div class="ty-product-empty"><span class="ty-product-empty__text"><?php 
                                    echo $_smarty_tpl->__("empty");
                                    ?>
</span></div></div><?php 
                                }
                            }
                        }
                    }
                }
                ?>
    </div>

    <?php 
                if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
                    ?>
        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                    ?>

    <?php 
                }
                ?>

<?php 
            }
            ?>

<?php 
            $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null);
            ob_start();
            echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8');
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
        }
    }
    function content_52a1fccf2d7598_95696382($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/var/www/vhosts/www.a3workout.com/httpdocs/shop/tools/smarty/plugins/function.math.php';
        }
        if (!is_callable('smarty_modifier_escape')) {
            include '/var/www/vhosts/www.a3workout.com/httpdocs/shop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
 <?php 
        $_smarty_tpl->tpl_vars['bslimit'] = new Smarty_variable(4, null, 0);
        ?>
 <?php 
        $_smarty_tpl->tpl_vars['bstabname'] = new Smarty_variable('bestseller', null, 0);
        ?>
<!-- MODULE Home Block best sellers -->
<div id="leo-best-sellers_block_center" class="block products_block green">
	<h4 class="title_block"><?php 
        echo smartyTranslate(array('s' => 'Best sellers', 'mod' => 'leoblockbestsellers'), $_smarty_tpl);
        ?>
</h4>
	<?php 
        if (isset($_smarty_tpl->tpl_vars['leo_best_sellers']->value) && $_smarty_tpl->tpl_vars['leo_best_sellers']->value) {
            ?>
		<div class="block_content">
				<?php 
            $_smarty_tpl->tpl_vars['liHeight'] = new Smarty_variable(320, null, 0);
            ?>
				<?php 
            $_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable(4, null, 0);
            ?>
				<?php 
            $_smarty_tpl->tpl_vars['nbLi'] = new Smarty_variable($_smarty_tpl->tpl_vars['bslimit']->value, null, 0);
            ?>
				<?php 
            echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLine", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'nbLines'), $_smarty_tpl);
            ?>

				<?php 
            echo smarty_function_math(array('equation' => "nbLines*liHeight", 'nbLines' => ceil($_smarty_tpl->tpl_vars['nbLines']->value), 'liHeight' => $_smarty_tpl->tpl_vars['liHeight']->value, 'assign' => 'ulHeight'), $_smarty_tpl);
            ?>

				<div style="min-height:<?php 
            echo $_smarty_tpl->tpl_vars['ulHeight']->value;
            ?>
px;" class=" carousel slide" id="<?php 
            echo $_smarty_tpl->tpl_vars['bstabname']->value;
            ?>
" >
					 <?php 
            if (count($_smarty_tpl->tpl_vars['leo_best_sellers']->value) > $_smarty_tpl->tpl_vars['bslimit']->value) {
                ?>
	
					<a class="carousel-control left" href="#<?php 
                echo $_smarty_tpl->tpl_vars['bstabname']->value;
                ?>
"   data-slide="prev">&lsaquo;</a>
					<a class="carousel-control right" href="#<?php 
                echo $_smarty_tpl->tpl_vars['bstabname']->value;
                ?>
"  data-slide="next">&rsaquo;</a>
					<?php 
            }
            ?>
					<div class="carousel-inner"><?php 
            $_smarty_tpl->tpl_vars['mproducts'] = new Smarty_variable(array_chunk($_smarty_tpl->tpl_vars['leo_best_sellers']->value, $_smarty_tpl->tpl_vars['bslimit']->value), null, 0);
            ?>
						<?php 
            $_smarty_tpl->tpl_vars['bsproducts'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['bsproducts']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['mproducts']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['bsproducts']->index = -1;
            foreach ($_from as $_smarty_tpl->tpl_vars['bsproducts']->key => $_smarty_tpl->tpl_vars['bsproducts']->value) {
                $_smarty_tpl->tpl_vars['bsproducts']->_loop = true;
                $_smarty_tpl->tpl_vars['bsproducts']->index++;
                $_smarty_tpl->tpl_vars['bsproducts']->first = $_smarty_tpl->tpl_vars['bsproducts']->index === 0;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['mypLoop']['first'] = $_smarty_tpl->tpl_vars['bsproducts']->first;
                ?>
						<div class="item <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['mypLoop']['first']) {
                    ?>
active<?php 
                }
                ?>
">
						<div class="row-fluid">
						
							<?php 
                $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['item']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['bsproducts']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['item']->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars['item']->iteration = 0;
                $_smarty_tpl->tpl_vars['item']->index = -1;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoopa']['total'] = $_smarty_tpl->tpl_vars['item']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoopa']['iteration'] = 0;
                foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
                    $_smarty_tpl->tpl_vars['item']->_loop = true;
                    $_smarty_tpl->tpl_vars['item']->iteration++;
                    $_smarty_tpl->tpl_vars['item']->index++;
                    $_smarty_tpl->tpl_vars['item']->first = $_smarty_tpl->tpl_vars['item']->index === 0;
                    $_smarty_tpl->tpl_vars['item']->last = $_smarty_tpl->tpl_vars['item']->iteration === $_smarty_tpl->tpl_vars['item']->total;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoopa']['first'] = $_smarty_tpl->tpl_vars['item']->first;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoopa']['iteration']++;
                    $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoopa']['last'] = $_smarty_tpl->tpl_vars['item']->last;
                    ?>
								<div style="border-bottom:0" class="p-item span3 ajax_block_product <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoopa']['first']) {
                        ?>
first_item<?php 
                    } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoopa']['last']) {
                        ?>
last_item<?php 
                    } else {
                        ?>
item<?php 
                    }
                    ?>
 <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoopa']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 0) {
                        ?>
last_item_of_line<?php 
                    } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoopa']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 1) {
                        ?>
clear<?php 
                    }
                    ?>
 <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoopa']['iteration'] > $_smarty_tpl->getVariable('smarty')->value['foreach']['myLoopa']['total'] - $_smarty_tpl->getVariable('smarty')->value['foreach']['myLoopa']['total'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value) {
                        ?>
last_line<?php 
                    }
                    ?>
">
									<div class="product-container">
										<div class="center_block">
											<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['item']->value['link'];
                    ?>
" title="<?php 
                    echo smarty_modifier_escape($_smarty_tpl->tpl_vars['item']->value['name'], 'html', 'UTF-8');
                    ?>
" class="product_image">
											<img src="<?php 
                    echo $_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['item']->value['link_rewrite'], $_smarty_tpl->tpl_vars['item']->value['id_image'], 'home_leometr');
                    ?>
" height="<?php 
                    echo $_smarty_tpl->tpl_vars['homeSize']->value['height'];
                    ?>
" width="<?php 
                    echo $_smarty_tpl->tpl_vars['homeSize']->value['width'];
                    ?>
" alt="<?php 
                    echo smarty_modifier_escape($_smarty_tpl->tpl_vars['item']->value['name'], 'html', 'UTF-8');
                    ?>
" />
											</a>
										</div>
										<div class="right_block">
											<h5 class="s_title_block"><a href="<?php 
                    echo $_smarty_tpl->tpl_vars['item']->value['link'];
                    ?>
" title="<?php 
                    echo smarty_modifier_escape($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['item']->value['name'], 32, '...'), 'htmlall', 'UTF-8');
                    ?>
"><?php 
                    echo smarty_modifier_escape($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['item']->value['name'], 25, '...'), 'htmlall', 'UTF-8');
                    ?>
</a></h5>
											<div class="product_desc"><a href="<?php 
                    echo $_smarty_tpl->tpl_vars['item']->value['link'];
                    ?>
" title="<?php 
                    echo smartyTranslate(array('s' => 'More', 'mod' => 'leoblockbestsellers'), $_smarty_tpl);
                    ?>
"><?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['item']->value['description_short']), 100, '...');
                    ?>
</a></div>
											<div>
												<?php 
                    if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                        ?>
<p class="price_container"><span class="price"><?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['item']->value['price']), $_smarty_tpl);
                        ?>
</span></p><?php 
                    } else {
                        ?>
<div style="height:21px;"></div><?php 
                    }
                    ?>
			
												<!--add to cart-->
												<?php 
                    if ($_smarty_tpl->tpl_vars['item']->value['quantity'] > 0 || $_smarty_tpl->tpl_vars['item']->value['allow_oosp']) {
                        ?>
												<a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_<?php 
                        echo $_smarty_tpl->tpl_vars['item']->value['id_product'];
                        ?>
" href="<?php 
                        echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('cart');
                        ?>
?qty=1&amp;id_product=<?php 
                        echo $_smarty_tpl->tpl_vars['item']->value['id_product'];
                        ?>
&amp;token=<?php 
                        echo $_smarty_tpl->tpl_vars['static_token']->value;
                        ?>
&amp;add" title="<?php 
                        echo smartyTranslate(array('s' => 'Add to cart', 'mod' => 'leoblockbestsellers'), $_smarty_tpl);
                        ?>
"><?php 
                        echo smartyTranslate(array('s' => 'Add to cart', 'mod' => 'leoblockbestsellers'), $_smarty_tpl);
                        ?>
</a>
												<?php 
                    } else {
                        ?>
												<span class="exclusive"><?php 
                        echo smartyTranslate(array('s' => 'Add to cart', 'mod' => 'leoblockbestsellers'), $_smarty_tpl);
                        ?>
</span>
												<?php 
                    }
                    ?>
												<!--end add to cart-->			
												
											</div>
										</div>
									</div>
								</div>
							<?php 
                }
                ?>
							
						</div>
						</div>	
						<?php 
            }
            ?>
					</div>
				</div>
		</div>
	<?php 
        } else {
            ?>
		<p><?php 
            echo smartyTranslate(array('s' => 'No best sellers at this time', 'mod' => 'leoblockbestsellers'), $_smarty_tpl);
            ?>
</p>
	<?php 
        }
        ?>
</div>
<!-- /MODULE Home Block best sellers -->
<?php 
    }
'}{/capture}
              <?php 
                                    }
                                    ?>
              {sugar_help text=$popupText WIDTH=-1}
            <?php 
                                }
                                ?>

		</td>
		<?php 
                            }
                            ?>
		{counter name="fieldsUsed"}
		<?php 
                            echo smarty_function_math(array('assign' => 'tabIndexVal', 'equation' => $this->_tpl_vars['tabIndexVal'] . " + 1"), $this);
                            ?>

		<?php 
                            if ($this->_tpl_vars['tabIndexVal'] == 1) {
                                ?>
 <?php 
                                $this->assign('ACCKEY', $this->_tpl_vars['APP']['LBL_FIRST_INPUT_EDIT_VIEW_KEY']);
                            } else {
                                $this->assign('ACCKEY', '');
                            }
                            ?>
		<?php 
                            if (!empty($this->_tpl_vars['colData']['field']['tabindex']) && $this->_tpl_vars['colData']['field']['tabindex'] != 0) {
                                ?>
		    <?php 
    function content_55c9cb93636d45_10103039($_smarty_tpl)
    {
        if (!is_callable('smarty_function_text')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.text.php';
        }
        if (!is_callable('smarty_function_math')) {
            include 'E:\\wamp\\www\\hammu\\ow_libraries\\smarty3\\plugins\\function.math.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'E:\\wamp\\www\\hammu\\ow_libraries\\smarty3\\plugins\\function.cycle.php';
        }
        if (!is_callable('smarty_function_decorator')) {
            include 'E:\\wamp\\www\\hammu\\ow_smarty\\plugin\\function.decorator.php';
        }
        echo $_smarty_tpl->tpl_vars['menu']->value;
        ?>


<form method="post">
<div class="ow_admin_permissions ow_superwide ow_automargin ow_center">
<table class="ow_table_1 ow_form ow_stdmargin">

<tr class="ow_tr_first ow_tr_last">
    <th align="left">Action</th>
    <th width="20%"><?php 
        echo smarty_function_text(array('key' => 'membership+show_on_subscribe'), $_smarty_tpl);
        ?>
</th>
</tr>

<tr class="ow_tr_delimiter"><td></td></tr>
<?php 
        $_smarty_tpl->tpl_vars['groupAction'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['groupAction']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['groupActionList']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['groupAction']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['groupAction']->iteration = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars['groupAction']->key => $_smarty_tpl->tpl_vars['groupAction']->value) {
            $_smarty_tpl->tpl_vars['groupAction']->_loop = true;
            $_smarty_tpl->tpl_vars['groupAction']->iteration++;
            $_smarty_tpl->tpl_vars['groupAction']->last = $_smarty_tpl->tpl_vars['groupAction']->iteration === $_smarty_tpl->tpl_vars['groupAction']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['group']['last'] = $_smarty_tpl->tpl_vars['groupAction']->last;
            ?>
	<?php 
            echo smarty_function_math(array('equation' => "count", 'count' => count($_smarty_tpl->tpl_vars['groupAction']->value['actions']), 'assign' => 'size'), $_smarty_tpl);
            ?>

	<?php 
            $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['action']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['groupAction']->value['actions'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['action']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['action']->iteration = 0;
            $_smarty_tpl->tpl_vars['action']->index = -1;
            foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) {
                $_smarty_tpl->tpl_vars['action']->_loop = true;
                $_smarty_tpl->tpl_vars['action']->iteration++;
                $_smarty_tpl->tpl_vars['action']->index++;
                $_smarty_tpl->tpl_vars['action']->first = $_smarty_tpl->tpl_vars['action']->index === 0;
                $_smarty_tpl->tpl_vars['action']->last = $_smarty_tpl->tpl_vars['action']->iteration === $_smarty_tpl->tpl_vars['action']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['itm']['first'] = $_smarty_tpl->tpl_vars['action']->first;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['itm']['last'] = $_smarty_tpl->tpl_vars['action']->last;
                ?>
	<tr class="ow_tr_first">
	    <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['itm']['first']) {
                    ?>
            <th colspan="2" ><?php 
                    if (!empty($_smarty_tpl->tpl_vars['labels']->value[$_smarty_tpl->tpl_vars['groupAction']->value['name']])) {
                        echo $_smarty_tpl->tpl_vars['labels']->value[$_smarty_tpl->tpl_vars['groupAction']->value['name']]['label'];
                    } else {
                        echo $_smarty_tpl->tpl_vars['groupAction']->value['name'];
                    }
                    ?>
</th>
	    <?php 
                }
                ?>
	</tr>
	<tr <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['itm']['last']) {
                    ?>
class="ow_tr_last"<?php 
                }
                ?>
>
	    <?php 
                $_smarty_tpl->_capture_stack[0][] = array('default', 'altClass', null);
                ob_start();
                echo smarty_function_cycle(array('values' => 'ow_alt1,ow_alt2'), $_smarty_tpl);
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
                ?>
        <?php 
                $_smarty_tpl->_capture_stack[0][] = array('default', 'actionName', null);
                ob_start();
                echo $_smarty_tpl->tpl_vars['action']->value->name;
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
                    $_smarty_tpl->capture_error();
                }
                ?>
	    <td class="<?php 
                echo $_smarty_tpl->tpl_vars['altClass']->value;
                ?>
 ow_txtleft"><?php 
                if (!empty($_smarty_tpl->tpl_vars['labels']->value[$_smarty_tpl->tpl_vars['groupAction']->value['name']]['actions'][$_smarty_tpl->tpl_vars['actionName']->value])) {
                    echo $_smarty_tpl->tpl_vars['labels']->value[$_smarty_tpl->tpl_vars['groupAction']->value['name']]['actions'][$_smarty_tpl->tpl_vars['actionName']->value];
                } else {
                    echo $_smarty_tpl->tpl_vars['actionName']->value;
                }
                ?>
</td>
        <td class="<?php 
                echo $_smarty_tpl->tpl_vars['altClass']->value;
                ?>
">
            <?php 
                $_smarty_tpl->tpl_vars['actionId'] = new Smarty_variable($_smarty_tpl->tpl_vars['action']->value->id, null, 0);
                ?>
            <input type="hidden" name="actions[<?php 
                echo $_smarty_tpl->tpl_vars['actionId']->value;
                ?>
]" value="0" />
            <input type="checkbox" name="actions[<?php 
                echo $_smarty_tpl->tpl_vars['actionId']->value;
                ?>
]" <?php 
                if (!in_array($_smarty_tpl->tpl_vars['actionId']->value, $_smarty_tpl->tpl_vars['hidden']->value)) {
                    ?>
checked="checked"<?php 
                }
                ?>
 value="1" />
        </td>
	</tr>
	<?php 
            }
            ?>
	<?php 
            if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['group']['last']) {
                ?>
<tr class="ow_tr_delimiter"><td colspan="3"></td></tr><?php 
            }
        }
        ?>

</table>
<div class="clearfix ow_stdmargin ow_submit"><div class="ow_right"><?php 
        echo smarty_function_decorator(array('name' => "button", 'type' => "submit", 'langLabel' => "admin+save_btn_label", 'class' => "ow_ic_save ow_positive"), $_smarty_tpl);
        ?>
</div></div>
</div>

</form> 
<?php 
    }
</b> <?php 
echo $this->_tpl_vars['logins_today'];
?>
</td>
  <td style='padding-left: 60px;' align='right'><b><?php 
echo SELanguage::_get(72);
?>
</b> <?php 
echo $this->_tpl_vars['total_admins'];
?>
</td>
  </tr>
  </table>

    <?php 
echo smarty_function_math(array('assign' => 'total_online_users', 'equation' => "x+y", 'x' => count($this->_tpl_vars['online_users'][0]), 'y' => $this->_tpl_vars['online_users'][1]), $this);
?>

  <?php 
if ($this->_tpl_vars['total_online_users'] > 0) {
    ?>
    <br><b><?php 
    echo $this->_tpl_vars['total_online_users'];
    ?>
 <?php 
    echo SELanguage::_get(73);
    ?>
</b> 
    <?php 
    if (count($this->_tpl_vars['online_users'][0]) == 0) {
        ?>
    function content_55b2655316e8a9_39228050($_smarty_tpl)
    {
        if (!is_callable('smarty_function_text')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.php';
        }
        if (!is_callable('smarty_function_math')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.math.php';
        }
        ?>
<div class="ow_paging clearfix ow_smallmargin">
    <span><?php 
        echo smarty_function_text(array('key' => 'base+pages_label'), $_smarty_tpl);
        ?>
</span>
    <?php 
        $_smarty_tpl->tpl_vars['p'] = new Smarty_variable('0', null, 0);
        ?>
    <?php 
        if ($_smarty_tpl->tpl_vars['less']->value) {
            ?>
<a href="<?php 
            echo $_smarty_tpl->tpl_vars['url']->value;
            ?>
&<?php 
            echo $_smarty_tpl->tpl_vars['prefix']->value;
            ?>
page=1"><?php 
            echo smarty_function_text(array('key' => "base+paging_label_first"), $_smarty_tpl);
            ?>
</a><?php 
        }
        ?>
    <?php 
        if ($_smarty_tpl->tpl_vars['prev']->value) {
            ?>
<a href="<?php 
            echo $_smarty_tpl->tpl_vars['url']->value;
            ?>
&<?php 
            echo $_smarty_tpl->tpl_vars['prefix']->value;
            ?>
page=<?php 
            echo smarty_function_math(array('equation' => 'x-1', 'x' => $_smarty_tpl->tpl_vars['page']->value), $_smarty_tpl);
            ?>
"><?php 
            echo smarty_function_text(array('key' => "base+paging_label_prev"), $_smarty_tpl);
            ?>
</a><?php 
        }
        ?>
    <?php 
        if ($_smarty_tpl->tpl_vars['less']->value) {
            ?>
<span>...</span><?php 
        }
        ?>
    <?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["paging"])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['name'] = "paging";
        $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['page_shortcut_count']->value + 1) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['start'] = (int) 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['step'] = (int) 1 == 0 ? 1 : (int) 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['show'] = true;
        $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['loop'];
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['start'] < 0) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['start']);
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['loop'] - 1);
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['start'] + 1) / abs($_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['max']);
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['iteration'] == 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["paging"]['total'];
                ?>
    	<?php 
                echo smarty_function_math(array('equation' => "x + y", 'x' => $_smarty_tpl->tpl_vars['start']->value, 'y' => $_smarty_tpl->getVariable('smarty')->value['section']['paging']['index'], 'assign' => 'p'), $_smarty_tpl);
                if ($_smarty_tpl->tpl_vars['p']->value <= $_smarty_tpl->tpl_vars['count']->value) {
                    ?>
<a <?php 
                    if ($_smarty_tpl->tpl_vars['p']->value == $_smarty_tpl->tpl_vars['page']->value) {
                        ?>
class="active"<?php 
                    }
                    ?>
 href="<?php 
                    echo $_smarty_tpl->tpl_vars['url']->value;
                    ?>
&<?php 
                    echo $_smarty_tpl->tpl_vars['prefix']->value;
                    ?>
page=<?php 
                    echo $_smarty_tpl->tpl_vars['p']->value;
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['p']->value;
                    ?>
</a><?php 
                }
                ?>
    <?php 
            }
        }
        ?>
    <?php 
        if ($_smarty_tpl->tpl_vars['more']->value) {
            ?>
<span>...</span><?php 
        }
        ?>
    <?php 
        if ($_smarty_tpl->tpl_vars['next']->value) {
            ?>
<a href="<?php 
            echo $_smarty_tpl->tpl_vars['url']->value;
            ?>
&<?php 
            echo $_smarty_tpl->tpl_vars['prefix']->value;
            ?>
page=<?php 
            echo smarty_function_math(array('equation' => 'x+1', 'x' => $_smarty_tpl->tpl_vars['page']->value), $_smarty_tpl);
            ?>
"><?php 
            echo smarty_function_text(array('key' => 'base+paging_label_next'), $_smarty_tpl);
            ?>
</a><?php 
        }
        ?>
    <?php 
        if ($_smarty_tpl->tpl_vars['more']->value) {
            ?>
<a href="<?php 
            echo $_smarty_tpl->tpl_vars['url']->value;
            ?>
&<?php 
            echo $_smarty_tpl->tpl_vars['prefix']->value;
            ?>
page=<?php 
            echo $_smarty_tpl->tpl_vars['count']->value;
            ?>
"><?php 
            echo smarty_function_text(array('key' => 'base+paging_label_last'), $_smarty_tpl);
            ?>
</a><?php 
        }
        ?>
</div><?php 
    }
    function content_55574da0bb3348_35565948($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/home/matej/webapps/webshop/tools/smarty/plugins/modifier.date_format.php';
        }
        if (!is_callable('smarty_function_math')) {
            include '/home/matej/webapps/webshop/tools/smarty/plugins/function.math.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include '/home/matej/webapps/webshop/tools/smarty/plugins/function.cycle.php';
        }
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

<?php 
        if (count($_smarty_tpl->tpl_vars['errors']->value) == 0) {
            ?>
	<?php 
            if (!isset($_smarty_tpl->tpl_vars['priceDisplayPrecision']->value)) {
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['priceDisplayPrecision'] = new Smarty_variable(2, null, 0);
                ?>
	<?php 
            }
            ?>
	<?php 
            if (!$_smarty_tpl->tpl_vars['priceDisplay']->value || $_smarty_tpl->tpl_vars['priceDisplay']->value == 2) {
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['productPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPrice(true, @constant('NULL'), $_smarty_tpl->tpl_vars['priceDisplayPrecision']->value), null, 0);
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['productPriceWithoutReduction'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(false, @constant('NULL')), null, 0);
                ?>
	<?php 
            } elseif ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['productPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPrice(false, @constant('NULL'), $_smarty_tpl->tpl_vars['priceDisplayPrecision']->value), null, 0);
                ?>
		<?php 
                $_smarty_tpl->tpl_vars['productPriceWithoutReduction'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(true, @constant('NULL')), null, 0);
                ?>
	<?php 
            }
            ?>
    <?php 
            if (isset($_smarty_tpl->tpl_vars['compared_products']->value)) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('comparedProductsIds' => $_smarty_tpl->tpl_vars['compared_products']->value), $_smarty_tpl);
            }
            ?>
<div itemscope itemtype="http://schema.org/Product">
    <div class="primary_block_wrap">
	<div class="primary_block row">
		<?php 
            if (isset($_smarty_tpl->tpl_vars['adminActionDisplay']->value) && $_smarty_tpl->tpl_vars['adminActionDisplay']->value) {
                ?>
			<div id="admin-action">
				<p><?php 
                echo smartyTranslate(array('s' => 'This product is not visible to your customers.'), $_smarty_tpl);
                ?>

					<input type="hidden" id="admin-action-product-id" value="<?php 
                echo $_smarty_tpl->tpl_vars['product']->value->id;
                ?>
" />
					<input type="submit" value="<?php 
                echo smartyTranslate(array('s' => 'Publish'), $_smarty_tpl);
                ?>
" name="publish_button" class="exclusive" />
					<input type="submit" value="<?php 
                echo smartyTranslate(array('s' => 'Back'), $_smarty_tpl);
                ?>
" name="lnk_view" class="exclusive" />
				</p>
				<p id="admin-action-result"></p>
			</div>
		<?php 
            }
            ?>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['confirmation']->value) && $_smarty_tpl->tpl_vars['confirmation']->value) {
                ?>
			<p class="confirmation">
				<?php 
                echo $_smarty_tpl->tpl_vars['confirmation']->value;
                ?>

			</p>
		<?php 
            }
            ?>
		<!-- left infos-->
		<div class="pb-left-column col-xs-12 col-sm-4 col-md-5">
			<!-- product img-->
			<div id="image-block" class="clearfix">
				<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->new) {
                ?>
					<span class="new-box">
						<span class="new-label"><?php 
                echo smartyTranslate(array('s' => 'New'), $_smarty_tpl);
                ?>
</span>
					</span>
				<?php 
            }
            ?>
				<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->on_sale) {
                ?>
					<span class="sale-box no-print<?php 
                if (!$_smarty_tpl->tpl_vars['product']->value->new) {
                    ?>
 no-new<?php 
                }
                ?>
">
						<span class="sale-label"><?php 
                echo smartyTranslate(array('s' => 'Sale!'), $_smarty_tpl);
                ?>
</span>
					</span>
				<?php 
            } elseif ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] && $_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value > $_smarty_tpl->tpl_vars['productPrice']->value) {
                ?>
					<span class="discount"><?php 
                echo smartyTranslate(array('s' => 'Reduced price!'), $_smarty_tpl);
                ?>
</span>
				<?php 
            }
            ?>
				<?php 
            if ($_smarty_tpl->tpl_vars['have_image']->value) {
                ?>
					<span id="view_full_size">
						<?php 
                if ($_smarty_tpl->tpl_vars['jqZoomEnabled']->value && $_smarty_tpl->tpl_vars['have_image']->value && !$_smarty_tpl->tpl_vars['content_only']->value) {
                    ?>
							<a class="jqzoom" title="<?php 
                    if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                    } else {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
                    }
                    ?>
" rel="gal1" href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['cover']->value['id_image'], 'thickbox_default'), ENT_QUOTES, 'UTF-8', true);
                    ?>
" itemprop="url">
								<img itemprop="image" src="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['cover']->value['id_image'], 'large_default'), ENT_QUOTES, 'UTF-8', true);
                    ?>
" title="<?php 
                    if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                    } else {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
                    }
                    ?>
" alt="<?php 
                    if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                    } else {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
                    }
                    ?>
"/>
							</a>
                            <?php 
                    if (!$_smarty_tpl->tpl_vars['content_only']->value && $_smarty_tpl->tpl_vars['jqZoomEnabled']->value) {
                        ?>
								<span class="span_link no-print"><i class="fa fa-search"></i>&nbsp;<?php 
                        echo smartyTranslate(array('s' => 'Mouse over to zoom in'), $_smarty_tpl);
                        ?>
</span>
							<?php 
                    }
                    ?>
						<?php 
                } else {
                    ?>
							<img id="bigpic" itemprop="image" src="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['cover']->value['id_image'], 'large_default'), ENT_QUOTES, 'UTF-8', true);
                    ?>
" title="<?php 
                    if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                    } else {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
                    }
                    ?>
" alt="<?php 
                    if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                    } else {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
                    }
                    ?>
" width="<?php 
                    echo $_smarty_tpl->tpl_vars['largeSize']->value['width'];
                    ?>
" height="<?php 
                    echo $_smarty_tpl->tpl_vars['largeSize']->value['height'];
                    ?>
"/>
							<?php 
                    if (!$_smarty_tpl->tpl_vars['content_only']->value && $_smarty_tpl->tpl_vars['jqZoomEnabled']->value) {
                        ?>
								<span class="span_link no-print"><i class="fa fa-search"></i>&nbsp;<?php 
                        echo smartyTranslate(array('s' => 'Mouse over to zoom in'), $_smarty_tpl);
                        ?>
</span>
							<?php 
                    }
                    ?>
						<?php 
                }
                ?>
					</span>
				<?php 
            } else {
                ?>
					<span id="view_full_size">
						<img itemprop="image" src="<?php 
                echo $_smarty_tpl->tpl_vars['img_prod_dir']->value;
                echo $_smarty_tpl->tpl_vars['lang_iso']->value;
                ?>
-default-large_default.jpg" id="bigpic" alt="" title="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
                ?>
" width="<?php 
                echo $_smarty_tpl->tpl_vars['largeSize']->value['width'];
                ?>
" height="<?php 
                echo $_smarty_tpl->tpl_vars['largeSize']->value['height'];
                ?>
"/>
						<?php 
                if (!$_smarty_tpl->tpl_vars['content_only']->value) {
                    ?>
							<span class="span_link">
								<i class="fa fa-search"></i>&nbsp;<?php 
                    echo smartyTranslate(array('s' => 'Mouse over to zoom in'), $_smarty_tpl);
                    ?>

							</span>
						<?php 
                }
                ?>
					</span>
				<?php 
            }
            ?>
			</div> <!-- end image-block -->
			<?php 
            if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 0) {
                ?>
				<!-- thumbnails -->
				<div id="views_block" class="clearfix <?php 
                if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) < 2) {
                    ?>
hidden<?php 
                }
                ?>
">
					<?php 
                if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 2) {
                    ?>
						<span class="view_scroll_spacer">
							<a id="view_scroll_left" class="" title="<?php 
                    echo smartyTranslate(array('s' => 'Other views'), $_smarty_tpl);
                    ?>
" href="javascript:{}">
								<?php 
                    echo smartyTranslate(array('s' => 'Previous'), $_smarty_tpl);
                    ?>

							</a>
						</span>
					<?php 
                }
                ?>
					<div id="thumbs_list">
						<ul id="thumbs_list_frame">
						<?php 
                if (isset($_smarty_tpl->tpl_vars['images']->value)) {
                    ?>
							<?php 
                    $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['image']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['images']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    $_smarty_tpl->tpl_vars['image']->total = $_smarty_tpl->_count($_from);
                    $_smarty_tpl->tpl_vars['image']->iteration = 0;
                    foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value) {
                        $_smarty_tpl->tpl_vars['image']->_loop = true;
                        $_smarty_tpl->tpl_vars['image']->iteration++;
                        $_smarty_tpl->tpl_vars['image']->last = $_smarty_tpl->tpl_vars['image']->iteration === $_smarty_tpl->tpl_vars['image']->total;
                        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['thumbnails']['last'] = $_smarty_tpl->tpl_vars['image']->last;
                        ?>
								<?php 
                        $_smarty_tpl->tpl_vars['imageIds'] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['product']->value->id . "-" . (string) $_smarty_tpl->tpl_vars['image']->value['id_image'], null, 0);
                        ?>
								<?php 
                        if (!empty($_smarty_tpl->tpl_vars['image']->value['legend'])) {
                            ?>
									<?php 
                            $_smarty_tpl->tpl_vars['imageTitle'] = new Smarty_variable(htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['legend'], ENT_QUOTES, 'UTF-8', true), null, 0);
                            ?>
								<?php 
                        } else {
                            ?>
									<?php 
                            $_smarty_tpl->tpl_vars['imageTitle'] = new Smarty_variable(htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true), null, 0);
                            ?>
								<?php 
                        }
                        ?>
								<li id="thumbnail_<?php 
                        echo $_smarty_tpl->tpl_vars['image']->value['id_image'];
                        ?>
"<?php 
                        if ($_smarty_tpl->getVariable('smarty')->value['foreach']['thumbnails']['last']) {
                            ?>
 class="last"<?php 
                        }
                        ?>
>
									<a<?php 
                        if ($_smarty_tpl->tpl_vars['jqZoomEnabled']->value && $_smarty_tpl->tpl_vars['have_image']->value && !$_smarty_tpl->tpl_vars['content_only']->value) {
                            ?>
 href="javascript:void(0);" rel="{gallery: 'gal1', smallimage: '<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['imageIds']->value, 'large_default'), ENT_QUOTES, 'UTF-8', true);
                            ?>
',largeimage: '<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['imageIds']->value, 'thickbox_default'), ENT_QUOTES, 'UTF-8', true);
                            ?>
'}"<?php 
                        } else {
                            ?>
 href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['imageIds']->value, 'thickbox_default'), ENT_QUOTES, 'UTF-8', true);
                            ?>
"	data-fancybox-group="other-views" class="fancybox<?php 
                            if ($_smarty_tpl->tpl_vars['image']->value['id_image'] == $_smarty_tpl->tpl_vars['cover']->value['id_image']) {
                                ?>
 shown<?php 
                            }
                            ?>
"<?php 
                        }
                        ?>
 title="<?php 
                        echo $_smarty_tpl->tpl_vars['imageTitle']->value;
                        ?>
">
										<img class="img-responsive" id="thumb_<?php 
                        echo $_smarty_tpl->tpl_vars['image']->value['id_image'];
                        ?>
" src="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['imageIds']->value, 'medium_default'), ENT_QUOTES, 'UTF-8', true);
                        ?>
" alt="<?php 
                        echo $_smarty_tpl->tpl_vars['imageTitle']->value;
                        ?>
" title="<?php 
                        echo $_smarty_tpl->tpl_vars['imageTitle']->value;
                        ?>
"  itemprop="image" />
									</a>
								</li>
							<?php 
                    }
                    ?>
						<?php 
                }
                ?>
						</ul>
					</div> <!-- end thumbs_list -->
					<?php 
                if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 2) {
                    ?>
						<a id="view_scroll_right" title="<?php 
                    echo smartyTranslate(array('s' => 'Other views'), $_smarty_tpl);
                    ?>
" href="javascript:{}">
							<?php 
                    echo smartyTranslate(array('s' => 'Next'), $_smarty_tpl);
                    ?>

						</a>
					<?php 
                }
                ?>
				</div> <!-- end views-block -->
				<!-- end thumbnails -->
			<?php 
            }
            ?>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 1) {
                ?>
				<p class="resetimg clear no-print">
					<span id="wrapResetImages" style="display: none;">
						<a href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value), ENT_QUOTES, 'UTF-8', true);
                ?>
" name="resetImages">
							<i class="icon-repeat"></i>
							<?php 
                echo smartyTranslate(array('s' => 'Display all pictures'), $_smarty_tpl);
                ?>

						</a>
					</span>
				</p>
			<?php 
            }
            ?>
		</div> <!-- end pb-left-column -->
		<!-- end left infos-->
		<!-- center infos -->
		<div class="pb-center-column col-xs-12 col-sm-7">
            <h1 itemprop="name"><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true);
            ?>
</h1>
			<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->online_only) {
                ?>
				<p class="online_only"><?php 
                echo smartyTranslate(array('s' => 'Online only'), $_smarty_tpl);
                ?>
</p>
			<?php 
            }
            ?>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['HOOK_EXTRA_RIGHT']->value) && $_smarty_tpl->tpl_vars['HOOK_EXTRA_RIGHT']->value) {
                echo $_smarty_tpl->tpl_vars['HOOK_EXTRA_RIGHT']->value;
            }
            ?>
            <p id="product_reference"<?php 
            if (empty($_smarty_tpl->tpl_vars['product']->value->reference) || !$_smarty_tpl->tpl_vars['product']->value->reference) {
                ?>
 style="display: none;"<?php 
            }
            ?>
>
				<label><?php 
            echo smartyTranslate(array('s' => 'Product code:'), $_smarty_tpl);
            ?>
 </label>
				<span class="editable" itemprop="sku">#<?php 
            if (!isset($_smarty_tpl->tpl_vars['groups']->value)) {
                echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->reference, ENT_QUOTES, 'UTF-8', true);
            }
            ?>
</span>
			</p>
			<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->condition) {
                ?>
			<p id="product_condition">
				<label><?php 
                echo smartyTranslate(array('s' => 'Condition:'), $_smarty_tpl);
                ?>
 </label>
				<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->condition == 'new') {
                    ?>
					<link itemprop="itemCondition" href="http://schema.org/NewCondition"/>
					<span class="editable"><?php 
                    echo smartyTranslate(array('s' => 'New'), $_smarty_tpl);
                    ?>
</span>
				<?php 
                } elseif ($_smarty_tpl->tpl_vars['product']->value->condition == 'used') {
                    ?>
					<link itemprop="itemCondition" href="http://schema.org/UsedCondition"/>
					<span class="editable"><?php 
                    echo smartyTranslate(array('s' => 'Used'), $_smarty_tpl);
                    ?>
</span>
				<?php 
                } elseif ($_smarty_tpl->tpl_vars['product']->value->condition == 'refurbished') {
                    ?>
					<link itemprop="itemCondition" href="http://schema.org/RefurbishedCondition"/>
					<span class="editable"><?php 
                    echo smartyTranslate(array('s' => 'Refurbished'), $_smarty_tpl);
                    ?>
</span>
				<?php 
                }
                ?>
			</p>
			<?php 
            }
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['display_qties']->value == 1 && !$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && $_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value && $_smarty_tpl->tpl_vars['product']->value->available_for_order) {
                ?>
				<!-- number of item in stock -->
				<p id="pQuantityAvailable"<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0) {
                    ?>
 style="display: none;"<?php 
                }
                ?>
>
					<span id="quantityAvailable"><?php 
                echo intval($_smarty_tpl->tpl_vars['product']->value->quantity);
                ?>
</span>
					<span <?php 
                if ($_smarty_tpl->tpl_vars['product']->value->quantity > 1) {
                    ?>
 style="display: none;"<?php 
                }
                ?>
 id="quantityAvailableTxt"><?php 
                echo smartyTranslate(array('s' => 'Item'), $_smarty_tpl);
                ?>
</span>
					<span <?php 
                if ($_smarty_tpl->tpl_vars['product']->value->quantity == 1) {
                    ?>
 style="display: none;"<?php 
                }
                ?>
 id="quantityAvailableTxtMultiple"><?php 
                echo smartyTranslate(array('s' => 'Items'), $_smarty_tpl);
                ?>
</span>
				</p>
			<?php 
            }
            ?>
			<?php 
            if ($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value) {
                ?>
				<!-- availability -->
				<p id="availability_statut"<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0 && !$_smarty_tpl->tpl_vars['product']->value->available_later && $_smarty_tpl->tpl_vars['allow_oosp']->value || $_smarty_tpl->tpl_vars['product']->value->quantity > 0 && !$_smarty_tpl->tpl_vars['product']->value->available_now || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
 style="display: none;"<?php 
                }
                ?>
>
					<span id="availability_label"><?php 
                echo smartyTranslate(array('s' => 'Availability:'), $_smarty_tpl);
                ?>
</span>
					<span id="availability_value"<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0 && !$_smarty_tpl->tpl_vars['allow_oosp']->value) {
                    ?>
 class="warning_inline"<?php 
                }
                ?>
><?php 
                if ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0) {
                    if ($_smarty_tpl->tpl_vars['allow_oosp']->value) {
                        echo $_smarty_tpl->tpl_vars['product']->value->available_later;
                    } else {
                        echo smartyTranslate(array('s' => 'This product is no longer in stock'), $_smarty_tpl);
                    }
                } else {
                    echo $_smarty_tpl->tpl_vars['product']->value->available_now;
                }
                ?>
</span>
				</p>
				<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductDeliveryTime", 'product' => $_smarty_tpl->tpl_vars['product']->value), $_smarty_tpl);
                ?>

				<p class="warning_inline" id="last_quantities"<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->quantity > $_smarty_tpl->tpl_vars['last_qties']->value || $_smarty_tpl->tpl_vars['product']->value->quantity <= 0 || $_smarty_tpl->tpl_vars['allow_oosp']->value || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
 style="display: none"<?php 
                }
                ?>
 ><?php 
                echo smartyTranslate(array('s' => 'Warning: Last items in stock!'), $_smarty_tpl);
                ?>
</p>
			<?php 
            }
            ?>
			<p id="availability_date"<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->quantity > 0 || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value || !isset($_smarty_tpl->tpl_vars['product']->value->available_date) || $_smarty_tpl->tpl_vars['product']->value->available_date < smarty_modifier_date_format(time(), '%Y-%m-%d')) {
                ?>
 style="display: none;"<?php 
            }
            ?>
>
				<span id="availability_date_label"><?php 
            echo smartyTranslate(array('s' => 'Availability date:'), $_smarty_tpl);
            ?>
</span>
				<span id="availability_date_value"><?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['product']->value->available_date, 'full' => false), $_smarty_tpl);
            ?>
</span>
			</p>
			<!-- Out of stock hook -->
			<div id="oosHook"<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->quantity > 0) {
                ?>
 style="display: none;"<?php 
            }
            ?>
>
				<?php 
            echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_OOS']->value;
            ?>

			</div>
			<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->description_short || count($_smarty_tpl->tpl_vars['packItems']->value) > 0) {
                ?>
				<div id="short_description_block">
					<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->description_short) {
                    ?>
						<div id="short_description_content" class="rte align_justify" itemprop="description"><?php 
                    echo $_smarty_tpl->tpl_vars['product']->value->description_short;
                    ?>
</div>
					<?php 
                }
                ?>

					<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->description) {
                    ?>
						<p class="buttons_bottom_block">
							<a href="javascript:{}" class="button">
								<?php 
                    echo smartyTranslate(array('s' => 'More details'), $_smarty_tpl);
                    ?>

							</a>
						</p>
					<?php 
                }
                ?>
					<!--<?php 
                if (count($_smarty_tpl->tpl_vars['packItems']->value) > 0) {
                    ?>
						<div class="short_description_pack">
						<h3><?php 
                    echo smartyTranslate(array('s' => 'Pack content'), $_smarty_tpl);
                    ?>
</h3>
							<?php 
                    $_smarty_tpl->tpl_vars['packItem'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['packItem']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['packItems']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['packItem']->key => $_smarty_tpl->tpl_vars['packItem']->value) {
                        $_smarty_tpl->tpl_vars['packItem']->_loop = true;
                        ?>

							<div class="pack_content">
								<?php 
                        echo $_smarty_tpl->tpl_vars['packItem']->value['pack_quantity'];
                        ?>
 x <a href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['packItem']->value['id_product'], $_smarty_tpl->tpl_vars['packItem']->value['link_rewrite'], $_smarty_tpl->tpl_vars['packItem']->value['category']), ENT_QUOTES, 'UTF-8', true);
                        ?>
"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['packItem']->value['name'], ENT_QUOTES, 'UTF-8', true);
                        ?>
</a>
								<p><?php 
                        echo $_smarty_tpl->tpl_vars['packItem']->value['description_short'];
                        ?>
</p>
							</div>
							<?php 
                    }
                    ?>
						</div>
					<?php 
                }
                ?>
-->
				</div> <!-- end short_description_block -->
			<?php 
            }
            ?>
		</div>
		<!-- end center infos-->
		<!-- pb-right-column-->
		<div class="pb-right-column col-xs-12 col-sm-7 col-md-7">
			<?php 
            if ($_smarty_tpl->tpl_vars['product']->value->show_price && !isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value) || isset($_smarty_tpl->tpl_vars['groups']->value) || $_smarty_tpl->tpl_vars['product']->value->reference || isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value) {
                ?>
			<!-- add to cart form-->
			<form id="buy_block"<?php 
                if ($_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && !isset($_smarty_tpl->tpl_vars['groups']->value) && $_smarty_tpl->tpl_vars['product']->value->quantity > 0) {
                    ?>
 class="hidden"<?php 
                }
                ?>
 action="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart'), ENT_QUOTES, 'UTF-8', true);
                ?>
" method="post">
				<!-- hidden datas -->
				<p class="hidden">
					<input type="hidden" name="token" value="<?php 
                echo $_smarty_tpl->tpl_vars['static_token']->value;
                ?>
" />
					<input type="hidden" name="id_product" value="<?php 
                echo intval($_smarty_tpl->tpl_vars['product']->value->id);
                ?>
" id="product_page_product_id" />
					<input type="hidden" name="add" value="1" />
					<input type="hidden" name="id_product_attribute" id="idCombination" value="" />
				</p>
				<div class="box-info-product">
					<div class="content_prices clearfix">
						<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->show_price && !isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value) && !$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
							
                            <!-- prices -->
							<div class="price">
                                <label><?php 
                    echo smartyTranslate(array('s' => 'Price'), $_smarty_tpl);
                    ?>
</label>
								<p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
									<?php 
                    if ($_smarty_tpl->tpl_vars['product']->value->quantity > 0) {
                        ?>
<link itemprop="availability" href="http://schema.org/InStock"/><?php 
                    }
                    ?>
									<?php 
                    if ($_smarty_tpl->tpl_vars['priceDisplay']->value >= 0 && $_smarty_tpl->tpl_vars['priceDisplay']->value <= 2) {
                        ?>
										<span id="our_price_display" itemprop="price"><?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['productPrice']->value), $_smarty_tpl);
                        ?>
</span>
										<!--<?php 
                        if ($_smarty_tpl->tpl_vars['tax_enabled']->value && (isset($_smarty_tpl->tpl_vars['display_tax_label']->value) && $_smarty_tpl->tpl_vars['display_tax_label']->value == 1 || !isset($_smarty_tpl->tpl_vars['display_tax_label']->value))) {
                            ?>
											<?php 
                            if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                                echo smartyTranslate(array('s' => 'tax excl.'), $_smarty_tpl);
                            } else {
                                echo smartyTranslate(array('s' => 'tax incl.'), $_smarty_tpl);
                            }
                            ?>
										<?php 
                        }
                        ?>
-->
										<meta itemprop="priceCurrency" content="<?php 
                        echo $_smarty_tpl->tpl_vars['currency']->value->iso_code;
                        ?>
" />
										<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "price"), $_smarty_tpl);
                        ?>

									<?php 
                    }
                    ?>
								</p>
                                <p id="old_price"<?php 
                    if ((!$_smarty_tpl->tpl_vars['product']->value->specificPrice || !$_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) && $_smarty_tpl->tpl_vars['group_reduction']->value == 0) {
                        ?>
 class="hidden"<?php 
                    }
                    ?>
>
									<?php 
                    if ($_smarty_tpl->tpl_vars['priceDisplay']->value >= 0 && $_smarty_tpl->tpl_vars['priceDisplay']->value <= 2) {
                        ?>
										<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "old_price"), $_smarty_tpl);
                        ?>

										<span id="old_price_display"><?php 
                        if ($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value > $_smarty_tpl->tpl_vars['productPrice']->value) {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value), $_smarty_tpl);
                        }
                        ?>
</span>
										<!-- <?php 
                        if ($_smarty_tpl->tpl_vars['tax_enabled']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value == 1) {
                            if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
                                echo smartyTranslate(array('s' => 'tax excl.'), $_smarty_tpl);
                            } else {
                                echo smartyTranslate(array('s' => 'tax incl.'), $_smarty_tpl);
                            }
                        }
                        ?>
 -->
									<?php 
                    }
                    ?>
								</p>
								<p id="reduction_percent" <?php 
                    if (!$_smarty_tpl->tpl_vars['product']->value->specificPrice || $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] != 'percentage') {
                        ?>
 style="display:none;"<?php 
                    }
                    ?>
>
									<span id="reduction_percent_display">
										<?php 
                    if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'percentage') {
                        ?>
-<?php 
                        echo $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] * 100;
                        ?>
%<?php 
                    }
                    ?>
									</span>
								</p>
								<p id="reduction_amount" <?php 
                    if (!$_smarty_tpl->tpl_vars['product']->value->specificPrice || $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] != 'amount' || floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) == 0) {
                        ?>
 style="display:none"<?php 
                    }
                    ?>
>
									<span id="reduction_amount_display">
									<?php 
                    if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'amount' && floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) != 0) {
                        ?>
										-<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value - floatval($_smarty_tpl->tpl_vars['productPrice']->value)), $_smarty_tpl);
                        ?>

									<?php 
                    }
                    ?>
									</span>
								</p>

								<?php 
                    if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 2) {
                        ?>
									<br />
									<span id="pretaxe_price">
										<span id="pretaxe_price_display"><?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value->getPrice(false, @constant('NULL'))), $_smarty_tpl);
                        ?>
</span>
										<?php 
                        echo smartyTranslate(array('s' => 'tax excl.'), $_smarty_tpl);
                        ?>

									</span>
								<?php 
                    }
                    ?>
							</div> <!-- end prices -->
                            
							<?php 
                    if (count($_smarty_tpl->tpl_vars['packItems']->value) && $_smarty_tpl->tpl_vars['productPrice']->value < $_smarty_tpl->tpl_vars['product']->value->getNoPackPrice()) {
                        ?>
								<p class="pack_price"><?php 
                        echo smartyTranslate(array('s' => 'Instead of'), $_smarty_tpl);
                        ?>
 <span style="text-decoration: line-through;"><?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value->getNoPackPrice()), $_smarty_tpl);
                        ?>
</span></p>
							<?php 
                    }
                    ?>
							<?php 
                    if ($_smarty_tpl->tpl_vars['product']->value->ecotax != 0) {
                        ?>
								<p class="price-ecotax"><?php 
                        echo smartyTranslate(array('s' => 'Including'), $_smarty_tpl);
                        ?>
 <span id="ecotax_price_display"><?php 
                        if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 2) {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['convertAndFormatPrice'][0][0]->convertAndFormatPrice($_smarty_tpl->tpl_vars['ecotax_tax_exc']->value);
                        } else {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['convertAndFormatPrice'][0][0]->convertAndFormatPrice($_smarty_tpl->tpl_vars['ecotax_tax_inc']->value);
                        }
                        ?>
</span> <?php 
                        echo smartyTranslate(array('s' => 'for ecotax'), $_smarty_tpl);
                        ?>

									<?php 
                        if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) {
                            ?>
									<br /><?php 
                            echo smartyTranslate(array('s' => '(not impacted by the discount)'), $_smarty_tpl);
                            ?>

									<?php 
                        }
                        ?>
								</p>
							<?php 
                    }
                    ?>
							<?php 
                    if (!empty($_smarty_tpl->tpl_vars['product']->value->unity) && $_smarty_tpl->tpl_vars['product']->value->unit_price_ratio > 0.0) {
                        ?>
								<?php 
                        echo smarty_function_math(array('equation' => "pprice / punit_price", 'pprice' => $_smarty_tpl->tpl_vars['productPrice']->value, 'punit_price' => $_smarty_tpl->tpl_vars['product']->value->unit_price_ratio, 'assign' => 'unit_price'), $_smarty_tpl);
                        ?>

								<p class="unit-price"><span id="unit_price_display"><?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['unit_price']->value), $_smarty_tpl);
                        ?>
</span> <?php 
                        echo smartyTranslate(array('s' => 'per'), $_smarty_tpl);
                        ?>
 <?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->unity, ENT_QUOTES, 'UTF-8', true);
                        ?>
</p>
								<?php 
                        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "unit_price"), $_smarty_tpl);
                        ?>

							<?php 
                    }
                    ?>
						<?php 
                }
                ?>
 
						<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "weight"), $_smarty_tpl);
                ?>

						<div class="clearBoth"></div>
					</div> <!-- end content_prices -->
                <div id="box-product" class="col-sm-12">
                    
                    <?php 
                echo $_smarty_tpl->tpl_vars['HOOK_OVIC_CATEGORYSIZECHART']->value;
                ?>

                    <div class="product_attributes clearfix">
						<!-- minimal quantity wanted -->
						<p id="minimal_quantity_wanted_p"<?php 
                if ($_smarty_tpl->tpl_vars['product']->value->minimal_quantity <= 1 || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
 style="display: none;"<?php 
                }
                ?>
>
							<?php 
                echo smartyTranslate(array('s' => 'This product is not sold individually. You must select at least'), $_smarty_tpl);
                ?>
 <b id="minimal_quantity_label"><?php 
                echo $_smarty_tpl->tpl_vars['product']->value->minimal_quantity;
                ?>
</b> <?php 
                echo smartyTranslate(array('s' => 'quantity for this product.'), $_smarty_tpl);
                ?>

						</p>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['groups']->value)) {
                    ?>
							<!-- attributes -->
							<div id="attributes">
								<div class="clearfix"></div>
								<?php 
                    $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['group']->_loop = false;
                    $_smarty_tpl->tpl_vars['id_attribute_group'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['groups']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value) {
                        $_smarty_tpl->tpl_vars['group']->_loop = true;
                        $_smarty_tpl->tpl_vars['id_attribute_group']->value = $_smarty_tpl->tpl_vars['group']->key;
                        ?>
									<?php 
                        if (count($_smarty_tpl->tpl_vars['group']->value['attributes'])) {
                            ?>
										<fieldset class="attribute_fieldset">
											<label class="attribute_label<?php 
                            if ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'color') {
                                ?>
 label_color<?php 
                            }
                            ?>
" <?php 
                            if ($_smarty_tpl->tpl_vars['group']->value['group_type'] != 'color' && $_smarty_tpl->tpl_vars['group']->value['group_type'] != 'radio') {
                                ?>
for="group_<?php 
                                echo intval($_smarty_tpl->tpl_vars['id_attribute_group']->value);
                                ?>
"<?php 
                            }
                            ?>
><?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['group']->value['name'], ENT_QUOTES, 'UTF-8', true);
                            ?>
&nbsp;</label>
											<?php 
                            $_smarty_tpl->tpl_vars["groupName"] = new Smarty_variable("group_" . (string) $_smarty_tpl->tpl_vars['id_attribute_group']->value, null, 0);
                            ?>
											<div class="attribute_list">
												<?php 
                            if ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'select') {
                                ?>
													<select name="<?php 
                                echo $_smarty_tpl->tpl_vars['groupName']->value;
                                ?>
" id="group_<?php 
                                echo intval($_smarty_tpl->tpl_vars['id_attribute_group']->value);
                                ?>
" class="form-control attribute_select no-print">
														<?php 
                                $_smarty_tpl->tpl_vars['group_attribute'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['group_attribute']->_loop = false;
                                $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['group']->value['attributes'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['group_attribute']->key => $_smarty_tpl->tpl_vars['group_attribute']->value) {
                                    $_smarty_tpl->tpl_vars['group_attribute']->_loop = true;
                                    $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['group_attribute']->key;
                                    ?>
															<option value="<?php 
                                    echo intval($_smarty_tpl->tpl_vars['id_attribute']->value);
                                    ?>
"<?php 
                                    if (isset($_GET[$_smarty_tpl->tpl_vars['groupName']->value]) && intval($_GET[$_smarty_tpl->tpl_vars['groupName']->value]) == $_smarty_tpl->tpl_vars['id_attribute']->value || $_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) {
                                        ?>
 selected="selected"<?php 
                                    }
                                    ?>
 title="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['group_attribute']->value, ENT_QUOTES, 'UTF-8', true);
                                    ?>
"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['group_attribute']->value, ENT_QUOTES, 'UTF-8', true);
                                    ?>
</option>
														<?php 
                                }
                                ?>
													</select>
                                                <?php 
                            } elseif ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'radio') {
                                ?>
													<ul>
														<?php 
                                $_smarty_tpl->tpl_vars['group_attribute'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['group_attribute']->_loop = false;
                                $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['group']->value['attributes'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['group_attribute']->key => $_smarty_tpl->tpl_vars['group_attribute']->value) {
                                    $_smarty_tpl->tpl_vars['group_attribute']->_loop = true;
                                    $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['group_attribute']->key;
                                    ?>
															<li>
                                                                <input type="radio" id="<?php 
                                    echo $_smarty_tpl->tpl_vars['id_attribute']->value;
                                    ?>
" class="attribute_radio" name="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['groupName']->value, ENT_QUOTES, 'UTF-8', true);
                                    ?>
" value="<?php 
                                    echo $_smarty_tpl->tpl_vars['id_attribute']->value;
                                    ?>
" <?php 
                                    if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) {
                                        ?>
 checked="checked"<?php 
                                    }
                                    ?>
 />
																<label class="label_radio <?php 
                                    if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) {
                                        ?>
 checked<?php 
                                    }
                                    ?>
" for="<?php 
                                    echo $_smarty_tpl->tpl_vars['id_attribute']->value;
                                    ?>
"><?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['group_attribute']->value, ENT_QUOTES, 'UTF-8', true);
                                    ?>
</label>
															</li>
														<?php 
                                }
                                ?>
													</ul>
												<?php 
                            } elseif ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'color') {
                                ?>
													<ul id="color_to_pick_list" class="clearfix">
														<?php 
                                $_smarty_tpl->tpl_vars["default_colorpicker"] = new Smarty_variable('', null, 0);
                                ?>
														<?php 
                                $_smarty_tpl->tpl_vars['group_attribute'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['group_attribute']->_loop = false;
                                $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['group']->value['attributes'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['group_attribute']->key => $_smarty_tpl->tpl_vars['group_attribute']->value) {
                                    $_smarty_tpl->tpl_vars['group_attribute']->_loop = true;
                                    $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['group_attribute']->key;
                                    ?>
															<?php 
                                    $_smarty_tpl->tpl_vars['img_color_exists'] = new Smarty_variable(file_exists($_smarty_tpl->tpl_vars['col_img_dir']->value . $_smarty_tpl->tpl_vars['id_attribute']->value . '.jpg'), null, 0);
                                    ?>
															<li<?php 
                                    if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) {
                                        ?>
 class="selected"<?php 
                                    }
                                    ?>
>
																<a href="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value), ENT_QUOTES, 'UTF-8', true);
                                    ?>
" id="color_<?php 
                                    echo intval($_smarty_tpl->tpl_vars['id_attribute']->value);
                                    ?>
" name="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name'], ENT_QUOTES, 'UTF-8', true);
                                    ?>
" class="color_pick<?php 
                                    if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) {
                                        ?>
 selected<?php 
                                    }
                                    ?>
"<?php 
                                    if (!$_smarty_tpl->tpl_vars['img_color_exists']->value && isset($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['value']) && $_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['value']) {
                                        ?>
 style="background:<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['value'], ENT_QUOTES, 'UTF-8', true);
                                        ?>
;"<?php 
                                    }
                                    ?>
 title="<?php 
                                    echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name'], ENT_QUOTES, 'UTF-8', true);
                                    ?>
">
																	<?php 
                                    if ($_smarty_tpl->tpl_vars['img_color_exists']->value) {
                                        ?>
																		<img src="<?php 
                                        echo $_smarty_tpl->tpl_vars['img_col_dir']->value;
                                        echo intval($_smarty_tpl->tpl_vars['id_attribute']->value);
                                        ?>
.jpg" alt="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name'], ENT_QUOTES, 'UTF-8', true);
                                        ?>
" title="<?php 
                                        echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name'], ENT_QUOTES, 'UTF-8', true);
                                        ?>
" width="20" height="20" />
																	<?php 
                                    }
                                    ?>
																</a>
															</li>
															<?php 
                                    if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) {
                                        ?>
																<?php 
                                        $_smarty_tpl->tpl_vars['default_colorpicker'] = new Smarty_variable($_smarty_tpl->tpl_vars['id_attribute']->value, null, 0);
                                        ?>
															<?php 
                                    }
                                    ?>
														<?php 
                                }
                                ?>
													</ul>
													<input type="hidden" class="color_pick_hidden" name="<?php 
                                echo htmlspecialchars($_smarty_tpl->tpl_vars['groupName']->value, ENT_QUOTES, 'UTF-8', true);
                                ?>
" value="<?php 
                                echo intval($_smarty_tpl->tpl_vars['default_colorpicker']->value);
                                ?>
" />
												<?php 
                            }
                            ?>
											</div> <!-- end attribute_list -->
										</fieldset>
									<?php 
                        }
                        ?>
								<?php 
                    }
                    ?>
							</div> <!-- end attributes -->
						<?php 
                }
                ?>
					</div> <!-- end product_attributes -->
                    <div class="box-cart-bottom">
						<!-- quantity wanted -->
						<?php 
                if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
					 	<p id="quantity_wanted_p"<?php 
                    if (!$_smarty_tpl->tpl_vars['allow_oosp']->value && $_smarty_tpl->tpl_vars['product']->value->quantity <= 0 || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                        ?>
 style="display: none;"<?php 
                    }
                    ?>
>
							<label><?php 
                    echo smartyTranslate(array('s' => 'Qty'), $_smarty_tpl);
                    ?>
</label>
							<a href="#" data-field-qty="qty" class="btn btn-default button-minus product_quantity_down">
								<span>-</span>
							</a>
                            <input type="text" name="qty" id="quantity_wanted" class="text" value="<?php 
                    if (isset($_smarty_tpl->tpl_vars['quantityBackup']->value)) {
                        echo intval($_smarty_tpl->tpl_vars['quantityBackup']->value);
                    } else {
                        if ($_smarty_tpl->tpl_vars['product']->value->minimal_quantity > 1) {
                            echo $_smarty_tpl->tpl_vars['product']->value->minimal_quantity;
                        } else {
                            ?>
1<?php 
                        }
                    }
                    ?>
" />    
							<a href="#" data-field-qty="qty" class="btn btn-default button-plus product_quantity_up">
								<span>+</span>
							</a>
							<span class="clearfix"></span>
						</p>
						<?php 
                }
                ?>
						<p id="add_to_cart" class="buttons_bottom_block no-print <?php 
                if (!$_smarty_tpl->tpl_vars['allow_oosp']->value && $_smarty_tpl->tpl_vars['product']->value->quantity <= 0 || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value) && $_smarty_tpl->tpl_vars['restricted_country_mode']->value || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
 unvisible<?php 
                }
                ?>
">
							<button type="submit" name="Submit" class="exclusive">
								<span><i class="fa fa-shopping-cart"></i><?php 
                if ($_smarty_tpl->tpl_vars['content_only']->value && (isset($_smarty_tpl->tpl_vars['product']->value->customization_required) && $_smarty_tpl->tpl_vars['product']->value->customization_required)) {
                    echo smartyTranslate(array('s' => 'Customize'), $_smarty_tpl);
                } else {
                    echo smartyTranslate(array('s' => 'Add to Cart'), $_smarty_tpl);
                }
                ?>
</span>
							</button>
						</p>
						<?php 
                if (isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value) {
                    echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value;
                }
                ?>
                        <a class="add_to_compare" id="add_to_compare" href="javascript:void(0)" data-id-product="<?php 
                echo intval($_smarty_tpl->tpl_vars['product']->value->id);
                ?>
" title="<?php 
                echo smartyTranslate(array('s' => 'Add to compare'), $_smarty_tpl);
                ?>
"><i class="fa fa-toggle-on"></i></a>
					</div> <!-- end box-cart-bottom -->
                <?php 
                if (!$_smarty_tpl->tpl_vars['content_only']->value) {
                    ?>
				<!-- usefull links-->
				<ul id="usefull_link_block" class="clearfix no-print">
					<?php 
                    if ($_smarty_tpl->tpl_vars['HOOK_EXTRA_LEFT']->value) {
                        echo $_smarty_tpl->tpl_vars['HOOK_EXTRA_LEFT']->value;
                    }
                    ?>
					<li class="print">
						<a href="javascript:print();" title="<?php 
                    echo smartyTranslate(array('s' => 'Print'), $_smarty_tpl);
                    ?>
">
							<i class="fa fa-print"></i>
						</a>
					</li>
					<?php 
                    if ($_smarty_tpl->tpl_vars['have_image']->value && !$_smarty_tpl->tpl_vars['jqZoomEnabled']->value) {
                    }
                    ?>
				</ul>
    			<?php 
                }
                ?>
                
            </div>
				</div> <!-- end box-info-product -->
			</form>
			<?php 
            }
            ?>
		</div> <!-- end pb-right-column-->
       
	</div> <!-- end primary_block -->
 </div>
<div class="row">
     <div id="tab-container" class="col-xs-12">
        <!-- Nav tabs -->
        <ul id="product-tabs" class="nav nav-tabs" role="tablist">
            <?php 
            if (isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->description) {
                ?>
                <li class="active"><a href="#descripntion-tab" role="tab" data-toggle="tab"><?php 
                echo smartyTranslate(array('s' => 'Product Details'), $_smarty_tpl);
                ?>
</a></li><?php 
            }
            ?>
            <?php 
            if (isset($_smarty_tpl->tpl_vars['features']->value) && $_smarty_tpl->tpl_vars['features']->value) {
                ?>
                <li <?php 
                if (!isset($_smarty_tpl->tpl_vars['product']->value->description)) {
                    ?>
class="active"<?php 
                }
                ?>
><a href="#table-data-sheet" role="tab" data-toggle="tab"><?php 
                echo smartyTranslate(array('s' => 'Information'), $_smarty_tpl);
                ?>
</a></li><?php 
            }
            ?>
            <?php 
            if (isset($_smarty_tpl->tpl_vars['quantity_discounts']->value) && count($_smarty_tpl->tpl_vars['quantity_discounts']->value) > 0) {
                ?>
                <li <?php 
                if (!isset($_smarty_tpl->tpl_vars['product']->value->description) && !isset($_smarty_tpl->tpl_vars['features']->value)) {
                    ?>
class="active"<?php 
                }
                ?>
><a href="#quantityDiscount-tab" role="tab" data-toggle="tab"><?php 
                echo smartyTranslate(array('s' => 'Discounts'), $_smarty_tpl);
                ?>
</a></li><?php 
            }
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB']->value) {
                ?>
                <?php 
                echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB']->value;
                ?>

            <?php 
            }
            ?>
        </ul>

        <!-- Tab panes -->
        <div id="product-tab-content" class="tab-content">
          <?php 
            if (isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->description) {
                ?>
            <div class="tab-pane active fade in" id="descripntion-tab">
                <?php 
                echo $_smarty_tpl->tpl_vars['product']->value->description;
                ?>

            </div>
		  <?php 
            }
            ?>
          <?php 
            if (isset($_smarty_tpl->tpl_vars['features']->value) && $_smarty_tpl->tpl_vars['features']->value) {
                ?>
            <div class="tab-pane fade in" id="table-data-sheet">
				<table class="table-data-sheet">
					<?php 
                $_smarty_tpl->tpl_vars['feature'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['feature']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['features']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['feature']->key => $_smarty_tpl->tpl_vars['feature']->value) {
                    $_smarty_tpl->tpl_vars['feature']->_loop = true;
                    ?>
					<tr class="<?php 
                    echo smarty_function_cycle(array('values' => "odd,even"), $_smarty_tpl);
                    ?>
">
						<?php 
                    if (isset($_smarty_tpl->tpl_vars['feature']->value['value'])) {
                        ?>
						<td><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['name'], ENT_QUOTES, 'UTF-8', true);
                        ?>
</td>
						<td><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['value'], ENT_QUOTES, 'UTF-8', true);
                        ?>
</td>
						<?php 
                    }
                    ?>
					</tr>
					<?php 
                }
                ?>
				</table>
            </div>
          <?php 
            }
            ?>
          <?php 
            if (isset($_smarty_tpl->tpl_vars['quantity_discounts']->value) && count($_smarty_tpl->tpl_vars['quantity_discounts']->value) > 0) {
                ?>
    			<!-- quantity discount -->
    			<div class="tab-pane fade in" id="quantityDiscount-tab">
    					<table class="std table-product-discounts">
    						<thead>
    							<tr>
    								<th><?php 
                echo smartyTranslate(array('s' => 'Quantity'), $_smarty_tpl);
                ?>
</th>
    								<th><?php 
                if ($_smarty_tpl->tpl_vars['display_discount_price']->value) {
                    echo smartyTranslate(array('s' => 'Price'), $_smarty_tpl);
                } else {
                    echo smartyTranslate(array('s' => 'Discount'), $_smarty_tpl);
                }
                ?>
</th>
    								<th><?php 
                echo smartyTranslate(array('s' => 'You Save'), $_smarty_tpl);
                ?>
</th>
    							</tr>
    						</thead>
    						<tbody>
    							<?php 
                $_smarty_tpl->tpl_vars['quantity_discount'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['quantity_discount']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['quantity_discounts']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['quantity_discount']->key => $_smarty_tpl->tpl_vars['quantity_discount']->value) {
                    $_smarty_tpl->tpl_vars['quantity_discount']->_loop = true;
                    ?>
    							<tr id="quantityDiscount_<?php 
                    echo $_smarty_tpl->tpl_vars['quantity_discount']->value['id_product_attribute'];
                    ?>
" class="quantityDiscount_<?php 
                    echo $_smarty_tpl->tpl_vars['quantity_discount']->value['id_product_attribute'];
                    ?>
" data-discount-type="<?php 
                    echo $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type'];
                    ?>
" data-discount="<?php 
                    echo floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']);
                    ?>
" data-discount-quantity="<?php 
                    echo intval($_smarty_tpl->tpl_vars['quantity_discount']->value['quantity']);
                    ?>
">
    								<td>
    									<?php 
                    echo intval($_smarty_tpl->tpl_vars['quantity_discount']->value['quantity']);
                    ?>

    								</td>
    								<td>
    									<?php 
                    if ($_smarty_tpl->tpl_vars['quantity_discount']->value['price'] >= 0 || $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type'] == 'amount') {
                        ?>
    										<?php 
                        if ($_smarty_tpl->tpl_vars['display_discount_price']->value) {
                            ?>
    											<?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['productPrice']->value - floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value'])), $_smarty_tpl);
                            ?>

    										<?php 
                        } else {
                            ?>
    											<?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value'])), $_smarty_tpl);
                            ?>

    										<?php 
                        }
                        ?>
    									<?php 
                    } else {
                        ?>
    										<?php 
                        if ($_smarty_tpl->tpl_vars['display_discount_price']->value) {
                            ?>
    											<?php 
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['productPrice']->value - floatval($_smarty_tpl->tpl_vars['productPrice']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction'])), $_smarty_tpl);
                            ?>

    										<?php 
                        } else {
                            ?>
    											<?php 
                            echo floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']);
                            ?>
%
    										<?php 
                        }
                        ?>
    									<?php 
                    }
                    ?>
    								</td>
    								<td>
    									<span><?php 
                    echo smartyTranslate(array('s' => 'Up to'), $_smarty_tpl);
                    ?>
</span>
    									<?php 
                    if ($_smarty_tpl->tpl_vars['quantity_discount']->value['price'] >= 0 || $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type'] == 'amount') {
                        ?>
    										<?php 
                        $_smarty_tpl->tpl_vars['discountPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['productPrice']->value - floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']), null, 0);
                        ?>
    									<?php 
                    } else {
                        ?>
    										<?php 
                        $_smarty_tpl->tpl_vars['discountPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['productPrice']->value - floatval($_smarty_tpl->tpl_vars['productPrice']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction']), null, 0);
                        ?>
    									<?php 
                    }
                    ?>
    									<?php 
                    $_smarty_tpl->tpl_vars['discountPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['discountPrice']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['quantity'], null, 0);
                    ?>
    									<?php 
                    $_smarty_tpl->tpl_vars['qtyProductPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['productPrice']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['quantity'], null, 0);
                    ?>
    									<?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['qtyProductPrice']->value - $_smarty_tpl->tpl_vars['discountPrice']->value), $_smarty_tpl);
                    ?>

    								</td>
    							</tr>
    							<?php 
                }
                ?>
    						</tbody>
    					</table>
    			</div>
    		<?php 
            }
            ?>
          <?php 
            if (isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB_CONTENT']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB_CONTENT']->value) {
                ?>
                <?php 
                echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB_CONTENT']->value;
                ?>

          <?php 
            }
            ?>
        </div>
       </div>
    </div>
	<?php 
            if (!$_smarty_tpl->tpl_vars['content_only']->value) {
                ?>
    
		<?php 
                if (isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_FOOTER']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_FOOTER']->value) {
                    echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_FOOTER']->value;
                }
                ?>
		<!-- description & features -->
		
	<?php 
            }
            ?>
</div> <!-- itemscope product wrapper -->
<?php 
            if (isset($_GET['ad']) && $_GET['ad']) {
                $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'ad'));
                $_block_repeat = true;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'ad'), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['base_dir']->value . $_GET['ad'], ENT_QUOTES, 'UTF-8', true);
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'ad'), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
            }
            if (isset($_GET['adtoken']) && $_GET['adtoken']) {
                $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'adtoken'));
                $_block_repeat = true;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'adtoken'), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    echo htmlspecialchars($_GET['adtoken'], ENT_QUOTES, 'UTF-8', true);
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'adtoken'), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
            }
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('allowBuyWhenOutOfStock' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['allow_oosp']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('availableNowValue' => preg_replace("%(?<!\\\\)'%", "\\'", $_smarty_tpl->tpl_vars['product']->value->available_now)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('availableLaterValue' => preg_replace("%(?<!\\\\)'%", "\\'", $_smarty_tpl->tpl_vars['product']->value->available_later)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('attribute_anchor_separator' => preg_replace("%(?<!\\\\)'%", "\\'", $_smarty_tpl->tpl_vars['attribute_anchor_separator']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('attributesCombinations' => $_smarty_tpl->tpl_vars['attributesCombinations']->value), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('currencySign' => html_entity_decode($_smarty_tpl->tpl_vars['currencySign']->value, 2, "UTF-8")), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('currencyRate' => floatval($_smarty_tpl->tpl_vars['currencyRate']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('currencyFormat' => intval($_smarty_tpl->tpl_vars['currencyFormat']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('currencyBlank' => intval($_smarty_tpl->tpl_vars['currencyBlank']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('currentDate' => smarty_modifier_date_format(time(), '%Y-%m-%d %H:%M:%S')), $_smarty_tpl);
            if (isset($_smarty_tpl->tpl_vars['combinations']->value) && $_smarty_tpl->tpl_vars['combinations']->value) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('combinations' => $_smarty_tpl->tpl_vars['combinations']->value), $_smarty_tpl);
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('combinationsFromController' => $_smarty_tpl->tpl_vars['combinations']->value), $_smarty_tpl);
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('displayDiscountPrice' => $_smarty_tpl->tpl_vars['display_discount_price']->value), $_smarty_tpl);
                $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'upToTxt'));
                $_block_repeat = true;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'upToTxt'), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    echo smartyTranslate(array('s' => 'Up to', 'js' => 1), $_smarty_tpl);
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'upToTxt'), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
            }
            if (isset($_smarty_tpl->tpl_vars['combinationImages']->value) && $_smarty_tpl->tpl_vars['combinationImages']->value) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('combinationImages' => $_smarty_tpl->tpl_vars['combinationImages']->value), $_smarty_tpl);
            }
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('customizationFields' => $_smarty_tpl->tpl_vars['customizationFields']->value), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('default_eco_tax' => floatval($_smarty_tpl->tpl_vars['product']->value->ecotax)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('displayPrice' => intval($_smarty_tpl->tpl_vars['priceDisplay']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('ecotaxTax_rate' => floatval($_smarty_tpl->tpl_vars['ecotaxTax_rate']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('group_reduction' => $_smarty_tpl->tpl_vars['group_reduction']->value), $_smarty_tpl);
            if (isset($_smarty_tpl->tpl_vars['cover']->value['id_image_only'])) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('idDefaultImage' => intval($_smarty_tpl->tpl_vars['cover']->value['id_image_only'])), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('idDefaultImage' => 0), $_smarty_tpl);
            }
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('img_ps_dir' => $_smarty_tpl->tpl_vars['img_ps_dir']->value), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('img_prod_dir' => $_smarty_tpl->tpl_vars['img_prod_dir']->value), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('id_product' => intval($_smarty_tpl->tpl_vars['product']->value->id)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('jqZoomEnabled' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['jqZoomEnabled']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('maxQuantityToAllowDisplayOfLastQuantityMessage' => intval($_smarty_tpl->tpl_vars['last_qties']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('minimalQuantity' => intval($_smarty_tpl->tpl_vars['product']->value->minimal_quantity)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('noTaxForThisProduct' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['no_tax']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('customerGroupWithoutTax' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['customer_group_without_tax']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('oosHookJsCodeFunctions' => array()), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productHasAttributes' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval(isset($_smarty_tpl->tpl_vars['groups']->value))), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productPriceTaxExcluded' => floatval((($tmp = @$_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(true)) === null || $tmp === '' ? 'null' : $tmp) - $_smarty_tpl->tpl_vars['product']->value->ecotax)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productBasePriceTaxExcluded' => floatval($_smarty_tpl->tpl_vars['product']->value->base_price - $_smarty_tpl->tpl_vars['product']->value->ecotax)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productBasePriceTaxExcl' => floatval($_smarty_tpl->tpl_vars['product']->value->base_price)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productReference' => htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->reference, ENT_QUOTES, 'UTF-8', true)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productAvailableForOrder' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['product']->value->available_for_order)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productPriceWithoutReduction' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productPrice' => floatval($_smarty_tpl->tpl_vars['productPrice']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productUnitPriceRatio' => floatval($_smarty_tpl->tpl_vars['product']->value->unit_price_ratio)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productShowPrice' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval(!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && $_smarty_tpl->tpl_vars['product']->value->show_price)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('PS_CATALOG_MODE' => $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value), $_smarty_tpl);
            if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && count($_smarty_tpl->tpl_vars['product']->value->specificPrice)) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('product_specific_price' => $_smarty_tpl->tpl_vars['product']->value->specificPrice), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('product_specific_price' => array()), $_smarty_tpl);
            }
            if ($_smarty_tpl->tpl_vars['display_qties']->value == 1 && $_smarty_tpl->tpl_vars['product']->value->quantity) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('quantityAvailable' => $_smarty_tpl->tpl_vars['product']->value->quantity), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('quantityAvailable' => 0), $_smarty_tpl);
            }
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('quantitiesDisplayAllowed' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['display_qties']->value)), $_smarty_tpl);
            if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'percentage') {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('reduction_percent' => $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] * floatval(100)), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('reduction_percent' => 0), $_smarty_tpl);
            }
            if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'amount') {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('reduction_price' => floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'])), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('reduction_price' => 0), $_smarty_tpl);
            }
            if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['price']) {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('specific_price' => floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['price'])), $_smarty_tpl);
            } else {
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('specific_price' => 0), $_smarty_tpl);
            }
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('specific_currency' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['id_currency'])), $_smarty_tpl);
            ?>
 <?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('stock_management' => intval($_smarty_tpl->tpl_vars['stock_management']->value)), $_smarty_tpl);
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('taxRate' => floatval($_smarty_tpl->tpl_vars['tax_rate']->value)), $_smarty_tpl);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'doesntExist'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExist'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'This combination does not exist for this product. Please select another combination.', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExist'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'doesntExistNoMore'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExistNoMore'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'This product is no longer in stock', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExistNoMore'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'doesntExistNoMoreBut'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExistNoMoreBut'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'with those attributes but is available with others.', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExistNoMoreBut'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'fieldRequired'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'fieldRequired'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'Please fill in all the required fields before saving your customization.', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'fieldRequired'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'uploading_in_progress'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'uploading_in_progress'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'Uploading in progress, please be patient.', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'uploading_in_progress'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'product_fileDefaultHtml'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_fileDefaultHtml'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'No file selected', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_fileDefaultHtml'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'product_fileButtonHtml'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_fileButtonHtml'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'Choose File', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_fileButtonHtml'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

<?php 
        }
    }
    function content_56b3124d4eb160_39263796($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/function.math.php';
        }
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./layout/setting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['products']->value) && $_smarty_tpl->tpl_vars['products']->value) {
            ?>
	
        <?php 
            if (isset($_smarty_tpl->tpl_vars['class']->value)) {
                ?>
            
            <?php 
                $_smarty_tpl->tpl_vars["LISTING_GRIG_MODE"] = new Smarty_variable("grid", null, 3);
                $_ptr = $_smarty_tpl->parent;
                while ($_ptr != null) {
                    $_ptr->tpl_vars["LISTING_GRIG_MODE"] = clone $_smarty_tpl->tpl_vars["LISTING_GRIG_MODE"];
                    $_ptr = $_ptr->parent;
                }
                Smarty::$global_tpl_vars["LISTING_GRIG_MODE"] = clone $_smarty_tpl->tpl_vars["LISTING_GRIG_MODE"];
                ?>
            <?php 
                $_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTING_PRODUCT_COLUMN_MODULE']->value, null, 0);
                ?>
            <?php 
                if ($_smarty_tpl->tpl_vars['LISTING_PRODUCT_COLUMN_MODULE']->value == "5") {
                    ?>
                <?php 
                    $_smarty_tpl->tpl_vars["colValue"] = new Smarty_variable("col-xs-" . (string) (12 / $_smarty_tpl->tpl_vars['LISTING_PRODUCT_MOBILE']->value) . " col-sm-" . (string) (12 / $_smarty_tpl->tpl_vars['LISTING_PRODUCT_TABLET']->value) . " col-md-2-4 col-sp-12", null, 3);
                    $_ptr = $_smarty_tpl->parent;
                    while ($_ptr != null) {
                        $_ptr->tpl_vars["colValue"] = clone $_smarty_tpl->tpl_vars["colValue"];
                        $_ptr = $_ptr->parent;
                    }
                    Smarty::$global_tpl_vars["colValue"] = clone $_smarty_tpl->tpl_vars["colValue"];
                    ?>
            <?php 
                } else {
                    ?>
                <?php 
                    $_smarty_tpl->tpl_vars["colValue"] = new Smarty_variable("col-sp-12 col-xs-" . (string) (12 / $_smarty_tpl->tpl_vars['LISTING_PRODUCT_MOBILE']->value) . " col-sm-" . (string) (12 / $_smarty_tpl->tpl_vars['LISTING_PRODUCT_TABLET']->value) . " col-md-" . (string) (12 / $_smarty_tpl->tpl_vars['LISTING_PRODUCT_COLUMN_MODULE']->value), null, 3);
                    $_ptr = $_smarty_tpl->parent;
                    while ($_ptr != null) {
                        $_ptr->tpl_vars["colValue"] = clone $_smarty_tpl->tpl_vars["colValue"];
                        $_ptr = $_ptr->parent;
                    }
                    Smarty::$global_tpl_vars["colValue"] = clone $_smarty_tpl->tpl_vars["colValue"];
                    ?>
            <?php 
                }
                ?>
        <?php 
            } else {
                ?>
            <?php 
                $_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTING_PRODUCT_COLUMN']->value, null, 0);
                ?>
	<?php 
            }
            ?>
        <?php 
            $_smarty_tpl->tpl_vars['nbItemsPerLineTablet'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTING_PRODUCT_TABLET']->value, null, 0);
            ?>
        <?php 
            $_smarty_tpl->tpl_vars['nbItemsPerLineMobile'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTING_PRODUCT_MOBILE']->value, null, 0);
            ?>
	
	<?php 
            $_smarty_tpl->tpl_vars['nbLi'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['products']->value), null, 0);
            ?>
	<?php 
            echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLine", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'nbLines'), $_smarty_tpl);
            ?>

	<?php 
            echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLineTablet", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLineTablet' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'nbLinesTablet'), $_smarty_tpl);
            ?>

	<!-- Products list -->
	<div <?php 
            if (isset($_smarty_tpl->tpl_vars['id']->value) && $_smarty_tpl->tpl_vars['id']->value) {
                ?>
 id="<?php 
                echo $_smarty_tpl->tpl_vars['id']->value;
                ?>
"<?php 
            }
            ?>
 class="product_list <?php 
            echo $_smarty_tpl->tpl_vars['LISTING_GRIG_MODE']->value;
            ?>
 row <?php 
            if (isset($_smarty_tpl->tpl_vars['class']->value) && $_smarty_tpl->tpl_vars['class']->value) {
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['class']->value;
            }
            ?>
">
	<?php 
            $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['product']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['products']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['product']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['total'] = $_smarty_tpl->tpl_vars['product']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['iteration'] = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
                $_smarty_tpl->tpl_vars['product']->_loop = true;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['iteration']++;
                ?>
		<?php 
                echo smarty_function_math(array('equation' => "(total%perLine)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'], 'perLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'totModulo'), $_smarty_tpl);
                ?>

		<?php 
                echo smarty_function_math(array('equation' => "(total%perLineT)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'], 'perLineT' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'totModuloTablet'), $_smarty_tpl);
                ?>

		<?php 
                echo smarty_function_math(array('equation' => "(total%perLineT)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'], 'perLineT' => $_smarty_tpl->tpl_vars['nbItemsPerLineMobile']->value, 'assign' => 'totModuloMobile'), $_smarty_tpl);
                ?>

		<?php 
                if ($_smarty_tpl->tpl_vars['totModulo']->value == 0) {
                    $_smarty_tpl->tpl_vars['totModulo'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLine']->value, null, 0);
                }
                ?>
		<?php 
                if ($_smarty_tpl->tpl_vars['totModuloTablet']->value == 0) {
                    $_smarty_tpl->tpl_vars['totModuloTablet'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, null, 0);
                }
                ?>
		<?php 
                if ($_smarty_tpl->tpl_vars['totModuloMobile']->value == 0) {
                    $_smarty_tpl->tpl_vars['totModuloMobile'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLineMobile']->value, null, 0);
                }
                ?>
	
		<div class="ajax_block_product col-sp-12 <?php 
                echo $_smarty_tpl->tpl_vars['colValue']->value;
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 0) {
                    ?>
 last-in-line
		<?php 
                } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 1) {
                    ?>
 first-in-line<?php 
                }
                ?>
		<?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] > $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'] - $_smarty_tpl->tpl_vars['totModulo']->value) {
                    ?>
 last-line<?php 
                }
                ?>
		<?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value == 0) {
                    ?>
 last-item-of-tablet-line
		<?php 
                } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value == 1) {
                    ?>
 first-item-of-tablet-line<?php 
                }
                ?>
		<?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineMobile']->value == 0) {
                    ?>
 last-item-of-mobile-line
		<?php 
                } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLineMobile']->value == 1) {
                    ?>
 first-item-of-mobile-line<?php 
                }
                ?>
		<?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration'] > $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'] - $_smarty_tpl->tpl_vars['totModuloMobile']->value) {
                    ?>
 last-mobile-line<?php 
                }
                ?>
">
			<?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./sub/product-item/product-item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('callFromModule' => isset($_smarty_tpl->tpl_vars['class']->value)), 0);
                ?>

		</div>

	<?php 
            }
            ?>
	</div>
<?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'min_item'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'min_item'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'Please select at least one product', 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'min_item'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

<?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'max_item'));
            $_block_repeat = true;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'max_item'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                echo smartyTranslate(array('s' => 'You cannot add more than %d product(s) to the product comparison', 'sprintf' => $_smarty_tpl->tpl_vars['comparator_max_item']->value, 'js' => 1), $_smarty_tpl);
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'max_item'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('comparator_max_item' => $_smarty_tpl->tpl_vars['comparator_max_item']->value), $_smarty_tpl);
            ?>

<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('comparedProductsIds' => $_smarty_tpl->tpl_vars['compared_products']->value), $_smarty_tpl);
            ?>

<?php 
        }
    }
    function content_55e61f9bbf8558_38066348($_smarty_tpl)
    {
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        if (!is_callable('smarty_function_math')) {
            include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
        }
        fn_preload_lang_vars(array('general', 'variants', 'name', 'position', 'inventory', 'tt_views_product_options_update_inventory', 'type', 'description', 'comment', 'comment_hint', 'required', 'missing_variants_handling', 'display_message', 'hide_option_completely', 'regexp', 'tt_views_product_options_update_regexp', 'regexp_hint', 'inner_hint', 'tt_views_product_options_update_inner_hint', 'incorrect_filling_message', 'tt_views_product_options_update_incorrect_filling_message', 'allowed_extensions', 'allowed_extensions_hint', 'max_uploading_file_size', 'max_uploading_file_size_hint', 'multiupload', 'position_short', 'name', 'modifier', 'type', 'weight_modifier', 'type', 'status', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'extra', 'icon', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'extra', 'icon'));
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_id']) {
            ?>
    <?php 
            $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['option_data']->value['option_id'], null, 0);
        } else {
            ?>
    <?php 
            $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0);
        }
        ?>

<?php 
        if (fn_allowed_for("ULTIMATE")) {
            ?>
    <?php 
            if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(true, null, 0);
                ?>
    <?php 
            }
            ?>

    <?php 
            if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["cm_no_hide_input"] = new Smarty_variable("cm-no-hide-input", null, 0);
                ?>
    <?php 
            }
        }
        ?>

<?php 
        $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['option_data']->value, "product_options"), null, 0);
        ?>

<div id="content_group_product_option_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
">

<form action="<?php 
        echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
        ?>
" method="post" name="option_form_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" class="form-horizontal form-edit form-highlight cm-disable-empty-files <?php 
        if (!$_smarty_tpl->tpl_vars['allow_save']->value) {
            ?>
cm-hide-inputs<?php 
        }
        ?>
" enctype="multipart/form-data">
<input type="hidden" name="option_id" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" class="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['cm_no_hide_input']->value, ENT_QUOTES, 'UTF-8');
        ?>
" />

<?php 
        if (fn_allowed_for("MULTIVENDOR")) {
            ?>
    <?php 
            if (!$_smarty_tpl->tpl_vars['allow_save']->value) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["disable_company_picker"] = new Smarty_variable(true, null, 0);
                ?>
    <?php 
            }
        }
        ?>

<?php 
        if ($_REQUEST['product_id']) {
            ?>
    <input class="cm-no-hide-input" type="hidden" name="option_data[product_id]" value="<?php 
            echo htmlspecialchars($_REQUEST['product_id'], ENT_QUOTES, 'UTF-8');
            ?>
" />
    <?php 
            if (fn_allowed_for("ULTIMATE")) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["disable_company_picker"] = new Smarty_variable(true, null, 0);
                ?>
        <?php 
                if (!$_smarty_tpl->tpl_vars['company_id']->value) {
                    ?>
            <?php 
                    $_smarty_tpl->tpl_vars["company_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_company_id']->value, null, 0);
                    ?>
        <?php 
                }
                ?>
    <?php 
            }
        }
        ?>

<div class="tabs cm-j-tabs">
    <ul class="nav nav-tabs">
        <li id="tab_option_details_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" class="cm-js active"><a><?php 
        echo $_smarty_tpl->__("general");
        ?>
</a></li>
        <?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "S" || $_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "R" || $_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C" || !$_smarty_tpl->tpl_vars['option_data']->value) {
            ?>
            <li id="tab_option_variants_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="cm-js"><a><?php 
            echo $_smarty_tpl->__("variants");
            ?>
</a></li>
        <?php 
        }
        ?>
    </ul>
</div>
<div class="cm-tabs-content" id="tabs_content_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
    <div id="content_tab_option_details_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
    <fieldset>
        <div class="control-group">
            <input class="cm-no-hide-input" type="hidden" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['object']->value, ENT_QUOTES, 'UTF-8');
        ?>
" name="object">
            <label for="elm_option_name_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" class="control-label cm-required"><?php 
        echo $_smarty_tpl->__("name");
        ?>
</label>
            <div class="controls">
            <input class="span9" type="text" name="option_data[option_name]" id="elm_option_name_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['option_name'], ENT_QUOTES, 'UTF-8');
        ?>
"/>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="elm_position_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("position");
        ?>
</label>
            <div class="controls">
            <input type="text" name="option_data[position]" id="elm_position_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['position'], ENT_QUOTES, 'UTF-8');
        ?>
" size="3" class="input-small" />
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="elm_inventory_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("inventory");
        echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_options_update_inventory")), 0);
        ?>
</label>
            <input type="hidden" name="option_data[inventory]" value="N" />
            <div class="controls">
            <?php 
        if (strpos("SRC", $_smarty_tpl->tpl_vars['option_data']->value['option_type']) !== false) {
            ?>
            <label class="checkbox">
                <input type="checkbox" name="option_data[inventory]" id="elm_inventory_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="Y" <?php 
            if ($_smarty_tpl->tpl_vars['option_data']->value['inventory'] == "Y") {
                ?>
checked="checked"<?php 
            }
            ?>
/>
            </label>
            <?php 
        } else {
            ?>
                <p>-</p>
            <?php 
        }
        ?>
            </div>
        </div>

        <?php 
        if (fn_allowed_for("MULTIVENDOR")) {
            ?>
            <?php 
            $_smarty_tpl->tpl_vars["zero_company_id_name_lang_var"] = new Smarty_variable("none", null, 0);
            ?>
        <?php 
        }
        ?>
        <?php 
        echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "option_data[company_id]", 'id' => "elm_option_data_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'disable_company_picker' => $_smarty_tpl->tpl_vars['disable_company_picker']->value, 'selected' => ($tmp = @$_smarty_tpl->tpl_vars['option_data']->value['company_id']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['company_id']->value : $tmp, 'zero_company_id_name_lang_var' => $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var']->value), 0);
        ?>


        <?php 
        if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") {
            ?>
            <input type="hidden" name="option_data[option_type]" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['option_type'], ENT_QUOTES, 'UTF-8');
            ?>
" class="cm-no-hide-input" />
        <?php 
        }
        ?>
        <div class="control-group">
            <label class="control-label" for="elm_option_type_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("type");
        ?>
</label>
            <div class="controls">
            <?php 
        echo $_smarty_tpl->getSubTemplate("views/product_options/components/option_types.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "option_data[option_type]", 'value' => $_smarty_tpl->tpl_vars['option_data']->value['option_type'], 'display' => "select", 'tag_id' => "elm_option_type_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'check' => true), 0);
        ?>

            </div>
        </div>
        
        <div class="control-group">
            <label class="control-label" for="elm_option_description_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("description");
        ?>
</label>
            <div class="controls">
            <textarea id="elm_option_description_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" name="option_data[description]" cols="55" rows="8" class="cm-wysiwyg span9"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['description'], ENT_QUOTES, 'UTF-8');
        ?>
</textarea>
            </div>
        </div>
        
        <div class="control-group">
            <label class="control-label" for="elm_option_comment_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("comment");
        ?>
</label>
            <div class="controls">
            <input type="text" name="option_data[comment]" id="elm_option_comment_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['comment'], ENT_QUOTES, 'UTF-8');
        ?>
" class="span9" />
            <p class="description"><?php 
        echo $_smarty_tpl->__("comment_hint");
        ?>
</p>
            </div>
        </div>
        
        <div class="control-group">
            <label class="control-label" for="elm_option_file_required_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("required");
        ?>
</label>
            <div class="controls">
            <label class="checkbox">
            <input type="hidden" name="option_data[required]" value="N" /><input type="checkbox" id="elm_option_file_required_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" name="option_data[required]" value="Y" <?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['required'] == "Y") {
            ?>
checked="checked"<?php 
        }
        ?>
  />
            </label>
            </div>
        </div>
        
        <?php 
        if (!$_smarty_tpl->tpl_vars['option_data']->value['option_type'] || strpos("SRC", $_smarty_tpl->tpl_vars['option_data']->value['option_type']) !== false) {
            ?>
            <div class="control-group">
                <label class="control-label" for="elm_option_missing_variants_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><?php 
            echo $_smarty_tpl->__("missing_variants_handling");
            ?>
</label>
                <div class="controls">
                <?php 
            if (strpos("SRC", $_smarty_tpl->tpl_vars['option_data']->value['option_type']) !== false) {
                ?>
                    <select id="elm_option_missing_variants_<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
                ?>
" name="option_data[missing_variants_handling]">
                        <option value="M" <?php 
                if ($_smarty_tpl->tpl_vars['option_data']->value['missing_variants_handling'] == "M") {
                    ?>
selected="selected"<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->__("display_message");
                ?>
</option>
                        <option value="H" <?php 
                if ($_smarty_tpl->tpl_vars['option_data']->value['missing_variants_handling'] == "H") {
                    ?>
selected="selected"<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->__("hide_option_completely");
                ?>
</option>
                    </select>
                <?php 
            } else {
                ?>
                <p>-</p>
                <?php 
            }
            ?>
                </div>
            </div>
        <?php 
        }
        ?>
        
        <div id="extra_options_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" <?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] != "I" && $_smarty_tpl->tpl_vars['option_data']->value['option_type'] != "T") {
            ?>
class="hidden"<?php 
        }
        ?>
>
            <div class="control-group">
                <label class="control-label" for="elm_option_regexp_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("regexp");
        echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_options_update_regexp")), 0);
        ?>
</label>
                <div class="controls">
                <input type="text" name="option_data[regexp]" id="elm_option_regexp_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" value="<?php 
        echo $_smarty_tpl->tpl_vars['option_data']->value['regexp'];
        ?>
" class="span9" />
                <p class="description"><?php 
        echo $_smarty_tpl->__("regexp_hint");
        ?>
</p>
                </div>
            </div>
            
            <div class="control-group">
                <label class="control-label" for="elm_option_inner_hint_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("inner_hint");
        echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_options_update_inner_hint")), 0);
        ?>
</label>
                <div class="controls">
                <input type="text" name="option_data[inner_hint]" id="elm_option_inner_hint_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['inner_hint'], ENT_QUOTES, 'UTF-8');
        ?>
" class="span9" />
                </div>
            </div>
            
            <div class="control-group">
                <label class="control-label" for="elm_option_incorrect_message_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("incorrect_filling_message");
        echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_product_options_update_incorrect_filling_message")), 0);
        ?>
</label>
                <div class="controls">
                <input type="text" name="option_data[incorrect_message]" id="elm_option_incorrect_message_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['incorrect_message'], ENT_QUOTES, 'UTF-8');
        ?>
" class="span9" />
            </div>
            </div>
        </div>
        
        <div id="file_options_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" <?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] != "F") {
            ?>
class="hidden"<?php 
        }
        ?>
>
            <div class="control-group">
                <label class="control-label" for="elm_option_allowed_extensions_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("allowed_extensions");
        ?>
</label>
                <div class="controls">
                <input type="text" name="option_data[allowed_extensions]" id="elm_option_allowed_extensions_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['allowed_extensions'], ENT_QUOTES, 'UTF-8');
        ?>
" class="span9" />
                <p class="description"><?php 
        echo $_smarty_tpl->__("allowed_extensions_hint");
        ?>
</p>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="elm_option_max_uploading_file_size_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("max_uploading_file_size");
        ?>
</label>
                <div class="controls">
                <input type="text" name="option_data[max_file_size]" id="elm_option_max_uploading_file_size_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['option_data']->value['max_file_size'], ENT_QUOTES, 'UTF-8');
        ?>
" class="span9" />
                <p class="description"><?php 
        echo $_smarty_tpl->__("max_uploading_file_size_hint");
        ?>
</p>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="elm_option_multiupload_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("multiupload");
        ?>
</label>
                <div class="controls">
                <label class="checkbox">
                <input type="hidden" name="option_data[multiupload]" value="N" /><input type="checkbox" id="elm_option_multiupload_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" name="option_data[multiupload]" value="Y" <?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['multiupload'] == "Y") {
            ?>
checked="checked"<?php 
        }
        ?>
/>
                </label>
                </div>
            </div>
        </div>
        
        <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "product_options:properties"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "product_options:properties"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

        <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "product_options:properties"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

    </fieldset>
    <!--content_tab_option_details_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
--></div>

     <div class="hidden" id="content_tab_option_variants_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
     <fieldset>
        <table class="table table-middle">
        <thead>
        <tr class="first-sibling">
            <th class="cm-non-cb<?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
            ?>
 hidden<?php 
        }
        ?>
"><?php 
        echo $_smarty_tpl->__("position_short");
        ?>
</th>
            <th class="cm-non-cb<?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
            ?>
 hidden<?php 
        }
        ?>
"><?php 
        echo $_smarty_tpl->__("name");
        ?>
</th>
            <th><?php 
        echo $_smarty_tpl->__("modifier");
        ?>
&nbsp;/&nbsp;<?php 
        echo $_smarty_tpl->__("type");
        ?>
</th>
            <th><?php 
        echo $_smarty_tpl->__("weight_modifier");
        ?>
&nbsp;/&nbsp;<?php 
        echo $_smarty_tpl->__("type");
        ?>
</th>
            <th class="cm-non-cb<?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
            ?>
 hidden<?php 
        }
        ?>
"><?php 
        echo $_smarty_tpl->__("status");
        ?>
</th>
            <th>
                <div id="on_st_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" alt="<?php 
        echo $_smarty_tpl->__("expand_collapse_list");
        ?>
" title="<?php 
        echo $_smarty_tpl->__("expand_collapse_list");
        ?>
" class="hand cm-combinations-options-<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
 exicon-expand"></div><div id="off_st_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" alt="<?php 
        echo $_smarty_tpl->__("expand_collapse_list");
        ?>
" title="<?php 
        echo $_smarty_tpl->__("expand_collapse_list");
        ?>
" class="hand hidden cm-combinations-options-<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
 exicon-collapse"></div>
            </th>
            <th class="cm-non-cb<?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
            ?>
 hidden<?php 
        }
        ?>
">&nbsp;</th>
        </tr>
        </thead>
        <?php 
        $_smarty_tpl->tpl_vars["vr"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["vr"]->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['option_data']->value['variants'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_v"]['iteration'] = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars["vr"]->key => $_smarty_tpl->tpl_vars["vr"]->value) {
            $_smarty_tpl->tpl_vars["vr"]->_loop = true;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']["fe_v"]['iteration']++;
            ?>
        <?php 
            $_smarty_tpl->tpl_vars["num"] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['foreach']['fe_v']['iteration'], null, 0);
            ?>
        <tbody class="hover cm-row-item" id="option_variants_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
        <tr>
            <td class="cm-non-cb<?php 
            if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
                ?>
 hidden<?php 
            }
            ?>
">
                <input type="text" name="option_data[variants][<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
            ?>
][position]" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['position'], ENT_QUOTES, 'UTF-8');
            ?>
" size="3" class="input-micro" /></td>
            <td class="cm-non-cb<?php 
            if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
                ?>
 hidden<?php 
            }
            ?>
">
                <input type="text" name="option_data[variants][<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
            ?>
][variant_name]" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['variant_name'], ENT_QUOTES, 'UTF-8');
            ?>
" class="input-medium" /></td>
            <td class="nowrap <?php 
            if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") {
                ?>
 cm-no-hide-input<?php 
            }
            ?>
">
                <input type="text" name="option_data[variants][<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
            ?>
][modifier]" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['modifier'], ENT_QUOTES, 'UTF-8');
            ?>
" size="5" class="input-mini" />&nbsp;/&nbsp;<select class="input-mini" name="option_data[variants][<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
            ?>
][modifier_type]">
                    <option value="A" <?php 
            if ($_smarty_tpl->tpl_vars['vr']->value['modifier_type'] == "A") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol'];
            ?>
</option>
                    <option value="P" <?php 
            if ($_smarty_tpl->tpl_vars['vr']->value['modifier_type'] == "P") {
                ?>
selected="selected"<?php 
            }
            ?>
>%</option>
                </select>
                <?php 
            echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => $_smarty_tpl->tpl_vars['vr']->value['variant_id'], 'name' => "update_all_vendors[" . (string) $_smarty_tpl->tpl_vars['num']->value . "]"), 0);
            ?>

            </td>
            <td class="nowrap">
                <input type="text" name="option_data[variants][<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
            ?>
][weight_modifier]" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['weight_modifier'], ENT_QUOTES, 'UTF-8');
            ?>
" size="5" class="input-mini" />&nbsp;/&nbsp;<select class="input-mini" name="option_data[variants][<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
            ?>
][weight_modifier_type]">
                    <option value="A" <?php 
            if ($_smarty_tpl->tpl_vars['vr']->value['weight_modifier_type'] == "A") {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8');
            ?>
</option>
                    <option value="P" <?php 
            if ($_smarty_tpl->tpl_vars['vr']->value['weight_modifier_type'] == "P") {
                ?>
selected="selected"<?php 
            }
            ?>
>%</option>
                </select>
            </td>
            <td class="cm-non-cb<?php 
            if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
                ?>
 hidden<?php 
            }
            ?>
">
                <?php 
            echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "option_data[variants][" . (string) $_smarty_tpl->tpl_vars['num']->value . "][status]", 'display' => "select", 'obj' => $_smarty_tpl->tpl_vars['vr']->value, 'meta' => "input-small"), 0);
            ?>
</td>
            <td class="nowrap">
                <span id="on_extra_option_variants_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
            ?>
" alt="<?php 
            echo $_smarty_tpl->__("expand_collapse_list");
            ?>
" title="<?php 
            echo $_smarty_tpl->__("expand_collapse_list");
            ?>
" class="hand cm-combination-options-<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><span class="exicon-expand"></span></span>
                <span id="off_extra_option_variants_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
            ?>
" alt="<?php 
            echo $_smarty_tpl->__("expand_collapse_list");
            ?>
" title="<?php 
            echo $_smarty_tpl->__("expand_collapse_list");
            ?>
" class="hand hidden cm-combination-options-<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><span class="exicon-collapse"></span> </span>
                <a id="sw_extra_option_variants_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="cm-combination-options-<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
"><?php 
            echo $_smarty_tpl->__("extra");
            ?>
</a>
                <input type="hidden" name="option_data[variants][<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
            ?>
][variant_id]" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['vr']->value['variant_id'], ENT_QUOTES, 'UTF-8');
            ?>
" class="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['cm_no_hide_input']->value, ENT_QUOTES, 'UTF-8');
            ?>
" />
             </td>
             <td class="right cm-non-cb<?php 
            if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
                ?>
 hidden<?php 
            }
            ?>
">
                <?php 
            echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "option_variants_" . (string) $_smarty_tpl->tpl_vars['id']->value . "_" . (string) $_smarty_tpl->tpl_vars['num']->value, 'tag_level' => "3", 'only_delete' => "Y"), 0);
            ?>

            </td>
        </tr>
        <tr id="extra_option_variants_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="cm-ex-op hidden">
            <td colspan="7">
                <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "product_options:edit_product_options"));
            $_block_repeat = true;
            echo smarty_block_hook(array('name' => "product_options:edit_product_options"), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>

                <div class="control-group cm-non-cb<?php 
                if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
                    ?>
 hidden<?php 
                }
                ?>
">
                    <label class="control-label"><?php 
                echo $_smarty_tpl->__("icon");
                ?>
</label>
                    <div class="controls">
                        <?php 
                echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "variant_image", 'image_key' => $_smarty_tpl->tpl_vars['num']->value, 'hide_titles' => true, 'no_detailed' => true, 'image_object_type' => "variant_image", 'image_type' => "V", 'image_pair' => $_smarty_tpl->tpl_vars['vr']->value['image_pair'], 'prefix' => $_smarty_tpl->tpl_vars['id']->value), 0);
                ?>

                    </div>
                </div>
                <?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo smarty_block_hook(array('name' => "product_options:edit_product_options"), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>


            </td>
        </tr>
        </tbody>
        <?php 
        }
        ?>

        <?php 
        echo smarty_function_math(array('equation' => "x + 1", 'assign' => "num", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['num']->value) === null || $tmp === '' ? 0 : $tmp), $_smarty_tpl);
        $_smarty_tpl->tpl_vars["vr"] = new Smarty_variable('', null, 0);
        ?>
        <tbody class="hover cm-row-item <?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
            ?>
hidden<?php 
        }
        ?>
" id="box_add_variant_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
">
        <tr>
            <td class="cm-non-cb<?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
            ?>
 hidden<?php 
        }
        ?>
">
                <input type="text" name="option_data[variants][<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
        ?>
][position]" value="" size="3" class="input-micro" /></td>
            <td class="cm-non-cb<?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
            ?>
 hidden<?php 
        }
        ?>
">
                <input type="text" name="option_data[variants][<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
        ?>
][variant_name]" value="" class="input-medium" /></td>
            <td>
                <input type="text" name="option_data[variants][<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
        ?>
][modifier]" value="" size="5" class="input-mini" />&nbsp;/
                <select class="input-mini" name="option_data[variants][<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
        ?>
][modifier_type]">
                    <option value="A"><?php 
        echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol'];
        ?>
</option>
                    <option value="P">%</option>
                </select>
            </td>
            <td>
                <input type="text" name="option_data[variants][<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
        ?>
][weight_modifier]" value="" size="5" class="input-mini" />&nbsp;/&nbsp;<select class='input-mini' name="option_data[variants][<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
        ?>
][weight_modifier_type]">
                    <option value="A"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8');
        ?>
</option>
                    <option value="P">%</option>
                </select>
            </td>
            <td class="cm-non-cb<?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
            ?>
 hidden<?php 
        }
        ?>
">
                <?php 
        echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "option_data[variants][" . (string) $_smarty_tpl->tpl_vars['num']->value . "][status]", 'display' => "select", 'meta' => "input-small"), 0);
        ?>
</td>
            <td>
                <span id="on_extra_option_variants_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
        ?>
" alt="<?php 
        echo $_smarty_tpl->__("expand_collapse_list");
        ?>
" title="<?php 
        echo $_smarty_tpl->__("expand_collapse_list");
        ?>
" class="hand cm-combination-options-<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><span class="exicon-expand"></span></span>
                <span id="off_extra_option_variants_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
        ?>
" alt="<?php 
        echo $_smarty_tpl->__("expand_collapse_list");
        ?>
" title="<?php 
        echo $_smarty_tpl->__("expand_collapse_list");
        ?>
" class="hand hidden cm-combination-options-<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><span class="exicon-collapse"></span></span>
                <a id="sw_extra_option_variants_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
        ?>
" class="cm-combination-options-<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo $_smarty_tpl->__("extra");
        ?>
</a>
            </td>
            <td class="right cm-non-cb<?php 
        if ($_smarty_tpl->tpl_vars['option_data']->value['option_type'] == "C") {
            ?>
 hidden<?php 
        }
        ?>
">
                <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "add_variant_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'tag_level' => "2"), 0);
        ?>

            </td>
        </tr>
        <tr id="extra_option_variants_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['num']->value, ENT_QUOTES, 'UTF-8');
        ?>
" class="cm-ex-op hidden">
            <td colspan="7">
                <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "product_options:edit_product_options"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "product_options:edit_product_options"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

                <div class="control-group cm-non-cb">
                    <label class="control-label"><?php 
            echo $_smarty_tpl->__("icon");
            ?>
</label>
                    <div class="controls">
                        <?php 
            echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "variant_image", 'image_key' => $_smarty_tpl->tpl_vars['num']->value, 'hide_titles' => true, 'no_detailed' => true, 'image_object_type' => "variant_image", 'image_type' => "V", 'prefix' => $_smarty_tpl->tpl_vars['id']->value), 0);
            ?>

                    </div>
                </div>
                <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "product_options:edit_product_options"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

            </td>
        </tr>
        </tbody>
        </table>
    </fieldset>
    <!--content_tab_option_variants_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
--></div>
</div>

<div class="buttons-container">
    <?php 
        if ($_smarty_tpl->tpl_vars['id']->value) {
            ?>
        <?php 
            if (!$_smarty_tpl->tpl_vars['allow_save']->value && $_smarty_tpl->tpl_vars['shared_product']->value != "Y") {
                ?>
            <?php 
                $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0);
                ?>
        <?php 
            }
            ?>
    <?php 
        }
        ?>
    <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[product_options.update]", 'cancel_action' => "close", 'extra' => '', 'hide_first_button' => $_smarty_tpl->tpl_vars['hide_first_button']->value, 'save' => $_smarty_tpl->tpl_vars['id']->value), 0);
        ?>

</div>

</form>

<!--content_group_product_option_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
        ?>
--></div>
<?php 
    }
    function content_560ec482eb58c4_85386109($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        if (!is_callable('smarty_function_math')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/prestashop/tools/smarty/plugins/function.math.php';
        }
        ?>

<?php 
        if ('scenes') {
            ?>
<script type="text/javascript" src="<?php 
            echo @constant('_PS_JS_DIR_');
            ?>
jquery/plugins/cluetip/jquery.cluetip.js"></script>
<script type="text/javascript" src="<?php 
            echo @constant('_PS_JS_DIR_');
            ?>
jquery/plugins/jquery.scrollTo.js"></script>
<script type="text/javascript" src="<?php 
            echo @constant('_PS_JS_DIR_');
            ?>
jquery/plugins/jquery.serialScroll.js"></script>
<script type="text/javascript">// <![CDATA[
i18n_scene_close = '<?php 
            echo smartyTranslate(array('s' => 'Close', 'js' => 1), $_smarty_tpl);
            ?>
';
$(function () {
	li_width = parseInt(<?php 
            echo $_smarty_tpl->tpl_vars['thumbSceneImageType']->value['width'];
            ?>
 + 10);
});
//]]></script>
<script type="text/javascript" src="<?php 
            echo $_smarty_tpl->tpl_vars['js_dir']->value;
            ?>
scenes.js"></script>
<div id="scenes">
	<div>
		<?php 
            $_smarty_tpl->tpl_vars['scene'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['scene']->_loop = false;
            $_smarty_tpl->tpl_vars['scene_key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['scenes']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['scene']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['scene']->iteration = 0;
            $_smarty_tpl->tpl_vars['scene']->index = -1;
            foreach ($_from as $_smarty_tpl->tpl_vars['scene']->key => $_smarty_tpl->tpl_vars['scene']->value) {
                $_smarty_tpl->tpl_vars['scene']->_loop = true;
                $_smarty_tpl->tpl_vars['scene_key']->value = $_smarty_tpl->tpl_vars['scene']->key;
                $_smarty_tpl->tpl_vars['scene']->iteration++;
                $_smarty_tpl->tpl_vars['scene']->index++;
                $_smarty_tpl->tpl_vars['scene']->first = $_smarty_tpl->tpl_vars['scene']->index === 0;
                $_smarty_tpl->tpl_vars['scene']->last = $_smarty_tpl->tpl_vars['scene']->iteration === $_smarty_tpl->tpl_vars['scene']->total;
                ?>
		<div class="screen_scene" id="screen_scene_<?php 
                echo $_smarty_tpl->tpl_vars['scene']->value->id;
                ?>
" style="background:transparent url(<?php 
                echo $_smarty_tpl->tpl_vars['base_dir']->value;
                ?>
img/scenes/<?php 
                echo $_smarty_tpl->tpl_vars['scene']->value->id;
                ?>
-scene_default.jpg); height:<?php 
                echo $_smarty_tpl->tpl_vars['largeSceneImageType']->value['height'];
                ?>
px; width:<?php 
                echo $_smarty_tpl->tpl_vars['largeSceneImageType']->value['width'];
                ?>
px; <?php 
                if (!$_smarty_tpl->tpl_vars['scene']->first) {
                    ?>
 display:none;<?php 
                }
                ?>
">
			<?php 
                $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['product']->_loop = false;
                $_smarty_tpl->tpl_vars['product_key'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['scene']->value->products;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
                    $_smarty_tpl->tpl_vars['product']->_loop = true;
                    $_smarty_tpl->tpl_vars['product_key']->value = $_smarty_tpl->tpl_vars['product']->key;
                    ?>
			<?php 
                    $_smarty_tpl->tpl_vars['imageIds'] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['product']->value['id_product'] . "-" . (string) $_smarty_tpl->tpl_vars['product']->value['id_image'], null, 0);
                    ?>
				<a href="<?php 
                    echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['link'], 'htmlall', 'UTF-8');
                    ?>
" accesskey="#scene_products_cluetip_<?php 
                    echo $_smarty_tpl->tpl_vars['scene_key']->value;
                    ?>
_<?php 
                    echo $_smarty_tpl->tpl_vars['product_key']->value;
                    ?>
_<?php 
                    echo $_smarty_tpl->tpl_vars['product']->value['id_product'];
                    ?>
" class="cluetip" style="width:<?php 
                    echo $_smarty_tpl->tpl_vars['product']->value['zone_width'];
                    ?>
px; height:<?php 
                    echo $_smarty_tpl->tpl_vars['product']->value['zone_height'];
                    ?>
px; margin-left:<?php 
                    echo $_smarty_tpl->tpl_vars['product']->value['x_axis'];
                    ?>
px ;margin-top:<?php 
                    echo $_smarty_tpl->tpl_vars['product']->value['y_axis'];
                    ?>
px;">
					<span style="margin-top:<?php 
                    echo smarty_function_math(array('equation' => 'a/2 -10', 'a' => $_smarty_tpl->tpl_vars['product']->value['zone_height']), $_smarty_tpl);
                    ?>
px; margin-left:<?php 
                    echo smarty_function_math(array('equation' => 'a/2 -10', 'a' => $_smarty_tpl->tpl_vars['product']->value['zone_width']), $_smarty_tpl);
                    ?>
px;">&nbsp;</span>
				</a>
				<div id="scene_products_cluetip_<?php 
                    echo $_smarty_tpl->tpl_vars['scene_key']->value;
                    ?>
_<?php 
                    echo $_smarty_tpl->tpl_vars['product_key']->value;
                    ?>
_<?php 
                    echo $_smarty_tpl->tpl_vars['product']->value['id_product'];
                    ?>
" style="display:none;">
					<?php 
                    if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && $_smarty_tpl->tpl_vars['product']->value['details']->show_price) {
                        ?>
					<div class="prices">
						<?php 
                        if (isset($_smarty_tpl->tpl_vars['product']->value['details']->new) && $_smarty_tpl->tpl_vars['product']->value['details']->new) {
                            ?>
<span class="new"><?php 
                            echo smartyTranslate(array('s' => 'New'), $_smarty_tpl);
                            ?>
</span><?php 
                        }
                        ?>
						<p class="price"><?php 
                        if ($_smarty_tpl->tpl_vars['priceDisplay']->value) {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['details']->getPrice(false, $_smarty_tpl->tpl_vars['product']->value['details']->getDefaultAttribute($_smarty_tpl->tpl_vars['product']->value['id_product']))), $_smarty_tpl);
                        } else {
                            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['details']->getPrice(true, $_smarty_tpl->tpl_vars['product']->value['details']->getDefaultAttribute($_smarty_tpl->tpl_vars['product']->value['id_product']))), $_smarty_tpl);
                        }
                        ?>
</p>
							<?php 
                        if ($_smarty_tpl->tpl_vars['product']->value['details']->on_sale) {
                            ?>
							<span class="on_sale"><?php 
                            echo smartyTranslate(array('s' => 'On sale!'), $_smarty_tpl);
                            ?>
</span>
						<?php 
                        } elseif (isset($_smarty_tpl->tpl_vars['product']->value['reduction']) && $_smarty_tpl->tpl_vars['product']->value['reduction']) {
                            ?>
							<span class="discount"><?php 
                            echo smartyTranslate(array('s' => 'Reduced price!'), $_smarty_tpl);
                            ?>
</span>
						<?php 
                        }
                        ?>
					</div>
					<?php 
                    }
                    ?>
					<img src="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['id_product'], $_smarty_tpl->tpl_vars['imageIds']->value, 'medium_default'), ENT_QUOTES, 'UTF-8', true);
                    ?>
" alt="" width="<?php 
                    echo $_smarty_tpl->tpl_vars['mediumSize']->value['width'];
                    ?>
" height="<?php 
                    echo $_smarty_tpl->tpl_vars['mediumSize']->value['height'];
                    ?>
" />
					<p class="title_block"><span class="product_name"><?php 
                    echo $_smarty_tpl->tpl_vars['product']->value['details']->name;
                    ?>
</span></p>
					<p class="description"><?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['product']->value['details']->description_short), 170, '...');
                    ?>
</p>
				</div>
			<?php 
                }
                ?>
		</div>
		<?php 
            }
            ?>
	</div>
	<?php 
            if (isset($_smarty_tpl->tpl_vars['scenes']->value[1])) {
                ?>
	<div class="thumbs_banner" style="height:<?php 
                echo $_smarty_tpl->tpl_vars['thumbSceneImageType']->value['height'];
                ?>
px;">
		<span class="space-keeper">
			<a class="prev" href="#" style="height:<?php 
                echo smarty_function_math(array('equation' => 'a+2', 'a' => $_smarty_tpl->tpl_vars['thumbSceneImageType']->value['height']), $_smarty_tpl);
                ?>
px;" onclick="{next_scene_is_at_right = false; $(this).parent().next().trigger('stop').trigger('prev'); return false;}">&nbsp;</a>
		</span>
		<div id="scenes_list">
			<ul style="width:<?php 
                echo smarty_function_math(array('equation' => '(a*b + (a-1)*10)', 'a' => count($_smarty_tpl->tpl_vars['scenes']->value), 'b' => $_smarty_tpl->tpl_vars['thumbSceneImageType']->value['width']), $_smarty_tpl);
                ?>
px; height:<?php 
                echo $_smarty_tpl->tpl_vars['thumbSceneImageType']->value['height'];
                ?>
px;">
			<?php 
                $_smarty_tpl->tpl_vars['scene'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['scene']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['scenes']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $_smarty_tpl->tpl_vars['scene']->total = $_smarty_tpl->_count($_from);
                $_smarty_tpl->tpl_vars['scene']->iteration = 0;
                $_smarty_tpl->tpl_vars['scene']->index = -1;
                foreach ($_from as $_smarty_tpl->tpl_vars['scene']->key => $_smarty_tpl->tpl_vars['scene']->value) {
                    $_smarty_tpl->tpl_vars['scene']->_loop = true;
                    $_smarty_tpl->tpl_vars['scene']->iteration++;
                    $_smarty_tpl->tpl_vars['scene']->index++;
                    $_smarty_tpl->tpl_vars['scene']->first = $_smarty_tpl->tpl_vars['scene']->index === 0;
                    $_smarty_tpl->tpl_vars['scene']->last = $_smarty_tpl->tpl_vars['scene']->iteration === $_smarty_tpl->tpl_vars['scene']->total;
                    ?>
				<li id="scene_thumb_<?php 
                    echo $_smarty_tpl->tpl_vars['scene']->value->id;
                    ?>
" style="<?php 
                    if (!$_smarty_tpl->tpl_vars['scene']->last) {
                        ?>
 padding-right:10px;<?php 
                    }
                    ?>
">
					<a style="width:<?php 
                    echo $_smarty_tpl->tpl_vars['thumbSceneImageType']->value['width'];
                    ?>
px; height:<?php 
                    echo $_smarty_tpl->tpl_vars['thumbSceneImageType']->value['height'];
                    ?>
px" title="<?php 
                    echo smarty_modifier_escape($_smarty_tpl->tpl_vars['scene']->value->name, 'htmlall', 'UTF-8');
                    ?>
" href="#" rel="<?php 
                    echo $_smarty_tpl->tpl_vars['scene']->value->id;
                    ?>
" onclick="{loadScene(<?php 
                    echo $_smarty_tpl->tpl_vars['scene']->value->id;
                    ?>
);return false;}">
						<img alt="<?php 
                    echo smarty_modifier_escape($_smarty_tpl->tpl_vars['scene']->value->name, 'htmlall', 'UTF-8');
                    ?>
" src="<?php 
                    echo $_smarty_tpl->tpl_vars['content_dir']->value;
                    ?>
img/scenes/thumbs/<?php 
                    echo $_smarty_tpl->tpl_vars['scene']->value->id;
                    ?>
-m_scene_default.jpg" width="<?php 
                    echo $_smarty_tpl->tpl_vars['thumbSceneSize']->value['width'];
                    ?>
" height="<?php 
                    echo $_smarty_tpl->tpl_vars['thumbSceneSize']->value['height'];
                    ?>
" />
					</a>
				</li>
		 	<?php 
                }
                ?>
		 	</ul>
		</div>
		<span class="space-keeper">
			<a class="next" href="#" style="height:<?php 
                echo smarty_function_math(array('equation' => 'a+2', 'a' => $_smarty_tpl->tpl_vars['thumbSceneImageType']->value['height']), $_smarty_tpl);
                ?>
px;" onclick="{next_scene_is_at_right = true; $(this).parent().prev().trigger('stop').trigger('next'); return false;}">&nbsp;</a>
		</span>
	</div>
	<?php 
            }
            ?>
</div>
<?php 
        }
    }
    function content_52a1fabe914570_52430402($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/var/www/vhosts/www.a3workout.com/httpdocs/shop3/tools/smarty/plugins/function.math.php';
        }
        if (!is_callable('smarty_modifier_escape')) {
            include '/var/www/vhosts/www.a3workout.com/httpdocs/shop3/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<!-- MODULE Home Block best sellers -->
<div id="best-sellers_block_center" class="block products_block">
	<p class="title_block"><?php 
        echo smartyTranslate(array('s' => 'Top sellers', 'mod' => 'blockbestsellers'), $_smarty_tpl);
        ?>
</p>
	<?php 
        if (isset($_smarty_tpl->tpl_vars['best_sellers']->value) && $_smarty_tpl->tpl_vars['best_sellers']->value) {
            ?>
		<div class="block_content">
			<?php 
            $_smarty_tpl->tpl_vars['liHeight'] = new Smarty_variable(320, null, 0);
            ?>
			<?php 
            $_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable(4, null, 0);
            ?>
			<?php 
            $_smarty_tpl->tpl_vars['nbLi'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['best_sellers']->value), null, 0);
            ?>
			<?php 
            echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLine", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'nbLines'), $_smarty_tpl);
            ?>

			<?php 
            echo smarty_function_math(array('equation' => "nbLines*liHeight", 'nbLines' => ceil($_smarty_tpl->tpl_vars['nbLines']->value), 'liHeight' => $_smarty_tpl->tpl_vars['liHeight']->value, 'assign' => 'ulHeight'), $_smarty_tpl);
            ?>

			<ul style="height:<?php 
            echo $_smarty_tpl->tpl_vars['ulHeight']->value;
            ?>
px;">
			<?php 
            $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['product']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['best_sellers']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['product']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['product']->iteration = 0;
            $_smarty_tpl->tpl_vars['product']->index = -1;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['total'] = $_smarty_tpl->tpl_vars['product']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['iteration'] = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
                $_smarty_tpl->tpl_vars['product']->_loop = true;
                $_smarty_tpl->tpl_vars['product']->iteration++;
                $_smarty_tpl->tpl_vars['product']->index++;
                $_smarty_tpl->tpl_vars['product']->first = $_smarty_tpl->tpl_vars['product']->index === 0;
                $_smarty_tpl->tpl_vars['product']->last = $_smarty_tpl->tpl_vars['product']->iteration === $_smarty_tpl->tpl_vars['product']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['product']->first;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['iteration']++;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['product']->last;
                ?>
				<li style="border-bottom:0" class="ajax_block_product <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) {
                    ?>
first_item<?php 
                } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) {
                    ?>
last_item<?php 
                } else {
                    ?>
item<?php 
                }
                ?>
 <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 0) {
                    ?>
last_item_of_line<?php 
                } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['iteration'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value == 1) {
                    ?>
clear<?php 
                }
                ?>
 <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['iteration'] > $_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['total'] - $_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['total'] % $_smarty_tpl->tpl_vars['nbItemsPerLine']->value) {
                    ?>
last_line<?php 
                }
                ?>
">
					<p class="s_title_block"><a href="<?php 
                echo $_smarty_tpl->tpl_vars['product']->value['link'];
                ?>
" title="<?php 
                echo smarty_modifier_escape($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['product']->value['name'], 32, '...'), 'htmlall', 'UTF-8');
                ?>
"><?php 
                echo smarty_modifier_escape($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['product']->value['name'], 27, '...'), 'htmlall', 'UTF-8');
                ?>
</a></p>
					<div class="product_desc"><a href="<?php 
                echo $_smarty_tpl->tpl_vars['product']->value['link'];
                ?>
" title="<?php 
                echo smartyTranslate(array('s' => 'More', 'mod' => 'blockbestsellers'), $_smarty_tpl);
                ?>
"><?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['product']->value['description_short']), 130, '...');
                ?>
</a></div>
					<a href="<?php 
                echo $_smarty_tpl->tpl_vars['product']->value['link'];
                ?>
" title="<?php 
                echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['name'], 'html', 'UTF-8');
                ?>
" class="product_image"><img src="<?php 
                echo $_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['id_image'], 'home_default');
                ?>
" height="<?php 
                echo $_smarty_tpl->tpl_vars['homeSize']->value['height'];
                ?>
" width="<?php 
                echo $_smarty_tpl->tpl_vars['homeSize']->value['width'];
                ?>
" alt="<?php 
                echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['name'], 'html', 'UTF-8');
                ?>
" /></a>
					<div>
						<?php 
                if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
                    ?>
<p class="price_container"><span class="price"><?php 
                    echo $_smarty_tpl->tpl_vars['product']->value['price'];
                    ?>
</span></p><?php 
                } else {
                    ?>
<div style="height:21px;"></div><?php 
                }
                ?>
			
						<a class="button" href="<?php 
                echo $_smarty_tpl->tpl_vars['product']->value['link'];
                ?>
" title="<?php 
                echo smartyTranslate(array('s' => 'View', 'mod' => 'blockbestsellers'), $_smarty_tpl);
                ?>
"><?php 
                echo smartyTranslate(array('s' => 'View', 'mod' => 'blockbestsellers'), $_smarty_tpl);
                ?>
</a>
					</div>
				</li>
			<?php 
            }
            ?>
			</ul>
			<p class="clearfix" style="padding: 5px;"><a style="float:right;" href="<?php 
            echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('best-sales');
            ?>
" title="<?php 
            echo smartyTranslate(array('s' => 'All best sellers', 'mod' => 'blockbestsellers'), $_smarty_tpl);
            ?>
" class="button_large"><?php 
            echo smartyTranslate(array('s' => 'All best sellers', 'mod' => 'blockbestsellers'), $_smarty_tpl);
            ?>
</a></p>
		</div>
	<?php 
        } else {
            ?>
		<p><?php 
            echo smartyTranslate(array('s' => 'No best sellers at this time', 'mod' => 'blockbestsellers'), $_smarty_tpl);
            ?>
</p>
	<?php 
        }
        ?>
	<br class="clear"/>
</div>
<!-- /MODULE Home Block best sellers -->
<?php 
    }
<?php 
$this->assign('accesskeycount', 0);
?>
  <?php 
$this->assign('ACCKEY', '');
$_from = $this->_tpl_vars['formData'];
if (!is_array($_from) && !is_object($_from)) {
    settype($_from, 'array');
}
$this->_foreach['colIteration'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['colIteration']['total'] > 0) {
    foreach ($_from as $this->_tpl_vars['col'] => $this->_tpl_vars['colData']) {
        $this->_foreach['colIteration']['iteration']++;
        ?>
    <?php 
        echo smarty_function_math(array('assign' => 'accesskeycount', 'equation' => $this->_tpl_vars['accesskeycount'] . " + 1"), $this);
        ?>

    <?php 
        if ($this->_tpl_vars['accesskeycount'] == 1) {
            ?>
 <?php 
            $this->assign('ACCKEY', $this->_tpl_vars['APP']['LBL_FIRST_INPUT_SEARCH_KEY']);
            ?>
 <?php 
        } else {
            ?>
 <?php 
            $this->assign('ACCKEY', '');
            ?>
 <?php 
        echo is_array($_tmp = smarty_function_math(array('equation' => "min(x,y)-10", 'x' => $this->_tpl_vars['publishedYear'], 'y' => $this->_tpl_vars['currentYear']), $this)) ? $this->_run_mod_handler('assign', true, $_tmp, 'minYear') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'minYear');
        ?>

					<?php 
        echo is_array($_tmp = smarty_function_math(array('equation' => "max(x,y)+2", 'x' => $this->_tpl_vars['publishedYear'], 'y' => $this->_tpl_vars['currentYear']), $this)) ? $this->_run_mod_handler('assign', true, $_tmp, 'maxYear') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'maxYear');
        ?>

				<?php 
    } else {
        ?>
										<?php 
        echo is_array($_tmp = smarty_function_math(array('equation' => "x-10", 'x' => $this->_tpl_vars['currentYear']), $this)) ? $this->_run_mod_handler('assign', true, $_tmp, 'minYear') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'minYear');
        ?>

					<?php 
        echo is_array($_tmp = smarty_function_math(array('equation' => "x+2", 'x' => $this->_tpl_vars['currentYear']), $this)) ? $this->_run_mod_handler('assign', true, $_tmp, 'maxYear') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'maxYear');
        ?>

				<?php 
    }
    ?>
				<?php 
    echo smarty_function_html_select_date(array('prefix' => 'datePublished', 'time' => is_array($_tmp = @$this->_tpl_vars['datePublished']) ? $this->_run_mod_handler('default', true, $_tmp, "---") : smarty_modifier_default($_tmp, "---"), 'all_extra' => "class=\"selectMenu\"", 'start_year' => $this->_tpl_vars['minYear'], 'end_year' => $this->_tpl_vars['maxYear'], 'year_empty' => "-", 'month_empty' => "-", 'day_empty' => "-"), $this);
    ?>

			<?php 
} else {
    ?>
				<?php 
    echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "editor.issues.unpublished"), $this);
    ?>
    function content_566801a0a465f3_87307043($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include 'E:\\Xampp\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\function.math.php';
        }
        if ($_smarty_tpl->tpl_vars['ajax']->value) {
            ?>
	<script type="text/javascript">
		$(function () {
			$(".ajax_table_link").click(function () {
				var link = $(this);
				$.post($(this).attr('href'), function (data) {
					if (data.success == 1) {
						showSuccessMessage(data.text);
						if (link.hasClass('action-disabled')){
							link.removeClass('action-disabled').addClass('action-enabled');
						} else {
							link.removeClass('action-enabled').addClass('action-disabled');
						}
						link.children().each(function () {
							if ($(this).hasClass('hidden')) {
								$(this).removeClass('hidden');
							} else {
								$(this).addClass('hidden');
							}
						});
					} else {
						showErrorMessage(data.text);
					}
				}, 'json');
				return false;
			});
		});
	</script>
<?php 
        }
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['is_order_position']->value) {
            ?>
	<script type="text/javascript" src="../js/jquery/plugins/jquery.tablednd.js"></script>
	<script type="text/javascript">
		var come_from = '<?php 
            echo addslashes($_smarty_tpl->tpl_vars['list_id']->value);
            ?>
';
		var alternate = <?php 
            if ($_smarty_tpl->tpl_vars['order_way']->value == 'DESC') {
                ?>
'1'<?php 
            } else {
                ?>
'0'<?php 
            }
            ?>
;
	</script>
	<script type="text/javascript" src="../js/admin/dnd.js"></script>
<?php 
        }
        if (!$_smarty_tpl->tpl_vars['simple_header']->value) {
            ?>
	<script type="text/javascript">
		$(function() {
			$('table.<?php 
            echo $_smarty_tpl->tpl_vars['list_id']->value;
            ?>
 .filter').keypress(function(e){
				var key = (e.keyCode ? e.keyCode : e.which);
				if (key == 13)
				{
					e.preventDefault();
					formSubmit(e, 'submitFilterButton<?php 
            echo $_smarty_tpl->tpl_vars['list_id']->value;
            ?>
');
				}
			})
			$('#submitFilterButton<?php 
            echo $_smarty_tpl->tpl_vars['list_id']->value;
            ?>
').click(function() {
				$('#submitFilter<?php 
            echo $_smarty_tpl->tpl_vars['list_id']->value;
            ?>
').val(1);
			});

			if ($("table .datepicker").length > 0) {
				$("table .datepicker").datepicker({
					prevText: '',
					nextText: '',
					altFormat: 'yy-mm-dd'
				});
			}
		});
	</script>
<?php 
        }
        ?>

<?php 
        if (!$_smarty_tpl->tpl_vars['simple_header']->value) {
            ?>
	<div class="leadin">
		
	</div>
<?php 
        }
        ?>



	<?php 
        if (isset($_smarty_tpl->tpl_vars['backup_url']->value) && isset($_smarty_tpl->tpl_vars['backup_weight']->value)) {
            ?>
	<div class="panel">
		<h3>
			<i class="icon-download"></i>
			<?php 
            echo smartyTranslate(array('s' => 'Download'), $_smarty_tpl);
            ?>

		</h3>
		<p>
			<a class="btn btn-default" href="<?php 
            echo $_smarty_tpl->tpl_vars['backup_url']->value;
            ?>
">
				<i class="icon-download"></i>
				<?php 
            echo smartyTranslate(array('s' => 'Download the backup file (%s MB)', 'sprintf' => $_smarty_tpl->tpl_vars['backup_weight']->value), $_smarty_tpl);
            ?>

			</a>
		</p>
		<p><?php 
            echo smartyTranslate(array('s' => 'Tip: You can also download this file from your FTP server. Backup files are located in the "/adminXXXX/backups" directory.'), $_smarty_tpl);
            ?>
</p>
	</div>
	<?php 
        }
        ?>

		<div class="alert alert-warning">
			<button data-dismiss="alert" class="close" type="button">×</button>
			<h4><?php 
        echo smartyTranslate(array('s' => 'Disclaimer before creating a new backup'), $_smarty_tpl);
        ?>
</h4>
			<ol>
				<li><?php 
        echo smartyTranslate(array('s' => 'PrestaShop is not responsible for your database, its backups and/or recovery.'), $_smarty_tpl);
        ?>
</li>
				<li><?php 
        echo smartyTranslate(array('s' => 'PrestaShop is open-source software. You are using it at your own risk under the license agreement.'), $_smarty_tpl);
        ?>
</li>
				<li><?php 
        echo smartyTranslate(array('s' => 'You should back up your data on a regular basis (both files and database).'), $_smarty_tpl);
        ?>
</li>
				<li><?php 
        echo smartyTranslate(array('s' => 'This function only backs up your database, not your files.'), $_smarty_tpl);
        ?>
</li>
				<li><?php 
        echo smartyTranslate(array('s' => 'By default, your existing database tables will be dropped during the backup recovery (see "Backup options" below).'), $_smarty_tpl);
        ?>
</li>
				<li><?php 
        echo smartyTranslate(array('s' => 'Always verify the quality and integrity of your backup files!'), $_smarty_tpl);
        ?>
</li>
				<li><?php 
        echo smartyTranslate(array('s' => 'Always verify that your backup files are complete, up-to-date and valid, even if you had a success message appear during the backup process.'), $_smarty_tpl);
        ?>
</li>
				<li><?php 
        echo smartyTranslate(array('s' => 'Always check your data.'), $_smarty_tpl);
        ?>
</li>
				<li><?php 
        echo smartyTranslate(array('s' => 'Never restore a backup on a live site.'), $_smarty_tpl);
        ?>
</li>
			</ol>
			<form action="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;add<?php 
        echo $_smarty_tpl->tpl_vars['table']->value;
        ?>
&amp;token=<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
" method="post" class="form-horizontal">
				<button type="submit" class="btn btn-default">
					<i class="icon-save"></i>
					<?php 
        echo smartyTranslate(array('s' => 'I have read the disclaimer. Please create a new backup.'), $_smarty_tpl);
        ?>

				</button>
			</form>
		</div>

		<?php 
        if ($_smarty_tpl->tpl_vars['host_mode']->value) {
            ?>
		<div class="alert alert-info">
			<h4><?php 
            echo smartyTranslate(array('s' => 'How to restore a database backup'), $_smarty_tpl);
            ?>
</h4>
			<?php 
            echo smartyTranslate(array('s' => 'If you need to restore a database backup, we invite you to subscribe to a [1][2]technical support plan[/2][/1].', 'tags' => array('<strong>', '<a class="_blank" href="http://addons.prestashop.com/support/16298-support-essentiel-plan.html">')), $_smarty_tpl);
            ?>

			<br />
			<?php 
            echo smartyTranslate(array('s' => 'Our team will take care of restoring your database safely.'), $_smarty_tpl);
            ?>

			<br />
			<br />
			<?php 
            echo smartyTranslate(array('s' => 'Why can\'t I restore it by myself?'), $_smarty_tpl);
            ?>

			<br />
			<?php 
            echo smartyTranslate(array('s' => 'Your shop is hosted by PrestaShop. Although you can create backup files here below, there are core settings you cannot access for security reasons, like the database management. Thus, only our team can proceed to a restoration.'), $_smarty_tpl);
            ?>

		</div>
		<?php 
        } else {
            ?>
		<div class="alert alert-info">
			<h4><?php 
            echo smartyTranslate(array('s' => 'How to restore a database backup in 10 easy steps'), $_smarty_tpl);
            ?>
</h4>
			<ol>
				<li><?php 
            echo smartyTranslate(array('s' => 'Set "Enable Shop" to "No" in the "Maintenance" page under the "Preferences" menu.'), $_smarty_tpl);
            ?>
</li>
				<li><?php 
            echo smartyTranslate(array('s' => 'Download the backup from the list below or from your FTP server (in the folder "admin/backups").'), $_smarty_tpl);
            ?>
</li>
				<li><?php 
            echo smartyTranslate(array('s' => 'Check the backup integrity: Look for errors, incomplete file, etc... Be sure to verify all of your data.'), $_smarty_tpl);
            ?>
</li>
				<li><?php 
            echo smartyTranslate(array('s' => 'Please ask your hosting provider for "phpMyAdmin" access to your database.'), $_smarty_tpl);
            ?>
</li>
				<li><?php 
            echo smartyTranslate(array('s' => 'Connect to "phpMyAdmin" and select your current database.'), $_smarty_tpl);
            ?>
</li>
				<li><?php 
            echo smartyTranslate(array('s' => 'Unless you enabled the "Drop existing tables" option, you must delete all tables from your current database.'), $_smarty_tpl);
            ?>
</li>
				<li><?php 
            echo smartyTranslate(array('s' => 'At the top of the screen, please select the "Import" tab'), $_smarty_tpl);
            ?>
</li>
				<li><?php 
            echo smartyTranslate(array('s' => 'Click on the "Browse" button and select the backup file from your hard drive.'), $_smarty_tpl);
            ?>
</li>
				<li><?php 
            echo smartyTranslate(array('s' => 'Check the maximum filesize allowed (e.g. Max: 16MB)'), $_smarty_tpl);
            ?>
<br /><?php 
            echo smartyTranslate(array('s' => 'If your backup file exceeds this limit, contact your hosting provider for assistance. '), $_smarty_tpl);
            ?>
</li>
				<li><?php 
            echo smartyTranslate(array('s' => 'Click on the "Go" button and please wait patiently for the import process to conclude. This may take several minutes.'), $_smarty_tpl);
            ?>
</li>
			</ol>
		</div>
		<?php 
        }
        ?>



<?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => 'displayAdminListBefore'), $_smarty_tpl);
        ?>


<?php 
        if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) {
            ?>
	<?php 
            $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null);
            ob_start();
            ?>
display<?php 
            echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value);
            ?>
ListBefore<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
	<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl);
            ?>

<?php 
        } elseif (isset($_GET['controller'])) {
            ?>
	<?php 
            $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null);
            ob_start();
            ?>
display<?php 
            echo htmlentities(ucfirst($_GET['controller']));
            ?>
ListBefore<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            ?>
	<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl);
            ?>

<?php 
        }
        ?>

<div class="alert alert-warning" id="<?php 
        echo $_smarty_tpl->tpl_vars['list_id']->value;
        ?>
-empty-filters-alert" style="display:none;"><?php 
        echo smartyTranslate(array('s' => 'Please fill at least one field to perform a search in this list.'), $_smarty_tpl);
        ?>
</div>
<?php 
        if (isset($_smarty_tpl->tpl_vars['sql']->value) && $_smarty_tpl->tpl_vars['sql']->value) {
            ?>
	<form id="sql_form_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);
            ?>
" action="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminRequestSql'), ENT_QUOTES, 'UTF-8', true);
            ?>
&amp;addrequest_sql" method="post" class="hide">
		<input type="hidden" id="sql_query_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);
            ?>
" name="sql" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['sql']->value, ENT_QUOTES, 'UTF-8', true);
            ?>
"/>
		<input type="hidden" id="sql_name_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);
            ?>
" name="name" value=""/>
	</form>
<?php 
        }
        ?>


	<form method="post" action="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
" class="form-horizontal clearfix" id="form-<?php 
        echo $_smarty_tpl->tpl_vars['list_id']->value;
        ?>
">


<?php 
        if (!$_smarty_tpl->tpl_vars['simple_header']->value) {
            ?>
	<input type="hidden" id="submitFilter<?php 
            echo $_smarty_tpl->tpl_vars['list_id']->value;
            ?>
" name="submitFilter<?php 
            echo $_smarty_tpl->tpl_vars['list_id']->value;
            ?>
" value="0"/>
	<input type="hidden" name="page" value="<?php 
            echo intval($_smarty_tpl->tpl_vars['page']->value);
            ?>
"/>
	<input type="hidden" name="selected_pagination" value="<?php 
            echo intval($_smarty_tpl->tpl_vars['selected_pagination']->value);
            ?>
"/>
	
	<div class="panel col-lg-12">
		<div class="panel-heading">
			<?php 
            if (isset($_smarty_tpl->tpl_vars['icon']->value)) {
                ?>
<i class="<?php 
                echo $_smarty_tpl->tpl_vars['icon']->value;
                ?>
"></i> <?php 
            }
            if (is_array($_smarty_tpl->tpl_vars['title']->value)) {
                echo end($_smarty_tpl->tpl_vars['title']->value);
            } else {
                echo $_smarty_tpl->tpl_vars['title']->value;
            }
            ?>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value) && count($_smarty_tpl->tpl_vars['toolbar_btn']->value) > 0) {
                ?>
				<span class="badge"><?php 
                echo $_smarty_tpl->tpl_vars['list_total']->value;
                ?>
</span>
				<span class="panel-heading-action">
				<?php 
                $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['btn']->_loop = false;
                $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['toolbar_btn']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
                    $_smarty_tpl->tpl_vars['btn']->_loop = true;
                    $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
                    ?>
					<?php 
                    if ($_smarty_tpl->tpl_vars['k']->value != 'modules-list' && $_smarty_tpl->tpl_vars['k']->value != 'back') {
                        ?>
						<a id="desc-<?php 
                        echo $_smarty_tpl->tpl_vars['table']->value;
                        ?>
-<?php 
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {
                            echo $_smarty_tpl->tpl_vars['btn']->value['imgclass'];
                        } else {
                            echo $_smarty_tpl->tpl_vars['k']->value;
                        }
                        ?>
" class="list-toolbar-btn<?php 
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['target']) && $_smarty_tpl->tpl_vars['btn']->value['target']) {
                            ?>
 _blank<?php 
                        }
                        ?>
"<?php 
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['href'])) {
                            ?>
 href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true);
                            ?>
"<?php 
                        }
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) {
                            ?>
 onclick="<?php 
                            echo $_smarty_tpl->tpl_vars['btn']->value['js'];
                            ?>
"<?php 
                        }
                        ?>
>
							<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="<?php 
                        echo smartyTranslate(array('s' => $_smarty_tpl->tpl_vars['btn']->value['desc']), $_smarty_tpl);
                        ?>
" data-html="true" data-placement="top">
								<i class="process-icon-<?php 
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {
                            echo $_smarty_tpl->tpl_vars['btn']->value['imgclass'];
                        } else {
                            echo $_smarty_tpl->tpl_vars['k']->value;
                        }
                        if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {
                            ?>
 <?php 
                            echo $_smarty_tpl->tpl_vars['btn']->value['class'];
                        }
                        ?>
"></i>
							</span>
						</a>
					<?php 
                    }
                    ?>
				<?php 
                }
                ?>
					<a class="list-toolbar-btn" href="javascript:location.reload();">
						<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="<?php 
                echo smartyTranslate(array('s' => 'Refresh list'), $_smarty_tpl);
                ?>
" data-html="true" data-placement="top">
							<i class="process-icon-refresh"></i>
						</span>
					</a>
				<?php 
                if (isset($_smarty_tpl->tpl_vars['sql']->value) && $_smarty_tpl->tpl_vars['sql']->value) {
                    ?>
					<?php 
                    $_smarty_tpl->tpl_vars['sql_manager'] = new Smarty_variable(Profile::getProfileAccess(Context::getContext()->employee->id_profile, Tab::getIdFromClassName('AdminRequestSql')), null, 0);
                    ?>

					<?php 
                    if ($_smarty_tpl->tpl_vars['sql_manager']->value['view'] == 1) {
                        ?>
						<a class="list-toolbar-btn" href="javascript:void(0);" onclick="$('.leadin').first().append('<div class=\'alert alert-info\'>' + $('#sql_query_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);
                        ?>
').val() + '</div>'); $(this).attr('onclick', '');">
							<span class="label-tooltip" data-toggle="tooltip" data-original-title="<?php 
                        echo smartyTranslate(array('s' => 'Show SQL query'), $_smarty_tpl);
                        ?>
" data-html="true" data-placement="top" >
								<i class="process-icon-terminal"></i>
							</span>
						</a>
						<a class="list-toolbar-btn" href="javascript:void(0);" onclick="$('#sql_name_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);
                        ?>
').val(createSqlQueryName()); $('#sql_query_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);
                        ?>
').val($('#sql_query_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);
                        ?>
').val().replace(/\s+limit\s+[0-9,\s]+$/ig, '').trim()); $('#sql_form_<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);
                        ?>
').submit();">
							<span class="label-tooltip" data-toggle="tooltip" data-original-title="<?php 
                        echo smartyTranslate(array('s' => 'Export to SQL Manager'), $_smarty_tpl);
                        ?>
" data-html="true" data-placement="top" >
								<i class="process-icon-database"></i>
							</span>
						</a>
					<?php 
                    }
                    ?>
				<?php 
                }
                ?>
				</span>
			<?php 
            }
            ?>
		</div>
		<?php 
            if ($_smarty_tpl->tpl_vars['show_toolbar']->value) {
                ?>
			<script type="text/javascript">
				//<![CDATA[
				var submited = false;
				$(function() {
					//get reference on save link
					btn_save = $('i[class~="process-icon-save"]').parent();
					//get reference on form submit button
					btn_submit = $('#<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_form_submit_btn');
					if (btn_save.length > 0 && btn_submit.length > 0) {
						//get reference on save and stay link
						btn_save_and_stay = $('i[class~="process-icon-save-and-stay"]').parent();
						//get reference on current save link label
						lbl_save = $('#desc-<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
-save div');
						//override save link label with submit button value
						if (btn_submit.val().length > 0) {
							lbl_save.html(btn_submit.attr("value"));
						}
						if (btn_save_and_stay.length > 0) {
							//get reference on current save link label
							lbl_save_and_stay = $('#desc-<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
-save-and-stay div');
							//override save and stay link label with submit button value
							if (btn_submit.val().length > 0 && lbl_save_and_stay && !lbl_save_and_stay.hasClass('locked')) {
								lbl_save_and_stay.html(btn_submit.val() + " <?php 
                echo smartyTranslate(array('s' => 'and stay'), $_smarty_tpl);
                ?>
 ");
							}
						}
						//hide standard submit button
						btn_submit.hide();
						//bind enter key press to validate form
						$('#<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_form').keypress(function (e) {
							if (e.which == 13 && e.target.localName != 'textarea') {
								$('#desc-<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
-save').click();
							}
						});
						//submit the form
						
							btn_save.click(function() {
								// Avoid double click
								if (submited) {
									return false;
								}
								submited = true;
								//add hidden input to emulate submit button click when posting the form -> field name posted
								btn_submit.before('<input type="hidden" name="'+btn_submit.attr("name")+'" value="1" />');
								$('#<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_form').submit();
								return false;
							});
							if (btn_save_and_stay) {
								btn_save_and_stay.click(function() {
									//add hidden input to emulate submit button click when posting the form -> field name posted
									btn_submit.before('<input type="hidden" name="'+btn_submit.attr("name")+'AndStay" value="1" />');
									$('#<?php 
                echo $_smarty_tpl->tpl_vars['table']->value;
                ?>
_form').submit();
									return false;
								});
							}
						
					}
				});
				//]]>
			</script>
		<?php 
            }
        } elseif ($_smarty_tpl->tpl_vars['simple_header']->value) {
            ?>
	<div class="panel col-lg-12">
		<?php 
            if (isset($_smarty_tpl->tpl_vars['title']->value)) {
                ?>
<h3><?php 
                if (isset($_smarty_tpl->tpl_vars['icon']->value)) {
                    ?>
<i class="<?php 
                    echo $_smarty_tpl->tpl_vars['icon']->value;
                    ?>
"></i> <?php 
                }
                if (is_array($_smarty_tpl->tpl_vars['title']->value)) {
                    echo end($_smarty_tpl->tpl_vars['title']->value);
                } else {
                    echo $_smarty_tpl->tpl_vars['title']->value;
                }
                ?>
</h3><?php 
            }
        }
        ?>


	<?php 
        if ($_smarty_tpl->tpl_vars['bulk_actions']->value && $_smarty_tpl->tpl_vars['has_bulk_actions']->value) {
            ?>
		<?php 
            $_smarty_tpl->tpl_vars['y'] = new Smarty_variable(2, null, 0);
            ?>
	<?php 
        } else {
            ?>
		<?php 
            $_smarty_tpl->tpl_vars['y'] = new Smarty_variable(1, null, 0);
            ?>
	<?php 
        }
        ?>
	<style>
	@media (max-width: 992px) {
		<?php 
        $_smarty_tpl->tpl_vars['param'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['param']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['fields_display']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['smarty']->value['foreach']['params']['index'] = -1;
        foreach ($_from as $_smarty_tpl->tpl_vars['param']->key => $_smarty_tpl->tpl_vars['param']->value) {
            $_smarty_tpl->tpl_vars['param']->_loop = true;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['params']['index']++;
            ?>
			.table-responsive-row td:nth-of-type(<?php 
            echo smarty_function_math(array('equation' => "x+y", 'x' => $_smarty_tpl->getVariable('smarty')->value['foreach']['params']['index'], 'y' => $_smarty_tpl->tpl_vars['y']->value), $_smarty_tpl);
            ?>
):before {
				content: "<?php 
            echo $_smarty_tpl->tpl_vars['param']->value['title'];
            ?>
";
			}
		<?php 
        }
        ?>
	}
	</style>

	
	<div class="table-responsive-row clearfix<?php 
        if (isset($_smarty_tpl->tpl_vars['use_overflow']->value) && $_smarty_tpl->tpl_vars['use_overflow']->value) {
            ?>
 overflow-y<?php 
        }
        ?>
">
		<table<?php 
        if ($_smarty_tpl->tpl_vars['table_id']->value) {
            ?>
 id="table-<?php 
            echo $_smarty_tpl->tpl_vars['table_id']->value;
            ?>
"<?php 
        }
        ?>
 class="table<?php 
        if ($_smarty_tpl->tpl_vars['table_dnd']->value) {
            ?>
 tableDnD<?php 
        }
        ?>
 <?php 
        echo $_smarty_tpl->tpl_vars['table']->value;
        ?>
" >
			<thead>
				<tr class="nodrag nodrop">
					<?php 
        if ($_smarty_tpl->tpl_vars['bulk_actions']->value && $_smarty_tpl->tpl_vars['has_bulk_actions']->value) {
            ?>
						<th class="center fixed-width-xs"></th>
					<?php 
        }
        ?>
					<?php 
        $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['params']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['fields_display']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
            $_smarty_tpl->tpl_vars['params']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
            ?>
					<th class="<?php 
            if (isset($_smarty_tpl->tpl_vars['params']->value['class'])) {
                echo $_smarty_tpl->tpl_vars['params']->value['class'];
            }
            if (isset($_smarty_tpl->tpl_vars['params']->value['align'])) {
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['params']->value['align'];
            }
            ?>
">
						<span class="title_box<?php 
            if (isset($_smarty_tpl->tpl_vars['order_by']->value) && $_smarty_tpl->tpl_vars['key']->value == $_smarty_tpl->tpl_vars['order_by']->value) {
                ?>
 active<?php 
            }
            ?>
">
							<?php 
            if (isset($_smarty_tpl->tpl_vars['params']->value['hint'])) {
                ?>
								<span class="label-tooltip" data-toggle="tooltip"
									title="
										<?php 
                if (is_array($_smarty_tpl->tpl_vars['params']->value['hint'])) {
                    ?>
											<?php 
                    $_smarty_tpl->tpl_vars['hint'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['hint']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['params']->value['hint'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['hint']->key => $_smarty_tpl->tpl_vars['hint']->value) {
                        $_smarty_tpl->tpl_vars['hint']->_loop = true;
                        ?>
												<?php 
                        if (is_array($_smarty_tpl->tpl_vars['hint']->value)) {
                            ?>
													<?php 
                            echo $_smarty_tpl->tpl_vars['hint']->value['text'];
                            ?>

												<?php 
                        } else {
                            ?>
													<?php 
                            echo $_smarty_tpl->tpl_vars['hint']->value;
                            ?>

												<?php 
                        }
                        ?>
											<?php 
                    }
                    ?>
										<?php 
                } else {
                    ?>
											<?php 
                    echo $_smarty_tpl->tpl_vars['params']->value['hint'];
                    ?>

										<?php 
                }
                ?>
									">
									<?php 
                echo $_smarty_tpl->tpl_vars['params']->value['title'];
                ?>

								</span>
							<?php 
            } else {
                ?>
								<?php 
                echo $_smarty_tpl->tpl_vars['params']->value['title'];
                ?>

							<?php 
            }
            ?>
							<?php 
            if ((!isset($_smarty_tpl->tpl_vars['params']->value['orderby']) || $_smarty_tpl->tpl_vars['params']->value['orderby']) && !$_smarty_tpl->tpl_vars['simple_header']->value && $_smarty_tpl->tpl_vars['show_filters']->value) {
                ?>
								<a <?php 
                if (isset($_smarty_tpl->tpl_vars['order_by']->value) && $_smarty_tpl->tpl_vars['key']->value == $_smarty_tpl->tpl_vars['order_by']->value && $_smarty_tpl->tpl_vars['order_way']->value == 'DESC') {
                    ?>
class="active"<?php 
                }
                ?>
 href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);
                ?>
&amp;<?php 
                echo $_smarty_tpl->tpl_vars['list_id']->value;
                ?>
Orderby=<?php 
                echo urlencode($_smarty_tpl->tpl_vars['key']->value);
                ?>
&amp;<?php 
                echo $_smarty_tpl->tpl_vars['list_id']->value;
                ?>
Orderway=desc&amp;token=<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);
                if (isset($_GET[$_smarty_tpl->tpl_vars['identifier']->value])) {
                    ?>
&amp;<?php 
                    echo $_smarty_tpl->tpl_vars['identifier']->value;
                    ?>
=<?php 
                    echo intval($_GET[$_smarty_tpl->tpl_vars['identifier']->value]);
                }
                ?>
">
									<i class="icon-caret-down"></i>
								</a>
								<a <?php 
                if (isset($_smarty_tpl->tpl_vars['order_by']->value) && $_smarty_tpl->tpl_vars['key']->value == $_smarty_tpl->tpl_vars['order_by']->value && $_smarty_tpl->tpl_vars['order_way']->value == 'ASC') {
                    ?>
class="active"<?php 
                }
                ?>
 href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);
                ?>
&amp;<?php 
                echo $_smarty_tpl->tpl_vars['list_id']->value;
                ?>
Orderby=<?php 
                echo urlencode($_smarty_tpl->tpl_vars['key']->value);
                ?>
&amp;<?php 
                echo $_smarty_tpl->tpl_vars['list_id']->value;
                ?>
Orderway=asc&amp;token=<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);
                if (isset($_GET[$_smarty_tpl->tpl_vars['identifier']->value])) {
                    ?>
&amp;<?php 
                    echo $_smarty_tpl->tpl_vars['identifier']->value;
                    ?>
=<?php 
                    echo intval($_GET[$_smarty_tpl->tpl_vars['identifier']->value]);
                }
                ?>
">
									<i class="icon-caret-up"></i>
								</a>
							<?php 
            }
            ?>
						</span>
					</th>
					<?php 
        }
        ?>
					<?php 
        if ($_smarty_tpl->tpl_vars['shop_link_type']->value) {
            ?>
						<th>
							<span class="title_box">
							<?php 
            if ($_smarty_tpl->tpl_vars['shop_link_type']->value == 'shop') {
                ?>
								<?php 
                echo smartyTranslate(array('s' => 'Shop'), $_smarty_tpl);
                ?>

							<?php 
            } else {
                ?>
								<?php 
                echo smartyTranslate(array('s' => 'Shop group'), $_smarty_tpl);
                ?>

							<?php 
            }
            ?>
							</span>
						</th>
					<?php 
        }
        ?>
					<?php 
        if ($_smarty_tpl->tpl_vars['has_actions']->value || $_smarty_tpl->tpl_vars['show_filters']->value) {
            ?>
						<th><?php 
            if (!$_smarty_tpl->tpl_vars['simple_header']->value) {
            }
            ?>
</th>
					<?php 
        }
        ?>
				</tr>
			<?php 
        if (!$_smarty_tpl->tpl_vars['simple_header']->value && $_smarty_tpl->tpl_vars['show_filters']->value) {
            ?>
				<tr class="nodrag nodrop filter <?php 
            if ($_smarty_tpl->tpl_vars['row_hover']->value) {
                ?>
row_hover<?php 
            }
            ?>
">
					<?php 
            if ($_smarty_tpl->tpl_vars['has_bulk_actions']->value) {
                ?>
						<th class="text-center">
							--
						</th>
					<?php 
            }
            ?>
					
					<?php 
            $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['params']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['fields_display']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
                $_smarty_tpl->tpl_vars['params']->_loop = true;
                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
                ?>
						<th <?php 
                if (isset($_smarty_tpl->tpl_vars['params']->value['align'])) {
                    ?>
 class="<?php 
                    echo $_smarty_tpl->tpl_vars['params']->value['align'];
                    ?>
" <?php 
                }
                ?>
>
							<?php 
                if (isset($_smarty_tpl->tpl_vars['params']->value['search']) && !$_smarty_tpl->tpl_vars['params']->value['search']) {
                    ?>
								--
							<?php 
                } else {
                    ?>
								<?php 
                    if ($_smarty_tpl->tpl_vars['params']->value['type'] == 'bool') {
                        ?>
									<select class="filter fixed-width-sm center" name="<?php 
                        echo $_smarty_tpl->tpl_vars['list_id']->value;
                        ?>
Filter_<?php 
                        echo $_smarty_tpl->tpl_vars['key']->value;
                        ?>
">
										<option value="">-</option>
										<option value="1" <?php 
                        if ($_smarty_tpl->tpl_vars['params']->value['value'] == 1) {
                            ?>
 selected="selected" <?php 
                        }
                        ?>
><?php 
                        echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl);
                        ?>
</option>
										<option value="0" <?php 
                        if ($_smarty_tpl->tpl_vars['params']->value['value'] == 0 && $_smarty_tpl->tpl_vars['params']->value['value'] != '') {
                            ?>
 selected="selected" <?php 
                        }
                        ?>
><?php 
                        echo smartyTranslate(array('s' => 'No'), $_smarty_tpl);
                        ?>
</option>
									</select>
								<?php 
                    } elseif ($_smarty_tpl->tpl_vars['params']->value['type'] == 'date' || $_smarty_tpl->tpl_vars['params']->value['type'] == 'datetime') {
                        ?>
									<div class="date_range row">
 										<div class="input-group fixed-width-md center">
											<input type="text" class="filter datepicker date-input form-control" id="local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_0" name="local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['name_date'];
                        ?>
[0]"  placeholder="<?php 
                        echo smartyTranslate(array('s' => 'From'), $_smarty_tpl);
                        ?>
" />
											<input type="hidden" id="<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_0" name="<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['name_date'];
                        ?>
[0]" value="<?php 
                        if (isset($_smarty_tpl->tpl_vars['params']->value['value'][0])) {
                            echo $_smarty_tpl->tpl_vars['params']->value['value'][0];
                        }
                        ?>
">
											<span class="input-group-addon">
												<i class="icon-calendar"></i>
											</span>
										</div>
 										<div class="input-group fixed-width-md center">
											<input type="text" class="filter datepicker date-input form-control" id="local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_1" name="local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['name_date'];
                        ?>
[1]"  placeholder="<?php 
                        echo smartyTranslate(array('s' => 'To'), $_smarty_tpl);
                        ?>
" />
											<input type="hidden" id="<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_1" name="<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['name_date'];
                        ?>
[1]" value="<?php 
                        if (isset($_smarty_tpl->tpl_vars['params']->value['value'][1])) {
                            echo $_smarty_tpl->tpl_vars['params']->value['value'][1];
                        }
                        ?>
">
											<span class="input-group-addon">
												<i class="icon-calendar"></i>
											</span>
										</div>
										<script>
											$(function() {
												var dateStart = parseDate($("#<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_0").val());
												var dateEnd = parseDate($("#<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_1").val());
												$("#local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_0").datepicker("option", "altField", "#<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_0");
												$("#local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_1").datepicker("option", "altField", "#<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_1");
												if (dateStart !== null){
													$("#local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_0").datepicker("setDate", dateStart);
												}
												if (dateEnd !== null){
													$("#local_<?php 
                        echo $_smarty_tpl->tpl_vars['params']->value['id_date'];
                        ?>
_1").datepicker("setDate", dateEnd);
												}
											});
										</script>
									</div>
								<?php 
                    } elseif ($_smarty_tpl->tpl_vars['params']->value['type'] == 'select') {
                        ?>
									<?php 
                        if (isset($_smarty_tpl->tpl_vars['params']->value['filter_key'])) {
                            ?>
										<select class="filter center" onchange="$('#submitFilterButton<?php 
                            echo $_smarty_tpl->tpl_vars['list_id']->value;
                            ?>
').focus();$('#submitFilterButton<?php 
                            echo $_smarty_tpl->tpl_vars['list_id']->value;
                            ?>
').click();" name="<?php 
                            echo $_smarty_tpl->tpl_vars['list_id']->value;
                            ?>
Filter_<?php 
                            echo $_smarty_tpl->tpl_vars['params']->value['filter_key'];
                            ?>
" <?php 
                            if (isset($_smarty_tpl->tpl_vars['params']->value['width'])) {
                                ?>
 style="width:<?php 
                                echo $_smarty_tpl->tpl_vars['params']->value['width'];
                                ?>
px"<?php 
                            }
                            ?>
>
											<option value="" <?php 
                            if ($_smarty_tpl->tpl_vars['params']->value['value'] == '') {
                                ?>
 selected="selected" <?php 
                            }
                            ?>
>-</option>
											<?php 
                            if (isset($_smarty_tpl->tpl_vars['params']->value['list']) && is_array($_smarty_tpl->tpl_vars['params']->value['list'])) {
                                ?>
												<?php 
                                $_smarty_tpl->tpl_vars['option_display'] = new Smarty_Variable();
                                $_smarty_tpl->tpl_vars['option_display']->_loop = false;
                                $_smarty_tpl->tpl_vars['option_value'] = new Smarty_Variable();
                                $_from = $_smarty_tpl->tpl_vars['params']->value['list'];
                                if (!is_array($_from) && !is_object($_from)) {
                                    settype($_from, 'array');
                                }
                                foreach ($_from as $_smarty_tpl->tpl_vars['option_display']->key => $_smarty_tpl->tpl_vars['option_display']->value) {
                                    $_smarty_tpl->tpl_vars['option_display']->_loop = true;
                                    $_smarty_tpl->tpl_vars['option_value']->value = $_smarty_tpl->tpl_vars['option_display']->key;
                                    ?>
													<option value="<?php 
                                    echo $_smarty_tpl->tpl_vars['option_value']->value;
                                    ?>
" <?php 
                                    if ((string) $_smarty_tpl->tpl_vars['option_display']->value === (string) $_smarty_tpl->tpl_vars['params']->value['value'] || (string) $_smarty_tpl->tpl_vars['option_value']->value === (string) $_smarty_tpl->tpl_vars['params']->value['value']) {
                                        ?>
 selected="selected"<?php 
                                    }
                                    ?>
><?php 
                                    echo $_smarty_tpl->tpl_vars['option_display']->value;
                                    ?>
</option>
												<?php 
                                }
                                ?>
											<?php 
                            }
                            ?>
										</select>
									<?php 
                        }
                        ?>
								<?php 
                    } else {
                        ?>
									<input type="text" class="filter" name="<?php 
                        echo $_smarty_tpl->tpl_vars['list_id']->value;
                        ?>
Filter_<?php 
                        if (isset($_smarty_tpl->tpl_vars['params']->value['filter_key'])) {
                            echo $_smarty_tpl->tpl_vars['params']->value['filter_key'];
                        } else {
                            echo $_smarty_tpl->tpl_vars['key']->value;
                        }
                        ?>
" value="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['params']->value['value'], ENT_QUOTES, 'UTF-8', true);
                        ?>
" <?php 
                        if (isset($_smarty_tpl->tpl_vars['params']->value['width']) && $_smarty_tpl->tpl_vars['params']->value['width'] != 'auto') {
                            ?>
 style="width:<?php 
                            echo $_smarty_tpl->tpl_vars['params']->value['width'];
                            ?>
px"<?php 
                        }
                        ?>
 />
								<?php 
                    }
                    ?>
							<?php 
                }
                ?>
						</th>
					<?php 
            }
            ?>

					<?php 
            if ($_smarty_tpl->tpl_vars['shop_link_type']->value) {
                ?>
						<th>--</th>
					<?php 
            }
            ?>
					<?php 
            if ($_smarty_tpl->tpl_vars['has_actions']->value || $_smarty_tpl->tpl_vars['show_filters']->value) {
                ?>
						<th class="actions">
							<?php 
                if ($_smarty_tpl->tpl_vars['show_filters']->value) {
                    ?>
							<span class="pull-right">
								
								<button type="submit" id="submitFilterButton<?php 
                    echo $_smarty_tpl->tpl_vars['list_id']->value;
                    ?>
" name="submitFilter" class="btn btn-default" data-list-id="<?php 
                    echo $_smarty_tpl->tpl_vars['list_id']->value;
                    ?>
">
									<i class="icon-search"></i> <?php 
                    echo smartyTranslate(array('s' => 'Search'), $_smarty_tpl);
                    ?>

								</button>
								<?php 
                    if ($_smarty_tpl->tpl_vars['filters_has_value']->value) {
                        ?>
									<button type="submit" name="submitReset<?php 
                        echo $_smarty_tpl->tpl_vars['list_id']->value;
                        ?>
" class="btn btn-warning">
										<i class="icon-eraser"></i> <?php 
                        echo smartyTranslate(array('s' => 'Reset'), $_smarty_tpl);
                        ?>

									</button>
								<?php 
                    }
                    ?>
							</span>
							<?php 
                }
                ?>
						</th>
					<?php 
            }
            ?>
				</tr>
			<?php 
        }
        ?>
			</thead>
<?php 
    }
?>
' size='30' 
    maxlength='255' 
    value='<?php 
echo $this->_tpl_vars['value'];
?>
' title=''      accesskey='9'  >
   	   	</td>
    
      
	<?php 
echo smarty_function_counter(array('assign' => 'index'), $this);
?>

	<?php 
echo smarty_function_math(array('equation' => "left % right", 'left' => $this->_tpl_vars['index'], 'right' => $this->_tpl_vars['basicMaxColumns'], 'assign' => 'modVal'), $this);
?>

	<?php 
if ($this->_tpl_vars['index'] % $this->_tpl_vars['basicMaxColumns'] == 1 && $this->_tpl_vars['index'] != 1) {
    ?>
		</tr><tr>
	<?php 
}
?>
	
	<td scope="row" nowrap="nowrap" width='1%' >
		
		<label for='current_user_only_basic' ><?php 
echo smarty_function_sugar_translate(array('label' => 'LBL_CURRENT_USER_FILTER', 'module' => 'AOS_Quotes'), $this);
?>
    ?>
" class="endseparator">&nbsp;</td>
	</tr>
<?php 
} else {
    ?>
	<tr>
		<td colspan="<?php 
    echo smarty_function_math(array('equation' => "floor(numCols / 2)", 'numCols' => $this->_tpl_vars['numCols']), $this);
    ?>
" align="left"><?php 
    echo $this->_plugins['function']['page_info'][0][0]->smartyPageInfo(array('iterator' => $this->_tpl_vars['users']), $this);
    ?>
</td>
		<td colspan="<?php 
    echo smarty_function_math(array('equation' => "ceil(numCols / 2)", 'numCols' => $this->_tpl_vars['numCols']), $this);
    ?>
" align="right"><?php 
    echo $this->_plugins['function']['page_links'][0][0]->smartyPageLinks(array('anchor' => 'users', 'name' => 'users', 'iterator' => $this->_tpl_vars['users'], 'searchInitial' => $this->_tpl_vars['searchInitial'], 'searchField' => $this->_tpl_vars['searchField'], 'searchMatch' => $this->_tpl_vars['searchMatch'], 'search' => $this->_tpl_vars['search'], 'dateFromDay' => $this->_tpl_vars['dateFromDay'], 'dateFromYear' => $this->_tpl_vars['dateFromYear'], 'dateFromMonth' => $this->_tpl_vars['dateFromMonth'], 'dateToDay' => $this->_tpl_vars['dateToDay'], 'dateToYear' => $this->_tpl_vars['dateToYear'], 'dateToMonth' => $this->_tpl_vars['dateToMonth'], 'roleSymbolic' => $this->_tpl_vars['roleSymbolic'], 'oldUserIds' => $this->_tpl_vars['oldUserIds'], 'sort' => $this->_tpl_vars['sort'], 'sortDirection' => $this->_tpl_vars['sortDirection']), $this);
    ?>
</td>
	</tr>
<?php 
}
?>
</table>
<?php 
if (empty($this->_tpl_vars['oldUserIds'])) {
    ?>
	<input type="submit" class="button defaultButton" value="<?php 
    echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "manager.people.mergeUsers"), $this);