function content_5461053418e676_89430547($_smarty_tpl) { if (!is_callable('smarty_modifier_escape')) { include '/srv/www/helveti/tools/smarty/plugins/modifier.escape.php'; } if (!empty($_smarty_tpl->tpl_vars['mproducts']->value)) { $_smarty_tpl->tpl_vars['itemsperpage'] = new Smarty_variable($_smarty_tpl->tpl_vars['datas']->value['configs']['itemspage'], null, 0); $_smarty_tpl->tpl_vars['columnspage'] = new Smarty_variable($_smarty_tpl->tpl_vars['datas']->value['configs']['columns'], null, 0); ?> <div class="carousel slide" id="<?php echo $_smarty_tpl->tpl_vars['tabname']->value; ?> -<?php echo $_smarty_tpl->tpl_vars['datas']->value['id_leomanagewidgets']; ?> -carousel"> <?php if (count($_smarty_tpl->tpl_vars['mproducts']->value) > 1) { ?> <a class="carousel-control left" href="#<?php echo $_smarty_tpl->tpl_vars['tabname']->value; ?> -<?php echo $_smarty_tpl->tpl_vars['datas']->value['id_leomanagewidgets']; ?> -carousel" data-slide="prev">‹</a> <a class="carousel-control right" href="#<?php echo $_smarty_tpl->tpl_vars['tabname']->value; ?> -<?php echo $_smarty_tpl->tpl_vars['datas']->value['id_leomanagewidgets']; ?> -carousel" data-slide="next">›</a> <?php } ?> <div class="carousel-inner"> <?php $_smarty_tpl->tpl_vars['products'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['products']->_loop = false; $_from = $_smarty_tpl->tpl_vars['mproducts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['products']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['products']->key => $_smarty_tpl->tpl_vars['products']->value) { $_smarty_tpl->tpl_vars['products']->_loop = true; $_smarty_tpl->tpl_vars['products']->index++; $_smarty_tpl->tpl_vars['products']->first = $_smarty_tpl->tpl_vars['products']->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['mypLoop']['first'] = $_smarty_tpl->tpl_vars['products']->first; ?> <div class="item <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['mypLoop']['first']) { ?> active<?php } ?> "> <?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; 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']['products']['last'] = $_smarty_tpl->tpl_vars['product']->last; ?> <?php if ($_smarty_tpl->tpl_vars['product']->iteration % $_smarty_tpl->tpl_vars['columnspage']->value == 1 && $_smarty_tpl->tpl_vars['columnspage']->value > 1) { ?> <div class="row products-item "> <?php } ?> <?php $_smarty_tpl->tpl_vars['proReduce'] = new Smarty_variable('', null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction']) { ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction_type'] == 'percentage') { ?> <?php $_smarty_tpl->tpl_vars['proReduce'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction'] * 100, null, 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction_type'] == 'amount') { ?> <?php $_smarty_tpl->tpl_vars['proReduce'] = new Smarty_variable(ceil($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction'] / $_smarty_tpl->tpl_vars['product']->value['price'] * 100), null, 0); ?> <?php } ?> <?php } ?> <div class="<?php if ($_smarty_tpl->tpl_vars['datas']->value['ncolumn'] == 5) { ?> leo-md-5<?php } else { ?> col-sm-<?php echo $_smarty_tpl->tpl_vars['datas']->value['scolumn']; } ?> col-sm-4 col-xs-12 product_block ajax_block_product"> <div class="product-container clearfix"> <div class="center_block"> <a href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['link'], 'htmlall', 'UTF-8'); ?> " class="product_image" title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['name'], 'htmlall', 'UTF-8'); ?> "> <img class="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 echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['legend'], 'htmlall', 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['proReduce']->value) { ?> <span class="hot"><?php echo smartyTranslate(array('s' => 'Sleva'), $_smarty_tpl); ?> -<?php echo $_smarty_tpl->tpl_vars['proReduce']->value; ?> %</span><?php } ?> <?php ob_start(); echo Product::skladovost($_smarty_tpl->tpl_vars['product']->value['id_product'], "skladem"); $_tmp1 = ob_get_clean(); if ($_tmp1) { ?> <span class="skladem"><?php echo smartyTranslate(array('s' => 'Skladem'), $_smarty_tpl); ?> </span><?php } ?> </a> </div> <div class="right_block"> <?php if (Product::jeNovinka($_smarty_tpl->tpl_vars['product']->value['id_product'])) { ?> <span class="discount"><?php echo smartyTranslate(array('s' => 'New', 'mod' => 'leomanagewidgets'), $_smarty_tpl); ?> </span><?php } ?> <h4 class="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 href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['link'], 'htmlall', 'UTF-8'); ?> " title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['name'], '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'], 35, '...'), 'htmlall', 'UTF-8'); ?> </a></h4> <a class="button ajax_add_to_cart_button exclusive pull-left" href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['link'], 'htmlall', 'UTF-8'); ?> " title="<?php echo smartyTranslate(array('s' => 'Detail'), $_smarty_tpl); ?> "><span><?php echo smartyTranslate(array('s' => 'Detail'), $_smarty_tpl); ?> </span></a> <?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 price_container"> <?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 class="price <?php if ($_smarty_tpl->tpl_vars['product']->value['reduction']) { ?> zlevneno<?php } ?> "> <?php if (!$_smarty_tpl->tpl_vars['priceDisplay']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['reduction']) { ?> <span class="cena_pred" 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['price_without_reduction']), $_smarty_tpl); ?> </span><?php } ?> <?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); ?> <?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); ?> <?php } ?> </span> <?php } ?> </div> <?php } ?> <?php $_smarty_tpl->tpl_vars['pocet_hvezd'] = new Smarty_variable(Product::pocetHeurekaHvezd($_smarty_tpl->tpl_vars['product']->value['id_product'], 'hvezdy'), null, 0); ?> <div class="rating_box heureka-ratign"> <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['i']->step = 1; $_smarty_tpl->tpl_vars['i']->total = (int) ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 5 + 1 - 1 : 1 - 5 + 1) / abs($_smarty_tpl->tpl_vars['i']->step)); if ($_smarty_tpl->tpl_vars['i']->total > 0) { for ($_smarty_tpl->tpl_vars['i']->value = 1, $_smarty_tpl->tpl_vars['i']->iteration = 1; $_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total; $_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++) { $_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1; $_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total; ?> <i class="fa fa-star<?php if ($_smarty_tpl->tpl_vars['i']->value > $_smarty_tpl->tpl_vars['pocet_hvezd']->value) { ?> -o<?php } ?> "></i> <?php } } ?> </div> <a href="#" id="wishlist_button<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> " class="btn-tooltip fa fa-heart" onclick="LeoWishlistCart('wishlist_block_list', 'add', '<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> ', $('#idCombination').val(), 1 ); return false;" title="<?php echo smartyTranslate(array('s' => 'Add to wishlist', 'mod' => 'leomanagewidgets'), $_smarty_tpl); ?> "></a> </div> </div> </div> <?php if (($_smarty_tpl->tpl_vars['product']->iteration % $_smarty_tpl->tpl_vars['columnspage']->value == 0 || $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['last']) && $_smarty_tpl->tpl_vars['columnspage']->value > 1) { ?> </div> <?php } ?> <?php } ?> </div> <?php } ?> </div> </div> <?php } }
function content_54610731d0b074_07608695($_smarty_tpl) { if (!is_callable('smarty_modifier_escape')) { include '/srv/www/helveti/tools/smarty/plugins/modifier.escape.php'; } ?> <?php $_smarty_tpl->tpl_vars['nox_pruchod'] = new Smarty_variable(0, null, 0); $_smarty_tpl->tpl_vars['nox_zobrazeno_dlazdic'] = new Smarty_variable(0, null, 0); if (isset($_smarty_tpl->tpl_vars['products']->value)) { ?> <!-- Products list --> <div id="product_list" class="products_block block <?php if (Configuration::get('leoview') == 0) { ?> view-list<?php } ?> "> <div class="products-item clearfix"> <?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; 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']['products']['last'] = $_smarty_tpl->tpl_vars['product']->last; ?> <?php if (($_smarty_tpl->tpl_vars['product']->iteration + $_smarty_tpl->tpl_vars['nox_zobrazeno_dlazdic']->value) % Configuration::get('productlistcols') == 1 || Configuration::get('productlistcols') == 1) { ?> <?php } ?> <?php $_smarty_tpl->tpl_vars['proReduce'] = new Smarty_variable('', null, 0); ?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction'])) { ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction_type'] == 'percentage') { ?> <?php $_smarty_tpl->tpl_vars['proReduce'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction'] * 100, null, 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction_type'] == 'amount') { ?> <?php $_smarty_tpl->tpl_vars['proReduce'] = new Smarty_variable(ceil($_smarty_tpl->tpl_vars['product']->value['specific_prices']['reduction'] / $_smarty_tpl->tpl_vars['product']->value['price'] * 100), null, 0); ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->tpl_vars['nox_pruchod'] = new Smarty_variable($_smarty_tpl->tpl_vars['nox_pruchod']->value + 1, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['nox_pruchod']->value % 30 == 6) { ?> <div class="col-xs-12 col-sm-<?php echo 12 / Configuration::get('productlistcols'); ?> product_block ajax_block_product block-vyhoda-productlist-container"> <div class="product-container clearfix"> <div class="center_block"> <div class="block-vyhoda-productlist"> <?php $_smarty_tpl->tpl_vars['zobrazena_dlazdice'] = new Smarty_variable(-1, null, 0); ?> <?php $_smarty_tpl->tpl_vars['nova_zobrazena_dlazdice'] = new Smarty_variable(rand(1, 10), null, 0); ?> <?php while ($_smarty_tpl->tpl_vars['nova_zobrazena_dlazdice']->value == $_smarty_tpl->tpl_vars['zobrazena_dlazdice']->value) { ?> <?php $_smarty_tpl->tpl_vars['nova_zobrazena_dlazdice'] = new Smarty_variable(rand(1, 10), null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars['zobrazena_dlazdice'] = new Smarty_variable($_smarty_tpl->tpl_vars['nova_zobrazena_dlazdice']->value, null, 0); ?> <p class="hidden-xs"><a title="" href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getCMSLink('9'); ?> "><img class="img-responsive" style="border-radius: 5px;" src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> helveti/banner2/<?php echo $_smarty_tpl->tpl_vars['zobrazena_dlazdice']->value; ?> .jpg" alt=""></a></p> </div> </div> </div> </div> <?php $_smarty_tpl->tpl_vars['nox_zobrazeno_dlazdic'] = new Smarty_variable($_smarty_tpl->tpl_vars['nox_zobrazeno_dlazdic']->value + 1, null, 0); ?> <?php } ?> <div class="col-xs-12 col-sm-<?php echo 12 / Configuration::get('productlistcols'); ?> product_block ajax_block_product "> <div class="product-container clearfix"> <div class="center_block"> <a href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['link'], 'htmlall', 'UTF-8'); ?> " class="product_image" title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['name'], 'htmlall', 'UTF-8'); ?> "> <img class="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 smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['legend'], 'htmlall', 'UTF-8'); } else { echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['name'], 'htmlall', 'UTF-8'); } ?> " title="<?php if (!empty($_smarty_tpl->tpl_vars['product']->value['legend'])) { echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['legend'], 'htmlall', 'UTF-8'); } else { echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['name'], 'htmlall', 'UTF-8'); } ?> " /> <?php if ($_smarty_tpl->tpl_vars['nox_pruchod']->value < 11 && Product::getTop200st($_smarty_tpl->tpl_vars['product']->value['id_product'])) { ?> <span class="top">TOP <?php echo $_smarty_tpl->tpl_vars['nox_pruchod']->value; ?> </span><?php } ?> <?php if ($_smarty_tpl->tpl_vars['proReduce']->value) { ?> <span class="hot"><?php echo smartyTranslate(array('s' => 'Sleva'), $_smarty_tpl); ?> -<?php echo $_smarty_tpl->tpl_vars['proReduce']->value; ?> %</span><?php } ?> <?php ob_start(); echo Product::skladovost($_smarty_tpl->tpl_vars['product']->value['id_product'], "skladem"); $_tmp1 = ob_get_clean(); if ($_tmp1) { ?> <span class="skladem"><?php echo smartyTranslate(array('s' => 'Skladem'), $_smarty_tpl); ?> </span><?php } ?> </a> </div> <div class="right_block"> <?php if (Product::jeNovinka($_smarty_tpl->tpl_vars['product']->value['id_product'])) { ?> <span class="discount"><?php echo smartyTranslate(array('s' => 'New'), $_smarty_tpl); ?> </span><?php } ?> <h4 class="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 href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['link'], 'htmlall', 'UTF-8'); ?> " title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['name'], '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'], 35, '...'), 'htmlall', 'UTF-8'); ?> </a> </h4> <a class="button ajax_add_to_cart_button exclusive pull-left" href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['link'], 'htmlall', 'UTF-8'); ?> " title="<?php echo smartyTranslate(array('s' => 'Detail'), $_smarty_tpl); ?> "><span><?php echo smartyTranslate(array('s' => 'Detail'), $_smarty_tpl); ?> </span></a> <?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 price_container"> <?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 class="price <?php if ($_smarty_tpl->tpl_vars['product']->value['reduction']) { ?> zlevneno<?php } ?> "> <?php if (!$_smarty_tpl->tpl_vars['priceDisplay']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['reduction']) { ?> <span class="cena_pred" 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['price_without_reduction']), $_smarty_tpl); ?> </span><?php } ?> <?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); ?> <?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); ?> <?php } ?> </span><br /><?php } ?> <?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 class="availability"><?php if ($_smarty_tpl->tpl_vars['product']->value['allow_oosp'] || $_smarty_tpl->tpl_vars['product']->value['quantity'] > 0) { echo smartyTranslate(array('s' => 'Available'), $_smarty_tpl); } elseif (isset($_smarty_tpl->tpl_vars['product']->value['quantity_all_versions']) && $_smarty_tpl->tpl_vars['product']->value['quantity_all_versions'] > 0) { echo smartyTranslate(array('s' => 'Product available with different options'), $_smarty_tpl); } else { ?> <span class="warning_inline"><?php echo smartyTranslate(array('s' => 'Out of stock'), $_smarty_tpl); ?> </span><?php } ?> </span><?php } ?> </div> <?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 $_smarty_tpl->tpl_vars['pocet_hvezd'] = new Smarty_variable(Product::pocetHeurekaHvezd($_smarty_tpl->tpl_vars['product']->value['id_product'], 'hvezdy'), null, 0); ?> <div class="rating_box heureka-ratign"> <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['i']->step = 1; $_smarty_tpl->tpl_vars['i']->total = (int) ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 5 + 1 - 1 : 1 - 5 + 1) / abs($_smarty_tpl->tpl_vars['i']->step)); if ($_smarty_tpl->tpl_vars['i']->total > 0) { for ($_smarty_tpl->tpl_vars['i']->value = 1, $_smarty_tpl->tpl_vars['i']->iteration = 1; $_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total; $_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++) { $_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1; $_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total; ?> <i class="fa fa-star<?php if ($_smarty_tpl->tpl_vars['i']->value > $_smarty_tpl->tpl_vars['pocet_hvezd']->value) { ?> -o<?php } ?> "></i> <?php } } ?> </div> <a href="#" id="wishlist_button<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> " class="btn-tooltip fa fa-heart" onclick="LeoWishlistCart('wishlist_block_list', 'add', '<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> ', $('#idCombination').val(), 1 ); return false;" title="<?php echo smartyTranslate(array('s' => 'Add to wishlist'), $_smarty_tpl); ?> "></a> <?php if (isset($_smarty_tpl->tpl_vars['comparator_max_item']->value) && $_smarty_tpl->tpl_vars['comparator_max_item']->value) { ?> <p class="compare"> <input type="checkbox" class="comparator" id="comparator_item_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> " value="comparator_item_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> " <?php if (isset($_smarty_tpl->tpl_vars['compareProducts']->value) && in_array($_smarty_tpl->tpl_vars['product']->value['id_product'], $_smarty_tpl->tpl_vars['compareProducts']->value)) { ?> checked="checked"<?php } ?> autocomplete="off"/> <label for="comparator_item_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> "><?php echo smartyTranslate(array('s' => 'Porovnat'), $_smarty_tpl); ?> </label> <div class="spinner-product-list spinner loading-comparator_item_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product']; ?> " style="display:none;"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div> </p> <?php } ?> </div> </div> </div> <?php if (($_smarty_tpl->tpl_vars['product']->iteration + $_smarty_tpl->tpl_vars['nox_zobrazeno_dlazdic']->value) % Configuration::get('productlistcols') == 0 || $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['last']) { ?> <?php } ?> <?php } ?> </div> </div> <!-- /Products list --> <?php } ?> <script> // přilepení odesílacího tlačítka filtrace při scrollu $(window).scroll(function () { slajdujTlacitko(); }); function slajdujTlacitko(){ var position = $('#PM_ASSubmitSearch_obal').offset().top + 72; var viewportHeight = $(window).height(); var windowPosition = $(window).scrollTop(); if ((windowPosition + viewportHeight) < position) { $('#PM_ASSubmitSearch_obal').addClass('fixed'); } else { $('#PM_ASSubmitSearch_obal').removeClass('fixed'); } } </script> <?php }
function content_546105797ea627_61357006($_smarty_tpl) { if (!is_callable('smarty_modifier_escape')) { include '/srv/www/helveti/tools/smarty/plugins/modifier.escape.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/srv/www/helveti/tools/smarty/plugins/modifier.date_format.php'; } if (!is_callable('smarty_function_counter')) { include '/srv/www/helveti/tools/smarty/plugins/function.counter.php'; } ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <?php if (count($_smarty_tpl->tpl_vars['errors']->value) == 0) { ?> <script type="text/javascript"> // <![CDATA[ // PrestaShop internal settings var currencySign = '<?php echo html_entity_decode($_smarty_tpl->tpl_vars['currencySign']->value, 2, "UTF-8"); ?> '; var currencyRate = '<?php echo floatval($_smarty_tpl->tpl_vars['currencyRate']->value); ?> '; var currencyFormat = '<?php echo intval($_smarty_tpl->tpl_vars['currencyFormat']->value); ?> '; var currencyBlank = '<?php echo intval($_smarty_tpl->tpl_vars['currencyBlank']->value); ?> '; var taxRate = <?php echo floatval($_smarty_tpl->tpl_vars['tax_rate']->value); ?> ; var jqZoomEnabled = <?php if ($_smarty_tpl->tpl_vars['jqZoomEnabled']->value) { ?> true<?php } else { ?> false<?php } ?> ; //JS Hook var oosHookJsCodeFunctions = new Array(); // Parameters var id_product = '<?php echo intval($_smarty_tpl->tpl_vars['product']->value->id); ?> '; var productHasAttributes = <?php if (isset($_smarty_tpl->tpl_vars['groups']->value)) { ?> true<?php } else { ?> false<?php } ?> ; var quantitiesDisplayAllowed = <?php if ($_smarty_tpl->tpl_vars['display_qties']->value == 1) { ?> true<?php } else { ?> false<?php } ?> ; var quantityAvailable = <?php if ($_smarty_tpl->tpl_vars['display_qties']->value == 1 && $_smarty_tpl->tpl_vars['product']->value->quantity) { echo $_smarty_tpl->tpl_vars['product']->value->quantity; } else { ?> 0<?php } ?> ; var allowBuyWhenOutOfStock = <?php if ($_smarty_tpl->tpl_vars['allow_oosp']->value == 1) { ?> true<?php } else { ?> false<?php } ?> ; var availableNowValue = '<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value->available_now, 'quotes', 'UTF-8'); ?> '; var availableLaterValue = '<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value->available_later, 'quotes', 'UTF-8'); ?> '; var productPriceTaxExcluded = <?php echo ($tmp = @$_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(true)) === null || $tmp === '' ? 'null' : $tmp; ?> - <?php echo $_smarty_tpl->tpl_vars['product']->value->ecotax; ?> ; var productBasePriceTaxExcluded = <?php echo $_smarty_tpl->tpl_vars['product']->value->base_price; ?> - <?php echo $_smarty_tpl->tpl_vars['product']->value->ecotax; ?> ; var reduction_percent = <?php 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->tpl_vars['product']->value->specificPrice['reduction'] * 100; } else { ?> 0<?php } ?> ; var reduction_price = <?php 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 floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']); } else { ?> 0<?php } ?> ; var specific_price = <?php if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['price']) { echo $_smarty_tpl->tpl_vars['product']->value->specificPrice['price']; } else { ?> 0<?php } ?> ; var product_specific_price = new Array(); <?php $_smarty_tpl->tpl_vars['specific_price_value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['specific_price_value']->_loop = false; $_smarty_tpl->tpl_vars['key_specific_price'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['product']->value->specificPrice; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['specific_price_value']->key => $_smarty_tpl->tpl_vars['specific_price_value']->value) { $_smarty_tpl->tpl_vars['specific_price_value']->_loop = true; $_smarty_tpl->tpl_vars['key_specific_price']->value = $_smarty_tpl->tpl_vars['specific_price_value']->key; ?> product_specific_price['<?php echo $_smarty_tpl->tpl_vars['key_specific_price']->value; ?> '] = '<?php echo $_smarty_tpl->tpl_vars['specific_price_value']->value; ?> '; <?php } ?> var specific_currency = <?php if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['id_currency']) { ?> true<?php } else { ?> false<?php } ?> ; var group_reduction = '<?php echo $_smarty_tpl->tpl_vars['group_reduction']->value; ?> '; var default_eco_tax = <?php echo $_smarty_tpl->tpl_vars['product']->value->ecotax; ?> ; var ecotaxTax_rate = <?php echo $_smarty_tpl->tpl_vars['ecotaxTax_rate']->value; ?> ; var currentDate = '<?php echo smarty_modifier_date_format(time(), '%Y-%m-%d %H:%M:%S'); ?> '; var maxQuantityToAllowDisplayOfLastQuantityMessage = <?php echo $_smarty_tpl->tpl_vars['last_qties']->value; ?> ; var noTaxForThisProduct = <?php if ($_smarty_tpl->tpl_vars['no_tax']->value == 1) { ?> true<?php } else { ?> false<?php } ?> ; var displayPrice = <?php echo $_smarty_tpl->tpl_vars['priceDisplay']->value; ?> ; var productReference = '<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value->reference, 'htmlall', 'UTF-8'); ?> '; var productAvailableForOrder = <?php if (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) { ?> '0'<?php } else { ?> '<?php echo $_smarty_tpl->tpl_vars['product']->value->available_for_order; ?> '<?php } ?> ; var productShowPrice = '<?php if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { echo $_smarty_tpl->tpl_vars['product']->value->show_price; } else { ?> 0<?php } ?> '; var productUnitPriceRatio = '<?php echo $_smarty_tpl->tpl_vars['product']->value->unit_price_ratio; ?> '; var idDefaultImage = <?php if (isset($_smarty_tpl->tpl_vars['cover']->value['id_image_only'])) { echo $_smarty_tpl->tpl_vars['cover']->value['id_image_only']; } else { ?> 0<?php } ?> ; var stock_management = <?php echo intval($_smarty_tpl->tpl_vars['stock_management']->value); ?> ; <?php if (!isset($_smarty_tpl->tpl_vars['priceDisplayPrecision']->value)) { ?> <?php $_smarty_tpl->tpl_vars['priceDisplayPrecision'] = new Smarty_variable(2, null, 0); } 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); } 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); } ?> var productPriceWithoutReduction = '<?php echo $_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value; ?> '; var productPrice = '<?php echo $_smarty_tpl->tpl_vars['productPrice']->value; ?> '; // Customizable field var img_ps_dir = '<?php echo $_smarty_tpl->tpl_vars['img_ps_dir']->value; ?> '; var customizationFields = new Array(); <?php $_smarty_tpl->tpl_vars['imgIndex'] = new Smarty_variable(0, null, 0); $_smarty_tpl->tpl_vars['textFieldIndex'] = new Smarty_variable(0, null, 0); $_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'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index']++; ?> <?php $_smarty_tpl->tpl_vars["key"] = new Smarty_variable("pictures_" . (string) $_smarty_tpl->tpl_vars['product']->value->id . "_" . (string) $_smarty_tpl->tpl_vars['field']->value['id_customization_field'], null, 0); ?> customizationFields[<?php echo intval($_smarty_tpl->getVariable('smarty')->value['foreach']['customizationFields']['index']); ?> ] = new Array(); customizationFields[<?php echo intval($_smarty_tpl->getVariable('smarty')->value['foreach']['customizationFields']['index']); ?> ][0] = '<?php if (intval($_smarty_tpl->tpl_vars['field']->value['type']) == 0) { ?> img<?php echo $_smarty_tpl->tpl_vars['imgIndex']->value++; } else { ?> textField<?php echo $_smarty_tpl->tpl_vars['textFieldIndex']->value++; } ?> '; customizationFields[<?php echo intval($_smarty_tpl->getVariable('smarty')->value['foreach']['customizationFields']['index']); ?> ][1] = <?php if (intval($_smarty_tpl->tpl_vars['field']->value['type']) == 0 && isset($_smarty_tpl->tpl_vars['pictures']->value[$_smarty_tpl->tpl_vars['key']->value]) && $_smarty_tpl->tpl_vars['pictures']->value[$_smarty_tpl->tpl_vars['key']->value]) { ?> 2<?php } else { echo intval($_smarty_tpl->tpl_vars['field']->value['required']); } ?> ; <?php } ?> // Images var img_prod_dir = '<?php echo $_smarty_tpl->tpl_vars['img_prod_dir']->value; ?> '; var combinationImages = new Array(); <?php if (isset($_smarty_tpl->tpl_vars['combinationImages']->value)) { ?> <?php $_smarty_tpl->tpl_vars['combination'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['combination']->_loop = false; $_smarty_tpl->tpl_vars['combinationId'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['combinationImages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['combination']->key => $_smarty_tpl->tpl_vars['combination']->value) { $_smarty_tpl->tpl_vars['combination']->_loop = true; $_smarty_tpl->tpl_vars['combinationId']->value = $_smarty_tpl->tpl_vars['combination']->key; ?> combinationImages[<?php echo $_smarty_tpl->tpl_vars['combinationId']->value; ?> ] = new Array(); <?php $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['image']->_loop = false; $_from = $_smarty_tpl->tpl_vars['combination']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['f_combinationImage']['index'] = -1; 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['smarty']->value['foreach']['f_combinationImage']['index']++; ?> combinationImages[<?php echo $_smarty_tpl->tpl_vars['combinationId']->value; ?> ][<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['f_combinationImage']['index']; ?> ] = <?php echo intval($_smarty_tpl->tpl_vars['image']->value['id_image']); ?> ; <?php } ?> <?php } } ?> combinationImages[0] = new Array(); <?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['smarty']->value['foreach']['f_defaultImages']['index'] = -1; 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['smarty']->value['foreach']['f_defaultImages']['index']++; ?> combinationImages[0][<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['f_defaultImages']['index']; ?> ] = <?php echo $_smarty_tpl->tpl_vars['image']->value['id_image']; ?> ; <?php } } ?> // Translations var doesntExist = '<?php echo smartyTranslate(array('s' => 'This combination does not exist for this product. Please select another combination.', 'js' => 1), $_smarty_tpl); ?> '; var doesntExistNoMore = '<?php echo smartyTranslate(array('s' => 'This product is no longer in stock', 'js' => 1), $_smarty_tpl); ?> '; var doesntExistNoMoreBut = '<?php echo smartyTranslate(array('s' => 'with those attributes but is available with others.', 'js' => 1), $_smarty_tpl); ?> '; var uploading_in_progress = '<?php echo smartyTranslate(array('s' => 'Uploading in progress, please be patient.', 'js' => 1), $_smarty_tpl); ?> '; var fieldRequired = '<?php echo smartyTranslate(array('s' => 'Please fill in all the required fields before saving your customization.', 'js' => 1), $_smarty_tpl); ?> '; <?php if (isset($_smarty_tpl->tpl_vars['groups']->value)) { ?> // Combinations <?php $_smarty_tpl->tpl_vars['combination'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['combination']->_loop = false; $_smarty_tpl->tpl_vars['idCombination'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['combinations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['combination']->key => $_smarty_tpl->tpl_vars['combination']->value) { $_smarty_tpl->tpl_vars['combination']->_loop = true; $_smarty_tpl->tpl_vars['idCombination']->value = $_smarty_tpl->tpl_vars['combination']->key; ?> var specific_price_combination = new Array(); var available_date = new Array(); specific_price_combination['reduction_percent'] = <?php if ($_smarty_tpl->tpl_vars['combination']->value['specific_price'] && $_smarty_tpl->tpl_vars['combination']->value['specific_price']['reduction'] && $_smarty_tpl->tpl_vars['combination']->value['specific_price']['reduction_type'] == 'percentage') { echo $_smarty_tpl->tpl_vars['combination']->value['specific_price']['reduction'] * 100; } else { ?> 0<?php } ?> ; specific_price_combination['reduction_price'] = <?php if ($_smarty_tpl->tpl_vars['combination']->value['specific_price'] && $_smarty_tpl->tpl_vars['combination']->value['specific_price']['reduction'] && $_smarty_tpl->tpl_vars['combination']->value['specific_price']['reduction_type'] == 'amount') { echo $_smarty_tpl->tpl_vars['combination']->value['specific_price']['reduction']; } else { ?> 0<?php } ?> ; specific_price_combination['price'] = <?php if ($_smarty_tpl->tpl_vars['combination']->value['specific_price'] && $_smarty_tpl->tpl_vars['combination']->value['specific_price']['price']) { echo $_smarty_tpl->tpl_vars['combination']->value['specific_price']['price']; } else { ?> 0<?php } ?> ; specific_price_combination['reduction_type'] = '<?php if ($_smarty_tpl->tpl_vars['combination']->value['specific_price']) { echo $_smarty_tpl->tpl_vars['combination']->value['specific_price']['reduction_type']; } ?> '; specific_price_combination['id_product_attribute'] = <?php if ($_smarty_tpl->tpl_vars['combination']->value['specific_price']) { echo intval($_smarty_tpl->tpl_vars['combination']->value['specific_price']['id_product_attribute']); } else { ?> 0<?php } ?> ; available_date['date'] = '<?php echo $_smarty_tpl->tpl_vars['combination']->value['available_date']; ?> '; available_date['date_formatted'] = '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['combination']->value['available_date'], 'full' => false), $_smarty_tpl); ?> '; addCombination(<?php echo intval($_smarty_tpl->tpl_vars['idCombination']->value); ?> , new Array(<?php echo $_smarty_tpl->tpl_vars['combination']->value['list']; ?> ), <?php echo $_smarty_tpl->tpl_vars['combination']->value['quantity']; ?> , <?php echo $_smarty_tpl->tpl_vars['combination']->value['price']; ?> , <?php echo $_smarty_tpl->tpl_vars['combination']->value['ecotax']; ?> , <?php echo $_smarty_tpl->tpl_vars['combination']->value['id_image']; ?> , '<?php echo addslashes($_smarty_tpl->tpl_vars['combination']->value['reference']); ?> ', <?php echo $_smarty_tpl->tpl_vars['combination']->value['unit_impact']; ?> , <?php echo $_smarty_tpl->tpl_vars['combination']->value['minimal_quantity']; ?> , available_date, specific_price_combination); <?php } } ?> <?php if (isset($_smarty_tpl->tpl_vars['attributesCombinations']->value)) { ?> // Combinations attributes informations var attributesCombinations = new Array(); <?php $_smarty_tpl->tpl_vars['aC'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['aC']->_loop = false; $_smarty_tpl->tpl_vars['id'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['attributesCombinations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['aC']->key => $_smarty_tpl->tpl_vars['aC']->value) { $_smarty_tpl->tpl_vars['aC']->_loop = true; $_smarty_tpl->tpl_vars['id']->value = $_smarty_tpl->tpl_vars['aC']->key; ?> tabInfos = new Array(); tabInfos['id_attribute'] = '<?php echo intval($_smarty_tpl->tpl_vars['aC']->value['id_attribute']); ?> '; tabInfos['attribute'] = '<?php echo $_smarty_tpl->tpl_vars['aC']->value['attribute']; ?> '; tabInfos['group'] = '<?php echo $_smarty_tpl->tpl_vars['aC']->value['group']; ?> '; tabInfos['id_attribute_group'] = '<?php echo intval($_smarty_tpl->tpl_vars['aC']->value['id_attribute_group']); ?> '; attributesCombinations.push(tabInfos); <?php } } ?> //]]> </script> <div class="primary_block_obal block clearfix"> <div id="primary_block" class="clearfix"> <?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); ?> " class="exclusive" onclick="submitPublishProduct('<?php echo $_smarty_tpl->tpl_vars['base_dir']->value; echo smarty_modifier_escape($_GET['ad'], 'htmlall', 'UTF-8'); ?> ', 0, '<?php echo smarty_modifier_escape($_GET['adtoken'], 'htmlall', 'UTF-8'); ?> ')"/> <input type="submit" value="<?php echo smartyTranslate(array('s' => 'Back'), $_smarty_tpl); ?> " class="exclusive" onclick="submitPublishProduct('<?php echo $_smarty_tpl->tpl_vars['base_dir']->value; echo smarty_modifier_escape($_GET['ad'], 'htmlall', 'UTF-8'); ?> ', 1, '<?php echo smarty_modifier_escape($_GET['adtoken'], 'htmlall', 'UTF-8'); ?> ')"/> </p> <p id="admin-action-result"></p> </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 } ?> <!-- right infos--> <div id="pb-right-column" class="col-sm-5 col-xs-12"> <!-- product img--> <div id="image-block"> <?php if ($_smarty_tpl->tpl_vars['have_image']->value) { ?> <span id="view_full_size"> <img 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); ?> " class="<?php if ($_smarty_tpl->tpl_vars['jqZoomEnabled']->value && $_smarty_tpl->tpl_vars['have_image']->value) { ?> jqzoom<?php } ?> img-responsive" title="<?php if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) { echo smarty_modifier_escape($_smarty_tpl->tpl_vars['cover']->value['legend'], 'htmlall', 'UTF-8'); } else { echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value->name, 'htmlall', 'UTF-8'); } ?> " alt="<?php if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) { echo smarty_modifier_escape($_smarty_tpl->tpl_vars['cover']->value['legend'], 'htmlall', 'UTF-8'); } else { echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value->name, 'htmlall', 'UTF-8'); } ?> " id="bigpic" 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['product']->value->top200) { ?> <span class="product_tag toptag"><?php echo smartyTranslate(array('s' => 'TOP'), $_smarty_tpl); ?> </span> <?php } ?> <div class="img-product-tags"> <?php ob_start(); echo Product::skladovost($_smarty_tpl->tpl_vars['product']->value->id, "skladem"); $_tmp1 = ob_get_clean(); if ($_tmp1) { ?> <span class="product_tag skladem"><?php echo smartyTranslate(array('s' => 'Skladem'), $_smarty_tpl); ?> </span><br /><?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'percentage') { ?> <span class="product_tag hot"><?php echo smartyTranslate(array('s' => 'Reduced price!'), $_smarty_tpl); ?> -<?php echo $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] * 100; ?> %</span><br /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'amount') { ?> <span class="product_tag hot"><?php echo smartyTranslate(array('s' => 'Reduced price!'), $_smarty_tpl); ?> -<?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); ?> </span><br /> <?php } ?> <?php if (Product::jeNovinka($_smarty_tpl->tpl_vars['product']->value->id)) { ?> <span class="product_tag new"><?php echo smartyTranslate(array('s' => 'Novinka'), $_smarty_tpl); ?> </span><br /><?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value->top200) { ?> <span class="product_tag nejprodavanejsi"><?php echo smartyTranslate(array('s' => 'Nejprodavanější'), $_smarty_tpl); ?> </span><br /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value->condition == "used") { ?> <span class="product_tag bazar"><?php echo smartyTranslate(array('s' => 'Bazar'), $_smarty_tpl); ?> </span><br /> <?php } ?> </div> </span> <?php } else { ?> <span id="view_full_size"> <img 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 smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value->name, 'htmlall', 'UTF-8'); ?> " /> <span class="span_link"><?php echo smartyTranslate(array('s' => 'Maximize'), $_smarty_tpl); ?> </span> </span> <?php } ?> </div> <?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 } ?> "> <div id="thumbs_list"> <ul id="thumbs_list_frame-2"> <?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']->index = -1; 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']->index++; $_smarty_tpl->tpl_vars['image']->first = $_smarty_tpl->tpl_vars['image']->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['thumbnails']['first'] = $_smarty_tpl->tpl_vars['image']->first; ?> <?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['imageTitlte'] = new Smarty_variable(smarty_modifier_escape($_smarty_tpl->tpl_vars['image']->value['legend'], 'htmlall', 'UTF-8'), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['imageTitlte'] = new Smarty_variable(smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value->name, 'htmlall', 'UTF-8'), null, 0); ?> <?php } ?> <li id="thumbnail_<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image']; ?> " class="miniatura-img"> <a 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); ?> " rel="other-views" class="thickbox<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['thumbnails']['first']) { ?> shown<?php } ?> " title="<?php echo $_smarty_tpl->tpl_vars['imageTitlte']->value; ?> "> <img 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['imageTitlte']->value; ?> " title="<?php echo $_smarty_tpl->tpl_vars['imageTitlte']->value; ?> " height="<?php echo $_smarty_tpl->tpl_vars['mediumSize']->value['height']; ?> " width="<?php echo $_smarty_tpl->tpl_vars['mediumSize']->value['width']; ?> " /> </a> </li> <?php } ?> <?php } ?> </ul> </div> <?php if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 4) { ?> <span id="dalsi-fotografie" title="<?php echo smartyTranslate(array('s' => 'Další fotografie'), $_smarty_tpl); ?> "> <span id="fotografie-zabaleno"><?php echo smartyTranslate(array('s' => 'Další fotografie'), $_smarty_tpl); ?> <i class="fa fa-chevron-down"></i></span> <span id="fotografie-rozbaleno" style="display: none;"><?php echo smartyTranslate(array('s' => 'Méně fotografií'), $_smarty_tpl); ?> <i class="fa fa-chevron-up"></i></span> </span><?php } ?> </div> <?php } ?> </div> <!-- left infos--> <div id="pb-left-column" class="col-sm-7 col-xs-12"> <h1><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value->name, 'htmlall', 'UTF-8'); ?> </h1> <?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 short_description_content"><p class=""></p><?php echo $_smarty_tpl->tpl_vars['product']->value->description_short; ?> <a href="javascript:{}" class="button vice"><?php echo smartyTranslate(array('s' => 'More details'), $_smarty_tpl); ?> </a></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 smarty_modifier_escape($_smarty_tpl->tpl_vars['packItem']->value['name'], 'htmlall', 'UTF-8'); ?> </a> <p><?php echo $_smarty_tpl->tpl_vars['packItem']->value['description_short']; ?> </p> </div> <?php } ?> </div> <?php } ?> </div> <?php } ?> <ul class="productcats"> <?php $_smarty_tpl->tpl_vars['cat'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['cat']->_loop = false; $_from = Product::getProductCategoriesFull(Tools::getValue('id_product')); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['cat']->key => $_smarty_tpl->tpl_vars['cat']->value) { $_smarty_tpl->tpl_vars['cat']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['cat']->value['id_category'] != 2) { ?> <li><a href="<?php ob_start(); echo $_smarty_tpl->tpl_vars['cat']->value['id_category']; $_tmp2 = ob_get_clean(); echo $_smarty_tpl->tpl_vars['link']->value->getCategoryLink($_tmp2); ?> " title="<?php echo $_smarty_tpl->tpl_vars['cat']->value['name']; ?> "><?php echo $_smarty_tpl->tpl_vars['cat']->value['name']; ?> </a></li> <?php } ?> <?php } ?> </ul> <?php $_smarty_tpl->tpl_vars['pocet_hodnoceni'] = new Smarty_variable(Product::pocetHeurekaHvezd($_smarty_tpl->tpl_vars['product']->value->id, 'pocet_hodnoceni'), null, 0); ?> <?php $_smarty_tpl->tpl_vars['pocet_hvezd_na_desetinu'] = new Smarty_variable(Product::pocetHeurekaHvezd($_smarty_tpl->tpl_vars['product']->value->id, 'hvezdy_na_desetinu'), null, 0); ?> <?php $_smarty_tpl->tpl_vars['pocet_hvezd'] = new Smarty_variable(Product::pocetHeurekaHvezd($_smarty_tpl->tpl_vars['product']->value->id, 'hvezdy'), null, 0); ?> <div class="produkt-dalsi-info"> <div class="box_prodejce"><img src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> helveti/autorizovany-prodejce-<?php echo mb_strtolower($_smarty_tpl->tpl_vars['product']->value->manufacturer_name, 'UTF-8'); ?> .png" alt="Autorizovaný prodejce značky Wenger"></div> <div class="box_heureka"><img src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> /helveti/heureka-male-logo.png" alt="Heureka logo"><div class="box_heureka_txt"><span class="pocet_hodnoceni_heureka"><?php echo NoxHome::hodnoceniEshopu(); ?> % </span><br><span class="pocet_hodnoceni_heureka_popis">Hodnocení</span><br /> <span class="pocet_hodnoceni_heureka_popis2">zákazníků</span></div></div> <div class="box_hodnoceni"> <div class="rating_box heureka-ratign"> <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['i']->step = 1; $_smarty_tpl->tpl_vars['i']->total = (int) ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 5 + 1 - 1 : 1 - 5 + 1) / abs($_smarty_tpl->tpl_vars['i']->step)); if ($_smarty_tpl->tpl_vars['i']->total > 0) { for ($_smarty_tpl->tpl_vars['i']->value = 1, $_smarty_tpl->tpl_vars['i']->iteration = 1; $_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total; $_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++) { $_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1; $_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total; ?> <i class="fa fa-star<?php if ($_smarty_tpl->tpl_vars['i']->value > $_smarty_tpl->tpl_vars['pocet_hvezd']->value) { ?> -o<?php } ?> "></i> <?php } } ?> </div> (<?php echo $_smarty_tpl->tpl_vars['pocet_hvezd_na_desetinu']->value; ?> / 5 bodů)<br /> <?php echo $_smarty_tpl->tpl_vars['pocet_hodnoceni']->value; ?> uživatelů hodnotilo </div> </div> <?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="product_attributes"> <?php if (isset($_smarty_tpl->tpl_vars['groups']->value)) { ?> <!-- attributes --> <div id="attributes"> <div class="clear"></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" for="group_<?php echo intval($_smarty_tpl->tpl_vars['id_attribute_group']->value); ?> "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['group']->value['name'], 'htmlall', 'UTF-8'); ?> : </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="attribute_select form-control" onchange="findCombination();getProductAttribute();"> <?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 smarty_modifier_escape($_smarty_tpl->tpl_vars['group_attribute']->value, 'htmlall', 'UTF-8'); ?> "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['group_attribute']->value, 'htmlall', 'UTF-8'); ?> </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; ?> <li<?php if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) { ?> class="selected"<?php } ?> > <a id="color_<?php echo intval($_smarty_tpl->tpl_vars['id_attribute']->value); ?> " class="color_pick<?php if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) { ?> selected<?php } ?> " style="background: <?php echo $_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['value']; ?> ;" title="<?php echo $_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name']; ?> " onclick="colorPickerClick(this);getProductAttribute();"> <?php if (file_exists($_smarty_tpl->tpl_vars['col_img_dir']->value . $_smarty_tpl->tpl_vars['id_attribute']->value . '.jpg')) { ?> <img src="<?php echo $_smarty_tpl->tpl_vars['img_col_dir']->value; echo $_smarty_tpl->tpl_vars['id_attribute']->value; ?> .jpg" alt="<?php echo $_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name']; ?> " width="20" height="20" /><br /> <?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 $_smarty_tpl->tpl_vars['groupName']->value; ?> " value="<?php echo $_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 $_smarty_tpl->tpl_vars['groupName']->value; ?> " 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 } ?> onclick="findCombination();getProductAttribute();" /> <span><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['group_attribute']->value, 'htmlall', 'UTF-8'); ?> </span> </li> <?php } ?> </ul> <?php } ?> </div> </fieldset> <?php } ?> <?php } ?> </div> <?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' => '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 ($_smarty_tpl->tpl_vars['product']->value->minimal_quantity > 1) { ?> <script type="text/javascript"> checkMinimalQuantity(); </script> <?php } ?> </div> <!-- prices --> <?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) { ?> <?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 } ?> <div class="price<?php if ($_smarty_tpl->tpl_vars['product']->value->specificPrice || $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) { ?> price-sleva<?php } ?> "> <div id="blok_slevy"> <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' || intval($_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' && intval($_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> </div> <div id="blok_ceny"> <p class="our_price_display"> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value >= 0 && $_smarty_tpl->tpl_vars['priceDisplay']->value <= 2) { ?> <span id="our_price_display"><?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 } ?> --> <?php } ?> </p> </div> <div id="blok_ceny_ostatni"> <span 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) { ?> <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); } } ?> --> | <span id="usetrite"><?php echo smartyTranslate(array('s' => 'Ušetříte'), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value - $_smarty_tpl->tpl_vars['productPrice']->value), $_smarty_tpl); ?> </span> <?php } ?> </span> </div> </div> <?php } ?> <div class="content_prices clearfix kosik_box"> <?php if ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0 && !$_smarty_tpl->tpl_vars['product']->value->available_later || $_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) { ?> <p class="barva_neskladem nelze_koupit"><strong>Hodinky nelze zakoupit.</strong></p> <p class="nelze_koupit_kontakt">Vyberte si prosím jiné nebo nás <a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getCMSLink('8'); ?> ">kontaktujte</a>.</p> <?php } ?> <!-- 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 class="availability_skladovost <?php echo Product::skladovost($_smarty_tpl->tpl_vars['product']->value->id, "barva"); ?> "><?php echo Product::skladovost($_smarty_tpl->tpl_vars['product']->value->id, "text"); ?> - </span> <span class="btn-tooltip availability_dodani" data-html="true" data-placement="right" data-original-title="<?php echo Product::skladovost($_smarty_tpl->tpl_vars['product']->value->id, "tooltip"); ?> "><?php echo Product::skladovost($_smarty_tpl->tpl_vars['product']->value->id, "datum"); ?> </span>, doprava zdarma </p> <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> <p id="add_to_cart" <?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) { ?> style="display:none"<?php } ?> class="buttons_bottom_block"> <span></span> <input type="submit" name="Submit" value="<?php echo smartyTranslate(array('s' => 'Add to cart'), $_smarty_tpl); ?> " class="exclusive" /> </p> </div> <div class="produkt-iconky"> <a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getCMSLink('39'); ?> "><span class="produkt-iconky-pojisteni produkt-iconky-icon"> Pojištění hodinek </span></a> <a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getCMSLink('1'); ?> "><span class="produkt-iconky-doprava produkt-iconky-icon"> Doprava zdarma </span></a> <a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getCMSLink('40'); ?> "><span class="produkt-iconky-zaruka produkt-iconky-icon"> 3-letá záruka </span></a> </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 class="clear"></div> </form> <?php } ?> <!-- usefull links--> <div id="usefull_link_block" class="links"> <div class="email-product-share"> <?php if ($_smarty_tpl->tpl_vars['HOOK_EXTRA_LEFT']->value) { echo $_smarty_tpl->tpl_vars['HOOK_EXTRA_LEFT']->value; } ?> <?php if ($_smarty_tpl->tpl_vars['have_image']->value && !$_smarty_tpl->tpl_vars['jqZoomEnabled']->value) { ?> <?php } ?> </div> <div class="google-product-share"> <div class="g-plusone" data-size="tall"></div> </div> <div class="facebook-product-share"> <iframe src="//www.facebook.com/plugins/like.php?locale=en_GB&href=<?php echo $_smarty_tpl->tpl_vars['base_dir']->value; echo $_smarty_tpl->tpl_vars['current_url']->value; ?> &width&layout=box_count&action=like&show_faces=false&share=false&height=65&appId=1526409284245153" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:65px;" allowTransparency="true"></iframe> </div> <div class="clearfix"> </div> </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; } ?> </div> </div> <?php if (isset($_smarty_tpl->tpl_vars['quantity_discounts']->value) && count($_smarty_tpl->tpl_vars['quantity_discounts']->value) > 0) { ?> <!-- quantity discount --> <ul class="idTabs clearfix"> <li><a href="#discount" style="cursor: pointer" class="selected"><?php echo smartyTranslate(array('s' => 'Sliding scale pricing'), $_smarty_tpl); ?> </a></li> </ul> <div id="quantityDiscount"> <table class="std"> <thead> <tr> <th><?php echo smartyTranslate(array('s' => 'Product'), $_smarty_tpl); ?> </th> <th><?php echo smartyTranslate(array('s' => 'From (qty)'), $_smarty_tpl); ?> </th> <th><?php if (Configuration::get('PS_DISPLAY_DISCOUNT_PRICE')) { echo smartyTranslate(array('s' => 'Price'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Discount'), $_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']; ?> "> <td> <?php if (isset($_smarty_tpl->tpl_vars['quantity_discount']->value['attributes']) && $_smarty_tpl->tpl_vars['quantity_discount']->value['attributes']) { ?> <?php echo $_smarty_tpl->tpl_vars['product']->value->getProductName($_smarty_tpl->tpl_vars['quantity_discount']->value['id_product'], $_smarty_tpl->tpl_vars['quantity_discount']->value['id_product_attribute']); ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['product']->value->getProductName($_smarty_tpl->tpl_vars['quantity_discount']->value['id_product']); ?> <?php } ?> </td> <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 (Configuration::get('PS_DISPLAY_DISCOUNT_PRICE')) { ?> <?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 (Configuration::get('PS_DISPLAY_DISCOUNT_PRICE')) { ?> <?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> </tr> <?php } ?> </tbody> </table> </div> <?php } ?> <!-- description and 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) { ?> <div id="more_info_block" class="clear"> <ul id="more_info_tabs" class="idTabs idTabsShort clearfix"> <?php if ($_smarty_tpl->tpl_vars['product']->value->description) { ?> <li><a id="more_info_tab_more_info" href="#idTab1"><?php echo smartyTranslate(array('s' => 'More info'), $_smarty_tpl); ?> </a></li><?php } ?> <?php if ($_smarty_tpl->tpl_vars['attachments']->value) { ?> <li><a id="more_info_tab_attachments" href="#idTab9"><?php echo smartyTranslate(array('s' => 'Download'), $_smarty_tpl); ?> </a></li><?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['accessories']->value) && $_smarty_tpl->tpl_vars['accessories']->value) { ?> <li><a href="#idTab4"><?php echo smartyTranslate(array('s' => 'Accessories'), $_smarty_tpl); ?> </a></li><?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->customizable) { ?> <li><a href="#idTab10"><?php echo smartyTranslate(array('s' => 'Product customization'), $_smarty_tpl); ?> </a></li><?php } ?> <?php echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB']->value; ?> </ul> <div id="more_info_sheets" class="sheets align_justify"> <?php if (isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->description) { ?> <!-- full description --> <div id="idTab1" class="rte"> <?php echo $_smarty_tpl->tpl_vars['product']->value->description; ?> <?php if (isset($_smarty_tpl->tpl_vars['features']->value) && $_smarty_tpl->tpl_vars['features']->value) { ?> <h3>Parametry</h3> <!-- product's features --> <table> <?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; ?> <?php if (isset($_smarty_tpl->tpl_vars['feature']->value['value'])) { ?> <?php if (!strstr($_smarty_tpl->tpl_vars['feature']->value['name'], "FILTRACE")) { ?> <tr><td><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['feature']->value['name'], 'htmlall', 'UTF-8'); ?> </td><td> <?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['feature']->value['value'], 'htmlall', 'UTF-8'); ?> </td></tr> <?php } ?> <?php } ?> <?php } ?> </table> <?php } ?> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['attachments']->value) && $_smarty_tpl->tpl_vars['attachments']->value) { ?> <ul id="idTab9" class="bullet"> <?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'); } foreach ($_from as $_smarty_tpl->tpl_vars['attachment']->key => $_smarty_tpl->tpl_vars['attachment']->value) { $_smarty_tpl->tpl_vars['attachment']->_loop = true; ?> <li><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 smarty_modifier_escape($_smarty_tpl->tpl_vars['attachment']->value['name'], 'htmlall', 'UTF-8'); ?> </a><br /><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['attachment']->value['description'], 'htmlall', 'UTF-8'); ?> </li> <?php } ?> </ul> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['accessories']->value) && $_smarty_tpl->tpl_vars['accessories']->value) { ?> <!-- accessories --> <div id="idTab4" class="bullet row"> <div class="products_block accessories_block clearfix"> <div class="block_content"> <?php $_smarty_tpl->tpl_vars["acclimit"] = new Smarty_variable(1, null, 0); ?> <?php $_smarty_tpl->tpl_vars["columnpage"] = new Smarty_variable(3, null, 0); ?> <?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; 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']->last = $_smarty_tpl->tpl_vars['accessory']->iteration === $_smarty_tpl->tpl_vars['accessory']->total; $_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); ?> <?php if ($_smarty_tpl->tpl_vars['acclimit']->value % $_smarty_tpl->tpl_vars['columnpage']->value == 1) { ?> <div class="row products-item "> <?php } ?> <div class="col-xs-6 col-md-4 product_block ajax_block_product product_accessories_description"> <div class="product-container clearfix"> <div class="center_block"> <a href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['accessoryLink']->value, 'htmlall', 'UTF-8'); ?> " title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['accessory']->value['legend'], 'htmlall', 'UTF-8'); ?> " class="product_image"> <img class="img-responsive" 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 smarty_modifier_escape($_smarty_tpl->tpl_vars['accessory']->value['legend'], 'htmlall', 'UTF-8'); ?> " /> <span class="product-additional" rel="<?php echo $_smarty_tpl->tpl_vars['accessory']->value['id_product']; ?> "></span> </a> </div> <div class="right_block"> <h4 class="name"> <a href="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['accessoryLink']->value, 'htmlall', 'UTF-8'); ?> " title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['accessory']->value['name'], 'htmlall', 'UTF-8'); ?> "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['accessory']->value['name'], 'htmlall', 'UTF-8'); ?> </a> </h4> <div class="content_price"> <?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) { 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); } ?> </span><?php } ?> </div> <div class="product_desc"> <?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']), 80, '...'); ?> </div> <a class="rating_box leo-rating-<?php echo $_smarty_tpl->tpl_vars['accessory']->value['id_product']; ?> " href="#" rel="<?php echo $_smarty_tpl->tpl_vars['accessory']->value['id_product']; ?> " style="display:none"> <i class="fa fa-star-o"></i> <i class="fa fa-star-o"></i> <i class="fa fa-star-o"></i> <i class="fa fa-star-o"></i> <i class="fa fa-star-o"></i> </a> <?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)) { ?> <a class="button ajax_add_to_cart_button exclusive pull-left" href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['accessory']->value['id_product']); $_tmp3 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', true, null, "qty=1&id_product=" . $_tmp3 . "&token=" . (string) $_smarty_tpl->tpl_vars['static_token']->value . "&add"), ENT_QUOTES, 'UTF-8', true); ?> " rel="ajax_id_product_<?php echo intval($_smarty_tpl->tpl_vars['accessory']->value['id_product']); ?> " title="<?php echo smartyTranslate(array('s' => 'Add to cart'), $_smarty_tpl); ?> "><?php echo smartyTranslate(array('s' => 'Add to cart'), $_smarty_tpl); ?> </a> <?php } ?> <a href="#" id="wishlist_button<?php echo $_smarty_tpl->tpl_vars['accessory']->value['id_product']; ?> " class="btn-tooltip button wishlist-compare fa fa-heart" onclick="LeoWishlistCart('wishlist_block_list', 'add', '<?php echo $_smarty_tpl->tpl_vars['accessory']->value['id_product']; ?> ', $('#idCombination').val(), 1 ); return false;" title="<?php echo smartyTranslate(array('s' => 'Add to wishlist'), $_smarty_tpl); ?> "></a> <a class="quick-view btn-tooltip button wishlist-compare fa fa-arrows-alt" title="<?php echo smartyTranslate(array('s' => 'Quick View'), $_smarty_tpl); ?> " href="<?php if (strpos($_smarty_tpl->tpl_vars['accessory']->value['link'], "?")) { echo smarty_modifier_escape($_smarty_tpl->tpl_vars['accessory']->value['link'] . "&content_only=1", 'htmlall', 'UTF-8'); } else { echo smarty_modifier_escape($_smarty_tpl->tpl_vars['accessory']->value['link'] . "?content_only=1", 'htmlall', 'UTF-8'); } ?> "></a> </div> </div> </div> <?php if ($_smarty_tpl->tpl_vars['acclimit']->value % $_smarty_tpl->tpl_vars['columnpage']->value == 0 || $_smarty_tpl->getVariable('smarty')->value['foreach']['accessories_list']['last']) { ?> </div> <?php } ?> <?php $_smarty_tpl->tpl_vars['acclimit'] = new Smarty_variable($_smarty_tpl->tpl_vars['acclimit']->value + 1, null, 0); ?> <?php } ?> <?php } ?> </div> </div> </div> <?php } ?> <!-- Customizable products --> <?php if (isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->customizable) { ?> <div id="idTab10" class="bullet customization_block"> <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"> <h3><?php echo smartyTranslate(array('s' => 'Pictures'), $_smarty_tpl); ?> </h3> <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'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index']++; ?> <?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"> <label class="customizationUploadBrowseDescription"><?php if (!empty($_smarty_tpl->tpl_vars['field']->value['name'])) { echo $_smarty_tpl->tpl_vars['field']->value['name']; } else { echo smartyTranslate(array('s' => 'Please select an image file from your computer'), $_smarty_tpl); } 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="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"> <h3><?php echo smartyTranslate(array('s' => 'Text'), $_smarty_tpl); ?> </h3> <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'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index']++; ?> <?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'])) { echo $_smarty_tpl->tpl_vars['field']->value['name']; } 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']; ?> " id="textField<?php echo $_smarty_tpl->tpl_vars['customizationField']->value; ?> " rows="1" cols="40" class="customization_block_input"><?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" /> <input type="button" class="button" value="<?php echo smartyTranslate(array('s' => 'Save'), $_smarty_tpl); ?> " onclick="javascript:saveCustomization()" /> <span id="ajax-loader" style="display:none"><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> </div> <?php } ?> <?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; } ?> </div> </div> <?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; } } if (isset($_smarty_tpl->tpl_vars['packItems']->value) && count($_smarty_tpl->tpl_vars['packItems']->value) > 0) { ?> <div id="blockpack"> <h2><?php echo smartyTranslate(array('s' => 'Pack content'), $_smarty_tpl); ?> </h2> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('products' => $_smarty_tpl->tpl_vars['packItems']->value), 0); ?> </div> <?php } } ?> </div> <?php }