function content_5590d88e2acc64_41465132($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'C:\\wamp\\www\\prestashop2\\prestashop\\tools\\smarty\\plugins\\modifier.replace.php'; } ?> <h3><?php echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl); ?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value)) { ?> <div id="referralprogram_rules"> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) { ?> <div class="rte"><?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"'); ?> </div><?php } ?> </div> <?php } }
function content_568d501e399cc9_13343867($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/Users/Gauthier/Desktop/G-M-Shop/prestashop/tools/smarty/plugins/modifier.replace.php'; } ?> <h3><?php echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl); ?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value)) { ?> <div id="referralprogram_rules"> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) { ?> <div class="rte"><?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"'); ?> </div><?php } ?> </div> <?php } }
function content_561cd0c1b6fba1_79534802($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\modifier.replace.php'; } ?> <h3><?php echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl); ?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value)) { ?> <div id="referralprogram_rules"> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) { ?> <div class="rte"><?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"'); ?> </div><?php } ?> </div> <?php } }
function content_569a5316817ba9_93334649($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'Z:\\domains\\localhost\\prestashop\\tools\\smarty\\plugins\\modifier.replace.php'; } ?> <h3><?php echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl); ?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value)) { ?> <div id="referralprogram_rules"> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) { ?> <div class="rte"><?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"'); ?> </div><?php } ?> </div> <?php } }
function content_55a5132455e062_33163819($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/var/www/html/Collivery-Prestashop/prestashop/tools/smarty/plugins/modifier.replace.php'; } ?> <h3><?php echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl); ?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value)) { ?> <div id="referralprogram_rules"> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) { ?> <div class="rte"><?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"'); ?> </div><?php } ?> </div> <?php } }
function content_56bb0210863ac9_98943493($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'D:\\OpenServer\\domains\\Creative.mu\\tools\\smarty\\plugins\\modifier.replace.php'; } ?> <h3><?php echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl); ?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value)) { ?> <div id="referralprogram_rules"> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) { ?> <div class="rte"><?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"'); ?> </div><?php } ?> </div> <?php } }
function content_566d927903c487_20451193($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.replace.php'; } ?> <h3><?php echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl); ?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value)) { ?> <div id="referralprogram_rules"> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) { ?> <div class="rte"><?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"'); ?> </div><?php } ?> </div> <?php } }
function content_56fb07e141ed13_37748776($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'E:\\www\\etec\\terceiro-modulo\\MKT\\Aula05\\prestashop\\tools\\smarty\\plugins\\modifier.replace.php'; } ?> <h3><?php echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl); ?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value)) { ?> <div id="referralprogram_rules"> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) { ?> <div class="rte"><?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"'); ?> </div><?php } ?> </div> <?php } }
function content_564727d0d27af8_50942454($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/home/activeciuk/www/bap/tools/smarty/plugins/modifier.replace.php'; } ?> <h3><?php echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl); ?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value)) { ?> <div id="referralprogram_rules"> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) { ?> <div class="rte"><?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"'); ?> </div><?php } ?> </div> <?php } }
function content_56a4d3ad6cc890_85613238($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'C:\\xampp\\htdocs\\kertasmakanan\\tools\\smarty\\plugins\\modifier.replace.php'; } ?> <h3><?php echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl); ?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value)) { ?> <div id="referralprogram_rules"> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) { ?> <div class="rte"><?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"'); ?> </div><?php } ?> </div> <?php } }
/** * Smarty replace modifier plugin * * Type: modifier<br> * Name: replace<br> * Purpose: simple search/replace * * @link http://smarty.php.net/manual/en/language.modifier.replace.php replace (Smarty online manual) * @author Monte Ohrt <monte at ohrt dot com> * @author Uwe Tews * @param string $string input string * @param string $search text to search for * @param string $replace replacement text * @return string */ function smarty_modifier_replace($subject, $search, $replace) { if (!is_array($search) && is_array($replace)) { return false; } if (is_array($subject)) { // call mb_replace for each single string in $subject foreach ($subject as &$string) { $string =& smarty_modifier_replace($string, $search, $replace); } } elseif (is_array($search)) { if (!is_array($replace)) { foreach ($search as &$string) { $subject = smarty_modifier_replace($subject, $string, $replace); } } else { $n = max(count($search), count($replace)); while ($n--) { $subject = smarty_modifier_replace($subject, current($search), current($replace)); next($search); next($replace); } } } else { $parts = mb_split(preg_quote($search), $subject); $subject = implode($replace, $parts); } return $subject; }
function content_561617a7564969_20234583($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'D:\\workspace\\php\\nagoya6\\tools\\smarty\\plugins\\modifier.replace.php'; } ?> <h3><?php echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl); ?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value)) { ?> <div id="referralprogram_rules"> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) { ?> <div class="rte"><?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"'); ?> </div><?php } ?> </div> <?php } }
function content_56b45de7aee063_24777417($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\modifier.replace.php'; } ?> <h3><?php echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl); ?> </h3> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value)) { ?> <div id="referralprogram_rules"> <?php if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) { ?> <div class="rte"><?php echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"'); ?> </div><?php } ?> </div> <?php } }
function content_5662ad85301722_73204782($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { require_once 'C:\\xampp\\htdocs\\smarty\\libs\\plugins\\modifier.replace.php'; } $_smarty_tpl->properties['nocache_hash'] = '227845662ad852b3513_77845370'; echo $_smarty_tpl->tpl_vars['articleTitle']->value; ?> <?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['articleTitle']->value, 'Garden', 'Vineyard'); ?> <?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['articleTitle']->value, ' ', ' '); }
function content_56bb020a81f023_11835942($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'D:\\OpenServer\\domains\\Creative.mu\\tools\\smarty\\plugins\\modifier.replace.php'; } if (!is_callable('smarty_function_counter')) { include 'D:\\OpenServer\\domains\\Creative.mu\\tools\\smarty\\plugins\\function.counter.php'; } ?> <!-- MODULE Block cart --> <?php if (isset($_smarty_tpl->tpl_vars['blockcart_top']->value) && $_smarty_tpl->tpl_vars['blockcart_top']->value) { ?> <div class="col-sm-4 clearfix<?php if ($_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { ?> header_user_catalog<?php } ?> "> <?php } ?> <div class="shopping_cart"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink($_smarty_tpl->tpl_vars['order_process']->value, true), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'View my shopping cart', 'mod' => 'blockcart'), $_smarty_tpl); ?> " rel="nofollow"> <b><?php echo smartyTranslate(array('s' => 'Cart', 'mod' => 'blockcart'), $_smarty_tpl); ?> </b> <span class="ajax_cart_quantity<?php if ($_smarty_tpl->tpl_vars['cart_qties']->value == 0) { ?> unvisible<?php } ?> "><?php echo $_smarty_tpl->tpl_vars['cart_qties']->value; ?> </span> <span class="ajax_cart_product_txt<?php if ($_smarty_tpl->tpl_vars['cart_qties']->value != 1) { ?> unvisible<?php } ?> "><?php echo smartyTranslate(array('s' => 'Product', 'mod' => 'blockcart'), $_smarty_tpl); ?> </span> <span class="ajax_cart_product_txt_s<?php if ($_smarty_tpl->tpl_vars['cart_qties']->value < 2) { ?> unvisible<?php } ?> "><?php echo smartyTranslate(array('s' => 'Products', 'mod' => 'blockcart'), $_smarty_tpl); ?> </span> <span class="ajax_cart_total<?php if ($_smarty_tpl->tpl_vars['cart_qties']->value == 0) { ?> unvisible<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['cart_qties']->value > 0) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { ?> <?php $_smarty_tpl->tpl_vars['blockcart_cart_flag'] = new Smarty_variable(constant('Cart::BOTH_WITHOUT_SHIPPING'), null, 0); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(false, $_smarty_tpl->tpl_vars['blockcart_cart_flag']->value)), $_smarty_tpl); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['blockcart_cart_flag'] = new Smarty_variable(constant('Cart::BOTH_WITHOUT_SHIPPING'), null, 0); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(true, $_smarty_tpl->tpl_vars['blockcart_cart_flag']->value)), $_smarty_tpl); ?> <?php } ?> <?php } ?> </span> <span class="ajax_cart_no_product<?php if ($_smarty_tpl->tpl_vars['cart_qties']->value > 0) { ?> unvisible<?php } ?> "><?php echo smartyTranslate(array('s' => '(empty)', 'mod' => 'blockcart'), $_smarty_tpl); ?> </span> <?php if ($_smarty_tpl->tpl_vars['ajax_allowed']->value && isset($_smarty_tpl->tpl_vars['blockcart_top']->value) && !$_smarty_tpl->tpl_vars['blockcart_top']->value) { ?> <span class="block_cart_expand<?php if (!isset($_smarty_tpl->tpl_vars['colapseExpandStatus']->value) || isset($_smarty_tpl->tpl_vars['colapseExpandStatus']->value) && $_smarty_tpl->tpl_vars['colapseExpandStatus']->value == 'expanded') { ?> unvisible<?php } ?> "> </span> <span class="block_cart_collapse<?php if (isset($_smarty_tpl->tpl_vars['colapseExpandStatus']->value) && $_smarty_tpl->tpl_vars['colapseExpandStatus']->value == 'collapsed') { ?> unvisible<?php } ?> "> </span> <?php } ?> </a> <?php if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { ?> <div class="cart_block block exclusive"> <div class="block_content"> <!-- block list of products --> <div class="cart_block_list<?php if (isset($_smarty_tpl->tpl_vars['blockcart_top']->value) && !$_smarty_tpl->tpl_vars['blockcart_top']->value) { if (isset($_smarty_tpl->tpl_vars['colapseExpandStatus']->value) && $_smarty_tpl->tpl_vars['colapseExpandStatus']->value == 'expanded' || !$_smarty_tpl->tpl_vars['ajax_allowed']->value || !isset($_smarty_tpl->tpl_vars['colapseExpandStatus']->value)) { ?> expanded<?php } else { ?> collapsed unvisible<?php } } ?> "> <?php if ($_smarty_tpl->tpl_vars['products']->value) { ?> <dl class="products"> <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['product']->_loop = false; $_from = $_smarty_tpl->tpl_vars['products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['product']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['product']->iteration = 0; $_smarty_tpl->tpl_vars['product']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) { $_smarty_tpl->tpl_vars['product']->_loop = true; $_smarty_tpl->tpl_vars['product']->iteration++; $_smarty_tpl->tpl_vars['product']->index++; $_smarty_tpl->tpl_vars['product']->first = $_smarty_tpl->tpl_vars['product']->index === 0; $_smarty_tpl->tpl_vars['product']->last = $_smarty_tpl->tpl_vars['product']->iteration === $_smarty_tpl->tpl_vars['product']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['product']->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['product']->last; ?> <?php $_smarty_tpl->tpl_vars['productId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['productAttributeId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], null, 0); ?> <dt data-id="cart_block_product_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']); ?> _<?php if ($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']) { echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']); } else { ?> 0<?php } ?> _<?php if ($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']) { echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); } else { ?> 0<?php } ?> " class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) { ?> first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) { ?> last_item<?php } else { ?> item<?php } ?> "> <a class="cart-images" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'], $_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['category']), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> "><img src="<?php echo $_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['id_image'], 'cart_default'); ?> " alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> " /></a> <div class="cart-info"> <div class="product-name"> <span class="quantity-formated"><span class="quantity"><?php echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity']; ?> </span> x </span><a class="cart_block_product_name" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value, $_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['category'], null, null, $_smarty_tpl->tpl_vars['product']->value['id_shop'], $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> "><?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['product']->value['name'], 13, '...'), ENT_QUOTES, 'UTF-8', true); ?> </a> </div> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) { ?> <div class="product-atributes"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value, $_smarty_tpl->tpl_vars['product']->value['link_rewrite'], $_smarty_tpl->tpl_vars['product']->value['category'], null, null, $_smarty_tpl->tpl_vars['product']->value['id_shop'], $_smarty_tpl->tpl_vars['product']->value['id_product_attribute']), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Product detail', 'mod' => 'blockcart'), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['product']->value['attributes_small']; ?> </a> </div> <?php } ?> <span class="price"> <?php if (!isset($_smarty_tpl->tpl_vars['product']->value['is_gift']) || !$_smarty_tpl->tpl_vars['product']->value['is_gift']) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == @constant('PS_TAX_EXC')) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p' => (string) $_smarty_tpl->tpl_vars['product']->value['total']), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p' => (string) $_smarty_tpl->tpl_vars['product']->value['total_wt']), $_smarty_tpl); } ?> <div class="hookDisplayProductPriceBlock-price"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "price", 'from' => "blockcart"), $_smarty_tpl); ?> </div> <?php } else { ?> <?php echo smartyTranslate(array('s' => 'Free!', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php } ?> </span> </div> <span class="remove_link"> <?php if (!isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]) && (!isset($_smarty_tpl->tpl_vars['product']->value['is_gift']) || !$_smarty_tpl->tpl_vars['product']->value['is_gift'])) { ?> <a class="ajax_cart_block_remove_link" href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']); $_tmp9 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']); $_tmp10 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); $_tmp11 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', true, null, "delete=1&id_product=" . $_tmp9 . "&ipa=" . $_tmp10 . "&id_address_delivery=" . $_tmp11 . "&token=" . (string) $_smarty_tpl->tpl_vars['static_token']->value), ENT_QUOTES, 'UTF-8', true); ?> " rel="nofollow" title="<?php echo smartyTranslate(array('s' => 'remove this product from my cart', 'mod' => 'blockcart'), $_smarty_tpl); ?> "> </a> <?php } ?> </span> </dt> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) { ?> <dd data-id="cart_block_combination_of_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']); if ($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']) { ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']); } ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> " class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) { ?> first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) { ?> last_item<?php } else { ?> item<?php } ?> "> <?php } ?> <!-- Customizable datas --> <?php if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value][$_smarty_tpl->tpl_vars['product']->value['id_address_delivery']])) { ?> <?php if (!isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) { ?> <dd data-id="cart_block_combination_of_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']); ?> _<?php if ($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']) { echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']); } else { ?> 0<?php } ?> _<?php if ($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']) { echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); } else { ?> 0<?php } ?> " class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) { ?> first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) { ?> last_item<?php } else { ?> item<?php } ?> "> <?php } ?> <ul class="cart_block_customizations" data-id="customization_<?php echo $_smarty_tpl->tpl_vars['productId']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['productAttributeId']->value; ?> "> <?php $_smarty_tpl->tpl_vars['customization'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['customization']->_loop = false; $_smarty_tpl->tpl_vars['id_customization'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value][$_smarty_tpl->tpl_vars['product']->value['id_address_delivery']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['customization']->key => $_smarty_tpl->tpl_vars['customization']->value) { $_smarty_tpl->tpl_vars['customization']->_loop = true; $_smarty_tpl->tpl_vars['id_customization']->value = $_smarty_tpl->tpl_vars['customization']->key; ?> <li name="customization"> <div data-id="deleteCustomizableProduct_<?php echo intval($_smarty_tpl->tpl_vars['id_customization']->value); ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']); ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']); ?> _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']); ?> " class="deleteCustomizableProduct"> <a class="ajax_cart_block_remove_link" href="<?php ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']); $_tmp12 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']); $_tmp13 = ob_get_clean(); ob_start(); echo intval($_smarty_tpl->tpl_vars['id_customization']->value); $_tmp14 = ob_get_clean(); echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart', true, null, "delete=1&id_product=" . $_tmp12 . "&ipa=" . $_tmp13 . "&id_customization=" . $_tmp14 . "&token=" . (string) $_smarty_tpl->tpl_vars['static_token']->value), ENT_QUOTES, 'UTF-8', true); ?> " rel="nofollow"> </a> </div> <?php if (isset($_smarty_tpl->tpl_vars['customization']->value['datas'][$_smarty_tpl->tpl_vars['CUSTOMIZE_TEXTFIELD']->value][0])) { ?> <?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate(smarty_modifier_replace($_smarty_tpl->tpl_vars['customization']->value['datas'][$_smarty_tpl->tpl_vars['CUSTOMIZE_TEXTFIELD']->value][0]['value'], "<br />", " "), 28, '...'), ENT_QUOTES, 'UTF-8', true); ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => 'Customization #%d:', 'sprintf' => intval($_smarty_tpl->tpl_vars['id_customization']->value), 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php } ?> </li> <?php } ?> </ul> <?php if (!isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) { ?> </dd><?php } ?> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) { ?> </dd><?php } ?> <?php } ?> </dl> <?php } ?> <p class="cart_block_no_products<?php if ($_smarty_tpl->tpl_vars['products']->value) { ?> unvisible<?php } ?> "> <?php echo smartyTranslate(array('s' => 'No products', 'mod' => 'blockcart'), $_smarty_tpl); ?> </p> <?php if (count($_smarty_tpl->tpl_vars['discounts']->value) > 0) { ?> <table class="vouchers<?php if (count($_smarty_tpl->tpl_vars['discounts']->value) == 0) { ?> unvisible<?php } ?> "> <?php $_smarty_tpl->tpl_vars['discount'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['discount']->_loop = false; $_from = $_smarty_tpl->tpl_vars['discounts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['discount']->key => $_smarty_tpl->tpl_vars['discount']->value) { $_smarty_tpl->tpl_vars['discount']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['discount']->value['value_real'] > 0) { ?> <tr class="bloc_cart_voucher" data-id="bloc_cart_voucher_<?php echo intval($_smarty_tpl->tpl_vars['discount']->value['id_discount']); ?> "> <td class="quantity">1x</td> <td class="name" title="<?php echo $_smarty_tpl->tpl_vars['discount']->value['description']; ?> "> <?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['discount']->value['name'], 18, '...'), ENT_QUOTES, 'UTF-8', true); ?> </td> <td class="price"> -<?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_tax_exc']), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_real']), $_smarty_tpl); } ?> </td> <td class="delete"> <?php if (strlen($_smarty_tpl->tpl_vars['discount']->value['code'])) { ?> <a class="delete_voucher" href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getPageLink((string) $_smarty_tpl->tpl_vars['order_process']->value, true); ?> ?deleteDiscount=<?php echo intval($_smarty_tpl->tpl_vars['discount']->value['id_discount']); ?> " title="<?php echo smartyTranslate(array('s' => 'Delete', 'mod' => 'blockcart'), $_smarty_tpl); ?> " rel="nofollow"> <i class="icon-remove-sign"></i> </a> <?php } ?> </td> </tr> <?php } ?> <?php } ?> </table> <?php } ?> <?php $_smarty_tpl->tpl_vars['free_ship'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['cart']->value->getDeliveryAddressesWithoutCarriers(true, $_smarty_tpl->tpl_vars['errors']->value)), null, 0); ?> <div class="cart-prices"> <div class="cart-prices-line first-line"> <span class="price cart_block_shipping_cost ajax_cart_shipping_cost<?php if (!($_smarty_tpl->tpl_vars['page_name']->value == 'order-opc') && $_smarty_tpl->tpl_vars['shipping_cost_float']->value == 0 && (!$_smarty_tpl->tpl_vars['cart_qties']->value || $_smarty_tpl->tpl_vars['cart']->value->isVirtualCart() || !isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery || $_smarty_tpl->tpl_vars['free_ship']->value)) { ?> unvisible<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['shipping_cost_float']->value == 0) { ?> <?php if (!($_smarty_tpl->tpl_vars['page_name']->value == 'order-opc') && (!isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery)) { echo smartyTranslate(array('s' => 'To be determined', 'mod' => 'blockcart'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Free shipping!', 'mod' => 'blockcart'), $_smarty_tpl); } ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['shipping_cost']->value; ?> <?php } ?> </span> <span<?php if (!($_smarty_tpl->tpl_vars['page_name']->value == 'order-opc') && $_smarty_tpl->tpl_vars['shipping_cost_float']->value == 0 && (!$_smarty_tpl->tpl_vars['cart_qties']->value || $_smarty_tpl->tpl_vars['cart']->value->isVirtualCart() || !isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery || $_smarty_tpl->tpl_vars['free_ship']->value)) { ?> class="unvisible"<?php } ?> > <?php echo smartyTranslate(array('s' => 'Shipping', 'mod' => 'blockcart'), $_smarty_tpl); ?> </span> </div> <?php if ($_smarty_tpl->tpl_vars['show_wrapping']->value) { ?> <div class="cart-prices-line"> <?php $_smarty_tpl->tpl_vars['cart_flag'] = new Smarty_variable(constant('Cart::ONLY_WRAPPING'), null, 0); ?> <span class="price cart_block_wrapping_cost"> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(false, $_smarty_tpl->tpl_vars['cart_flag']->value)), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(true, $_smarty_tpl->tpl_vars['cart_flag']->value)), $_smarty_tpl); ?> <?php } ?> </span> <span> <?php echo smartyTranslate(array('s' => 'Wrapping', 'mod' => 'blockcart'), $_smarty_tpl); ?> </span> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['show_tax']->value && isset($_smarty_tpl->tpl_vars['tax_cost']->value)) { ?> <div class="cart-prices-line"> <span class="price cart_block_tax_cost ajax_cart_tax_cost"><?php echo $_smarty_tpl->tpl_vars['tax_cost']->value; ?> </span> <span><?php echo smartyTranslate(array('s' => 'Tax', 'mod' => 'blockcart'), $_smarty_tpl); ?> </span> </div> <?php } ?> <div class="cart-prices-line last-line"> <span class="price cart_block_total ajax_block_cart_total"><?php echo $_smarty_tpl->tpl_vars['total']->value; ?> </span> <span><?php echo smartyTranslate(array('s' => 'Total', 'mod' => 'blockcart'), $_smarty_tpl); ?> </span> </div> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value && $_smarty_tpl->tpl_vars['show_tax']->value) { ?> <p> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 0) { ?> <?php echo smartyTranslate(array('s' => 'Prices are tax included', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php } elseif ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { ?> <?php echo smartyTranslate(array('s' => 'Prices are tax excluded', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php } ?> </p> <?php } ?> </div> <p class="cart-buttons"> <a id="button_order_cart" class="btn btn-default button button-small" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink((string) $_smarty_tpl->tpl_vars['order_process']->value, true), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Check out', 'mod' => 'blockcart'), $_smarty_tpl); ?> " rel="nofollow"> <span> <?php echo smartyTranslate(array('s' => 'Check out', 'mod' => 'blockcart'), $_smarty_tpl); ?> <i class="icon-chevron-right right"></i> </span> </a> </p> </div> </div> </div><!-- .cart_block --> <?php } ?> </div> <?php if (isset($_smarty_tpl->tpl_vars['blockcart_top']->value) && $_smarty_tpl->tpl_vars['blockcart_top']->value) { ?> </div> <?php } echo smarty_function_counter(array('name' => 'active_overlay', 'assign' => 'active_overlay'), $_smarty_tpl); ?> <?php if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && $_smarty_tpl->tpl_vars['active_overlay']->value == 1) { ?> <div id="layer_cart"> <div class="clearfix"> <div class="layer_cart_product col-xs-12 col-md-6"> <span class="cross" title="<?php echo smartyTranslate(array('s' => 'Close window', 'mod' => 'blockcart'), $_smarty_tpl); ?> "></span> <span class="title"> <i class="icon-check"></i><?php echo smartyTranslate(array('s' => 'Product successfully added to your shopping cart', 'mod' => 'blockcart'), $_smarty_tpl); ?> </span> <div class="product-image-container layer_cart_img"> </div> <div class="layer_cart_product_info"> <span id="layer_cart_product_title" class="product-name"></span> <span id="layer_cart_product_attributes"></span> <div> <strong class="dark"><?php echo smartyTranslate(array('s' => 'Quantity', 'mod' => 'blockcart'), $_smarty_tpl); ?> </strong> <span id="layer_cart_product_quantity"></span> </div> <div> <strong class="dark"><?php echo smartyTranslate(array('s' => 'Total', 'mod' => 'blockcart'), $_smarty_tpl); ?> </strong> <span id="layer_cart_product_price"></span> </div> </div> </div> <div class="layer_cart_cart col-xs-12 col-md-6"> <span class="title"> <!-- Plural Case [both cases are needed because page may be updated in Javascript] --> <span class="ajax_cart_product_txt_s <?php if ($_smarty_tpl->tpl_vars['cart_qties']->value < 2) { ?> unvisible<?php } ?> "> <?php echo smartyTranslate(array('s' => 'There are [1]%d[/1] items in your cart.', 'mod' => 'blockcart', 'sprintf' => array($_smarty_tpl->tpl_vars['cart_qties']->value), 'tags' => array('<span class="ajax_cart_quantity">')), $_smarty_tpl); ?> </span> <!-- Singular Case [both cases are needed because page may be updated in Javascript] --> <span class="ajax_cart_product_txt <?php if ($_smarty_tpl->tpl_vars['cart_qties']->value > 1) { ?> unvisible<?php } ?> "> <?php echo smartyTranslate(array('s' => 'There is 1 item in your cart.', 'mod' => 'blockcart'), $_smarty_tpl); ?> </span> </span> <div class="layer_cart_row"> <strong class="dark"> <?php echo smartyTranslate(array('s' => 'Total products', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value && $_smarty_tpl->tpl_vars['show_tax']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { ?> <?php echo smartyTranslate(array('s' => '(tax excl.)', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => '(tax incl.)', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php } ?> <?php } ?> </strong> <span class="ajax_block_products_total"> <?php if ($_smarty_tpl->tpl_vars['cart_qties']->value > 0) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(false, Cart::ONLY_PRODUCTS)), $_smarty_tpl); ?> <?php } ?> </span> </div> <?php if ($_smarty_tpl->tpl_vars['show_wrapping']->value) { ?> <div class="layer_cart_row"> <strong class="dark"> <?php echo smartyTranslate(array('s' => 'Wrapping', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value && $_smarty_tpl->tpl_vars['show_tax']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { ?> <?php echo smartyTranslate(array('s' => '(tax excl.)', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => '(tax incl.)', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php } ?> <?php } ?> </strong> <span class="price cart_block_wrapping_cost"> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(false, Cart::ONLY_WRAPPING)), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(true, Cart::ONLY_WRAPPING)), $_smarty_tpl); ?> <?php } ?> </span> </div> <?php } ?> <div class="layer_cart_row"> <strong class="dark<?php if ($_smarty_tpl->tpl_vars['shipping_cost_float']->value == 0 && (!$_smarty_tpl->tpl_vars['cart_qties']->value || $_smarty_tpl->tpl_vars['cart']->value->isVirtualCart() || !isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery)) { ?> unvisible<?php } ?> "> <?php echo smartyTranslate(array('s' => 'Total shipping', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value && $_smarty_tpl->tpl_vars['show_tax']->value) { if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { echo smartyTranslate(array('s' => '(tax excl.)', 'mod' => 'blockcart'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => '(tax incl.)', 'mod' => 'blockcart'), $_smarty_tpl); } } ?> </strong> <span class="ajax_cart_shipping_cost<?php if ($_smarty_tpl->tpl_vars['shipping_cost_float']->value == 0 && (!$_smarty_tpl->tpl_vars['cart_qties']->value || $_smarty_tpl->tpl_vars['cart']->value->isVirtualCart() || !isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery)) { ?> unvisible<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['shipping_cost_float']->value == 0) { ?> <?php if (!isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) || !$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) { echo smartyTranslate(array('s' => 'To be determined', 'mod' => 'blockcart'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Free shipping!', 'mod' => 'blockcart'), $_smarty_tpl); } ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['shipping_cost']->value; ?> <?php } ?> </span> </div> <?php if ($_smarty_tpl->tpl_vars['show_tax']->value && isset($_smarty_tpl->tpl_vars['tax_cost']->value)) { ?> <div class="layer_cart_row"> <strong class="dark"><?php echo smartyTranslate(array('s' => 'Tax', 'mod' => 'blockcart'), $_smarty_tpl); ?> </strong> <span class="price cart_block_tax_cost ajax_cart_tax_cost"><?php echo $_smarty_tpl->tpl_vars['tax_cost']->value; ?> </span> </div> <?php } ?> <div class="layer_cart_row"> <strong class="dark"> <?php echo smartyTranslate(array('s' => 'Total', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value && $_smarty_tpl->tpl_vars['show_tax']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { ?> <?php echo smartyTranslate(array('s' => '(tax excl.)', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => '(tax incl.)', 'mod' => 'blockcart'), $_smarty_tpl); ?> <?php } ?> <?php } ?> </strong> <span class="ajax_block_cart_total"> <?php if ($_smarty_tpl->tpl_vars['cart_qties']->value > 0) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(false)), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(true)), $_smarty_tpl); ?> <?php } ?> <?php } ?> </span> </div> <div class="button-container"> <span class="continue btn btn-default button exclusive-medium" title="<?php echo smartyTranslate(array('s' => 'Continue shopping', 'mod' => 'blockcart'), $_smarty_tpl); ?> "> <span> <i class="icon-chevron-left left"></i><?php echo smartyTranslate(array('s' => 'Continue shopping', 'mod' => 'blockcart'), $_smarty_tpl); ?> </span> </span> <a class="btn btn-default button button-medium" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink((string) $_smarty_tpl->tpl_vars['order_process']->value, true), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Proceed to checkout', 'mod' => 'blockcart'), $_smarty_tpl); ?> " rel="nofollow"> <span> <?php echo smartyTranslate(array('s' => 'Proceed to checkout', 'mod' => 'blockcart'), $_smarty_tpl); ?> <i class="icon-chevron-right right"></i> </span> </a> </div> </div> </div> <div class="crossseling"></div> </div> <!-- #layer_cart --> <div class="layer_cart_overlay"></div> <?php } echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('CUSTOMIZE_TEXTFIELD' => $_smarty_tpl->tpl_vars['CUSTOMIZE_TEXTFIELD']->value), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('img_dir' => preg_replace("%(?<!\\\\)'%", "\\'", $_smarty_tpl->tpl_vars['img_dir']->value)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('generated_date' => intval(time())), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('ajax_allowed' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['ajax_allowed']->value)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('hasDeliveryAddress' => isset($_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) && $_smarty_tpl->tpl_vars['cart']->value->id_address_delivery), $_smarty_tpl); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'customizationIdMessage')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'customizationIdMessage'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'Customization #', 'mod' => 'blockcart', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'customizationIdMessage'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'removingLinkText')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'removingLinkText'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'remove this product from my cart', 'mod' => 'blockcart', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'removingLinkText'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'freeShippingTranslation')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'freeShippingTranslation'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'Free shipping!', 'mod' => 'blockcart', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'freeShippingTranslation'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'freeProductTranslation')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'freeProductTranslation'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'Free!', 'mod' => 'blockcart', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'freeProductTranslation'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'delete_txt')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'delete_txt'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'Delete', 'mod' => 'blockcart', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'delete_txt'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'toBeDetermined')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'toBeDetermined'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'To be determined', 'mod' => 'blockcart', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'toBeDetermined'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!-- /MODULE Block cart --> <?php }
function content_55e982e1dd1456_87740967($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/home/content/75/12056575/html/webty/cliente/vendor/smarty/smarty/libs/plugins/modifier.replace.php'; } ?> <li><a href="index.php" title="Home"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['home']['title']; ?> </a> <ul> <li><a href="index.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['hometitle']; ?> </a></li> <li><a href="myaccount.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['myaccount']; ?> </a></li> <li><a href="logout.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['logout']; ?> </a></li> </ul> </li> <li><a <?php if (in_array("List Clients", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> href="clients.php"<?php } ?> title="Clients" id="Menu-Clients"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['clients']['title']; ?> </a> <ul> <?php if (in_array("List Clients", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a href="clients.php" id="Menu-Clients-View_Search_Clients"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['clients']['viewsearch']; ?> </a></li><?php } ?> <?php if (in_array("Add New Client", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a href="clientsadd.php" id="Menu-Clients-Add_New_Client"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['clients']['addnew']; ?> </a></li><?php } ?> <?php if (in_array("List Services", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a href="clientshostinglist.php" id="Menu-Clients-Products_Services"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['services']['title']; ?> </a> <ul> <li><a id="Menu-Clients-Products_Services-Shared_Hosting" href="clientshostinglist.php?listtype=hostingaccount">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['services']['listhosting']; ?> </a></li> <li><a id="Menu-Clients-Products_Services-Reseller_Accounts" href="clientshostinglist.php?listtype=reselleraccount">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['services']['listreseller']; ?> </a></li> <li><a id="Menu-Clients-Products_Services-VPS_Servers" href="clientshostinglist.php?listtype=server">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['services']['listservers']; ?> </a></li> <li><a id="Menu-Clients-Products_Services-Other_Services" href="clientshostinglist.php?listtype=other">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['services']['listother']; ?> </a></li> </ul> </li> <?php } ?> <?php if (in_array("List Addons", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Clients-Service_Addons" href="clientsaddonslist.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['services']['listaddons']; ?> </a></li><?php } ?> <?php if (in_array("List Domains", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Clients-Domain_Registration" href="clientsdomainlist.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['services']['listdomains']; ?> </a></li><?php } ?> <?php if (in_array("View Cancellation Requests", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Clients-Cancelation_Requests" href="cancelrequests.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['clients']['cancelrequests']; ?> </a></li><?php } ?> <?php if (in_array("Manage Affiliates", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Clients-Manage_Affiliates" href="affiliates.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['affiliates']['manage']; ?> </a></li><?php } ?> <?php if (in_array("Mass Mail", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Clients-Mass_Mail_Tool" href="massmail.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['clients']['massmail']; ?> </a></li><?php } ?> </ul> </li> <li><a id="Menu-Orders" <?php if (in_array("View Orders", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> href="orders.php"<?php } ?> title="Orders"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['orders']['title']; ?> </a> <ul> <?php if (in_array("View Orders", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Orders-List_All_Orders" href="orders.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['orders']['listall']; ?> </a></li> <li><a id="Menu-Orders-Pending_Orders" href="orders.php?status=Pending">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['orders']['listpending']; ?> </a></li> <li><a id="Menu-Orders-Active_Orders" href="orders.php?status=Active">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['orders']['listactive']; ?> </a></li> <li><a id="Menu-Orders-Fraud_Orders" href="orders.php?status=Fraud">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['orders']['listfraud']; ?> </a></li> <li><a id="Menu-Orders-Cancelled_Orders" href="orders.php?status=Cancelled">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['orders']['listcancelled']; ?> </a></li><?php } ?> <?php if (in_array("Add New Order", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Orders-Add_New_Order" href="ordersadd.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['orders']['addnew']; ?> </a></li><?php } ?> </ul> </li> <li><a id="Menu-Billing" <?php if (in_array("List Transactions", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> href="transactions.php"<?php } ?> title="Billing"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['billing']['title']; ?> </a> <ul> <?php if (in_array("List Transactions", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Billing-Transactions_List" href="transactions.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['billing']['transactionslist']; ?> </a></li><?php } ?> <?php if (in_array("List Invoices", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a id="Menu-Billing-Invoices" href="invoices.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['invoices']['title']; ?> </a> <ul> <li><a id="Menu-Billing-Invoices-Paid" href="invoices.php?status=Paid">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['paid']; ?> </a></li> <li><a id="Menu-Billing-Invoices-Unpaid" href="invoices.php?status=Unpaid">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['unpaid']; ?> </a></li> <li><a id="Menu-Billing-Invoices-Overdue" href="invoices.php?status=Overdue">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['overdue']; ?> </a></li> <li><a id="Menu-Billing-Invoices-Cancelled" href="invoices.php?status=Cancelled">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['cancelled']; ?> </a></li> <li><a id="Menu-Billing-Invoices-Refunded" href="invoices.php?status=Refunded">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['refunded']; ?> </a></li> <li><a id="Menu-Billing-Invoices-Collections" href="invoices.php?status=Collections">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['collections']; ?> </a></li> </ul> </li><?php } ?> <?php if (in_array("View Billable Items", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a id="Menu-Billing-Billable_Items" href="billableitems.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['billableitems']['title']; ?> </a> <ul> <li><a id="Menu-Billing-Billable_Items-Uninvoiced_Items" href="billableitems.php?status=Uninvoiced">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['billableitems']['uninvoiced']; ?> </a></li> <li><a id="Menu-Billing-Billable_Items-Recurring_Items" href="billableitems.php?status=Recurring">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['billableitems']['recurring']; ?> </a></li> <?php if (in_array("Manage Billable Items", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Billing-Billable_Items-Add_New" href="billableitems.php?action=manage">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['billableitems']['addnew']; ?> </a></li><?php } ?> </ul> </li><?php } ?> <?php if (in_array("Manage Quotes", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a id="Menu-Billing-Quotes" href="quotes.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['quotes']['title']; ?> </a> <ul> <li><a id="Menu-Billing-Quotes-Valid" href="quotes.php?validity=Valid">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['valid']; ?> </a></li> <li><a id="Menu-Billing-Quotes-Expired" href="quotes.php?validity=Expired">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['status']['expired']; ?> </a></li> <li><a id="Menu-Billing-Quotes-Create_New_Quote" href="quotes.php?action=manage">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['quotes']['createnew']; ?> </a></li> </ul> </li><?php } ?> <?php if (in_array("Offline Credit Card Processing", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Billing-Offline_CC_Processing" href="offlineccprocessing.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['billing']['offlinecc']; ?> </a></li><?php } ?> <?php if (in_array("View Gateway Log", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Billing-Gateway_Log" href="gatewaylog.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['billing']['gatewaylog']; ?> </a></li><?php } ?> </ul> </li> <li><a id="Menu-Support" <?php if (in_array("Support Center Overview", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> href="supportcenter.php"<?php } ?> title="Support"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['title']; ?> </a> <ul> <?php if (in_array("Manage Announcements", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Support-Annoucements" href="supportannouncements.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['announcements']; ?> </a></li><?php } ?> <?php if (in_array("Manage Downloads", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Support-Downloads" href="supportdownloads.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['downloads']; ?> </a></li><?php } ?> <?php if (in_array("Manage Knowledgebase", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Support-Knowledgebase" href="supportkb.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['knowledgebase']; ?> </a></li><?php } ?> <?php if (in_array("List Support Tickets", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a id="Menu-Support-Support_Tickets" href="supporttickets.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['supporttickets']; ?> </a> <ul> <li><a id="Menu-Support-Support_Tickets-Flagged_Tickets" href="supporttickets.php?view=flagged">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['flagged']; ?> </a></li> <li><a id="Menu-Support-Support_Tickets-All_Active_Tickets" href="supporttickets.php?view=active">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['allactive']; ?> </a></li> <?php $_smarty_tpl->tpl_vars['status'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['status']->_loop = false; $_from = $_smarty_tpl->tpl_vars['menuticketstatuses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['status']->key => $_smarty_tpl->tpl_vars['status']->value) { $_smarty_tpl->tpl_vars['status']->_loop = true; ?> <li><a id="Menu-Support-Support_Tickets-<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['status']->value, ' ', '_'); ?> " href="supporttickets.php?view=<?php echo $_smarty_tpl->tpl_vars['status']->value; ?> ">- <?php echo $_smarty_tpl->tpl_vars['status']->value; ?> </a></li> <?php } ?> </ul> </li><?php } ?> <?php if (in_array("Open New Ticket", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Support-Open_New_Ticket" href="supporttickets.php?action=open"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['opennewticket']; ?> </a></li><?php } ?> <?php if (in_array("Manage Predefined Replies", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Support-Predefined_Replies" href="supportticketpredefinedreplies.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['predefreplies']; ?> </a></li><?php } ?> <?php if (in_array("Manage Network Issues", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a id="Menu-Support-Network_Issues" href="networkissues.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['networkissues']['title']; ?> </a> <ul> <li><a id="Menu-Support-Network_Issues-Open" href="networkissues.php">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['networkissues']['open']; ?> </a></li> <li><a id="Menu-Support-Network_Issues-Scheduled" href="networkissues.php?view=scheduled">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['networkissues']['scheduled']; ?> </a></li> <li><a id="Menu-Support-Network_Issues-Resolved" href="networkissues.php?view=resolved">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['networkissues']['resolved']; ?> </a></li> <li><a id="Menu-Support-Network_Issues-Create_New" href="networkissues.php?action=manage">- <?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['networkissues']['addnew']; ?> </a></li> </ul> </li><?php } ?> </ul> </li> <?php if (in_array("View Reports", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Reports" title="Reports" href="reports.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['reports']['title']; ?> </a> <ul> <li><a id="Menu-Reports-Daily_Performance" href="reports.php?report=daily_performance">Daily Performance</a></li> <li><a id="Menu-Reports-Income_Forecast" href="reports.php?report=income_forecast">Income Forecast</a></li> <li><a id="Menu-Reports-Annual_Income_Report" href="reports.php?report=annual_income_report">Annual Income Report</a></li> <li><a id="Menu-Reports-New_Customers" href="reports.php?report=new_customers">New Customers</a></li> <li><a id="Menu-Reports-Ticket_Feedback_Scores" href="reports.php?report=ticket_feedback_scores">Ticket Feedback Scores</a></li> <li><a id="Menu-Reports-Batch_Invoice_PDF_Export" href="reports.php?report=pdf_batch">Batch Invoice PDF Export</a></li> <li><a id="Menu-Reports-More..." href="reports.php">More...</a></li> </ul> </li><?php } ?> <li><a id="Menu-Utilities" title="Utilities" href=""><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['title']; ?> </a> <ul> <?php if (in_array("WHMCSConnect", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-WHMCS_Connect" href="whmcsconnect.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['whmcsConnect']['whmcsConnectName']; ?> </a></li><?php } ?> <?php if (in_array("Email Marketer", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-Email_Marketer" href="utilitiesemailmarketer.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['emailmarketer']; ?> </a></li><?php } ?> <?php if (in_array("Link Tracking", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-Link_Tracking" href="utilitieslinktracking.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['linktracking']; ?> </a></li><?php } ?> <?php if (in_array("Browser", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-Browser" href="browser.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['browser']; ?> </a></li><?php } ?> <?php if (in_array("Calendar", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-Calendar" href="calendar.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['calendar']; ?> </a></li><?php } ?> <?php if (in_array("To-Do List", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-To-Do_List" href="todolist.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['todolist']; ?> </a></li><?php } ?> <?php if (in_array("WHOIS Lookups", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-WHOIS_Lookups" href="whois.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['whois']; ?> </a></li><?php } ?> <?php if (in_array("Domain Resolver Checker", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-Domain_Resolver" href="utilitiesresolvercheck.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['domainresolver']; ?> </a></li><?php } ?> <?php if (in_array("View Integration Code", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-Integration_Code" href="systemintegrationcode.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['integrationcode']; ?> </a></li><?php } ?> <?php if (in_array("WHM Import Script", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-cPanel_WHM_Import" href="whmimport.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['cpanelimport']; ?> </a></li><?php } ?> <?php if (in_array("Database Status", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("System Cleanup Operations", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("View PHP Info", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a id="Menu-Utilities-System" href="#"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['system']; ?> </a> <ul> <?php if (in_array("Database Status", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-System-Database_Status" href="systemdatabase.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['dbstatus']; ?> </a></li><?php } ?> <?php if (in_array("System Cleanup Operations", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-System-System_Cleanup" href="systemcleanup.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['syscleanup']; ?> </a></li><?php } ?> <?php if (in_array("View PHP Info", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-System-PHP_Info" href="systemphpinfo.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['phpinfo']; ?> </a></li><?php } ?> </ul> </li><?php } ?> <?php if (in_array("View Activity Log", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("View Admin Log", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("View Module Debug Log", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("View Email Message Log", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("View Ticket Mail Import Log", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("View WHOIS Lookup Log", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a id="Menu-Utilities-Logs" href="#"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['logs']; ?> </a> <ul> <?php if (in_array("View Activity Log", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-Logs-Activity_Log" href="systemactivitylog.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['activitylog']; ?> </a></li><?php } ?> <?php if (in_array("View Admin Log", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-Logs-Admin_Log" href="systemadminlog.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['adminlog']; ?> </a></li><?php } ?> <?php if (in_array("View Module Debug Log", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-Logs-Module_Log" href="systemmodulelog.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['modulelog']; ?> </a></li><?php } ?> <?php if (in_array("View Email Message Log", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-Logs-Email_Message_Log" href="systememaillog.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['emaillog']; ?> </a></li><?php } ?> <?php if (in_array("View Ticket Mail Import Log", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-Logs-Ticket_Email_Import_Log" href="systemmailimportlog.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['ticketmaillog']; ?> </a></li><?php } ?> <?php if (in_array("View WHOIS Lookup Log", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Utilities-Logs-WHOIS_Lookup_Log" href="systemwhoislog.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['whoislog']; ?> </a></li><?php } ?> </ul> </li><?php } ?> </ul> </li> <li><a id="Menu-Addons" title="Addons" href="addonmodules.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['addonmodules']; ?> </a> <ul> <?php $_smarty_tpl->tpl_vars['displayname'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['displayname']->_loop = false; $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['addon_modules']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['displayname']->key => $_smarty_tpl->tpl_vars['displayname']->value) { $_smarty_tpl->tpl_vars['displayname']->_loop = true; $_smarty_tpl->tpl_vars['module']->value = $_smarty_tpl->tpl_vars['displayname']->key; ?> <li><a id="Menu-Addons-<?php echo $_smarty_tpl->tpl_vars['displayname']->value; ?> " href="addonmodules.php?module=<?php echo $_smarty_tpl->tpl_vars['module']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['displayname']->value; ?> </a></li> <?php } if (!$_smarty_tpl->tpl_vars['displayname']->_loop) { ?> <li><a id="Menu-Addons-Addons_Directory" href="addonmodules.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['utilities']['addonsdirectory']; ?> </a></li> <?php } ?> </ul> </li> <li><a id="Menu-Setup" title="Setup" href=""><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['title']; ?> </a> <ul> <?php if (in_array("Configure General Settings", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-General_Settings" href="configgeneral.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['general']; ?> </a></li><?php } ?> <?php if (in_array("Configure Automation Settings", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Automation_Settings" href="configauto.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['automation']; ?> </a></li><?php } if (in_array("Configure Administrators", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Admin Roles", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Two-Factor Authentication", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a id="Menu-Setup-Staff_Management" href="#"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['staff']; ?> </a> <ul> <?php if (in_array("Configure Administrators", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Staff_Management-Administrator_Users" href="configadmins.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['admins']; ?> </a></li><?php } ?> <?php if (in_array("Configure Admin Roles", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Staff_Management-Administrator_Roles" href="configadminroles.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['adminroles']; ?> </a></li><?php } ?> <?php if (in_array("Configure Two-Factor Authentication", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Staff_Management-Two-Factor_Authentication" href="configtwofa.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['twofa']; ?> </a></li><?php } ?> </ul> </li><?php } else { ?> <li><a id="Menu-Setup-Staff_Management-My_Account" href="myaccount.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['global']['myaccount']; ?> </a></li><?php } if (in_array("Configure Currencies", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Payment Gateways", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Tax Setup", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("View Promotions", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a id="Menu-Setup-Payments" href="#"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['payments']; ?> </a> <ul> <?php if (in_array("Configure Currencies", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Payments-Currencies" href="configcurrencies.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['currencies']; ?> </a></li><?php } ?> <?php if (in_array("Configure Payment Gateways", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Payments-Payment_Gateways" href="configgateways.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['gateways']; ?> </a></li><?php } ?> <?php if (in_array("Configure Tax Setup", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Payments-Tax_Rules" href="configtax.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['tax']; ?> </a></li><?php } ?> <?php if (in_array("View Promotions", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Payments-Promotions" href="configpromotions.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['promos']; ?> </a></li><?php } ?> </ul> </li><?php } if (in_array("View Products/Services", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Product Addons", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Product Bundles", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Domain Pricing", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Domain Registrars", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Servers", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a id="Menu-Setup-Products_Services" href="#"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['products']; ?> </a> <ul> <?php if (in_array("View Products/Services", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Products_Services-Products_Services" href="configproducts.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['products']; ?> </a></li><?php } ?> <?php if (in_array("View Products/Services", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Products_Services-Configurable_Options" href="configproductoptions.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['configoptions']; ?> </a></li><?php } ?> <?php if (in_array("Configure Product Addons", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Products_Services-Product_Addons" href="configaddons.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['addons']; ?> </a></li><?php } ?> <?php if (in_array("Configure Product Bundles", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Products_Services-Product_Bundles" href="configbundles.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['bundles']; ?> </a></li><?php } ?> <?php if (in_array("Configure Domain Pricing", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Products_Services-Domain_Pricing" href="configdomains.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['domainpricing']; ?> </a></li><?php } ?> <?php if (in_array("Configure Domain Registrars", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Products_Services-Domain_Registrars" href="configregistrars.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['registrars']; ?> </a></li><?php } ?> <?php if (in_array("Configure Servers", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Products_Services-Servers" href="configservers.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['servers']; ?> </a></li><?php } ?> </ul> </li><?php } if (in_array("Configure Support Departments", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Ticket Statuses", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Support Departments", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Spam Control", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a id="Menu-Setup-Support" href="#"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['support']['title']; ?> </a> <ul> <?php if (in_array("Configure Support Departments", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Support-Support_Departments" href="configticketdepartments.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['supportdepartments']; ?> </a></li><?php } ?> <?php if (in_array("Configure Ticket Statuses", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Support-Ticket_Statuses" href="configticketstatuses.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['ticketstatuses']; ?> </a></li><?php } ?> <?php if (in_array("Configure Support Departments", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Support-Escalation_Rules" href="configticketescalations.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['escalationrules']; ?> </a></li><?php } ?> <?php if (in_array("Configure Spam Control", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Support-Spam_Control" href="configticketspamcontrol.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['spam']; ?> </a></li><?php } ?> </ul> </li><?php } ?> <?php if (in_array("View Email Templates", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Email_Templates" href="configemailtemplates.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['emailtpls']; ?> </a></li><?php } ?> <?php if (in_array("Configure Addon Modules", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Addons_Modules" href="configaddonmods.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['addonmodules']; ?> </a></li><?php } ?> <?php if (in_array("Configure Client Groups", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Client_Groups" href="configclientgroups.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['clientgroups']; ?> </a></li><?php } ?> <?php if (in_array("Configure Custom Client Fields", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Custom_Client_Fields" href="configcustomfields.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['customclientfields']; ?> </a></li><?php } ?> <?php if (in_array("Configure Fraud Protection", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Fraud_Protection" href="configfraud.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['fraud']; ?> </a></li><?php } if (in_array("Configure Order Statuses", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Security Questions", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("View Banned IPs", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Banned Emails", $_smarty_tpl->tpl_vars['admin_perms']->value) || in_array("Configure Database Backups", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li class="expand"><a id="Menu-Setup-Other" href="#"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['other']; ?> </a> <ul> <?php if (in_array("Configure Order Statuses", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Other-Order_Statuses" href="configorderstatuses.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['orderstatuses']; ?> </a></li><?php } ?> <?php if (in_array("Configure Security Questions", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Other-Security_Questions" href="configsecurityqs.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['securityqs']; ?> </a></li><?php } ?> <?php if (in_array("View Banned IPs", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Other-Banned_IPs" href="configbannedips.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['bannedips']; ?> </a></li><?php } ?> <?php if (in_array("Configure Banned Emails", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Other-Banned_Emails" href="configbannedemails.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['bannedemails']; ?> </a></li><?php } ?> <?php if (in_array("Configure Database Backups", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Setup-Other-Database_Backups" href="configbackups.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['setup']['backups']; ?> </a></li><?php } ?> </ul> </li><?php } ?> </ul> </li> <li><a id="Menu-Help" title="Help" href=""><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['help']['title']; ?> </a> <ul> <li><a id="Menu-Help-Documentation" href="http://docs.whmcs.com/" target="_blank"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['help']['docs']; ?> </a></li> <?php if (in_array("Main Homepage", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Help-License_Information" href="systemlicense.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['help']['licenseinfo']; ?> </a></li><?php } ?> <?php if (in_array("Configure Administrators", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Help-Change_License_Key" href="licenseerror.php?licenseerror=change"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['help']['changelicense']; ?> </a></li><?php } ?> <?php if (in_array("Configure General Settings", $_smarty_tpl->tpl_vars['admin_perms']->value)) { ?> <li><a id="Menu-Help-Check_For_Updates" href="systemupdates.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['help']['updates']; ?> </a></li> <li><a id="Menu-Help-Get_Help" href="systemsupportrequest.php"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['help']['support']; ?> </a></li><?php } ?> <li><a id="Menu-Help-Community_Forums" href="http://forum.whmcs.com/" target="_blank"><?php echo $_smarty_tpl->tpl_vars['_ADMINLANG']->value['help']['forums']; ?> </a></li> </ul> </li> <?php }
function content_55bbb466439198_53831883($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/var/www/include/smarty/libs/plugins/modifier.replace.php'; } ?> <!DOCTYPE html> <html lang="<?php echo $_smarty_tpl->tpl_vars['lang_info']->value['code']; ?> " dir="<?php echo $_smarty_tpl->tpl_vars['lang_info']->value['direction']; ?> "> <head> <meta charset="<?php echo $_smarty_tpl->tpl_vars['CONTENT_ENCODING']->value; ?> "> <meta name="generator" content="Piwigo (aka PWG), see piwigo.org"> <?php if (isset($_smarty_tpl->tpl_vars['meta_ref']->value)) { ?> <?php if (isset($_smarty_tpl->tpl_vars['INFO_AUTHOR']->value)) { ?> <meta name="author" content="<?php echo smarty_modifier_replace(strip_tags($_smarty_tpl->tpl_vars['INFO_AUTHOR']->value), '"', ' '); ?> "> <?php } if (isset($_smarty_tpl->tpl_vars['related_tags']->value)) { ?> <meta name="keywords" content="<?php $_smarty_tpl->tpl_vars['tag'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['tag']->_loop = false; $_from = $_smarty_tpl->tpl_vars['related_tags']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['tag']->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars['tag']->key => $_smarty_tpl->tpl_vars['tag']->value) { $_smarty_tpl->tpl_vars['tag']->_loop = true; $_smarty_tpl->tpl_vars['tag']->index++; $_smarty_tpl->tpl_vars['tag']->first = $_smarty_tpl->tpl_vars['tag']->index === 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['tag_loop']['first'] = $_smarty_tpl->tpl_vars['tag']->first; if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['tag_loop']['first']) { ?> , <?php } echo $_smarty_tpl->tpl_vars['tag']->value['name']; } ?> "> <?php } if (isset($_smarty_tpl->tpl_vars['COMMENT_IMG']->value)) { ?> <meta name="description" content="<?php echo smarty_modifier_replace(strip_tags($_smarty_tpl->tpl_vars['COMMENT_IMG']->value), '"', ' '); if (isset($_smarty_tpl->tpl_vars['INFO_FILE']->value)) { ?> - <?php echo $_smarty_tpl->tpl_vars['INFO_FILE']->value; } ?> "> <?php } else { ?> <meta name="description" content="<?php echo $_smarty_tpl->tpl_vars['PAGE_TITLE']->value; if (isset($_smarty_tpl->tpl_vars['INFO_FILE']->value)) { ?> - <?php echo $_smarty_tpl->tpl_vars['INFO_FILE']->value; } ?> "> <?php } } ?> <title><?php if ($_smarty_tpl->tpl_vars['PAGE_TITLE']->value != l10n('Home') && $_smarty_tpl->tpl_vars['PAGE_TITLE']->value != $_smarty_tpl->tpl_vars['GALLERY_TITLE']->value) { echo $_smarty_tpl->tpl_vars['PAGE_TITLE']->value; ?> | <?php } echo $_smarty_tpl->tpl_vars['GALLERY_TITLE']->value; ?> </title> <link rel="shortcut icon" type="image/x-icon" href="<?php echo $_smarty_tpl->tpl_vars['ROOT_URL']->value; echo $_smarty_tpl->tpl_vars['themeconf']->value['icon_dir']; ?> /favicon.ico"> <link rel="start" title="<?php echo l10n('Home'); ?> " href="<?php echo $_smarty_tpl->tpl_vars['U_HOME']->value; ?> " > <link rel="search" title="<?php echo l10n('Search'); ?> " href="<?php echo $_smarty_tpl->tpl_vars['ROOT_URL']->value; ?> search.php" > <?php if (isset($_smarty_tpl->tpl_vars['first']->value['U_IMG'])) { ?> <link rel="first" title="<?php echo l10n('First'); ?> " href="<?php echo $_smarty_tpl->tpl_vars['first']->value['U_IMG']; ?> " ><?php } if (isset($_smarty_tpl->tpl_vars['previous']->value['U_IMG'])) { ?> <link rel="prev" title="<?php echo l10n('Previous'); ?> " href="<?php echo $_smarty_tpl->tpl_vars['previous']->value['U_IMG']; ?> " ><?php } if (isset($_smarty_tpl->tpl_vars['next']->value['U_IMG'])) { ?> <link rel="next" title="<?php echo l10n('Next'); ?> " href="<?php echo $_smarty_tpl->tpl_vars['next']->value['U_IMG']; ?> " ><?php } if (isset($_smarty_tpl->tpl_vars['last']->value['U_IMG'])) { ?> <link rel="last" title="<?php echo l10n('Last'); ?> " href="<?php echo $_smarty_tpl->tpl_vars['last']->value['U_IMG']; ?> " ><?php } if (isset($_smarty_tpl->tpl_vars['U_UP']->value)) { ?> <link rel="up" title="<?php echo l10n('Thumbnails'); ?> " href="<?php echo $_smarty_tpl->tpl_vars['U_UP']->value; ?> " ><?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['U_PREFETCH']->value)) { ?> <link rel="prefetch" href="<?php echo $_smarty_tpl->tpl_vars['U_PREFETCH']->value; ?> "><?php } if (isset($_smarty_tpl->tpl_vars['U_CANONICAL']->value)) { ?> <link rel="canonical" href="<?php echo $_smarty_tpl->tpl_vars['U_CANONICAL']->value; ?> "><?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['page_refresh']->value)) { ?> <meta http-equiv="refresh" content="<?php echo $_smarty_tpl->tpl_vars['page_refresh']->value['TIME']; ?> ;url=<?php echo $_smarty_tpl->tpl_vars['page_refresh']->value['U_REFRESH']; ?> "><?php } ?> <?php $_smarty_tpl->tpl_vars['theme'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['theme']->_loop = false; $_from = $_smarty_tpl->tpl_vars['themes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['theme']->key => $_smarty_tpl->tpl_vars['theme']->value) { $_smarty_tpl->tpl_vars['theme']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['theme']->value['load_css']) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['combine_css'][0][0]->func_combine_css(array('path' => "themes/" . (string) $_smarty_tpl->tpl_vars['theme']->value['id'] . "/theme.css", 'order' => -10), $_smarty_tpl); ?> <?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['theme']->value['local_head'])) { ?> <?php echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['theme']->value['local_head'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('load_css' => $_smarty_tpl->tpl_vars['theme']->value['load_css']), 0); ?> <?php } ?> <?php } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['combine_script'][0][0]->func_combine_script(array('id' => "jquery", 'load' => "footer"), $_smarty_tpl); ?> <!-- BEGIN get_combined --> <!-- COMBINED_CSS --> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['get_combined_scripts'][0][0]->func_get_combined_scripts(array('load' => 'header'), $_smarty_tpl); ?> <!-- END get_combined --> <!--[if lt IE 7]> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['ROOT_URL']->value; ?> themes/default/js/pngfix.js"></script> <![endif]--> <?php if (!empty($_smarty_tpl->tpl_vars['head_elements']->value)) { $_smarty_tpl->tpl_vars['elt'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['elt']->_loop = false; $_from = $_smarty_tpl->tpl_vars['head_elements']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['elt']->key => $_smarty_tpl->tpl_vars['elt']->value) { $_smarty_tpl->tpl_vars['elt']->_loop = true; ?> <?php echo $_smarty_tpl->tpl_vars['elt']->value; ?> <?php } } ?> </head> <body id="<?php echo $_smarty_tpl->tpl_vars['BODY_ID']->value; ?> "> <div id="the_page"> <?php if (!empty($_smarty_tpl->tpl_vars['header_msgs']->value)) { ?> <div class="header_msgs"> <?php $_smarty_tpl->tpl_vars['elt'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['elt']->_loop = false; $_from = $_smarty_tpl->tpl_vars['header_msgs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['elt']->key => $_smarty_tpl->tpl_vars['elt']->value) { $_smarty_tpl->tpl_vars['elt']->_loop = true; ?> <?php echo $_smarty_tpl->tpl_vars['elt']->value; ?> <br> <?php } ?> </div> <?php } ?> <div id="theHeader"><?php echo $_smarty_tpl->tpl_vars['PAGE_BANNER']->value; ?> </div> <?php if (!empty($_smarty_tpl->tpl_vars['header_notes']->value)) { ?> <div class="header_notes"> <?php $_smarty_tpl->tpl_vars['elt'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['elt']->_loop = false; $_from = $_smarty_tpl->tpl_vars['header_notes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['elt']->key => $_smarty_tpl->tpl_vars['elt']->value) { $_smarty_tpl->tpl_vars['elt']->_loop = true; ?> <p><?php echo $_smarty_tpl->tpl_vars['elt']->value; ?> </p> <?php } ?> </div> <?php } }
function content_5613b9b82233b5_23741179($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'D:\\wamp\\www\\xiaomipl\\tools\\smarty\\plugins\\modifier.replace.php'; } if (!is_callable('smarty_modifier_regex_replace')) { include 'D:\\wamp\\www\\xiaomipl\\tools\\smarty\\plugins\\modifier.regex_replace.php'; } ?> <!-- Breadcrumb --> <?php if (isset(Smarty::$_smarty_vars['capture']['path'])) { $_smarty_tpl->tpl_vars['path'] = new Smarty_variable(Smarty::$_smarty_vars['capture']['path'], null, 0); } ?> <div class="breadcrumb clearfix"> <a class="home" href="<?php if (isset($_smarty_tpl->tpl_vars['force_ssl']->value) && $_smarty_tpl->tpl_vars['force_ssl']->value) { echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value; } else { echo $_smarty_tpl->tpl_vars['base_dir']->value; } ?> " title="<?php echo smartyTranslate(array('s' => 'Return to Home'), $_smarty_tpl); ?> "><i class="icon-home"></i></a> <?php if (isset($_smarty_tpl->tpl_vars['path']->value) && $_smarty_tpl->tpl_vars['path']->value) { ?> <span class="navigation-pipe"<?php if (isset($_smarty_tpl->tpl_vars['category']->value) && isset($_smarty_tpl->tpl_vars['category']->value->id_category) && $_smarty_tpl->tpl_vars['category']->value->id_category == (int) Configuration::get('PS_ROOT_CATEGORY')) { ?> style="display:none;"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['navigationPipe']->value, ENT_QUOTES, 'UTF-8', true); ?> </span> <?php if (strpos($_smarty_tpl->tpl_vars['path']->value, 'span') !== false) { ?> <span class="navigation_page"><?php echo smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['path']->value, '<a ', '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" '), 'data-gg="">', '><span itemprop="title">'), '</a>', '</span></a></span>'); ?> </span> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['path']->value; ?> <?php } ?> <?php } ?> </div> <?php if (isset($_GET['search_query']) && isset($_GET['results']) && $_GET['results'] > 1 && isset($_SERVER['HTTP_REFERER'])) { ?> <div class="pull-right"> <strong> <?php $_smarty_tpl->_capture_stack[0][] = array('default', null, null); ob_start(); if (isset($_GET['HTTP_REFERER']) && $_GET['HTTP_REFERER']) { echo $_GET['HTTP_REFERER']; } elseif (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']) { echo $_SERVER['HTTP_REFERER']; } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <a href="<?php echo smarty_modifier_regex_replace($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['secureReferrer'][0][0]->secureReferrer(htmlspecialchars(Smarty::$_smarty_vars['capture']['default'], ENT_QUOTES, 'UTF-8', true)), '/[\\?|&]content_only=1/', ''); ?> " name="back"> <i class="icon-chevron-left left"></i> <?php echo smartyTranslate(array('s' => 'Back to Search results for "%s" (%d other results)', 'sprintf' => array($_GET['search_query'], $_GET['results'])), $_smarty_tpl); ?> </a> </strong> </div> <?php } ?> <!-- /Breadcrumb --> <?php }
', '<?php echo is_array($_tmp = $this->_tpl_vars['site']['main_url']) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript'); ?> ', '<?php if (isset($this->_tpl_vars['site']['visits_evolution'])) { echo is_array($_tmp = $this->_tpl_vars['site']['visits_evolution']) ? $this->_run_mod_handler('replace', true, $_tmp, ",", ".") : smarty_modifier_replace($_tmp, ",", "."); } ?> ', '<?php if (isset($this->_tpl_vars['site']['pageviews_evolution'])) { echo is_array($_tmp = $this->_tpl_vars['site']['pageviews_evolution']) ? $this->_run_mod_handler('replace', true, $_tmp, ",", ".") : smarty_modifier_replace($_tmp, ",", "."); } ?> ', '<?php if (isset($this->_tpl_vars['site']['revenue_evolution'])) { echo is_array($_tmp = $this->_tpl_vars['site']['revenue_evolution']) ? $this->_run_mod_handler('replace', true, $_tmp, ",", ".") : smarty_modifier_replace($_tmp, ",", "."); } ?> '); <?php } } unset($_from); ?> params['period'] = '<?php echo $this->_tpl_vars['period']; ?> '; params['date'] = '<?php echo $this->_tpl_vars['date']; ?>
function content_54e1867fe4c1b7_38055114($_smarty_tpl) { if (!is_callable('smarty_function_counter')) { include '/home/neoliam/public_html/tienda/tools/smarty/plugins/function.counter.php'; } if (!is_callable('smarty_modifier_replace')) { include '/home/neoliam/public_html/tienda/tools/smarty/plugins/modifier.replace.php'; } ?> <div class="leadin"></div> <script type="text/javascript"> id_language = Number(<?php echo $_smarty_tpl->tpl_vars['current_id_lang']->value; ?> ); <?php if (isset($_smarty_tpl->tpl_vars['tabs']->value) && count($_smarty_tpl->tpl_vars['tabs']->value)) { ?> var helper_tabs= <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['tabs']->value); ?> ; var unique_field_id = '<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _'; <?php } ?> </script> <?php if (isset($_smarty_tpl->tpl_vars['table_bk']->value) && $_smarty_tpl->tpl_vars['table_bk']->value == $_smarty_tpl->tpl_vars['table']->value) { $_smarty_tpl->_capture_stack[0][] = array('table_count', null, null); ob_start(); echo smarty_function_counter(array('name' => 'table_count'), $_smarty_tpl); list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } } $_smarty_tpl->tpl_vars['table_bk'] = new Smarty_variable($_smarty_tpl->tpl_vars['table']->value, null, 1); if ($_smarty_tpl->parent != null) { $_smarty_tpl->parent->tpl_vars['table_bk'] = clone $_smarty_tpl->tpl_vars['table_bk']; } ?> <form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true); ?> &token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true); ?> " id="<?php if ($_smarty_tpl->tpl_vars['table']->value == null) { ?> configuration_form<?php } else { echo $_smarty_tpl->tpl_vars['table']->value; ?> _form<?php } if (isset(Smarty::$_smarty_vars['capture']['table_count']) && Smarty::$_smarty_vars['capture']['table_count']) { ?> _<?php echo intval(Smarty::$_smarty_vars['capture']['table_count']); } ?> " method="post" enctype="multipart/form-data" class="form-horizontal"> <?php $_smarty_tpl->tpl_vars['categoryData'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['categoryData']->_loop = false; $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['option_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['categoryData']->key => $_smarty_tpl->tpl_vars['categoryData']->value) { $_smarty_tpl->tpl_vars['categoryData']->_loop = true; $_smarty_tpl->tpl_vars['category']->value = $_smarty_tpl->tpl_vars['categoryData']->key; ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['top'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['top']; } ?> <div class="panel <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['class'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['class']; } ?> " id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _fieldset_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> "> <div class="panel-heading"> <i class="<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['icon'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['icon']; } else { ?> icon-cogs<?php } ?> "></i> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['title'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['title']; } else { echo smartyTranslate(array('s' => 'Options'), $_smarty_tpl); } ?> </div> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['description']) && $_smarty_tpl->tpl_vars['categoryData']->value['description']) { ?> <div class="alert alert-info"><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['description']; ?> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['info']) && $_smarty_tpl->tpl_vars['categoryData']->value['info']) { ?> <div><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['info']; ?> </div> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox'] && $_smarty_tpl->tpl_vars['use_multishop']->value) { ?> <div class="well clearfix"> <label class="control-label col-lg-3"> <i class="icon-sitemap"></i> <?php echo smartyTranslate(array('s' => 'Multistore'), $_smarty_tpl); ?> </label> <div class="col-lg-9"> <span class="switch prestashop-switch fixed-width-lg"> <input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> _on" value="1" onclick="toggleAllMultishopDefaultValue($('#<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _fieldset_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> '), true)"/><label for="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> _on"><?php echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl); ?> </label><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> _off" value="0" checked="checked" onclick="toggleAllMultishopDefaultValue($('#<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _fieldset_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> '), false)"/><label for="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> _off"><?php echo smartyTranslate(array('s' => 'No'), $_smarty_tpl); ?> </label> <a class="slide-button btn"></a> </span> <div class="row"> <div class="col-lg-12"> <p class="help-block"> <strong><?php echo smartyTranslate(array('s' => 'Check / Uncheck all'), $_smarty_tpl); ?> </strong> <?php echo smartyTranslate(array('s' => '(If you are editing this page for several shops, some fields may be disabled. If you need to edit them, you will need to check the box for each field)'), $_smarty_tpl); ?> </p> </div> </div> </div> </div> <?php } ?> <div class="form-wrapper"> <?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['field']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['categoryData']->value['fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['field']->key; ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'hidden') { ?> <input type="hidden" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " value="<?php echo $_smarty_tpl->tpl_vars['field']->value['value']; ?> " /> <?php } else { ?> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['field']->value['form_group_class'])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['form_group_class']; } ?> "<?php if (isset($_smarty_tpl->tpl_vars['tabs']->value) && isset($_smarty_tpl->tpl_vars['field']->value['tab'])) { ?> data-tab-id="<?php echo $_smarty_tpl->tpl_vars['field']->value['tab']; ?> "<?php } ?> > <div id="conf_id_<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> "<?php if ($_smarty_tpl->tpl_vars['field']->value['is_invisible']) { ?> class="isInvisible"<?php } ?> > <?php if (isset($_smarty_tpl->tpl_vars['field']->value['title']) && isset($_smarty_tpl->tpl_vars['field']->value['hint'])) { ?> <label class="control-label col-lg-3<?php if (isset($_smarty_tpl->tpl_vars['field']->value['required']) && $_smarty_tpl->tpl_vars['field']->value['required'] && $_smarty_tpl->tpl_vars['field']->value['type'] != 'radio') { ?> required<?php } ?> "> <?php if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox'] && $_smarty_tpl->tpl_vars['field']->value['multishop_default'] && empty($_smarty_tpl->tpl_vars['field']->value['no_multishop_checkbox'])) { ?> <input type="checkbox" name="multishopOverrideOption[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ]" value="1"<?php if (!$_smarty_tpl->tpl_vars['field']->value['is_disabled']) { ?> checked="checked"<?php } ?> onclick="toggleMultishopDefaultValue(this, '<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ')"/> <?php } ?> <span title="" data-toggle="tooltip" class="label-tooltip" data-original-title=" <?php if (is_array($_smarty_tpl->tpl_vars['field']->value['hint'])) { ?> <?php $_smarty_tpl->tpl_vars['hint'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['hint']->_loop = false; $_from = $_smarty_tpl->tpl_vars['field']->value['hint']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['hint']->key => $_smarty_tpl->tpl_vars['hint']->value) { $_smarty_tpl->tpl_vars['hint']->_loop = true; ?> <?php if (is_array($_smarty_tpl->tpl_vars['hint']->value)) { ?> <?php echo $_smarty_tpl->tpl_vars['hint']->value['text']; ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['hint']->value; ?> <?php } ?> <?php } ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['hint']; ?> <?php } ?> " data-html="true"> <?php echo $_smarty_tpl->tpl_vars['field']->value['title']; ?> </span> </label> <?php } elseif (isset($_smarty_tpl->tpl_vars['field']->value['title'])) { ?> <label class="control-label col-lg-3"> <?php if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox'] && $_smarty_tpl->tpl_vars['field']->value['multishop_default'] && empty($_smarty_tpl->tpl_vars['field']->value['no_multishop_checkbox'])) { ?> <input type="checkbox" name="multishopOverrideOption[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ]" value="1"<?php if (!$_smarty_tpl->tpl_vars['field']->value['is_disabled']) { ?> checked="checked"<?php } ?> onclick="checkMultishopDefaultValue(this, '<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ')" /> <?php } ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['title']; ?> </label> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'select') { ?> <div class="col-lg-9"> <?php if ($_smarty_tpl->tpl_vars['field']->value['list']) { ?> <select class="form-control fixed-width-xxl <?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) { echo $_smarty_tpl->tpl_vars['field']->value['class']; } ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> "<?php if (isset($_smarty_tpl->tpl_vars['field']->value['js'])) { ?> onchange="<?php echo $_smarty_tpl->tpl_vars['field']->value['js']; ?> "<?php } ?> id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " <?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { ?> size="<?php echo $_smarty_tpl->tpl_vars['field']->value['size']; ?> "<?php } ?> > <?php $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['option']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) { $_smarty_tpl->tpl_vars['option']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['option']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]; ?> "<?php if ($_smarty_tpl->tpl_vars['field']->value['value'] == $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]) { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['option']->value['name']; ?> </option> <?php } ?> </select> <?php } elseif (isset($_smarty_tpl->tpl_vars['input']->value['empty_message'])) { ?> <?php echo $_smarty_tpl->tpl_vars['input']->value['empty_message']; ?> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'bool') { ?> <div class="col-lg-9"> <span class="switch prestashop-switch fixed-width-lg"> <input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _on" value="1" <?php if ($_smarty_tpl->tpl_vars['field']->value['value']) { ?> checked="checked"<?php } if (isset($_smarty_tpl->tpl_vars['field']->value['js']['on'])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js']['on']; } ?> /><label for="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _on" class="radioCheck"><?php echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl); ?> </label><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _off" value="0" <?php if (!$_smarty_tpl->tpl_vars['field']->value['value']) { ?> checked="checked"<?php } if (isset($_smarty_tpl->tpl_vars['field']->value['js']['off'])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js']['off']; } ?> /><label for="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _off" class="radioCheck"><?php echo smartyTranslate(array('s' => 'No'), $_smarty_tpl); ?> </label> <a class="slide-button btn"></a> </span> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'radio') { ?> <div class="col-lg-9"> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['choices']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <p class="radio"> <label for="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['k']->value; ?> "><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['k']->value; ?> " value="<?php echo $_smarty_tpl->tpl_vars['k']->value; ?> "<?php if ($_smarty_tpl->tpl_vars['k']->value == $_smarty_tpl->tpl_vars['field']->value['value']) { ?> checked="checked"<?php } if (isset($_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value]; } ?> /><?php echo $_smarty_tpl->tpl_vars['v']->value; ?> </label> </p> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'checkbox') { ?> <div class="col-lg-9"> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['choices']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <p class="checkbox"> <label class="col-lg-3" for="<?php echo $_smarty_tpl->tpl_vars['key']->value; echo $_smarty_tpl->tpl_vars['k']->value; ?> _on"><input type="checkbox" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['key']->value; echo $_smarty_tpl->tpl_vars['k']->value; ?> _on" value="<?php echo intval($_smarty_tpl->tpl_vars['k']->value); ?> "<?php if ($_smarty_tpl->tpl_vars['k']->value == $_smarty_tpl->tpl_vars['field']->value['value']) { ?> checked="checked"<?php } if (isset($_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value]; } ?> /><?php echo $_smarty_tpl->tpl_vars['v']->value; ?> </label> </p> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'text') { ?> <div class="col-lg-9"><?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> <div class="input-group"><?php } ?> <input class="form-control <?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) { echo $_smarty_tpl->tpl_vars['field']->value['class']; } ?> " type="<?php echo $_smarty_tpl->tpl_vars['field']->value['type']; ?> "<?php if (isset($_smarty_tpl->tpl_vars['field']->value['id'])) { ?> id="<?php echo $_smarty_tpl->tpl_vars['field']->value['id']; ?> "<?php } ?> size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { echo intval($_smarty_tpl->tpl_vars['field']->value['size']); } else { ?> 5<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true); ?> " <?php if (isset($_smarty_tpl->tpl_vars['field']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['field']->value['autocomplete']) { ?> autocomplete="off"<?php } ?> /> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> <span class="input-group-addon"> <?php echo strval($_smarty_tpl->tpl_vars['field']->value['suffix']); ?> </span> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> </div><?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'password') { ?> <div class="col-lg-9"><?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> <div class="input-group"><?php } ?> <input type="<?php echo $_smarty_tpl->tpl_vars['field']->value['type']; ?> "<?php if (isset($_smarty_tpl->tpl_vars['field']->value['id'])) { ?> id="<?php echo $_smarty_tpl->tpl_vars['field']->value['id']; ?> "<?php } ?> size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { echo intval($_smarty_tpl->tpl_vars['field']->value['size']); } else { ?> 5<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " value=""<?php if (isset($_smarty_tpl->tpl_vars['field']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['field']->value['autocomplete']) { ?> autocomplete="off"<?php } ?> /> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> <span class="input-group-addon"> <?php echo strval($_smarty_tpl->tpl_vars['field']->value['suffix']); ?> </span> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> </div><?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textarea') { ?> <div class="col-lg-9"> <textarea class="textarea-autosize" name=<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> cols="<?php echo $_smarty_tpl->tpl_vars['field']->value['cols']; ?> " rows="<?php echo $_smarty_tpl->tpl_vars['field']->value['rows']; ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true); ?> </textarea> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'file') { ?> <div class="col-lg-9"><?php echo $_smarty_tpl->tpl_vars['field']->value['file']; ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'color') { ?> <div class="col-lg-2"> <div class="input-group"> <input type="color" size="<?php echo $_smarty_tpl->tpl_vars['field']->value['size']; ?> " data-hex="true" <?php if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) { ?> class="<?php echo $_smarty_tpl->tpl_vars['field']->value['class']; ?> " <?php } else { ?> class="color mColorPickerInput"<?php } ?> name="<?php echo $_smarty_tpl->tpl_vars['field']->value['name']; ?> " class="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) { echo $_smarty_tpl->tpl_vars['field']->value['class']; } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true); ?> " /> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'price') { ?> <div class="col-lg-9"> <div class="input-group fixed-width-lg"> <span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency_left_sign']->value; echo $_smarty_tpl->tpl_vars['currency_right_sign']->value; ?> <?php echo smartyTranslate(array('s' => '(tax excl.)'), $_smarty_tpl); ?> </span> <input type="text" size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { echo intval($_smarty_tpl->tpl_vars['field']->value['size']); } else { ?> 5<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true); ?> " /> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textLang' || $_smarty_tpl->tpl_vars['field']->value['type'] == 'textareaLang' || $_smarty_tpl->tpl_vars['field']->value['type'] == 'selectLang') { ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textLang') { ?> <div class="col-lg-9"> <div class="row"> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['id_lang'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['id_lang']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <?php if (count($_smarty_tpl->tpl_vars['field']->value['languages']) > 1) { ?> <div class="translatable-field lang-<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> " <?php if ($_smarty_tpl->tpl_vars['id_lang']->value != $_smarty_tpl->tpl_vars['current_id_lang']->value) { ?> style="display:none;"<?php } ?> > <div class="col-lg-9"> <?php } else { ?> <div class="col-lg-12"> <?php } ?> <input type="text" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8', true); ?> " <?php if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) { ?> class="<?php echo $_smarty_tpl->tpl_vars['input']->value['class']; ?> "<?php } ?> /> <?php if (count($_smarty_tpl->tpl_vars['field']->value['languages']) > 1) { ?> </div> <div class="col-lg-2"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] == $_smarty_tpl->tpl_vars['id_lang']->value) { echo $_smarty_tpl->tpl_vars['language']->value['iso_code']; } ?> <?php } ?> <span class="caret"></span> </button> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <li> <a href="javascript:hideOtherLanguage(<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang']; ?> );"><?php echo $_smarty_tpl->tpl_vars['language']->value['name']; ?> </a> </li> <?php } ?> </ul> </div> </div> <?php } else { ?> </div> <?php } ?> <?php } ?> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textareaLang') { ?> <div class="col-lg-9"> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['id_lang'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['id_lang']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <div class="row translatable-field lang-<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> " <?php if ($_smarty_tpl->tpl_vars['id_lang']->value != $_smarty_tpl->tpl_vars['current_id_lang']->value) { ?> style="display:none;"<?php } ?> > <div id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> " class="col-lg-9" > <textarea class="textarea-autosize" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> "><?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['value']->value, '\\r\\n', "\n"); ?> </textarea> </div> <div class="col-lg-2"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] == $_smarty_tpl->tpl_vars['id_lang']->value) { echo $_smarty_tpl->tpl_vars['language']->value['iso_code']; } ?> <?php } ?> <span class="caret"></span> </button> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <li> <a href="javascript:hideOtherLanguage(<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang']; ?> );"><?php echo $_smarty_tpl->tpl_vars['language']->value['name']; ?> </a> </li> <?php } ?> </ul> </div> </div> <?php } ?> <script type="text/javascript"> $(document).ready(function() { $(".textarea-autosize").autosize(); }); </script> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'selectLang') { ?> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <div id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang']; ?> " style="display: <?php if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] == $_smarty_tpl->tpl_vars['current_id_lang']->value) { ?> block<?php } else { ?> none<?php } ?> ;" class="col-lg-9"> <select name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['language']->value['iso_code'], 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <option value="<?php if (isset($_smarty_tpl->tpl_vars['v']->value['cast'])) { echo $_smarty_tpl->tpl_vars['v']->value['cast'][$_smarty_tpl->tpl_vars['v']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]]; } else { echo $_smarty_tpl->tpl_vars['v']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]; } ?> " <?php if ($_smarty_tpl->tpl_vars['field']->value['value'][$_smarty_tpl->tpl_vars['language']->value['id_lang']] == $_smarty_tpl->tpl_vars['v']->value['name']) { ?> selected="selected"<?php } ?> > <?php echo $_smarty_tpl->tpl_vars['v']->value['name']; ?> </option> <?php } ?> </select> </div> <?php } ?> <?php } ?> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['desc']) && !empty($_smarty_tpl->tpl_vars['field']->value['desc'])) { ?> <div class="col-lg-9 col-lg-offset-3"> <div class="help-block"> <?php if (is_array($_smarty_tpl->tpl_vars['field']->value['desc'])) { ?> <?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['p']->_loop = false; $_from = $_smarty_tpl->tpl_vars['field']->value['desc']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) { $_smarty_tpl->tpl_vars['p']->_loop = true; ?> <?php if (is_array($_smarty_tpl->tpl_vars['p']->value)) { ?> <span id="<?php echo $_smarty_tpl->tpl_vars['p']->value['id']; ?> "><?php echo $_smarty_tpl->tpl_vars['p']->value['text']; ?> </span><br /> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['p']->value; ?> <br /> <?php } ?> <?php } ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['desc']; ?> <?php } ?> </div> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['is_invisible']) { ?> <div class="col-lg-9 col-lg-offset-3"> <p class="alert alert-warning row-margin-top"> <?php echo smartyTranslate(array('s' => 'You can\'t change the value of this configuration field in the context of this shop.'), $_smarty_tpl); ?> </p> </div> <?php } ?> </div> </div> <?php } ?> <?php } ?> </div><!-- /.form-wrapper --> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['bottom'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['bottom']; } ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']) || isset($_smarty_tpl->tpl_vars['categoryData']->value['buttons'])) { ?> <div class="panel-footer"> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']) && !empty($_smarty_tpl->tpl_vars['categoryData']->value['submit'])) { ?> <button type="<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['type'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['type']; } else { ?> submit<?php } ?> " <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['id'])) { ?> id="<?php echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['id']; ?> "<?php } ?> class="btn btn-default pull-right" name="<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['name'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['name']; } else { ?> submitOptions<?php echo $_smarty_tpl->tpl_vars['table']->value; } ?> "><i class="process-icon-<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['imgclass'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['imgclass']; } else { ?> save<?php } ?> "></i> <?php echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['title']; ?> </button> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['buttons'])) { ?> <?php $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['btn']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['categoryData']->value['buttons']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) { $_smarty_tpl->tpl_vars['btn']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key; ?> <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['href']) && trim($_smarty_tpl->tpl_vars['btn']->value['href']) != '') { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true); ?> " <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['id'])) { ?> id="<?php echo $_smarty_tpl->tpl_vars['btn']->value['id']; ?> "<?php } ?> class="btn btn-default<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) { ?> <?php echo $_smarty_tpl->tpl_vars['btn']->value['class']; } ?> " <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) { ?> onclick="<?php echo $_smarty_tpl->tpl_vars['btn']->value['js']; ?> "<?php } ?> ><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) { ?> <i class="<?php echo $_smarty_tpl->tpl_vars['btn']->value['icon']; ?> " ></i> <?php } echo $_smarty_tpl->tpl_vars['btn']->value['title']; ?> </a> <?php } else { ?> <button type="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['type'])) { echo $_smarty_tpl->tpl_vars['btn']->value['type']; } else { ?> button<?php } ?> " <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['id'])) { ?> id="<?php echo $_smarty_tpl->tpl_vars['btn']->value['id']; ?> "<?php } ?> class="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) { echo $_smarty_tpl->tpl_vars['btn']->value['class']; } else { ?> btn btn-default<?php } ?> " name="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['name'])) { echo $_smarty_tpl->tpl_vars['btn']->value['name']; } else { ?> submitOptions<?php echo $_smarty_tpl->tpl_vars['table']->value; } ?> "<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) { ?> onclick="<?php echo $_smarty_tpl->tpl_vars['btn']->value['js']; ?> "<?php } ?> ><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) { ?> <i class="<?php echo $_smarty_tpl->tpl_vars['btn']->value['icon']; ?> " ></i> <?php } echo $_smarty_tpl->tpl_vars['btn']->value['title']; ?> </button> <?php } ?> <?php } ?> <?php } ?> </div> <?php } ?> </div> <?php } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => 'displayAdminOptions'), $_smarty_tpl); ?> <?php if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?> display<?php echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value); ?> Options<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl); ?> <?php } elseif (isset($_GET['controller'])) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?> display<?php echo htmlentities(ucfirst($_GET['controller'])); ?> Options<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl); ?> <?php } ?> </form> <?php }
function content_5204bde19b5300_71661654($_smarty_tpl) { if (!is_callable('smarty_function_cycle')) { include '/homepages/26/d480780604/htdocs/lib/smarty/plugins/function.cycle.php'; } if (!is_callable('smarty_cms_modifier_cms_date_format')) { include '/homepages/26/d480780604/htdocs/plugins/modifier.cms_date_format.php'; } if (!is_callable('smarty_modifier_replace')) { include '/homepages/26/d480780604/htdocs/lib/smarty/plugins/modifier.replace.php'; } if (!isset($_smarty_tpl->tpl_vars['noform']->value)) { ?> <script type="text/javascript"> var refresh_url = '<?php echo $_smarty_tpl->tpl_vars['refresh_url']->value; ?> '+'&showtemplate=false'; refresh_url = refresh_url.replace(/amp;/g,''); // <![CDATA[ function enable_action_buttons() { var files = $("#filesarea input[type='checkbox'].fileselect").filter(':checked').length; var dirs = $("#filesarea input[type='checkbox'].dir").filter(':checked:').length; var arch = $("#filesarea input[type='checkbox'].archive").filter(':checked:').length; var imgs = $("#filesarea input[type='checkbox'].image").filter(':checked:').length; $('.filebtn').attr('disabled','disabled'); if( jQuery.ui ) $('.filebtn').button( "option", "disabled", true ).addClass('disabled'); if( files == 0 && dirs == 0 ) { // nothing selected, enable anything with select_none $('#btn_newdir').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_newdir').button( "option", "disabled", false ); } else if( files == 1 ) { // 1 selected, enable anything with select_one $('#btn_rename').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_rename').button( "option", "disabled", false ); $('#btn_move').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_move').button( "option", "disabled", false ); $('#btn_delete').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_delete').button( "option", "disabled", false ); if( dirs == 0 ) { // one selected, it's not a directory $('#btn_copy').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_copy').button( "option", "disabled", false ); } if( arch == 1 ) { // one selected, it's an archive. $('#btn_unpack').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_unpack').button( "option", "disabled", false ); } if( imgs == 1 ) { $('#btn_thumb').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_thumb').button( "option", "disabled", false ); } } else if( files > 1 && dirs == 0 ) { // multiple files selected $('#btn_delete').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_delete').button( "option", "disabled", false ); $('#btn_copy').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_copy').button( "option", "disabled", false ); $('#btn_move').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_move').button( "option", "disabled", false ); } else if( files > 1 && dirs > 0 ) { // multiple selected, at least one dir. $('#btn_delete').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_delete').button( "option", "disabled", false ); $('#btn_move').removeAttr('disabled').removeClass('disabled'); if( jQuery.ui ) $('#btn_move').button( "option", "disabled", false ); } } $(document).ready(function(){ enable_action_buttons(); $('#refresh').unbind('click'); $('#refresh').live('click',function(){ // ajaxy reload for the files area. $('#filesarea').load(refresh_url); return false; }); $(this).live('dropzone_chdir',function(e,data){ // if change dir via the dropzone, make sure filemanager refreshes. location.reload(); }); $("#filesarea input[type='checkbox'].fileselect").live('change',function(e){ // find the parent row e.stopPropagation(); var t = $(this).attr('checked'); if( t ) { $(this).closest('tr').addClass('selected'); } else { $(this).closest('tr').removeClass('selected'); } enable_action_buttons(); }); $('#tagall').live('change',function(event){ if( $(this).attr('checked') == 'checked' ) { $('#filesarea input:checkbox.fileselect').attr('checked','checked').trigger('change'); } else { $('#filesarea input:checkbox.fileselect').removeAttr('checked').trigger('change'); } }); $('td.clickable').live('click',function(){ var t = $(this).parent().find(':checkbox:').attr('checked'); if( t != 'checked' ) { $(this).parent().find(':checkbox:').attr('checked','checked').trigger('change'); } else { $(this).parent().find(':checkbox:').removeAttr('checked').trigger('change'); } }); }); // ]]> </script> <h3><?php echo $_smarty_tpl->tpl_vars['currentpath']->value; ?> <?php echo $_smarty_tpl->tpl_vars['path']->value; ?> </h3> <div> <?php echo $_smarty_tpl->tpl_vars['formstart']->value; ?> <div> <fieldset> <input type="submit" id="btn_newdir" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactionnewdir" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('newdir'); ?> " class="filebtn"/> <input type="submit" id="btn_rename" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactionrename" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('rename'); ?> " class="filebtn"/> <input type="submit" id="btn_delete" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactiondelete" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('delete'); ?> " class="filebtn"/> <input type="submit" id="btn_move" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactionmove" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('move'); ?> " class="filebtn"/> <input type="submit" id="btn_copy" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactioncopy" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('copy'); ?> " class="filebtn"/> <input type="submit" id="btn_unpack" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactionunpack" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('unpack'); ?> " class="filebtn" onclick="return confirm('<?php echo $_smarty_tpl->tpl_vars['confirm_unpack']->value; ?> ');"/> <input type="submit" id="btn_thumb" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> fileactionthumb" value="<?php echo $_smarty_tpl->tpl_vars['mod']->value->Lang('thumbnail'); ?> " class="filebtn"/> </fieldset> </div> <?php echo $_smarty_tpl->tpl_vars['hiddenpath']->value; ?> <?php } ?> <div id="filesarea"> <table width="100%" class="pagetable" cellspacing="0"> <thead> <tr> <th class="pageicon"> </th> <th><?php echo $_smarty_tpl->tpl_vars['filenametext']->value; ?> </th> <th class="pageicon"><?php echo $_smarty_tpl->tpl_vars['fileinfotext']->value; ?> </th> <th class="pageicon"><?php echo $_smarty_tpl->tpl_vars['fileownertext']->value; ?> </th> <th class="pageicon"><?php echo $_smarty_tpl->tpl_vars['filepermstext']->value; ?> </th> <th class="pageicon" style="text-align:right;"><?php echo $_smarty_tpl->tpl_vars['filesizetext']->value; ?> </th> <th class="pageicon"> </th> <th class="pageicon"><?php echo $_smarty_tpl->tpl_vars['filedatetext']->value; ?> </th> <th class="pageicon"> <input type="checkbox" name="tagall" value="tagall" id="tagall"/> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['file']->_loop = false; $_from = $_smarty_tpl->tpl_vars['files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value) { $_smarty_tpl->tpl_vars['file']->_loop = true; ?> <?php echo smarty_function_cycle(array('values' => "row1,row2", 'assign' => 'rowclass'), $_smarty_tpl); ?> <tr class="<?php echo $_smarty_tpl->tpl_vars['rowclass']->value; ?> "> <td valign="middle"><?php if (isset($_smarty_tpl->tpl_vars['file']->value->thumbnail) && $_smarty_tpl->tpl_vars['file']->value->thumbnail != '') { echo $_smarty_tpl->tpl_vars['file']->value->thumbnail; } else { echo $_smarty_tpl->tpl_vars['file']->value->iconlink; } ?> </td> <td class="clickable" valign="middle"><?php echo $_smarty_tpl->tpl_vars['file']->value->txtlink; ?> </td> <td class="clickable" style="padding-right:8px;" valign="middle"><?php echo $_smarty_tpl->tpl_vars['file']->value->fileinfo; ?> </td> <td class="clickable" style="padding-right:8px;" valign="middle"><?php if (isset($_smarty_tpl->tpl_vars['file']->value->fileowner)) { echo $_smarty_tpl->tpl_vars['file']->value->fileowner; } else { ?> <?php } ?> </td> <td class="clickable" style="padding-right:8px;" valign="middle"><?php echo $_smarty_tpl->tpl_vars['file']->value->filepermissions; ?> </td> <td class="clickable" style="padding-right:2px;text-align:right;" valign="middle"><?php echo $_smarty_tpl->tpl_vars['file']->value->filesize; ?> </td> <td class="clickable" style="padding-right:8px;" valign="middle"><?php if (isset($_smarty_tpl->tpl_vars['file']->value->filesizeunit)) { echo $_smarty_tpl->tpl_vars['file']->value->filesizeunit; } else { ?> <?php } ?> </td> <td class="clickable" style="padding-right:8px;" valign="middle"><?php echo smarty_modifier_replace(smarty_modifier_replace(smarty_cms_modifier_cms_date_format($_smarty_tpl->tpl_vars['file']->value->filedate), " ", " "), "-", "−"); ?> </td> <td> <?php if (!isset($_smarty_tpl->tpl_vars['file']->value->noCheckbox)) { ?> <input type="checkbox" name="<?php echo $_smarty_tpl->tpl_vars['actionid']->value; ?> selall[]" value="<?php echo $_smarty_tpl->tpl_vars['file']->value->urlname; ?> " class="fileselect <?php echo $_smarty_tpl->tpl_vars['file']->value->type; ?> " <?php if (isset($_smarty_tpl->tpl_vars['file']->value->checked)) { ?> checked="checked"<?php } ?> /> <?php } ?> </td> </tr> <?php } ?> </tbody> <tfoot> <tr> <td> </td> <td colspan="7"><?php echo $_smarty_tpl->tpl_vars['countstext']->value; ?> </td> </tr> </tfoot> </table> </div> <?php if (!isset($_smarty_tpl->tpl_vars['noform']->value)) { ?> <?php echo $_smarty_tpl->tpl_vars['formend']->value; ?> </div> <?php } ?> <?php }
function content_54e17f443fe946_85599827($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/home/neoliam/public_html/tienda/tools/smarty/plugins/modifier.replace.php'; } ?> <tr> <td class="fixed-width-sm center"> <img class="img-thumbnail" alt="<?php echo $_smarty_tpl->tpl_vars['module']->value->name; ?> " src="<?php if (isset($_smarty_tpl->tpl_vars['module']->value->image)) { echo $_smarty_tpl->tpl_vars['module']->value->image; } else { echo @constant('_MODULE_DIR_'); echo $_smarty_tpl->tpl_vars['module']->value->name; ?> /<?php echo $_smarty_tpl->tpl_vars['module']->value->logo; } ?> " /> </td> <td> <div id="anchor<?php echo ucfirst($_smarty_tpl->tpl_vars['module']->value->name); ?> " title="<?php echo $_smarty_tpl->tpl_vars['module']->value->displayName; ?> "> <div class="module_name"> <span style="display:none"><?php echo $_smarty_tpl->tpl_vars['module']->value->name; ?> </span> <?php echo $_smarty_tpl->tpl_vars['module']->value->displayName; ?> <small class="text-muted">v<?php echo $_smarty_tpl->tpl_vars['module']->value->version; ?> - by <?php echo $_smarty_tpl->tpl_vars['module']->value->author; ?> </small> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->type) && $_smarty_tpl->tpl_vars['module']->value->type == 'addonsBought') { ?> - <span class="module-badge-bought help-tooltip text-warning" data-title="<?php echo smartyTranslate(array('s' => "You bought this module on PrestaShop Addons. Thank You."), $_smarty_tpl); ?> "><i class="icon-pushpin"></i> <small><?php echo smartyTranslate(array('s' => "Bought"), $_smarty_tpl); ?> </small></span> <?php } elseif (isset($_smarty_tpl->tpl_vars['module']->value->type) && $_smarty_tpl->tpl_vars['module']->value->type == 'addonsMustHave') { ?> - <span class="module-badge-popular help-tooltip text-primary" data-title="<?php echo smartyTranslate(array('s' => "This module is available on PrestaShop Addons"), $_smarty_tpl); ?> "><i class="icon-group"></i> <small><?php echo smartyTranslate(array('s' => "Popular"), $_smarty_tpl); ?> </small></span> <?php } elseif (isset($_smarty_tpl->tpl_vars['module']->value->type) && ($_smarty_tpl->tpl_vars['module']->value->type == 'addonsPartner' || $_smarty_tpl->tpl_vars['module']->value->type == 'addonsNative')) { ?> - <span class="module-badge-partner help-tooltip text-warning" data-title="<?php echo smartyTranslate(array('s' => "This module is available for free thanks to our partner."), $_smarty_tpl); ?> "><i class="icon-pushpin"></i> <small><?php echo smartyTranslate(array('s' => "Official"), $_smarty_tpl); ?> </small></span> <?php } elseif (isset($_smarty_tpl->tpl_vars['module']->value->id) && $_smarty_tpl->tpl_vars['module']->value->id > 0) { ?> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->version_addons) && $_smarty_tpl->tpl_vars['module']->value->version_addons) { ?> <span class="label label-warning"><?php echo smartyTranslate(array('s' => 'Need update'), $_smarty_tpl); ?> </span> <?php } ?> <?php } ?> </div> <p class="module_description"> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->description) && $_smarty_tpl->tpl_vars['module']->value->description != '') { ?> <?php echo $_smarty_tpl->tpl_vars['module']->value->description; ?> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->show_quick_view) && $_smarty_tpl->tpl_vars['module']->value->show_quick_view) { ?> <br><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true); ?> &token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true); ?> &ajax=1&action=GetModuleQuickView&module=<?php echo urlencode($_smarty_tpl->tpl_vars['module']->value->name); ?> " class="fancybox-quick-view"><i class="icon-search"></i> <?php echo smartyTranslate(array('s' => 'Read more'), $_smarty_tpl); ?> </a> <?php } ?> </p> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->message) && empty($_smarty_tpl->tpl_vars['module']->value->name) !== false && (!isset($_smarty_tpl->tpl_vars['module']->value->type) || ($_smarty_tpl->tpl_vars['module']->value->type != 'addonsMustHave' || $_smarty_tpl->tpl_vars['module']->value->type !== 'addonsNative'))) { ?> <div class="alert alert-success"><button type="button" class="close" data-dismiss="alert">×</button><?php echo $_smarty_tpl->tpl_vars['module']->value->message; ?> </div><?php } ?> </div> </td> <?php if (isset($_smarty_tpl->tpl_vars['module']->value->type) && $_smarty_tpl->tpl_vars['module']->value->type == 'addonsMustHave') { ?> <td> </td> <td style="text-align: right;"> <p> <a href="<?php echo htmlspecialchars(smarty_modifier_replace($_smarty_tpl->tpl_vars['module']->value->addons_buy_url, ' ', '+'), ENT_QUOTES, 'UTF-8', true); ?> " target="_blank" class="button updated"> <span class="btn btn-default"> <i class="icon-shopping-cart"></i><?php if (isset($_smarty_tpl->tpl_vars['module']->value->price) && isset($_smarty_tpl->tpl_vars['module']->value->id_currency)) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['module']->value->price, 'currency' => $_smarty_tpl->tpl_vars['module']->value->id_currency), $_smarty_tpl); } ?> </span> </a> </p> </td> <?php } elseif (!isset($_smarty_tpl->tpl_vars['module']->value->not_on_disk)) { ?> <td> </td> <td class="actions"> <div class="btn-group-action"> <?php if (count($_smarty_tpl->tpl_vars['module']->value->optionsHtml) > 0) { ?> <div class="btn-group"> <?php $_smarty_tpl->tpl_vars['option'] = new Smarty_variable($_smarty_tpl->tpl_vars['module']->value->optionsHtml[0], null, 0); ?> <?php echo $_smarty_tpl->tpl_vars['option']->value; ?> <?php if (count($_smarty_tpl->tpl_vars['module']->value->optionsHtml) > 1) { ?> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" > <span class="caret"> </span> </button> <ul class="dropdown-menu pull-right"> <?php $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['option']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['module']->value->optionsHtml; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) { $_smarty_tpl->tpl_vars['option']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['option']->key; ?> <?php if ($_smarty_tpl->tpl_vars['key']->value != 0) { ?> <?php if (strpos($_smarty_tpl->tpl_vars['option']->value, 'title="divider"') !== false) { ?> <li class="divider"></li> <?php } else { ?> <li><?php echo $_smarty_tpl->tpl_vars['option']->value; ?> </li> <?php } ?> <?php } ?> <?php } ?> </ul> <?php } ?> </div> <?php } ?> </div> </td> <?php } else { ?> <td> </td> <td style="text-align: right;"> <p> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->options['install_url'], ENT_QUOTES, 'UTF-8', true); ?> " class="btn btn-success"> <i class="icon-plus-sign-alt"></i> <?php echo smartyTranslate(array('s' => 'Install'), $_smarty_tpl); ?> </a> </p> </td> <?php } ?> </tr><?php }
if ($this->_sections['e']['show']) { for ($this->_sections['e']['index'] = $this->_sections['e']['start'], $this->_sections['e']['iteration'] = 1; $this->_sections['e']['iteration'] <= $this->_sections['e']['total']; $this->_sections['e']['index'] += $this->_sections['e']['step'], $this->_sections['e']['iteration']++) { $this->_sections['e']['rownum'] = $this->_sections['e']['iteration']; $this->_sections['e']['index_prev'] = $this->_sections['e']['index'] - $this->_sections['e']['step']; $this->_sections['e']['index_next'] = $this->_sections['e']['index'] + $this->_sections['e']['step']; $this->_sections['e']['first'] = $this->_sections['e']['iteration'] == 1; $this->_sections['e']['last'] = $this->_sections['e']['iteration'] == $this->_sections['e']['total']; ?> <?php $this->assign('lng', $this->_tpl_vars['data'][3]['Type_Enums'][$this->_sections['e']['index']]['value']); ?> arr_b[<?php echo $this->_sections['e']['index']; ?> ] = '<?php echo is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['lang']['email']['range'][$this->_tpl_vars['lng']]['body']) ? $this->_run_mod_handler('replace', true, $_tmp, "##range##", $this->_tpl_vars['data']['0']['value'] . " - " . $this->_tpl_vars['data']['1']['value']) : smarty_modifier_replace($_tmp, "##range##", $this->_tpl_vars['data']['0']['value'] . " - " . $this->_tpl_vars['data']['1']['value'])) ? $this->_run_mod_handler('replace', true, $_tmp, "##node_name##", $this->_tpl_vars['extra_data']['node_name']) : smarty_modifier_replace($_tmp, "##node_name##", $this->_tpl_vars['extra_data']['node_name'])) ? $this->_run_mod_handler('replace', true, $_tmp, "##node_id##", $this->_tpl_vars['extra_data']['node_id']) : smarty_modifier_replace($_tmp, "##node_id##", $this->_tpl_vars['extra_data']['node_id'])) ? $this->_run_mod_handler('replace', true, $_tmp, "##hostmaster_username##", $this->_tpl_vars['extra_data']['hostmaster_username']) : smarty_modifier_replace($_tmp, "##hostmaster_username##", $this->_tpl_vars['extra_data']['hostmaster_username'])) ? $this->_run_mod_handler('replace', true, $_tmp, "##hostmaster_name##", $this->_tpl_vars['extra_data']['hostmaster_name']) : smarty_modifier_replace($_tmp, "##hostmaster_name##", $this->_tpl_vars['extra_data']['hostmaster_name'])) ? $this->_run_mod_handler('replace', true, $_tmp, "##hostmaster_surname##", $this->_tpl_vars['extra_data']['hostmaster_surname']) : smarty_modifier_replace($_tmp, "##hostmaster_surname##", $this->_tpl_vars['extra_data']['hostmaster_surname'])) ? $this->_run_mod_handler('replace', true, $_tmp, "\r", "\\r") : smarty_modifier_replace($_tmp, "\r", "\\r")) ? $this->_run_mod_handler('replace', true, $_tmp, "\n", "\\n") : smarty_modifier_replace($_tmp, "\n", "\\n")) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes') : smarty_modifier_escape($_tmp, 'quotes'); ?> ' <?php } } ?> document.<?php echo $this->_tpl_vars['extra_data']['FORM_NAME']; ?> .email_subject.value = arr_s[document.<?php echo $this->_tpl_vars['extra_data']['FORM_NAME']; ?> .<?php echo $this->_tpl_vars['data'][3]['fullField']; ?>
<tr><td colspan="5" class="headseparator"> </td></tr> <?php $this->_tag_stack[] = array('iterate', array('from' => 'emailTemplates', 'item' => 'emailTemplate')); $_block_repeat = true; $this->_plugins['block']['iterate'][0][0]->smartyIterate($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <tr valign="top"> <td> <?php echo is_array($_tmp = $this->_plugins['function']['url'][0][0]->smartyUrl(array('op' => 'email', 'template' => $this->_tpl_vars['emailTemplate']->getEmailKey()), $this)) ? $this->_run_mod_handler('assign', true, $_tmp, 'emailUrl') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'emailUrl'); ?> <?php echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['emailTemplate']->getEmailKey()) ? $this->_run_mod_handler('escape', true, $_tmp) : $this->_plugins['modifier']['escape'][0][0]->smartyEscape($_tmp)) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' '); ?> <?php echo $this->_plugins['function']['icon'][0][0]->smartyIcon(array('name' => 'mail', 'url' => $this->_tpl_vars['emailUrl']), $this); ?> </td> <td><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => $this->_tpl_vars['emailTemplate']->getFromRoleName()), $this); ?> </td> <td><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => $this->_tpl_vars['emailTemplate']->getToRoleName()), $this); ?> </td> <td><?php
} elseif ($this->_tpl_vars['keyid'] == '19' || $this->_tpl_vars['keyid'] == '20') { ?> <!--TextArea/Description--> <?php if ($this->_tpl_vars['label'] == $this->_tpl_vars['MOD']['LBL_ADD_COMMENT']) { ?> <?php $this->assign('keyval', ''); ?> <?php } ?> <td width=100% class="dvtCellInfo" align="left"> <!--To give hyperlink to URL--> <?php echo is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['keyval']) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/(^|[\n ])([\\w]+?:\\/\\/.*?[^ \"\n\r\t<]*)/", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>") : smarty_modifier_regex_replace($_tmp, "/(^|[\n ])([\\w]+?:\\/\\/.*?[^ \"\n\r\t<]*)/", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>")) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/(^|[\n ])((www|ftp)\\.[\\w\\-]+\\.[\\w\\-.\\~]+(?:\\/[^ \"\t\n\r<]*)?)/", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>") : smarty_modifier_regex_replace($_tmp, "/(^|[\n ])((www|ftp)\\.[\\w\\-]+\\.[\\w\\-.\\~]+(?:\\/[^ \"\t\n\r<]*)?)/", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>")) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/(^|[\n ])([a-z0-9&\\-_.]+?)@([\\w\\-]+\\.([\\w\\-\\.]+\\.)*[\\w]+)/i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>") : smarty_modifier_regex_replace($_tmp, "/(^|[\n ])([a-z0-9&\\-_.]+?)@([\\w\\-]+\\.([\\w\\-\\.]+\\.)*[\\w]+)/i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>")) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/,\"|\\.\"|\\)\"|\\)\\.\"|\\.\\)\"/", "\"") : smarty_modifier_regex_replace($_tmp, "/,\"|\\.\"|\\)\"|\\)\\.\"|\\.\\)\"/", "\"")) ? $this->_run_mod_handler('replace', true, $_tmp, "\n", "<br> ") : smarty_modifier_replace($_tmp, "\n", "<br> "); ?> </td> <?php } elseif ($this->_tpl_vars['keyid'] == '21' || $this->_tpl_vars['keyid'] == '24' || $this->_tpl_vars['keyid'] == '22') { ?> <!--TextArea/Street--> <td width=25% class="dvtCellInfo" align="left"> <span id ="dtlview_<?php echo $this->_tpl_vars['label']; ?> "><?php echo $this->_tpl_vars['keyval']; ?> </span> </td>
?> <?php echo is_array($_tmp = $this->_tpl_vars['APP']['MSG_LIST_VIEW_NO_RESULTS']) ? $this->_run_mod_handler('replace', true, $_tmp, "<item1>", $this->_tpl_vars['quotedQuery']) : smarty_modifier_replace($_tmp, "<item1>", $this->_tpl_vars['quotedQuery']); ?> </p> <p class = "submsg"> <a href="?module=<?php echo $this->_tpl_vars['pageData']['bean']['moduleDir']; ?> &action=EditView&return_module=<?php echo $this->_tpl_vars['pageData']['bean']['moduleDir']; ?> &return_action=DetailView"> <?php echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['APP']['MSG_LIST_VIEW_NO_RESULTS_SUBMSG']) ? $this->_run_mod_handler('replace', true, $_tmp, "<item1>", $this->_tpl_vars['quotedQuery']) : smarty_modifier_replace($_tmp, "<item1>", $this->_tpl_vars['quotedQuery'])) ? $this->_run_mod_handler('replace', true, $_tmp, "<item2>", $this->_tpl_vars['singularModule']) : smarty_modifier_replace($_tmp, "<item2>", $this->_tpl_vars['singularModule']); ?> </a> </p> <?php } ?> <?php } else { ?> <p class="msg"> <?php echo $this->_tpl_vars['APP']['LBL_NO_DATA']; ?>
function content_53ac565ec869c2_53690580($_smarty_tpl) { if (!is_callable('smarty_modifier_escape')) { include '/var/www/vipinsg/tools/smarty/plugins/modifier.escape.php'; } if (!is_callable('smarty_modifier_replace')) { include '/var/www/vipinsg/tools/smarty/plugins/modifier.replace.php'; } ?> <?php if ($_smarty_tpl->tpl_vars['show_toolbar']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("toolbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('toolbar_btn' => $_smarty_tpl->tpl_vars['toolbar_btn']->value, 'toolbar_scroll' => $_smarty_tpl->tpl_vars['toolbar_scroll']->value, 'title' => $_smarty_tpl->tpl_vars['title']->value), 0); ?> <div class="leadin"></div> <?php } ?> <script type="text/javascript"> id_language = Number(<?php echo $_smarty_tpl->tpl_vars['current_id_lang']->value; ?> ); </script> <form action="<?php echo $_smarty_tpl->tpl_vars['current']->value; ?> &token=<?php echo $_smarty_tpl->tpl_vars['token']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _form" <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['name'])) { ?> name=<?php echo $_smarty_tpl->tpl_vars['categoryData']->value['name']; } ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['id'])) { ?> id=<?php echo $_smarty_tpl->tpl_vars['categoryData']->value['id']; ?> <?php } ?> method="post" enctype="multipart/form-data"> <?php $_smarty_tpl->tpl_vars['categoryData'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['categoryData']->_loop = false; $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['option_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['categoryData']->key => $_smarty_tpl->tpl_vars['categoryData']->value) { $_smarty_tpl->tpl_vars['categoryData']->_loop = true; $_smarty_tpl->tpl_vars['category']->value = $_smarty_tpl->tpl_vars['categoryData']->key; ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['top'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['top']; } ?> <fieldset <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['class'])) { ?> class="<?php echo $_smarty_tpl->tpl_vars['categoryData']->value['class']; ?> "<?php } ?> > <legend> <img src="<?php echo $_smarty_tpl->tpl_vars['categoryData']->value['image']; ?> "/> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['title'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['title']; } else { echo smartyTranslate(array('s' => 'Options'), $_smarty_tpl); } ?> </legend> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['description']) && $_smarty_tpl->tpl_vars['categoryData']->value['description']) { ?> <div class="optionsDescription"><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['description']; ?> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['info']) && $_smarty_tpl->tpl_vars['categoryData']->value['info']) { ?> <p><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['info']; ?> </p> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox'] && $_smarty_tpl->tpl_vars['use_multishop']->value) { ?> <input type="checkbox" style="vertical-align: text-top" onclick="checkAllMultishopDefaultValue(this)" /> <b><?php echo smartyTranslate(array('s' => 'Check/uncheck all'), $_smarty_tpl); ?> </b> <?php echo smartyTranslate(array('s' => '(check boxes if you want to set a custom value for this shop or group shop context)'), $_smarty_tpl); ?> <div class="separation"></div> <?php } ?> <?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['field']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['categoryData']->value['fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['field']->key; ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'hidden') { ?> <input type="hidden" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " value="<?php echo $_smarty_tpl->tpl_vars['field']->value['value']; ?> " /> <?php } else { ?> <div style="clear: both; padding-top:15px;" id="conf_id_<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " <?php if ($_smarty_tpl->tpl_vars['field']->value['is_invisible']) { ?> class="isInvisible"<?php } ?> > <?php if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox'] && $_smarty_tpl->tpl_vars['field']->value['multishop_default'] && empty($_smarty_tpl->tpl_vars['field']->value['no_multishop_checkbox'])) { ?> <div class="preference_default_multishop"> <input type="checkbox" name="multishopOverrideOption[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ]" value="1" <?php if (!$_smarty_tpl->tpl_vars['field']->value['is_disabled']) { ?> checked="checked"<?php } ?> onclick="checkMultishopDefaultValue(this, '<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ')" /> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['title'])) { ?> <label class="conf_title"> <?php echo $_smarty_tpl->tpl_vars['field']->value['title']; ?> </label> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'theme') { ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['can_display_themes']) { ?> <?php $_smarty_tpl->tpl_vars['theme'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['theme']->_loop = false; $_from = $_smarty_tpl->tpl_vars['field']->value['themes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['theme']->key => $_smarty_tpl->tpl_vars['theme']->value) { $_smarty_tpl->tpl_vars['theme']->_loop = true; ?> <div class="select_theme <?php if ($_smarty_tpl->tpl_vars['theme']->value->id == $_smarty_tpl->tpl_vars['field']->value['id_theme']) { ?> select_theme_choice<?php } ?> " onclick="$(this).find('input').attr('checked', true); $('.select_theme').removeClass('select_theme_choice'); $(this).toggleClass('select_theme_choice');"> <?php echo $_smarty_tpl->tpl_vars['theme']->value->name; ?> <br /> <img src="../themes/<?php echo $_smarty_tpl->tpl_vars['theme']->value->directory; ?> /preview.jpg" alt="<?php echo $_smarty_tpl->tpl_vars['theme']->value->directory; ?> " /><br /> <input type="radio" name="id_theme" value="<?php echo $_smarty_tpl->tpl_vars['theme']->value->id; ?> " <?php if ($_smarty_tpl->tpl_vars['theme']->value->id == $_smarty_tpl->tpl_vars['field']->value['id_theme']) { ?> checked="checked"<?php } ?> /> </div> <?php } ?> <?php } ?> <?php } else { ?> <div class="margin-form"> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'select') { ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['list']) { ?> <select name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> "<?php if (isset($_smarty_tpl->tpl_vars['field']->value['js'])) { ?> onchange="<?php echo $_smarty_tpl->tpl_vars['field']->value['js']; ?> "<?php } ?> id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " <?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { ?> size="<?php echo $_smarty_tpl->tpl_vars['field']->value['size']; ?> "<?php } ?> > <?php $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['option']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) { $_smarty_tpl->tpl_vars['option']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['option']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]; ?> "<?php if ($_smarty_tpl->tpl_vars['field']->value['value'] == $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]) { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['option']->value['name']; ?> </option> <?php } ?> </select> <?php } elseif (isset($_smarty_tpl->tpl_vars['input']->value['empty_message'])) { ?> <?php echo $_smarty_tpl->tpl_vars['input']->value['empty_message']; ?> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'bool') { ?> <label class="t" for="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _on"><img src="../img/admin/enabled.gif" alt="<?php echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl); ?> " title="<?php echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl); ?> " /></label> <input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _on" value="1" <?php if ($_smarty_tpl->tpl_vars['field']->value['value']) { ?> checked="checked"<?php } if (isset($_smarty_tpl->tpl_vars['field']->value['js']['on'])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js']['on']; } ?> /> <label class="t" for="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _on"> <?php echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl); ?> </label> <label class="t" for="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _off"><img src="../img/admin/disabled.gif" alt="<?php echo smartyTranslate(array('s' => 'No'), $_smarty_tpl); ?> " title="<?php echo smartyTranslate(array('s' => 'No'), $_smarty_tpl); ?> " style="margin-left: 10px;" /></label> <input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _off" value="0" <?php if (!$_smarty_tpl->tpl_vars['field']->value['value']) { ?> checked="checked"<?php } if (isset($_smarty_tpl->tpl_vars['field']->value['js']['off'])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js']['off']; } ?> /> <label class="t" for="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _off"> <?php echo smartyTranslate(array('s' => 'No'), $_smarty_tpl); ?> </label> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'radio') { ?> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['choices']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['k']->value; ?> " value="<?php echo $_smarty_tpl->tpl_vars['k']->value; ?> "<?php if ($_smarty_tpl->tpl_vars['k']->value == $_smarty_tpl->tpl_vars['field']->value['value']) { ?> checked="checked"<?php } if (isset($_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value]; } ?> /> <label class="t" for="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['k']->value; ?> "> <?php echo $_smarty_tpl->tpl_vars['v']->value; ?> </label><br /> <?php } ?> <br /> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'checkbox') { ?> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['choices']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <input type="checkbox" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['key']->value; echo $_smarty_tpl->tpl_vars['k']->value; ?> _on" value="<?php echo intval($_smarty_tpl->tpl_vars['k']->value); ?> "<?php if ($_smarty_tpl->tpl_vars['k']->value == $_smarty_tpl->tpl_vars['field']->value['value']) { ?> checked="checked"<?php } if (isset($_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value]; } ?> /> <label class="t" for="<?php echo $_smarty_tpl->tpl_vars['key']->value; echo $_smarty_tpl->tpl_vars['k']->value; ?> _on"> <?php echo $_smarty_tpl->tpl_vars['v']->value; ?> </label><br /> <?php } ?> <br /> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'text') { ?> <input type="<?php echo $_smarty_tpl->tpl_vars['field']->value['type']; ?> "<?php if (isset($_smarty_tpl->tpl_vars['field']->value['id'])) { ?> id="<?php echo $_smarty_tpl->tpl_vars['field']->value['id']; ?> "<?php } ?> size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { echo intval($_smarty_tpl->tpl_vars['field']->value['size']); } else { ?> 5<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " value="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['field']->value['value'], 'htmlall', 'UTF-8'); ?> " <?php if (isset($_smarty_tpl->tpl_vars['field']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['field']->value['autocomplete']) { ?> autocomplete="off"<?php } ?> /> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> <?php echo strval($_smarty_tpl->tpl_vars['field']->value['suffix']); } ?> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'password') { ?> <input type="<?php echo $_smarty_tpl->tpl_vars['field']->value['type']; ?> "<?php if (isset($_smarty_tpl->tpl_vars['field']->value['id'])) { ?> id="<?php echo $_smarty_tpl->tpl_vars['field']->value['id']; ?> "<?php } ?> size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { echo intval($_smarty_tpl->tpl_vars['field']->value['size']); } else { ?> 5<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " value="" <?php if (isset($_smarty_tpl->tpl_vars['field']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['field']->value['autocomplete']) { ?> autocomplete="off"<?php } ?> /> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> <?php echo strval($_smarty_tpl->tpl_vars['field']->value['suffix']); } ?> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textarea') { ?> <textarea name=<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> cols="<?php echo $_smarty_tpl->tpl_vars['field']->value['cols']; ?> " rows="<?php echo $_smarty_tpl->tpl_vars['field']->value['rows']; ?> "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['field']->value['value'], 'htmlall', 'UTF-8'); ?> </textarea> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'file') { ?> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['thumb']) && $_smarty_tpl->tpl_vars['field']->value['thumb']) { ?> <img src="<?php echo $_smarty_tpl->tpl_vars['field']->value['thumb']; ?> " alt="<?php echo $_smarty_tpl->tpl_vars['field']->value['title']; ?> " title="<?php echo $_smarty_tpl->tpl_vars['field']->value['title']; ?> " /><br /> <?php } ?> <input type="file" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " /> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'price') { ?> <?php echo $_smarty_tpl->tpl_vars['currency_left_sign']->value; ?> <input type="text" size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { echo intval($_smarty_tpl->tpl_vars['field']->value['size']); } else { ?> 5<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " value="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['field']->value['value'], 'htmlall', 'UTF-8'); ?> " /><?php echo $_smarty_tpl->tpl_vars['currency_right_sign']->value; ?> <?php echo smartyTranslate(array('s' => '(tax excl.)'), $_smarty_tpl); ?> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textLang' || $_smarty_tpl->tpl_vars['field']->value['type'] == 'textareaLang' || $_smarty_tpl->tpl_vars['field']->value['type'] == 'selectLang') { ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textLang') { ?> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['id_lang'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['id_lang']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <div id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> " style="margin-bottom:8px; display: <?php if ($_smarty_tpl->tpl_vars['id_lang']->value == $_smarty_tpl->tpl_vars['current_id_lang']->value) { ?> block<?php } else { ?> none<?php } ?> ; float: left; vertical-align: top;"> <input type="text" size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { echo intval($_smarty_tpl->tpl_vars['field']->value['size']); } else { ?> 5<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> " value="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['value']->value, 'htmlall', 'UTF-8'); ?> " /> </div> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textareaLang') { ?> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['id_lang'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['id_lang']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <div id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> " style="display: <?php if ($_smarty_tpl->tpl_vars['id_lang']->value == $_smarty_tpl->tpl_vars['current_id_lang']->value) { ?> block<?php } else { ?> none<?php } ?> ; float: left;"> <textarea rows="<?php echo $_smarty_tpl->tpl_vars['field']->value['rows']; ?> " cols="<?php echo intval($_smarty_tpl->tpl_vars['field']->value['cols']); ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> "><?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['value']->value, '\\r\\n', "\n"); ?> </textarea> </div> <?php } ?> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'selectLang') { ?> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <div id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang']; ?> " style="margin-bottom:8px; display: <?php if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] == $_smarty_tpl->tpl_vars['current_id_lang']->value) { ?> block<?php } else { ?> none<?php } ?> ; float: left; vertical-align: top;"> <select name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['language']->value['iso_code'], 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <option value="<?php if (isset($_smarty_tpl->tpl_vars['v']->value['cast'])) { echo $_smarty_tpl->tpl_vars['v']->value['cast'][$_smarty_tpl->tpl_vars['v']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]]; } else { echo $_smarty_tpl->tpl_vars['v']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]; } ?> " <?php if ($_smarty_tpl->tpl_vars['field']->value['value'][$_smarty_tpl->tpl_vars['language']->value['id_lang']] == $_smarty_tpl->tpl_vars['v']->value['name']) { ?> selected="selected"<?php } ?> > <?php echo $_smarty_tpl->tpl_vars['v']->value['name']; ?> </option> <?php } ?> </select> </div> <?php } ?> <?php } ?> <?php if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) { ?> <div class="displayed_flag"> <img src="../img/l/<?php echo $_smarty_tpl->tpl_vars['current_id_lang']->value; ?> .jpg" class="pointer" id="language_current_<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " onclick="toggleLanguageFlags(this);" /> </div> <div id="languages_<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " class="language_flags"> <?php echo smartyTranslate(array('s' => 'Choose language:'), $_smarty_tpl); ?> <br /><br /> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <img src="../img/l/<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang']; ?> .jpg" class="pointer" alt="<?php echo $_smarty_tpl->tpl_vars['language']->value['name']; ?> " title="<?php echo $_smarty_tpl->tpl_vars['language']->value['name']; ?> " onclick="changeLanguage('<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ', '<?php if (isset($_smarty_tpl->tpl_vars['custom_key']->value)) { echo $_smarty_tpl->tpl_vars['custom_key']->value; } else { echo $_smarty_tpl->tpl_vars['key']->value; } ?> ', <?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang']; ?> , '<?php echo $_smarty_tpl->tpl_vars['language']->value['iso_code']; ?> ');" /> <?php } ?> </div> <?php } ?> <br style="clear:both"> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['required']) && $_smarty_tpl->tpl_vars['field']->value['required'] && $_smarty_tpl->tpl_vars['field']->value['type'] != 'radio') { ?> <sup>*</sup> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['hint'])) { ?> <span class="hint" name="help_box"><?php echo $_smarty_tpl->tpl_vars['field']->value['hint']; ?> <span class="hint-pointer"> </span></span><?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['desc'])) { ?> <p class="preference_description"><?php echo $_smarty_tpl->tpl_vars['field']->value['desc']; ?> </p><?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['is_invisible']) { ?> <p class="warn"><?php echo smartyTranslate(array('s' => 'You can\'t change the value of this configuration field in the context of this shop'), $_smarty_tpl); ?> </p><?php } ?> </div> </div> <div class="clear"></div> <?php } ?> <?php } ?> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit'])) { ?> <div class="margin-form"> <input type="submit" value="<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['title'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['title']; } else { echo smartyTranslate(array('s' => 'Save'), $_smarty_tpl); } ?> " name="<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['name'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['name']; } else { ?> submitOptions<?php echo $_smarty_tpl->tpl_vars['table']->value; } ?> " class="<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['class'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['class']; } else { ?> button<?php } ?> " id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _form_submit_btn" /> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['required_fields']) && $_smarty_tpl->tpl_vars['categoryData']->value['required_fields']) { ?> <div class="small"><sup>*</sup> <?php echo smartyTranslate(array('s' => 'Required field'), $_smarty_tpl); ?> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['bottom'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['bottom']; } ?> </fieldset><br /> <?php } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => 'displayAdminOptions'), $_smarty_tpl); ?> <?php if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?> display<?php echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value); ?> Options<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl); ?> <?php } elseif (isset($_GET['controller'])) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?> display<?php echo htmlentities(ucfirst($_GET['controller'])); ?> Options<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl); ?> <?php } ?> </form> <br/><br/> <fieldset id="prestastore-content" class="width3"></fieldset> <script type="text/javascript"> $.post( "ajax-tab.php", { tab: 'AdminThemes', token: '<?php echo $_smarty_tpl->tpl_vars['token']->value; ?> ', ajax: '1', action:'getAddonsThemes', page:'themes' }, function(a){ $("#prestastore-content").html("<legend><img src='../img/admin/prestastore.gif' class='middle' /><?php echo smartyTranslate(array('s' => 'Live from PrestaShop Addons!'), $_smarty_tpl); ?> </legend>"+a); }); </script> <?php }
?> <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "docblock.tpl", 'smarty_include_vars' => array('sdesc' => $this->_tpl_vars['globals'][$this->_sections['glob']['index']]['sdesc'], 'desc' => $this->_tpl_vars['globals'][$this->_sections['glob']['index']]['desc'], 'tags' => $this->_tpl_vars['globals'][$this->_sections['glob']['index']]['tags']))); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> <?php } ?> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>Default value:</b> </td> <td><?php echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['globals'][$this->_sections['glob']['index']]['global_value']) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', " ") : smarty_modifier_replace($_tmp, ' ', " ")) ? $this->_run_mod_handler('replace', true, $_tmp, "\n", "<br />\n") : smarty_modifier_replace($_tmp, "\n", "<br />\n")) ? $this->_run_mod_handler('replace', true, $_tmp, "\t", " ") : smarty_modifier_replace($_tmp, "\t", " "); ?> </td> </tr> <?php if ($this->_tpl_vars['globals'][$this->_sections['glob']['index']]['global_conflicts']['conflict_type']) { ?> <tr> <td><b>Conflicts with globals:</b> </td> <td> <?php if (isset($this->_sections['me'])) { unset($this->_sections['me']); } $this->_sections['me']['name'] = 'me'; $this->_sections['me']['loop'] = is_array($_loop = $this->_tpl_vars['globals'][$this->_sections['glob']['index']]['global_conflicts']['conflicts']) ? count($_loop) : max(0, (int) $_loop);
function content_5653521bcb3211_58320637($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include 'C:\\xampp\\htdocs\\flowershop\\tools\\smarty\\plugins\\modifier.replace.php'; } ?> <div class="table-responsive"> <table class="table" id="shipping_table"> <thead> <tr> <th> <span class="title_box "><?php echo smartyTranslate(array('s' => 'Date'), $_smarty_tpl); ?> </span> </th> <th> <span class="title_box "> </span> </th> <th> <span class="title_box "><?php echo smartyTranslate(array('s' => 'Carrier'), $_smarty_tpl); ?> </span> </th> <th> <span class="title_box "><?php echo smartyTranslate(array('s' => 'Weight'), $_smarty_tpl); ?> </span> </th> <th> <span class="title_box "><?php echo smartyTranslate(array('s' => 'Shipping cost'), $_smarty_tpl); ?> </span> </th> <th> <span class="title_box "><?php echo smartyTranslate(array('s' => 'Tracking number'), $_smarty_tpl); ?> </span> </th> <th></th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['line'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['line']->_loop = false; $_from = $_smarty_tpl->tpl_vars['order']->value->getShipping(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['line']->key => $_smarty_tpl->tpl_vars['line']->value) { $_smarty_tpl->tpl_vars['line']->_loop = true; ?> <tr> <td><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['line']->value['date_add'], 'full' => true), $_smarty_tpl); ?> </td> <td> </td> <td><?php echo $_smarty_tpl->tpl_vars['line']->value['carrier_name']; ?> </td> <td class="weight"><?php echo sprintf("%.3f", $_smarty_tpl->tpl_vars['line']->value['weight']); ?> <?php echo Configuration::get('PS_WEIGHT_UNIT'); ?> </td> <td class="center"> <?php if ($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod() == @constant('PS_TAX_INC')) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['line']->value['shipping_cost_tax_incl'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['line']->value['shipping_cost_tax_excl'], 'currency' => $_smarty_tpl->tpl_vars['currency']->value->id), $_smarty_tpl); ?> <?php } ?> </td> <td> <span class="shipping_number_show"><?php if ($_smarty_tpl->tpl_vars['line']->value['url'] && $_smarty_tpl->tpl_vars['line']->value['tracking_number']) { ?> <a class="_blank" href="<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['line']->value['url'], '@', $_smarty_tpl->tpl_vars['line']->value['tracking_number']); ?> "><?php echo $_smarty_tpl->tpl_vars['line']->value['tracking_number']; ?> </a><?php } else { echo $_smarty_tpl->tpl_vars['line']->value['tracking_number']; } ?> </span> </td> <td> <?php if ($_smarty_tpl->tpl_vars['line']->value['can_edit']) { ?> <form method="post" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminOrders'), ENT_QUOTES, 'UTF-8', true); ?> &vieworder&id_order=<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id); ?> "> <span class="shipping_number_edit" style="display:none;"> <input type="hidden" name="id_order_carrier" value="<?php echo htmlentities($_smarty_tpl->tpl_vars['line']->value['id_order_carrier']); ?> " /> <input type="text" name="tracking_number" value="<?php echo htmlentities($_smarty_tpl->tpl_vars['line']->value['tracking_number']); ?> " /> <button type="submit" class="btn btn-default" name="submitShippingNumber"> <i class="icon-ok"></i> <?php echo smartyTranslate(array('s' => 'Update'), $_smarty_tpl); ?> </button> </span> <a href="#" class="edit_shipping_number_link btn btn-default"> <i class="icon-pencil"></i> <?php echo smartyTranslate(array('s' => 'Edit'), $_smarty_tpl); ?> </a> <a href="#" class="cancel_shipping_number_link btn btn-default" style="display: none;"> <i class="icon-remove"></i> <?php echo smartyTranslate(array('s' => 'Cancel'), $_smarty_tpl); ?> </a> </form> <?php } ?> </td> </tr> <?php } ?> </tbody> </table> </div> <?php }
function content_568d50e775e305_76152267($_smarty_tpl) { if (!is_callable('smarty_function_counter')) { include '/Users/Gauthier/Desktop/G-M-Shop/prestashop/tools/smarty/plugins/function.counter.php'; } if (!is_callable('smarty_modifier_escape')) { include '/Users/Gauthier/Desktop/G-M-Shop/prestashop/tools/smarty/plugins/modifier.escape.php'; } if (!is_callable('smarty_modifier_replace')) { include '/Users/Gauthier/Desktop/G-M-Shop/prestashop/tools/smarty/plugins/modifier.replace.php'; } ?> <div class="leadin"></div> <script type="text/javascript"> id_language = Number(<?php echo $_smarty_tpl->tpl_vars['current_id_lang']->value; ?> ); <?php if (isset($_smarty_tpl->tpl_vars['tabs']->value) && count($_smarty_tpl->tpl_vars['tabs']->value)) { ?> var helper_tabs= <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['tabs']->value); ?> ; var unique_field_id = '<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _'; <?php } ?> </script> <?php if (isset($_smarty_tpl->tpl_vars['table_bk']->value) && $_smarty_tpl->tpl_vars['table_bk']->value == $_smarty_tpl->tpl_vars['table']->value) { $_smarty_tpl->_capture_stack[0][] = array('table_count', null, null); ob_start(); echo smarty_function_counter(array('name' => 'table_count'), $_smarty_tpl); list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } } $_smarty_tpl->tpl_vars['table_bk'] = new Smarty_variable($_smarty_tpl->tpl_vars['table']->value, null, 1); if ($_smarty_tpl->parent != null) { $_smarty_tpl->parent->tpl_vars['table_bk'] = clone $_smarty_tpl->tpl_vars['table_bk']; } ?> <form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true); ?> &token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true); ?> " id="<?php if ($_smarty_tpl->tpl_vars['table']->value == null) { ?> configuration_form<?php } else { echo $_smarty_tpl->tpl_vars['table']->value; ?> _form<?php } if (isset(Smarty::$_smarty_vars['capture']['table_count']) && Smarty::$_smarty_vars['capture']['table_count']) { ?> _<?php echo intval(Smarty::$_smarty_vars['capture']['table_count']); } ?> " method="post" enctype="multipart/form-data" class="form-horizontal"> <?php $_smarty_tpl->tpl_vars['categoryData'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['categoryData']->_loop = false; $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['option_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['categoryData']->key => $_smarty_tpl->tpl_vars['categoryData']->value) { $_smarty_tpl->tpl_vars['categoryData']->_loop = true; $_smarty_tpl->tpl_vars['category']->value = $_smarty_tpl->tpl_vars['categoryData']->key; ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['top'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['top']; } ?> <div class="panel <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['class'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['class']; } ?> " id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _fieldset_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> "> <div class="panel-heading"> <i class="<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['icon'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['icon']; } else { ?> icon-cogs<?php } ?> "></i> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['title'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['title']; } else { echo smartyTranslate(array('s' => 'Options'), $_smarty_tpl); } ?> </div> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['description']) && $_smarty_tpl->tpl_vars['categoryData']->value['description']) { ?> <div class="alert alert-info"><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['description']; ?> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['info']) && $_smarty_tpl->tpl_vars['categoryData']->value['info']) { ?> <div><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['info']; ?> </div> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox'] && $_smarty_tpl->tpl_vars['use_multishop']->value) { ?> <div class="well clearfix"> <label class="control-label col-lg-3"> <i class="icon-sitemap"></i> <?php echo smartyTranslate(array('s' => 'Multistore'), $_smarty_tpl); ?> </label> <div class="col-lg-9"> <span class="switch prestashop-switch fixed-width-lg"> <input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> _on" value="1" onclick="toggleAllMultishopDefaultValue($('#<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _fieldset_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> '), true)"/><label for="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> _on"><?php echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl); ?> </label><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> _off" value="0" checked="checked" onclick="toggleAllMultishopDefaultValue($('#<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _fieldset_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> '), false)"/><label for="<?php echo $_smarty_tpl->tpl_vars['table']->value; ?> _multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value; ?> _off"><?php echo smartyTranslate(array('s' => 'No'), $_smarty_tpl); ?> </label> <a class="slide-button btn"></a> </span> <div class="row"> <div class="col-lg-12"> <p class="help-block"> <strong><?php echo smartyTranslate(array('s' => 'Check / Uncheck all'), $_smarty_tpl); ?> </strong><br /> <?php echo smartyTranslate(array('s' => 'You are editing this page for a specific shop or group. Click "Yes" to check all fields, "No" to uncheck all.'), $_smarty_tpl); ?> <br /> <?php echo smartyTranslate(array('s' => 'If you check a field, change its value, and save, the multistore behavior will not apply to this shop (or group), for this particular parameter.'), $_smarty_tpl); ?> </p> </div> </div> </div> </div> <?php } ?> <div class="form-wrapper"> <?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['field']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['categoryData']->value['fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['field']->key; ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'hidden') { ?> <input type="hidden" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " value="<?php echo $_smarty_tpl->tpl_vars['field']->value['value']; ?> " /> <?php } else { ?> <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['field']->value['form_group_class'])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['form_group_class']; } ?> "<?php if (isset($_smarty_tpl->tpl_vars['tabs']->value) && isset($_smarty_tpl->tpl_vars['field']->value['tab'])) { ?> data-tab-id="<?php echo $_smarty_tpl->tpl_vars['field']->value['tab']; ?> "<?php } ?> > <div id="conf_id_<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> "<?php if ($_smarty_tpl->tpl_vars['field']->value['is_invisible']) { ?> class="isInvisible"<?php } ?> > <?php if (isset($_smarty_tpl->tpl_vars['field']->value['title']) && isset($_smarty_tpl->tpl_vars['field']->value['hint'])) { ?> <label class="control-label col-lg-3<?php if (isset($_smarty_tpl->tpl_vars['field']->value['required']) && $_smarty_tpl->tpl_vars['field']->value['required'] && $_smarty_tpl->tpl_vars['field']->value['type'] != 'radio') { ?> required<?php } ?> "> <?php if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox'] && $_smarty_tpl->tpl_vars['field']->value['multishop_default'] && empty($_smarty_tpl->tpl_vars['field']->value['no_multishop_checkbox'])) { ?> <input type="checkbox" name="multishopOverrideOption[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ]" value="1"<?php if (!$_smarty_tpl->tpl_vars['field']->value['is_disabled']) { ?> checked="checked"<?php } ?> onclick="toggleMultishopDefaultValue(this, '<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ')"/> <?php } ?> <span title="" data-toggle="tooltip" class="label-tooltip" data-original-title=" <?php if (is_array($_smarty_tpl->tpl_vars['field']->value['hint'])) { ?> <?php $_smarty_tpl->tpl_vars['hint'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['hint']->_loop = false; $_from = $_smarty_tpl->tpl_vars['field']->value['hint']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['hint']->key => $_smarty_tpl->tpl_vars['hint']->value) { $_smarty_tpl->tpl_vars['hint']->_loop = true; ?> <?php if (is_array($_smarty_tpl->tpl_vars['hint']->value)) { ?> <?php echo $_smarty_tpl->tpl_vars['hint']->value['text']; ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['hint']->value; ?> <?php } ?> <?php } ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['hint']; ?> <?php } ?> " data-html="true"> <?php echo $_smarty_tpl->tpl_vars['field']->value['title']; ?> </span> </label> <?php } elseif (isset($_smarty_tpl->tpl_vars['field']->value['title'])) { ?> <label class="control-label col-lg-3"> <?php if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox'] && $_smarty_tpl->tpl_vars['field']->value['multishop_default'] && empty($_smarty_tpl->tpl_vars['field']->value['no_multishop_checkbox'])) { ?> <input type="checkbox" name="multishopOverrideOption[<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ]" value="1"<?php if (!$_smarty_tpl->tpl_vars['field']->value['is_disabled']) { ?> checked="checked"<?php } ?> onclick="checkMultishopDefaultValue(this, '<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> ')" /> <?php } ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['title']; ?> </label> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'theme') { ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['can_display_themes']) { ?> <div class="col-lg-12"> <div class="row"> <?php $_smarty_tpl->tpl_vars['theme'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['theme']->_loop = false; $_from = $_smarty_tpl->tpl_vars['field']->value['themes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['theme']->key => $_smarty_tpl->tpl_vars['theme']->value) { $_smarty_tpl->tpl_vars['theme']->_loop = true; ?> <div class="col-sm-4 col-lg-3"> <div class="theme-container"> <h4 class="theme-title"><?php echo $_smarty_tpl->tpl_vars['theme']->value->name; ?> </h4> <div class="thumbnail-wrapper"> <div class="action-wrapper"> <div class="action-overlay"></div> <div class="action-buttons"> <div class="btn-group"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminThemes'), ENT_QUOTES, 'UTF-8', true); ?> &submitOptionstheme&id_theme=<?php echo $_smarty_tpl->tpl_vars['theme']->value->id; ?> " class="btn btn-default"> <i class="icon-check"></i> <?php echo smartyTranslate(array('s' => 'Use this theme'), $_smarty_tpl); ?> </a> <?php if ($_smarty_tpl->tpl_vars['theme']->value->name != 'default-bootstrap' || $_smarty_tpl->tpl_vars['theme']->value->name == 'default-bootstrap' && $_smarty_tpl->tpl_vars['host_mode']->value == 0) { ?> <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <i class="icon-caret-down"></i> </button> <ul class="dropdown-menu"> <li> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminThemes'), ENT_QUOTES, 'UTF-8', true); ?> &deletetheme&id_theme=<?php echo $_smarty_tpl->tpl_vars['theme']->value->id; ?> " title="Delete this theme" class="delete"> <i class="icon-trash"></i> <?php echo smartyTranslate(array('s' => 'Delete this theme'), $_smarty_tpl); ?> </a> </li> </ul> <?php } ?> </div> </div> </div> <img class="center-block img-thumbnail" src="../themes/<?php echo $_smarty_tpl->tpl_vars['theme']->value->directory; ?> /preview.jpg" alt="<?php echo $_smarty_tpl->tpl_vars['theme']->value->name; ?> " /> </div> </div> </div> <?php } ?> <?php $_smarty_tpl->tpl_vars['theme'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['theme']->_loop = false; $_from = $_smarty_tpl->tpl_vars['field']->value['not_installed']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['theme']->key => $_smarty_tpl->tpl_vars['theme']->value) { $_smarty_tpl->tpl_vars['theme']->_loop = true; ?> <div class="col-sm-4 col-lg-3"> <div class="theme-container"> <h4 class="theme-title"><?php echo $_smarty_tpl->tpl_vars['theme']->value['name']; ?> </h4> <div class="thumbnail-wrapper"> <div class="action-wrapper"> <div class="action-overlay"></div> <div class="action-buttons"> <div class="btn-group"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminThemes'), ENT_QUOTES, 'UTF-8', true); ?> &installThemeFromFolder&theme_dir=<?php echo $_smarty_tpl->tpl_vars['theme']->value['directory']; ?> " class="btn btn-default"> <i class="icon-check"></i> <?php echo smartyTranslate(array('s' => 'Install this theme'), $_smarty_tpl); ?> </a> <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <i class="icon-caret-down"></i> </button> <ul class="dropdown-menu"> <li> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminThemes'), ENT_QUOTES, 'UTF-8', true); ?> &deletetheme&theme_dir=<?php echo $_smarty_tpl->tpl_vars['theme']->value['directory']; ?> " title="Delete this theme" class="delete"> <i class="icon-trash"></i> <?php echo smartyTranslate(array('s' => 'Delete this theme'), $_smarty_tpl); ?> </a> </li> </ul> </div> </div> </div> <img class="center-block img-thumbnail" src="../themes/<?php echo $_smarty_tpl->tpl_vars['theme']->value['directory']; ?> /themes/<?php echo $_smarty_tpl->tpl_vars['theme']->value['directory']; ?> /preview.jpg" alt="<?php echo $_smarty_tpl->tpl_vars['theme']->value['name']; ?> " /> </div> </div> </div> <?php } ?> </div> </div> <?php } ?> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'select') { ?> <div class="col-lg-9"> <?php if ($_smarty_tpl->tpl_vars['field']->value['list']) { ?> <select class="form-control fixed-width-xxl <?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) { echo $_smarty_tpl->tpl_vars['field']->value['class']; } ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> "<?php if (isset($_smarty_tpl->tpl_vars['field']->value['js'])) { ?> onchange="<?php echo $_smarty_tpl->tpl_vars['field']->value['js']; ?> "<?php } ?> id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " <?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { ?> size="<?php echo $_smarty_tpl->tpl_vars['field']->value['size']; ?> "<?php } ?> > <?php $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['option']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) { $_smarty_tpl->tpl_vars['option']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['option']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]; ?> "<?php if ($_smarty_tpl->tpl_vars['field']->value['value'] == $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]) { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['option']->value['name']; ?> </option> <?php } ?> </select> <?php } elseif (isset($_smarty_tpl->tpl_vars['input']->value['empty_message'])) { ?> <?php echo $_smarty_tpl->tpl_vars['input']->value['empty_message']; ?> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'bool') { ?> <div class="col-lg-9"> <span class="switch prestashop-switch fixed-width-lg"> <input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _on" value="1" <?php if ($_smarty_tpl->tpl_vars['field']->value['value']) { ?> checked="checked"<?php } if (isset($_smarty_tpl->tpl_vars['field']->value['js']['on'])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js']['on']; } if (isset($_smarty_tpl->tpl_vars['field']->value['disabled']) && (bool) $_smarty_tpl->tpl_vars['field']->value['disabled']) { ?> disabled="disabled"<?php } ?> /><label for="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _on" class="radioCheck"><?php echo smartyTranslate(array('s' => 'Yes'), $_smarty_tpl); ?> </label><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _off" value="0" <?php if (!$_smarty_tpl->tpl_vars['field']->value['value']) { ?> checked="checked"<?php } if (isset($_smarty_tpl->tpl_vars['field']->value['js']['off'])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js']['off']; } if (isset($_smarty_tpl->tpl_vars['field']->value['disabled']) && (bool) $_smarty_tpl->tpl_vars['field']->value['disabled']) { ?> disabled="disabled"<?php } ?> /><label for="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _off" class="radioCheck"><?php echo smartyTranslate(array('s' => 'No'), $_smarty_tpl); ?> </label> <a class="slide-button btn"></a> </span> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'radio') { ?> <div class="col-lg-9"> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['choices']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <p class="radio"> <label for="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['k']->value; ?> "><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['k']->value; ?> " value="<?php echo $_smarty_tpl->tpl_vars['k']->value; ?> "<?php if ($_smarty_tpl->tpl_vars['k']->value == $_smarty_tpl->tpl_vars['field']->value['value']) { ?> checked="checked"<?php } if (isset($_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value]; } ?> /><?php echo $_smarty_tpl->tpl_vars['v']->value; ?> </label> </p> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'checkbox') { ?> <div class="col-lg-9"> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['choices']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <p class="checkbox"> <label class="col-lg-3" for="<?php echo $_smarty_tpl->tpl_vars['key']->value; echo $_smarty_tpl->tpl_vars['k']->value; ?> _on"><input type="checkbox" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " id="<?php echo $_smarty_tpl->tpl_vars['key']->value; echo $_smarty_tpl->tpl_vars['k']->value; ?> _on" value="<?php echo intval($_smarty_tpl->tpl_vars['k']->value); ?> "<?php if ($_smarty_tpl->tpl_vars['k']->value == $_smarty_tpl->tpl_vars['field']->value['value']) { ?> checked="checked"<?php } if (isset($_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value]; } ?> /><?php echo $_smarty_tpl->tpl_vars['v']->value; ?> </label> </p> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'text') { ?> <div class="col-lg-9"><?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> <div class="input-group<?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['class']; } ?> "><?php } ?> <input class="form-control <?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) { echo $_smarty_tpl->tpl_vars['field']->value['class']; } ?> " type="<?php echo $_smarty_tpl->tpl_vars['field']->value['type']; ?> "<?php if (isset($_smarty_tpl->tpl_vars['field']->value['id'])) { ?> id="<?php echo $_smarty_tpl->tpl_vars['field']->value['id']; ?> "<?php } ?> size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { echo intval($_smarty_tpl->tpl_vars['field']->value['size']); } else { ?> 5<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " value="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['no_escape']) && $_smarty_tpl->tpl_vars['field']->value['no_escape']) { echo smarty_modifier_escape($_smarty_tpl->tpl_vars['field']->value['value'], 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true); } ?> " <?php if (isset($_smarty_tpl->tpl_vars['field']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['field']->value['autocomplete']) { ?> autocomplete="off"<?php } ?> /> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> <span class="input-group-addon"> <?php echo strval($_smarty_tpl->tpl_vars['field']->value['suffix']); ?> </span> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> </div><?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'password') { ?> <div class="col-lg-9"><?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> <div class="input-group<?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['class']; } ?> "><?php } ?> <input type="<?php echo $_smarty_tpl->tpl_vars['field']->value['type']; ?> "<?php if (isset($_smarty_tpl->tpl_vars['field']->value['id'])) { ?> id="<?php echo $_smarty_tpl->tpl_vars['field']->value['id']; ?> "<?php } ?> size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { echo intval($_smarty_tpl->tpl_vars['field']->value['size']); } else { ?> 5<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " value=""<?php if (isset($_smarty_tpl->tpl_vars['field']->value['autocomplete']) && !$_smarty_tpl->tpl_vars['field']->value['autocomplete']) { ?> autocomplete="off"<?php } ?> /> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> <span class="input-group-addon"> <?php echo strval($_smarty_tpl->tpl_vars['field']->value['suffix']); ?> </span> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) { ?> </div><?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textarea') { ?> <div class="col-lg-9"> <textarea class="textarea-autosize" name=<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> cols="<?php echo $_smarty_tpl->tpl_vars['field']->value['cols']; ?> " rows="<?php echo $_smarty_tpl->tpl_vars['field']->value['rows']; ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true); ?> </textarea> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'file') { ?> <div class="col-lg-9"><?php echo $_smarty_tpl->tpl_vars['field']->value['file']; ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'color') { ?> <div class="col-lg-2"> <div class="input-group"> <input type="color" size="<?php echo $_smarty_tpl->tpl_vars['field']->value['size']; ?> " data-hex="true" <?php if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) { ?> class="<?php echo $_smarty_tpl->tpl_vars['field']->value['class']; ?> " <?php } else { ?> class="color mColorPickerInput"<?php } ?> name="<?php echo $_smarty_tpl->tpl_vars['field']->value['name']; ?> " class="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) { echo $_smarty_tpl->tpl_vars['field']->value['class']; } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true); ?> " /> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'price') { ?> <div class="col-lg-9"> <div class="input-group fixed-width-lg"> <span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency_left_sign']->value; echo $_smarty_tpl->tpl_vars['currency_right_sign']->value; ?> <?php echo smartyTranslate(array('s' => '(tax excl.)'), $_smarty_tpl); ?> </span> <input type="text" size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) { echo intval($_smarty_tpl->tpl_vars['field']->value['size']); } else { ?> 5<?php } ?> " name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true); ?> " /> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textLang' || $_smarty_tpl->tpl_vars['field']->value['type'] == 'textareaLang' || $_smarty_tpl->tpl_vars['field']->value['type'] == 'selectLang') { ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textLang') { ?> <div class="col-lg-9"> <div class="row"> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['id_lang'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['id_lang']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <?php if (count($_smarty_tpl->tpl_vars['field']->value['languages']) > 1) { ?> <div class="translatable-field lang-<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> " <?php if ($_smarty_tpl->tpl_vars['id_lang']->value != $_smarty_tpl->tpl_vars['current_id_lang']->value) { ?> style="display:none;"<?php } ?> > <div class="col-lg-9"> <?php } else { ?> <div class="col-lg-12"> <?php } ?> <input type="text" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8', true); ?> " <?php if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) { ?> class="<?php echo $_smarty_tpl->tpl_vars['input']->value['class']; ?> "<?php } ?> /> <?php if (count($_smarty_tpl->tpl_vars['field']->value['languages']) > 1) { ?> </div> <div class="col-lg-2"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] == $_smarty_tpl->tpl_vars['id_lang']->value) { echo $_smarty_tpl->tpl_vars['language']->value['iso_code']; } ?> <?php } ?> <span class="caret"></span> </button> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <li> <a href="javascript:hideOtherLanguage(<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang']; ?> );"><?php echo $_smarty_tpl->tpl_vars['language']->value['name']; ?> </a> </li> <?php } ?> </ul> </div> </div> <?php } else { ?> </div> <?php } ?> <?php } ?> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'textareaLang') { ?> <div class="col-lg-9"> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['id_lang'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['id_lang']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <div class="row translatable-field lang-<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> " <?php if ($_smarty_tpl->tpl_vars['id_lang']->value != $_smarty_tpl->tpl_vars['current_id_lang']->value) { ?> style="display:none;"<?php } ?> > <div id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> " class="col-lg-9" > <textarea class="textarea-autosize" name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['id_lang']->value; ?> "><?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['value']->value, '\\r\\n', "\n"); ?> </textarea> </div> <div class="col-lg-2"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] == $_smarty_tpl->tpl_vars['id_lang']->value) { echo $_smarty_tpl->tpl_vars['language']->value['iso_code']; } ?> <?php } ?> <span class="caret"></span> </button> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <li> <a href="javascript:hideOtherLanguage(<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang']; ?> );"><?php echo $_smarty_tpl->tpl_vars['language']->value['name']; ?> </a> </li> <?php } ?> </ul> </div> </div> <?php } ?> <script type="text/javascript"> $(document).ready(function() { $(".textarea-autosize").autosize(); }); </script> </div> <?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type'] == 'selectLang') { ?> <?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['language']->_loop = false; $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) { $_smarty_tpl->tpl_vars['language']->_loop = true; ?> <div id="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang']; ?> " style="display: <?php if ($_smarty_tpl->tpl_vars['language']->value['id_lang'] == $_smarty_tpl->tpl_vars['current_id_lang']->value) { ?> block<?php } else { ?> none<?php } ?> ;" class="col-lg-9"> <select name="<?php echo $_smarty_tpl->tpl_vars['key']->value; ?> _<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['language']->value['iso_code'], 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['field']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <option value="<?php if (isset($_smarty_tpl->tpl_vars['v']->value['cast'])) { echo $_smarty_tpl->tpl_vars['v']->value['cast'][$_smarty_tpl->tpl_vars['v']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]]; } else { echo $_smarty_tpl->tpl_vars['v']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]; } ?> " <?php if ($_smarty_tpl->tpl_vars['field']->value['value'][$_smarty_tpl->tpl_vars['language']->value['id_lang']] == $_smarty_tpl->tpl_vars['v']->value['name']) { ?> selected="selected"<?php } ?> > <?php echo $_smarty_tpl->tpl_vars['v']->value['name']; ?> </option> <?php } ?> </select> </div> <?php } ?> <?php } ?> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['field']->value['desc']) && !empty($_smarty_tpl->tpl_vars['field']->value['desc'])) { ?> <div class="col-lg-9 col-lg-offset-3"> <div class="help-block"> <?php if (is_array($_smarty_tpl->tpl_vars['field']->value['desc'])) { ?> <?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['p']->_loop = false; $_from = $_smarty_tpl->tpl_vars['field']->value['desc']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) { $_smarty_tpl->tpl_vars['p']->_loop = true; ?> <?php if (is_array($_smarty_tpl->tpl_vars['p']->value)) { ?> <span id="<?php echo $_smarty_tpl->tpl_vars['p']->value['id']; ?> "><?php echo $_smarty_tpl->tpl_vars['p']->value['text']; ?> </span><br /> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['p']->value; ?> <br /> <?php } ?> <?php } ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['desc']; ?> <?php } ?> </div> </div> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['is_invisible']) { ?> <div class="col-lg-9 col-lg-offset-3"> <p class="alert alert-warning row-margin-top"> <?php echo smartyTranslate(array('s' => 'You can\'t change the value of this configuration field in the context of this shop.'), $_smarty_tpl); ?> </p> </div> <?php } ?> </div> </div> <?php } ?> <?php } ?> </div><!-- /.form-wrapper --> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['bottom'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['bottom']; } ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['after_tabs'])) { ?> <?php $_smarty_tpl->tpl_vars['cur_theme'] = new Smarty_variable($_smarty_tpl->tpl_vars['categoryData']->value['after_tabs']['cur_theme'], null, 0); ?> <div class="row row-padding-top"> <div class="col-md-3"> <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value; ?> " class="_blank"> <img class="center-block img-thumbnail" src="../themes/<?php echo $_smarty_tpl->tpl_vars['cur_theme']->value['theme_directory']; ?> /preview.jpg" alt="<?php echo $_smarty_tpl->tpl_vars['cur_theme']->value['theme_name']; ?> " /> </a> </div> <div id="js_theme_form_container" class="col-md-9"> <h2><?php echo $_smarty_tpl->tpl_vars['cur_theme']->value['theme_name']; ?> <?php if (isset($_smarty_tpl->tpl_vars['cur_theme']->value['theme_version'])) { ?> <small>version <?php echo $_smarty_tpl->tpl_vars['cur_theme']->value['theme_version']; ?> </small><?php } ?> </h2> <?php if (isset($_smarty_tpl->tpl_vars['cur_theme']->value['author_name'])) { ?> <p> <?php echo smartyTranslate(array('s' => 'Designed by %s', 'sprintf' => $_smarty_tpl->tpl_vars['cur_theme']->value['author_name']), $_smarty_tpl); ?> </p> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['cur_theme']->value['tc']) && $_smarty_tpl->tpl_vars['cur_theme']->value['tc']) { ?> <hr /> <h4><?php echo smartyTranslate(array('s' => 'Customize your theme'), $_smarty_tpl); ?> </h4> <div class="row"> <div class="col-sm-8"> <p><?php echo smartyTranslate(array('s' => 'Customize the main elements of your theme: sliders, banners, colors, etc.'), $_smarty_tpl); ?> </p> </div> <div class="col-sm-4"> <a class="btn btn-default pull-right" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminModules'), ENT_QUOTES, 'UTF-8', true); ?> &configure=themeconfigurator"> <i class="icon icon-list-alt"></i> <?php echo smartyTranslate(array('s' => 'Theme Configurator'), $_smarty_tpl); ?> </a> </div> </div> <?php } ?> <hr /> <h4><?php echo smartyTranslate(array('s' => 'Configure your theme'), $_smarty_tpl); ?> </h4> <div class="row"> <div class="col-sm-8"> <p><?php echo smartyTranslate(array('s' => 'Configure your theme\'s advanced settings, such as the number of columns you want for each page. This setting is mostly for advanced users.'), $_smarty_tpl); ?> </p> </div> <div class="col-sm-4"> <a class="btn btn-default pull-right" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminThemes'), ENT_QUOTES, 'UTF-8', true); ?> &updatetheme&id_theme=<?php echo $_smarty_tpl->tpl_vars['cur_theme']->value['theme_id']; ?> "> <i class="icon icon-cog"></i> <?php echo smartyTranslate(array('s' => 'Advanced settings'), $_smarty_tpl); ?> </a> </div> </div> </div> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']) || isset($_smarty_tpl->tpl_vars['categoryData']->value['buttons'])) { ?> <div class="panel-footer"> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']) && !empty($_smarty_tpl->tpl_vars['categoryData']->value['submit'])) { ?> <button type="<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['type'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['type']; } else { ?> submit<?php } ?> " <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['id'])) { ?> id="<?php echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['id']; ?> "<?php } ?> class="btn btn-default pull-right" name="<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['name'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['name']; } else { ?> submitOptions<?php echo $_smarty_tpl->tpl_vars['table']->value; } ?> "><i class="process-icon-<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['imgclass'])) { echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['imgclass']; } else { ?> save<?php } ?> "></i> <?php echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['title']; ?> </button> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['buttons'])) { ?> <?php $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['btn']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['categoryData']->value['buttons']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) { $_smarty_tpl->tpl_vars['btn']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key; ?> <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['href']) && trim($_smarty_tpl->tpl_vars['btn']->value['href']) != '') { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true); ?> " <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['id'])) { ?> id="<?php echo $_smarty_tpl->tpl_vars['btn']->value['id']; ?> "<?php } ?> class="btn btn-default<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) { ?> <?php echo $_smarty_tpl->tpl_vars['btn']->value['class']; } ?> " <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) { ?> onclick="<?php echo $_smarty_tpl->tpl_vars['btn']->value['js']; ?> "<?php } ?> ><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) { ?> <i class="<?php echo $_smarty_tpl->tpl_vars['btn']->value['icon']; ?> " ></i> <?php } echo $_smarty_tpl->tpl_vars['btn']->value['title']; ?> </a> <?php } else { ?> <button type="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['type'])) { echo $_smarty_tpl->tpl_vars['btn']->value['type']; } else { ?> button<?php } ?> " <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['id'])) { ?> id="<?php echo $_smarty_tpl->tpl_vars['btn']->value['id']; ?> "<?php } ?> class="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) { echo $_smarty_tpl->tpl_vars['btn']->value['class']; } else { ?> btn btn-default<?php } ?> " name="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['name'])) { echo $_smarty_tpl->tpl_vars['btn']->value['name']; } else { ?> submitOptions<?php echo $_smarty_tpl->tpl_vars['table']->value; } ?> "<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['js']) && $_smarty_tpl->tpl_vars['btn']->value['js']) { ?> onclick="<?php echo $_smarty_tpl->tpl_vars['btn']->value['js']; ?> "<?php } ?> ><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) { ?> <i class="<?php echo $_smarty_tpl->tpl_vars['btn']->value['icon']; ?> " ></i> <?php } echo $_smarty_tpl->tpl_vars['btn']->value['title']; ?> </button> <?php } ?> <?php } ?> <?php } ?> </div> <?php } ?> </div> <?php } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => 'displayAdminOptions'), $_smarty_tpl); ?> <?php if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?> display<?php echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value); ?> Options<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl); ?> <?php } elseif (isset($_GET['controller'])) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?> display<?php echo htmlentities(ucfirst($_GET['controller'])); ?> Options<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => $_smarty_tpl->tpl_vars['hookName']->value), $_smarty_tpl); ?> <?php } ?> </form> <div class="panel clearfix" id="prestastore-content"></div> <script type="text/javascript"> $.ajax({ type: 'POST', headers: { "cache-control": "no-cache" }, url: 'ajax-tab.php?rand=' + new Date().getTime(), async: true, cache: false, dataType : "html", data: { tab: 'AdminThemes', token: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true); ?> ', ajax: '1', action:'getAddonsThemes', page:'themes' }, success: function(htmlData) { $("#prestastore-content").html("<h3><i class='icon-picture-o'></i> <?php echo smartyTranslate(array('s' => 'Live from PrestaShop Addons!'), $_smarty_tpl); ?> </h3>"+htmlData); } }); // These variable will move the form to another location var formToMove = "appearance"; var formDestination = "js_theme_form_container"; </script> <?php }