domianikos Posted August 12, 2020 Share Posted August 12, 2020 I've got a problem with site: problem site, I see "ContextErrorException in 121467b7b0ebb72dcc693281ebe1b5b8719904e8.file.prices-drop.tpl.php line 335:Notice: Undefined index: category" <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/listing/prices-drop.tpl" */ ?> <?php /*%%SmartyHeaderCode:6886478105f33b13041b106-90539719%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '121467b7b0ebb72dcc693281ebe1b5b8719904e8' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/listing/prices-drop.tpl', 1 => 1505339271, 2 => 'file', ), '5fb8f8494fe0892abe23154d732bd68065ee2932' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/listing/product-list.tpl', 1 => 1594885414, 2 => 'file', ), '1a7aa93f2bbad5fbd51ff52bba40e736837fe0d8' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/layouts/layout-left-column.tpl', 1 => 1505339271, 2 => 'file', ), '34d5257eebc115839abef25560b53f4ca5dac935' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/layouts/layout-both-columns.tpl', 1 => 1505339271, 2 => 'file', ), '423d71568db10777fd498d8c030772cfefc112e3' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/stylesheets.tpl', 1 => 1505339271, 2 => 'file', ), 'ae1a7fadd3caf6171e09e34c6a3c486b075e7565' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/javascript.tpl', 1 => 1505339271, 2 => 'file', ), 'd2bc49c8c6d442221db7a8681c0ecaca6fbf98c6' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/head.tpl', 1 => 1597221676, 2 => 'file', ), 'b33c7d63a31a751029269d7a2e19ac603e98ff57' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/_partials/product-activation.tpl', 1 => 1505339271, 2 => 'file', ), '5e5c23cf884a9a4db3ac38c940784993573db5a9' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/header.tpl', 1 => 1590145915, 2 => 'file', ), 'e132de322cf6c99659d3ea74164de81b86512177' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/notifications.tpl', 1 => 1505339271, 2 => 'file', ), 'de580a1aa3941eca3fffb0a9708581fea57d33e8' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/_partials/sort-orders.tpl', 1 => 1505339271, 2 => 'file', ), '8d6aeacc7781157763247af2b19a5aaf9e1b30a4' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/pagination.tpl', 1 => 1505339271, 2 => 'file', ), 'a9b3b5f51f431f880f3765be7a314dbd6669e98a' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/_partials/products-top.tpl', 1 => 1505339271, 2 => 'file', ), '49ff9e40f5c1f981ecafcd4576292d441c32191c' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/_partials/miniatures/product.tpl', 1 => 1508799148, 2 => 'file', ), 'cf88d1413e3a9f73c5d843abc3d59cd51c672857' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/_partials/products.tpl', 1 => 1508798865, 2 => 'file', ), 'bc1184532c1778b722b3329714f254c202b69334' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/_partials/products-bottom.tpl', 1 => 1505339271, 2 => 'file', ), '2e7fcfcba41880d1a166e53fe9e2dc71b6c91e28' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/errors/not-found.tpl', 1 => 1505339271, 2 => 'file', ), '81f0967395bc273eb75b56f7a93e93ba252a9282' => array ( 0 => '/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/footer.tpl', 1 => 1594811724, 2 => 'file', ), ), 'nocache_hash' => '6886478105f33b13041b106-90539719', 'function' => array ( ), 'variables' => array ( 'layout' => 0, 'language' => 0, 'page' => 0, 'LAE_showPanelTool' => 0, 'breadcrumb' => 0, 'path' => 0, 'listing' => 0, 'layout_category' => 0, 'layout_details' => 0, 'javascript' => 0, 'LAE_customJS' => 0, ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.19', 'unifunc' => 'content_5f33b130802d64_02983644', ),false); /*/%%SmartyHeaderCode%%*/?> <?php if ($_valid && !is_callable('content_5f33b130802d64_02983644')) {function content_5f33b130802d64_02983644($_smarty_tpl) {?> <!doctype html> <html lang="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['iso_code'], ENT_QUOTES, 'UTF-8');?> "> <head> <?php /* Call merged included template "_partials/head.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('_partials/head.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '6886478105f33b13041b106-90539719'); content_5f33b130456442_19982074($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "_partials/head.tpl" */?> </head> <body id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_name'], ENT_QUOTES, 'UTF-8');?> " class="<?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['classnames'][0][0]->smartyClassnames($_smarty_tpl->tpl_vars['page']->value['body_classes']), ENT_QUOTES, 'UTF-8');?> "> <main class="active_grid"> <?php if (isset($_smarty_tpl->tpl_vars['LAE_showPanelTool']->value)&&$_smarty_tpl->tpl_vars['LAE_showPanelTool']->value) {?> <?php echo $_smarty_tpl->getSubTemplate ("modules/laethemecustomizer/views/templates/front/colortool.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?> <?php }?> <?php /* Call merged included template "catalog/_partials/product-activation.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('catalog/_partials/product-activation.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '6886478105f33b13041b106-90539719'); content_5f33b1304ff096_62882751($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "catalog/_partials/product-activation.tpl" */?> <?php /* Call merged included template "_partials/header.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('_partials/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '6886478105f33b13041b106-90539719'); content_5f33b130516f04_43786459($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "_partials/header.tpl" */?> <?php /* Call merged included template "_partials/notifications.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('_partials/notifications.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '6886478105f33b13041b106-90539719'); content_5f33b1305316b4_56944110($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "_partials/notifications.tpl" */?> <?php if ($_smarty_tpl->tpl_vars['page']->value['page_name']!='index'&&$_smarty_tpl->tpl_vars['page']->value['page_name']!='pagenotfound') {?> <div id="breadcrumb_full"> <?php echo $_smarty_tpl->getSubTemplate ('_partials/breadcrumb.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?> </div> <div class="container"> <div class="breadcrumb"> <div class="top-kt"> <div class="breadcrumb-title"> <ul itemscope itemtype="http://schema.org/BreadcrumbList" class="col-md-5 col-xs-12 col-sm-12"> <?php if ($_smarty_tpl->tpl_vars['breadcrumb']->value['links'][count($_smarty_tpl->tpl_vars['breadcrumb']->value['links'])-1]['title']) {?> <?php }?> <?php $_smarty_tpl->tpl_vars['path'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['path']->_loop = false; $_from = $_smarty_tpl->tpl_vars['breadcrumb']->value['links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} $_smarty_tpl->tpl_vars['smarty']->value['foreach']['breadcrumb']['iteration']=0; foreach ($_from as $_smarty_tpl->tpl_vars['path']->key => $_smarty_tpl->tpl_vars['path']->value) { $_smarty_tpl->tpl_vars['path']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['breadcrumb']['iteration']++; ?> <?php if ($_smarty_tpl->tpl_vars['path']->value['title']) {?> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a itemprop="item" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['path']->value['url'], ENT_QUOTES, 'UTF-8');?> "> <span itemprop="name"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['path']->value['title'], ENT_QUOTES, 'UTF-8');?> </span> </a> <meta itemprop="position" content="<?php echo htmlspecialchars($_smarty_tpl->getVariable('smarty')->value['foreach']['breadcrumb']['iteration'], ENT_QUOTES, 'UTF-8');?> "> </li> <?php }?> <?php } ?> </ul> </div> <?php if (isset($_smarty_tpl->tpl_vars['listing']->value)&&$_smarty_tpl->tpl_vars['listing']->value) {?> <?php /* Call merged included template "catalog/_partials/products-top.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('catalog/_partials/products-top.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('listing'=>$_smarty_tpl->tpl_vars['listing']->value), 0, '6886478105f33b13041b106-90539719'); content_5f33b130573496_54780451($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "catalog/_partials/products-top.tpl" */?> <?php }?> </div> </div> </div> <?php }?> <section id="wrapper"> <div class="container"> <?php if ((isset($_smarty_tpl->tpl_vars['layout']->value)&&$_smarty_tpl->tpl_vars['layout']->value!='layouts/layout-full-width.tpl')||(isset($_smarty_tpl->tpl_vars['layout_category']->value)&&$_smarty_tpl->tpl_vars['layout_category']->value!='layouts/layout-full-width.tpl')||(isset($_smarty_tpl->tpl_vars['layout_details']->value)&&$_smarty_tpl->tpl_vars['layout_details']->value!='layouts/layout-full-width.tpl')) {?> <div class="row"> <?php }?> <div id="left-column" class="col-xs-12 col-sm-4 col-md-3"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>"displayLeftColumn"),$_smarty_tpl);?> </div> <div id="content-wrapper" class="left-column col-xs-12 col-sm-8 col-md-9"> <section id="main"> <h4 style="display:none !important">.</h4> <h2 class="h2"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['listing']->value['label'], ENT_QUOTES, 'UTF-8');?> </h2> <section id="products"> <?php if (count($_smarty_tpl->tpl_vars['listing']->value['products'])) {?> <?php if (strstr($_SERVER['REQUEST_URI'],"2-akcesoria-meblowe")||strstr($_SERVER['REQUEST_URI'],"23-akcesoria-meblowe")) {?> <h1 class="h1">Akcesoria meblowe</h1> <?php } elseif (strstr($_SERVER['REQUEST_URI'],"29-rolkowe")) {?> <h1 class="h1">Prowadnice rolkowe do szuflad</h1> <?php } elseif (strstr($_SERVER['REQUEST_URI'],"27-typ-tandem-dolny-montaz")) {?> <h1 class="h1">Prowadnice do szuflad - typ tandem, dolny montaż</h1> <?php } elseif (strstr($_SERVER['REQUEST_URI'],"27-typ-tandem-dolny-montaz")) {?> <h1 class="h1">Prowadnice do szuflad - typ tandem, dolny montaż</h1> <?php } elseif (strstr($_SERVER['REQUEST_URI'],"26-lozyskowe-h45")) {?> <h1 class="h1">Prowadnice łożyskowe H45 do szuflad</h1> <?php }?> <div class="hidden-sm-down"> <?php echo $_smarty_tpl->tpl_vars['listing']->value['rendered_active_filters'];?> </div> <div id="product_list_grid"> <?php /* Call merged included template "catalog/_partials/products.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('catalog/_partials/products.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('listing'=>$_smarty_tpl->tpl_vars['listing']->value), 0, '6886478105f33b13041b106-90539719'); content_5f33b13061afe0_30496383($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "catalog/_partials/products.tpl" */?> </div> <div id="js-product-list-bottom"> <?php /* Call merged included template "catalog/_partials/products-bottom.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('catalog/_partials/products-bottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('listing'=>$_smarty_tpl->tpl_vars['listing']->value), 0, '6886478105f33b13041b106-90539719'); content_5f33b130773166_33631900($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "catalog/_partials/products-bottom.tpl" */?> </div> <?php } else { ?> <?php /* Call merged included template "errors/not-found.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('errors/not-found.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '6886478105f33b13041b106-90539719'); content_5f33b130783db1_95493118($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "errors/not-found.tpl" */?> <?php }?> </section> <?php if ($_SERVER['REQUEST_URI']=='/promocje') {?> <div id="category-description" class="text-muted"> <h2>Najlepsze akcesoria do mebli w promocyjnych cenach</h2> <p style="text-align:justify">Nawet najprostsze meble takie jak stolik do salonu czy mały regał na książki składają się z kompletu drobnych akcesoriów, które dbają o ich stabilność oraz trwałość. Wysokiej jakości akcesoria stolarskie bywają kosztowne, jednak warto szukać okazji które pozwalają na znaczne oszczędności! Kategoria „Promocje” w sklepie Marketstolarski.pl została stworzona z myślą o klientach, którzy poszukują najwyższej jakości akcesoriów w korzystnych cenach!</p> <h2>Dlaczego najlepiej wybierać wysokiej jakości akcesoria stolarskie?</h2> <p style="text-align:justify">Tanie, kiepsko wykonane akcesoria do mebli na pierwszy rzut oka mogą niewiele się różnić od profesjonalnych akcesoriów stolarskich. Wiele klientów, skuszonych niską ceną, decyduje się na zakup tanich, wątpliwej jakości akcesoriów. Taki wybór nie jest ani słuszny, ani oszczędny – słabe akcesoria nie gwarantują należytej trwałości oraz solidności, przez to szybko może zajść konieczność wymiany na nowe produkty. Istnieje zatem ryzyko że kupując tanie akcesoria do mebli nie tylko nie zaoszczędzimy, ale nawet przepłacimy! Dlatego najlepszy wybór stanowią profesjonalne akcesoria, które można kupić w specjalistycznych sklepach dla stolarzy. Wysokiej jakości akcesoria do mebli wyróżniają się trwałością oraz niezwykle solidnym wykonaniem. To sprawia, że zachowują doskonały stan oraz pełną funkcjonalność przez wiele lat! W naszym sklepie przykładamy wagę do najwyższej jakości. Dbamy o to, aby nasz asortyment składał się wyłącznie ze sprawdzonych produktów, gwarantujących znakomite parametry. Kupując na Marketstolarski.pl nie musisz się obawiać o jakość oferowanych przez nas akcesoriów!</p> <h2>Wysoka jakość w niskiej cenie</h2> <p style="text-align:justify">W tym miejscu znajdziesz produkty z różnych kategorii naszego sklepu, których ceny zostały obniżone. Promocje sięgają 50%, a w niektórych przypadkach nawet 70%. Takie obniżki to gratka dla każdego prawdziwego łowcy okazji!</p> <p style="text-align:justify">Promocyjne akcesoria meblowe przyniosą najwięcej zysków tym klientom, którzy kupują w ilościach hurtowych. Na jednym produkcie oszczędności nie są znaczące, jednak przy zakupie np. 50 sztuk, różnica jest już wyraźnie odczuwalna! Atrakcyjne okazje w naszym sklepie z pewnością docenią fachowi stolarze oraz właściciele firm zajmujących się pracami wykończeniowymi, ale z naszej oferty mogą skorzystać również osoby prywatne, np. domowi mistrze majsterkowania!</p> <p>Produkty które są dostępne w tej kategorii to akcesoria całkowicie nowe i pozbawione wad produkcyjnych. Ich niska cena wynika np. z okresowej promocji lub wyprzedaży. Kupujesz zatem pełnowartościowe produkty, ale znacznie taniej!</p> <h2>Wybierz akcesoria stolarskie w niższych cenach na Marketstolarski.pl</h2> <p style="text-align:justify">W naszym sklepie udowadniamy, że wysoka jakość może iść w parze z atrakcyjną ceną. Dzięki naszym promocjom możesz kupić sprawdzone i niezawodne akcesoria stolarskie i zyskać znaczne oszczędności! Z naszej oferty korzystają zarówno klienci firmowi, jak i osoby prywatne. Promocje często ulegają zmianie, dlatego zachęcamy do regularnego odwiedzania naszego sklepu.</p> <p style="text-align:justify">Wybierz najlepsze akcesoria meblowe w przystępnych cenach!</p> </div> <?php }?> <?php if (strstr($_SERVER['REQUEST_URI'],"?page=")) {?> <?php } else { ?> <div id="category-description" class="text-muted"><?php echo $_smarty_tpl->tpl_vars['category']->value['description'];?> </div> <?php }?> </section> </div> <?php if ((isset($_smarty_tpl->tpl_vars['layout']->value)&&$_smarty_tpl->tpl_vars['layout']->value!='layouts/layout-full-width.tpl')||(isset($_smarty_tpl->tpl_vars['layout_category']->value)&&$_smarty_tpl->tpl_vars['layout_category']->value!='layouts/layout-full-width.tpl')||(isset($_smarty_tpl->tpl_vars['layout_details']->value)&&$_smarty_tpl->tpl_vars['layout_details']->value!='layouts/layout-full-width.tpl')) {?> </div> <?php }?> </div> </section> <?php /* Call merged included template "_partials/footer.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("_partials/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0, '6886478105f33b13041b106-90539719'); content_5f33b1307e7d69_35428155($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "_partials/footer.tpl" */?> </main> <?php /* Call merged included template "_partials/javascript.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("_partials/javascript.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('javascript'=>$_smarty_tpl->tpl_vars['javascript']->value['bottom']), 0, '6886478105f33b13041b106-90539719'); content_5f33b1304cf189_34013600($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "_partials/javascript.tpl" */?> <?php if (isset($_smarty_tpl->tpl_vars['LAE_customJS']->value)&&$_smarty_tpl->tpl_vars['LAE_customJS']->value) {?> <script type="text/javascript"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['LAE_customJS']->value, ENT_QUOTES, 'UTF-8');?> </script> <?php }?> </body> </html> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/head.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b130456442_19982074')) {function content_5f33b130456442_19982074($_smarty_tpl) {?> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <?php $_smarty_tpl->tpl_vars['URI'] = new Smarty_variable($_SERVER['REQUEST_URI'], null, 0);?> <?php if ($_smarty_tpl->tpl_vars['URI']->value=="/") {?> <title>Hurtownia akcesoriów meblowych - marketstolarski.pl</title> <?php } elseif ($_smarty_tpl->tpl_vars['URI']->value=="/16-akcesoria-meblowe-prowadnice") {?> <title>Prowadnice meblowe do szuflad drewnianych - Sklep internetowy - Market Stolarski</title> <?php } elseif ($_smarty_tpl->tpl_vars['URI']->value=="/19-akcesoria-meblowe-zawiasy") {?> <title>Zawiasy meblowe cichy domyk - Sklep internetowy - Market Stolarski</title> <?php } elseif ($_smarty_tpl->tpl_vars['URI']->value=="/22-akcesoria-meblowe-uchwyty") {?> <title>Hurtownia uchytów meblowych - Sklep internetowy - Market Stolarski</title> <?php } elseif ($_smarty_tpl->tpl_vars['URI']->value=="/23-akcesoria_meblowe") {?> <title>Akcesoria meblowe, hurtownia meblowa - Sklep internetowy - Market Stolarski</title> <?php } else { ?> <title><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['meta']['title'], ENT_QUOTES, 'UTF-8');?> - Hurtownia meblowaa - Market Stolarski </title> <?php }?> <?php if ($_smarty_tpl->tpl_vars['URI']->value=="/") {?> <meta name="description" content="Wysokiej jakości akcesoria meblowe oraz artykuły i materiały stolarskie w atrakcyjnych cenach. Nie czekaj i sprawdź naszą ofertę już dzisiaj!"> <?php } elseif ($_smarty_tpl->tpl_vars['URI']->value=="/16-akcesoria-meblowe-prowadnice") {?> <meta name="description" content="Szukasz porządnie wykonanych prowadnic do szuflad, na które nie wydasz ogromnych pieniędzy? Oferujemy szeroki wybór takich akcesoriów do drewnianych mebli. Odwiedź naszą stronę już teraz i skorzystaj z najlepszej oferty na rynku."> <?php } elseif ($_smarty_tpl->tpl_vars['URI']->value=="/19-akcesoria-meblowe-zawiasy") {?> <meta name="description" content="Interesuje Cię zakup zawiasów meblowych typu cichy domyk, które poprawiają komfort korzystania z mebli? Koniecznie zajrzyj w takim razie do naszego sklepu internetowego i zamawiaj tego typu produkty w przystępnych cenach i z gwarancją najwyższej jakości."> <?php } elseif ($_smarty_tpl->tpl_vars['URI']->value=="/22-akcesoria-meblowe-uchwyty") {?> <meta name="description" content="Profesjonalna hurtownia uchwytów meblowych zaprasza do zapoznania się z szeroką ofertą. W sklepie internetowym posiadamy szeroki wybór produktów, na które udzielamy pełnej gwarancji producenta. Gwarantujemy nie tylko przystępną cenę, ale i ekspresową wysyłkę."> <?php } elseif ($_smarty_tpl->tpl_vars['URI']->value=="/23-akcesoria_meblowe") {?> <meta name="description" content="Chciałbyś móc korzystać ze sklepu internetowego, który oferuje naprawdę szeroki wybór najwyższej jakości akcesoriów meblowych? Koniecznie zajrzyj w takim razie na naszą stronę internetową i zamawiaj tego typu produkty w wyjątkowo atrakcyjnych cenach."> <?php } else { ?> <meta name="description" content="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['meta']['description'], ENT_QUOTES, 'UTF-8');?> "> <?php }?> <!-- Yandex.Metrika counter --> <script type="text/javascript" > (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(62832487, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); </script> <noscript><div><img src="https://mc.yandex.ru/watch/62832487" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter --> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-152974610-2"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-152974610-2'); </script> <?php if (strstr($_SERVER['REQUEST_URI'],"?order=")) {?> <meta name="robots" content="noindex, follow"> <?php } elseif (strstr($_SERVER['REQUEST_URI'],"/logowanie")) {?> <meta name="robots" content="noindex, follow"> <?php } elseif (strstr($_SERVER['REQUEST_URI'],"/nowosci")) {?> <meta name="robots" content="noindex, follow"> <?php } elseif (strstr($_SERVER['REQUEST_URI'],"/koszyk")) {?> <meta name="robots" content="noindex, follow"> <?php } elseif (strstr($_SERVER['REQUEST_URI'],"/3-regulamin")) {?> <meta name="robots" content="noindex, follow"> <?php } elseif ($_smarty_tpl->tpl_vars['page']->value['meta']['robots']!=='index') {?> <meta name="robots" content="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['meta']['robots'], ENT_QUOTES, 'UTF-8');?> "> <?php }?> <?php if ($_smarty_tpl->tpl_vars['page']->value['canonical']) {?> <link rel="canonical" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['canonical'], ENT_QUOTES, 'UTF-8');?> "> <?php }?> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/vnd.microsoft.icon" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shop']->value['favicon'], ENT_QUOTES, 'UTF-8');?> ?<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shop']->value['favicon_update_time'], ENT_QUOTES, 'UTF-8');?> "> <link rel="shortcut icon" type="image/x-icon" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shop']->value['favicon'], ENT_QUOTES, 'UTF-8');?> ?<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shop']->value['favicon_update_time'], ENT_QUOTES, 'UTF-8');?> "> <?php if (isset($_smarty_tpl->tpl_vars['Standard_titleFont']->value)) {?> <link href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['Standard_titleFont']->value, ENT_QUOTES, 'UTF-8');?> " rel="stylesheet"> <?php }?> <?php if (isset($_smarty_tpl->tpl_vars['Standard_mainFont']->value)) {?> <link href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['Standard_mainFont']->value, ENT_QUOTES, 'UTF-8');?> " rel="stylesheet"> <?php }?> <?php /* Call merged included template "_partials/stylesheets.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("_partials/stylesheets.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('stylesheets'=>$_smarty_tpl->tpl_vars['stylesheets']->value), 0, '6886478105f33b13041b106-90539719'); content_5f33b1304abc18_87534389($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "_partials/stylesheets.tpl" */?> <?php /* Call merged included template "_partials/javascript.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("_partials/javascript.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('javascript'=>$_smarty_tpl->tpl_vars['javascript']->value['head'],'vars'=>$_smarty_tpl->tpl_vars['js_custom_vars']->value), 0, '6886478105f33b13041b106-90539719'); content_5f33b1304cf189_34013600($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "_partials/javascript.tpl" */?> <?php echo $_smarty_tpl->tpl_vars['HOOK_HEADER']->value;?> <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "LocalBusiness", "name": "Market Stolarski", "image": "https://marketstolarski.pl/img/market-stolarski-logo-1505339340.jpg", "telephone": "+48 697 698 622", "address": { "@type": "PostalAddress", "addressLocality": "Kalwaria Zebrzydowska", "postalCode": "34-130", "streetAddress": "Zjednoczenia 2b" } } </script> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-W4L689H');</script> <!-- End Google Tag Manager --> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/stylesheets.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b1304abc18_87534389')) {function content_5f33b1304abc18_87534389($_smarty_tpl) {?> <?php $_smarty_tpl->tpl_vars['stylesheet'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['stylesheet']->_loop = false; $_from = $_smarty_tpl->tpl_vars['stylesheets']->value['external']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['stylesheet']->key => $_smarty_tpl->tpl_vars['stylesheet']->value) { $_smarty_tpl->tpl_vars['stylesheet']->_loop = true; ?> <link rel="stylesheet" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['stylesheet']->value['uri'], ENT_QUOTES, 'UTF-8');?> " type="text/css" media="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['stylesheet']->value['media'], ENT_QUOTES, 'UTF-8');?> "> <?php } ?> <?php $_smarty_tpl->tpl_vars['stylesheet'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['stylesheet']->_loop = false; $_from = $_smarty_tpl->tpl_vars['stylesheets']->value['inline']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['stylesheet']->key => $_smarty_tpl->tpl_vars['stylesheet']->value) { $_smarty_tpl->tpl_vars['stylesheet']->_loop = true; ?> <style> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['stylesheet']->value['content'], ENT_QUOTES, 'UTF-8');?> </style> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['LAE_customCSS']->value)&&$_smarty_tpl->tpl_vars['LAE_customCSS']->value) {?> <!-- Start Custom CSS --> <style><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['LAE_customCSS']->value, ENT_QUOTES, 'UTF-8');?> </style> <!-- End Custom CSS --> <?php }?> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/javascript.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b1304cf189_34013600')) {function content_5f33b1304cf189_34013600($_smarty_tpl) {?> <?php $_smarty_tpl->tpl_vars['js'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['js']->_loop = false; $_from = $_smarty_tpl->tpl_vars['javascript']->value['external']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['js']->key => $_smarty_tpl->tpl_vars['js']->value) { $_smarty_tpl->tpl_vars['js']->_loop = true; ?> <script type="text/javascript" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['js']->value['uri'], ENT_QUOTES, 'UTF-8');?> " <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['js']->value['attribute'], ENT_QUOTES, 'UTF-8');?> ></script> <?php } ?> <?php $_smarty_tpl->tpl_vars['js'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['js']->_loop = false; $_from = $_smarty_tpl->tpl_vars['javascript']->value['inline']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['js']->key => $_smarty_tpl->tpl_vars['js']->value) { $_smarty_tpl->tpl_vars['js']->_loop = true; ?> <script type="text/javascript"> <?php echo $_smarty_tpl->tpl_vars['js']->value['content'];?> </script> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['vars']->value)&&count($_smarty_tpl->tpl_vars['vars']->value)) {?> <script type="text/javascript"> <?php $_smarty_tpl->tpl_vars['var_value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['var_value']->_loop = false; $_smarty_tpl->tpl_vars['var_name'] = new Smarty_Variable; $_from = $_smarty_tpl->tpl_vars['vars']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['var_value']->key => $_smarty_tpl->tpl_vars['var_value']->value) { $_smarty_tpl->tpl_vars['var_value']->_loop = true; $_smarty_tpl->tpl_vars['var_name']->value = $_smarty_tpl->tpl_vars['var_value']->key; ?> var <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8');?> = <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['var_value']->value);?> ; <?php } ?> </script> <?php }?> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/_partials/product-activation.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b1304ff096_62882751')) {function content_5f33b1304ff096_62882751($_smarty_tpl) {?> <?php if ($_smarty_tpl->tpl_vars['page']->value['admin_notifications']) {?> <div class="alert alert-warning row" role="alert"> <div class="container"> <div class="row"> <?php $_smarty_tpl->tpl_vars['notif'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['notif']->_loop = false; $_from = $_smarty_tpl->tpl_vars['page']->value['admin_notifications']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['notif']->key => $_smarty_tpl->tpl_vars['notif']->value) { $_smarty_tpl->tpl_vars['notif']->_loop = true; ?> <div class="col-sm-12"> <i class="material-icons pull-xs-left"></i> <p class="alert-text"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['notif']->value['message'], ENT_QUOTES, 'UTF-8');?> </p> </div> <?php } ?> </div> </div> </div> <?php }?> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/header.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b130516f04_43786459')) {function content_5f33b130516f04_43786459($_smarty_tpl) {?> <header id="header"> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W4L689H" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <div class="header-banner"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayBanner'),$_smarty_tpl);?> </div> <div id="block-nav-center"> <div class="container"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayNav2'),$_smarty_tpl);?> <div id="click-md-down"><i class="fa fa-reorder"></i></div> </div> </div> <div id="block-header-center"> <div class="container"> <div class="row"> <div class="header-logo col-xs-12 col-sm-12 col-md-3"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['urls']->value['base_url'], ENT_QUOTES, 'UTF-8');?> "> <img class="logo_home" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shop']->value['logo'], ENT_QUOTES, 'UTF-8');?> " alt="Hurtownia akcesoriów meblowych i sprzetu stolarskiego - marketstolarski.pl"/> </a> </div> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayTop'),$_smarty_tpl);?> </div> </div> </div> </header> <div id="header_menu" class="visible-lg visible-md"> <div class="container"> <div class="row"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'megamenu'),$_smarty_tpl);?> </div> </div> </div> <div id="header_mobile_menu" class="navbar-inactive visible-sm visible-xs"> <div class="container"> <div class="laemm-nav"> <span class="brand"><?php echo smartyTranslate(array('s'=>'Menu list'),$_smarty_tpl);?> </span> <span id="laemm-button"><i class="fa fa-reorder"></i></span> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'megamenu','laemegamenumobile'=>true),$_smarty_tpl);?> </div> </div> </div> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/notifications.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b1305316b4_56944110')) {function content_5f33b1305316b4_56944110($_smarty_tpl) {?> <?php if (isset($_smarty_tpl->tpl_vars['notifications']->value)) {?> <aside id="notifications"> <div class="container"> <?php if ($_smarty_tpl->tpl_vars['notifications']->value['error']) {?> <article class="alert alert-danger" role="alert" data-alert="danger"> <ul> <?php $_smarty_tpl->tpl_vars['notif'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['notif']->_loop = false; $_from = $_smarty_tpl->tpl_vars['notifications']->value['error']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['notif']->key => $_smarty_tpl->tpl_vars['notif']->value) { $_smarty_tpl->tpl_vars['notif']->_loop = true; ?> <li><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['notif']->value, ENT_QUOTES, 'UTF-8');?> </li> <?php } ?> </ul> </article> <?php }?> <?php if ($_smarty_tpl->tpl_vars['notifications']->value['warning']) {?> <article class="alert alert-warning" role="alert" data-alert="warning"> <ul> <?php $_smarty_tpl->tpl_vars['notif'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['notif']->_loop = false; $_from = $_smarty_tpl->tpl_vars['notifications']->value['warning']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['notif']->key => $_smarty_tpl->tpl_vars['notif']->value) { $_smarty_tpl->tpl_vars['notif']->_loop = true; ?> <li><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['notif']->value, ENT_QUOTES, 'UTF-8');?> </li> <?php } ?> </ul> </article> <?php }?> <?php if ($_smarty_tpl->tpl_vars['notifications']->value['success']) {?> <article class="alert alert-success" role="alert" data-alert="success"> <ul> <?php $_smarty_tpl->tpl_vars['notif'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['notif']->_loop = false; $_from = $_smarty_tpl->tpl_vars['notifications']->value['success']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['notif']->key => $_smarty_tpl->tpl_vars['notif']->value) { $_smarty_tpl->tpl_vars['notif']->_loop = true; ?> <li><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['notif']->value, ENT_QUOTES, 'UTF-8');?> </li> <?php } ?> </ul> </article> <?php }?> <?php if ($_smarty_tpl->tpl_vars['notifications']->value['info']) {?> <article class="alert alert-info" role="alert" data-alert="info"> <ul> <?php $_smarty_tpl->tpl_vars['notif'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['notif']->_loop = false; $_from = $_smarty_tpl->tpl_vars['notifications']->value['info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['notif']->key => $_smarty_tpl->tpl_vars['notif']->value) { $_smarty_tpl->tpl_vars['notif']->_loop = true; ?> <li><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['notif']->value, ENT_QUOTES, 'UTF-8');?> </li> <?php } ?> </ul> </article> <?php }?> </div> </aside> <?php }?> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/_partials/products-top.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b130573496_54780451')) {function content_5f33b130573496_54780451($_smarty_tpl) {?> <div id="js-product-list-top" class="products-selection col-md-7 col-xs-12 col-sm-12"> <div class="box-sort-by"> <?php /* Call merged included template "catalog/_partials/sort-orders.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('catalog/_partials/sort-orders.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('sort_orders'=>$_smarty_tpl->tpl_vars['listing']->value['sort_orders']), 0, '6886478105f33b13041b106-90539719'); content_5f33b130586114_51287761($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "catalog/_partials/sort-orders.tpl" */?> </div> <div class="pagination-top"> <?php /* Call merged included template "_partials/pagination.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('_partials/pagination.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('pagination'=>$_smarty_tpl->tpl_vars['listing']->value['pagination']), 0, '6886478105f33b13041b106-90539719'); content_5f33b1305a6fe9_05231993($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "_partials/pagination.tpl" */?> </div> <div class="click-product-list-grid"> <div class="click-product-grid"><i class="fa fa-th"></i></div> <div class="click-product-list"><i class="fa fa-th-list"></i></div> </div> </div> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/_partials/sort-orders.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b130586114_51287761')) {function content_5f33b130586114_51287761($_smarty_tpl) {?> <div class="products-sort-order dropdown"> <a class="select-title" rel="nofollow" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <?php if (isset($_smarty_tpl->tpl_vars['listing']->value['sort_selected'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['listing']->value['sort_selected'], ENT_QUOTES, 'UTF-8');?> <?php } else { ?><?php echo smartyTranslate(array('s'=>'Select','d'=>'Shop.Theme.Actions'),$_smarty_tpl);?> <?php }?> <i class="fa fa-caret-down"></i> </a> <div class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['sort_order'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sort_order']->_loop = false; $_from = $_smarty_tpl->tpl_vars['listing']->value['sort_orders']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['sort_order']->key => $_smarty_tpl->tpl_vars['sort_order']->value) { $_smarty_tpl->tpl_vars['sort_order']->_loop = true; ?> <a rel="nofollow" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sort_order']->value['url'], ENT_QUOTES, 'UTF-8');?> " class="select-list <?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['classnames'][0][0]->smartyClassnames(array('current'=>$_smarty_tpl->tpl_vars['sort_order']->value['current'],'js-search-link'=>true)), ENT_QUOTES, 'UTF-8');?> " > <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sort_order']->value['label'], ENT_QUOTES, 'UTF-8');?> </a> <?php } ?> </div> </div> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/pagination.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b1305a6fe9_05231993')) {function content_5f33b1305a6fe9_05231993($_smarty_tpl) {?> <nav class="pagination pagination-bottom"> <div class="col-md-4 pagination-showing"> <?php echo smartyTranslate(array('s'=>'Showing %from%-%to% of %total% item(s)','d'=>'Shop.Theme.Catalog','sprintf'=>array('%from%'=>$_smarty_tpl->tpl_vars['pagination']->value['items_shown_from'],'%to%'=>$_smarty_tpl->tpl_vars['pagination']->value['items_shown_to'],'%total%'=>$_smarty_tpl->tpl_vars['pagination']->value['total_items'])),$_smarty_tpl);?> </div> <div class="col-md-8 pagination-page-list"> <ul class="page-list clearfix text-xs-center"> <?php $_smarty_tpl->tpl_vars["page"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["page"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['pagination']->value['pages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars["page"]->key => $_smarty_tpl->tpl_vars["page"]->value) { $_smarty_tpl->tpl_vars["page"]->_loop = true; ?> <li <?php if ($_smarty_tpl->tpl_vars['page']->value['current']) {?> class="current" <?php }?>> <?php if ($_smarty_tpl->tpl_vars['page']->value['type']==='spacer') {?> <span class="spacer">…</span> <?php } else { ?> <a rel="<?php if ($_smarty_tpl->tpl_vars['page']->value['type']==='previous') {?>prev<?php } elseif ($_smarty_tpl->tpl_vars['page']->value['type']==='next') {?>next<?php } else { ?>nofollow<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['url'], ENT_QUOTES, 'UTF-8');?> " class="<?php if ($_smarty_tpl->tpl_vars['page']->value['type']==='previous') {?>previous <?php } elseif ($_smarty_tpl->tpl_vars['page']->value['type']==='next') {?>next <?php }?><?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['classnames'][0][0]->smartyClassnames(array('disabled'=>!$_smarty_tpl->tpl_vars['page']->value['clickable'],'js-search-link'=>true)), ENT_QUOTES, 'UTF-8');?> " > <?php if ($_smarty_tpl->tpl_vars['page']->value['type']==='previous') {?> <i class="fa fa-angle-left"></i> <?php } elseif ($_smarty_tpl->tpl_vars['page']->value['type']==='next') {?> <i class="fa fa-angle-right"></i> <?php } else { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page'], ENT_QUOTES, 'UTF-8');?> <?php }?> </a> <?php }?> </li> <?php } ?> </ul> <div class="total-products"> <?php if ($_smarty_tpl->tpl_vars['listing']->value['pagination']['total_items']>1) {?> <p><?php echo smartyTranslate(array('s'=>'There are %product_count% products.','d'=>'Shop.Theme.Catalog','sprintf'=>array('%product_count%'=>$_smarty_tpl->tpl_vars['listing']->value['pagination']['total_items'])),$_smarty_tpl);?> </p> <?php } elseif ($_smarty_tpl->tpl_vars['listing']->value['pagination']['total_items']>0) {?> <p><?php echo smartyTranslate(array('s'=>'There is 1 product.','d'=>'Shop.Theme.Catalog'),$_smarty_tpl);?> </p> <?php }?> </div> </div> </nav> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/_partials/products.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b13061afe0_30496383')) {function content_5f33b13061afe0_30496383($_smarty_tpl) {?> <div id="js-product-list"> <div class="products horizontal_mode"> <div id="box-product-grid"> <div class="row"> <div class="grid-fix"> <?php $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["product"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['listing']->value['products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) { $_smarty_tpl->tpl_vars["product"]->_loop = true; ?> <?php /* Call merged included template "catalog/_partials/miniatures/product.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('catalog/_partials/miniatures/product.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product'=>$_smarty_tpl->tpl_vars['product']->value), 0, '6886478105f33b13041b106-90539719'); content_5f33b13062cc45_84236531($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "catalog/_partials/miniatures/product.tpl" */?> <?php } ?> </div> </div> </div> <div id="box-product-list"> <?php $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["product"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['listing']->value['products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) { $_smarty_tpl->tpl_vars["product"]->_loop = true; ?> <div class="item-product-list"> <div class="js-product-miniature" data-id-product="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['id_product'], ENT_QUOTES, 'UTF-8');?> " data-id-product-attribute="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], ENT_QUOTES, 'UTF-8');?> " itemscope itemtype="http://schema.org/Product"> <div class="row"> <div class="item-productlist col-xs-5 col-sm-6 col-md-4"> <div class="left-product"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['url'], ENT_QUOTES, 'UTF-8');?> " class="thumbnail product-thumbnail"> <span class="cover_image"> <img class="img-responsive" src = "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['cover']['bySize']['home_default_products_list']['url'], ENT_QUOTES, 'UTF-8');?> " data-full-size-image-url = "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['cover']['large']['url'], ENT_QUOTES, 'UTF-8');?> " alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8');?> " <?php if (isset($_smarty_tpl->tpl_vars['size_home_default_products_list']->value['width'])) {?>width="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['size_home_default_products_list']->value['width'], ENT_QUOTES, 'UTF-8');?> "<?php }?> <?php if (isset($_smarty_tpl->tpl_vars['size_home_default_products_list']->value['height'])) {?>height="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['size_home_default_products_list']->value['height'], ENT_QUOTES, 'UTF-8');?> "<?php }?> > </span> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['images'][1])) {?> <span class="hover_image"> <img class="img-responsive" src = "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['images'][1]['bySize']['home_default_products_list']['url'], ENT_QUOTES, 'UTF-8');?> " data-full-size-image-url = "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['images'][1]['bySize']['home_default_products_list']['url'], ENT_QUOTES, 'UTF-8');?> " alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8');?> " <?php if (isset($_smarty_tpl->tpl_vars['size_home_default_products_list']->value['width'])) {?>width="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['size_home_default_products_list']->value['width'], ENT_QUOTES, 'UTF-8');?> "<?php }?> <?php if (isset($_smarty_tpl->tpl_vars['size_home_default_products_list']->value['height'])) {?>height="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['size_home_default_products_list']->value['height'], ENT_QUOTES, 'UTF-8');?> "<?php }?> > </span> <?php }?> </a> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['show_condition'])&&$_smarty_tpl->tpl_vars['product']->value['condition']['type']=="new"&&$_smarty_tpl->tpl_vars['product']->value['show_condition']==1&&isset($_smarty_tpl->tpl_vars['product']->value['new'])&&$_smarty_tpl->tpl_vars['product']->value['new']==1) {?> <span class="new_product"><span><?php echo smartyTranslate(array('s'=>'New'),$_smarty_tpl);?> </span></span> <?php }?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['on_sale'])&&$_smarty_tpl->tpl_vars['product']->value['on_sale']&&isset($_smarty_tpl->tpl_vars['product']->value['show_price'])&&$_smarty_tpl->tpl_vars['product']->value['show_price']) {?> <span class="sale_product"><span><?php echo smartyTranslate(array('s'=>'Sale'),$_smarty_tpl);?> </span></span> <?php }?> </div> </div> <div class="item-productlist col-xs-7 col-sm-6 col-md-8"> <div class="right-product"> <div class="description-product"> <div class="product_name"><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['url'], ENT_QUOTES, 'UTF-8');?> "><?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['product']->value['name'],90,'...'), ENT_QUOTES, 'UTF-8');?> </a></div> <?php if ($_smarty_tpl->tpl_vars['product']->value['show_price']) {?> <div class="product-price-and-shipping"> <?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'=>"before_price"),$_smarty_tpl);?> <span class="price"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['price'], ENT_QUOTES, 'UTF-8');?> </span> <?php if ($_smarty_tpl->tpl_vars['product']->value['has_discount']) {?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayProductPriceBlock','product'=>$_smarty_tpl->tpl_vars['product']->value,'type'=>"old_price"),$_smarty_tpl);?> <span class="regular-price"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['regular_price'], ENT_QUOTES, 'UTF-8');?> </span> <?php if ($_smarty_tpl->tpl_vars['product']->value['discount_type']==='percentage') {?> <span class="discount-percentage-product"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['discount_percentage'], ENT_QUOTES, 'UTF-8');?> </span> <?php }?> <?php }?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayProductPriceBlock','product'=>$_smarty_tpl->tpl_vars['product']->value,'type'=>'unit_price'),$_smarty_tpl);?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayProductPriceBlock','product'=>$_smarty_tpl->tpl_vars['product']->value,'type'=>'weight'),$_smarty_tpl);?> </div> <?php }?> </div> <div class="decriptions-short"> <?php echo $_smarty_tpl->tpl_vars['product']->value['description_short'];?> </div> <div class="button-action-product"> <?php $_smarty_tpl->tpl_vars["LAE_quickView"] = new Smarty_variable(Configuration::get('LAE_quickView'), null, 0);?> <?php if (isset($_smarty_tpl->tpl_vars['LAE_quickView']->value)&&$_smarty_tpl->tpl_vars['LAE_quickView']->value) {?> <a href="javascript:void(0)" class="button-action quick-view" data-link-action="quickview" title="<?php echo smartyTranslate(array('s'=>'Quick view'),$_smarty_tpl);?> "> <i class="fa fa-eye"></i> <span class="bg"> <span class="text"> <?php echo smartyTranslate(array('s'=>'Quick view'),$_smarty_tpl);?> </span> </span> </a> <?php }?> <?php if ($_smarty_tpl->tpl_vars['product']->value['main_variants']) {?> <div class="button-action pick-color"> <i class="fa fa-paint-brush"></i> <span class="bg"> <span class="text"> <?php $_smarty_tpl->tpl_vars['variant'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['variant']->_loop = false; $_from = $_smarty_tpl->tpl_vars['product']->value['main_variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['variant']->key => $_smarty_tpl->tpl_vars['variant']->value) { $_smarty_tpl->tpl_vars['variant']->_loop = true; ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['url'], ENT_QUOTES, 'UTF-8');?> " class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['type'], ENT_QUOTES, 'UTF-8');?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['name'], ENT_QUOTES, 'UTF-8');?> " <?php if ($_smarty_tpl->tpl_vars['variant']->value['html_color_code']) {?> style="background-color: <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['html_color_code'], ENT_QUOTES, 'UTF-8');?> " <?php }?> <?php if ($_smarty_tpl->tpl_vars['variant']->value['texture']) {?> style="background-image: url(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['texture'], ENT_QUOTES, 'UTF-8');?> )" <?php }?>> </a> <?php } ?> </span> </span> </div> <?php }?> <div class="button-atc"> <form action="<?php echo htmlspecialchars(Context::getContext()->link->getPageLink('cart'), ENT_QUOTES, 'UTF-8');?> " method="post"> <input type="hidden" name="token" value="<?php echo htmlspecialchars(Tools::getToken(false), ENT_QUOTES, 'UTF-8');?> "> <input type="hidden" name="id_product" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['id'], ENT_QUOTES, 'UTF-8');?> "> <button class="button-action" data-button-action="add-to-cart" type="submit" <?php if (!$_smarty_tpl->tpl_vars['product']->value['add_to_cart_url']) {?>disabled<?php }?>> <?php if ($_smarty_tpl->tpl_vars['product']->value['add_to_cart_url']) {?> <span class="text-atc">Add to cart</span> <?php } else { ?> <span class="text-atc">Out of stock</span> <?php }?> </button> </form> </div> </div> </div> </div> </div> </div> </div> <?php } ?> </div> </div> <?php /* Call merged included template "_partials/pagination.tpl" */ $_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('_partials/pagination.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('pagination'=>$_smarty_tpl->tpl_vars['listing']->value['pagination']), 0, '6886478105f33b13041b106-90539719'); content_5f33b1305a6fe9_05231993($_smarty_tpl); $_smarty_tpl = array_pop($_tpl_stack); /* End of included template "_partials/pagination.tpl" */?> <script type="text/javascript"> $(document).ready(function() { $(".click-product-grid").click(function(e) { $("main").removeClass("active_list"); $("main").addClass("active_grid"); setCookie('status_list_product', 'active_grid', 1); }); $(".click-product-list").click(function(e) { $("main").removeClass("active_grid"); $("main").addClass("active_list"); setCookie('status_list_product', 'active_list', 1); }); if (getCookie('status_list_product') !== "" && getCookie('status_list_product') !== "active_grid") { $("main").removeClass("active_grid"); $("main").addClass("active_list"); } }); function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); var expires = "expires=" + d.toUTCString(); document.cookie = cname + "=" + cvalue + "; " + expires; } function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1); if (c.indexOf(name) == 0) return c.substring(name.length, c.length); } return ""; } </script> </div> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/_partials/miniatures/product.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b13062cc45_84236531')) {function content_5f33b13062cc45_84236531($_smarty_tpl) {?> <div class="item col-xs-6 col-md-4"> <div class="item-inner"> <div class="product-miniature js-product-miniature" data-id-product="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['id_product'], ENT_QUOTES, 'UTF-8');?> " data-id-product-attribute="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], ENT_QUOTES, 'UTF-8');?> " itemscope itemtype="http://schema.org/Product"> <div class="left-product"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['url'], ENT_QUOTES, 'UTF-8');?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8');?> "> <span class="cover_image"> <img class="img-responsive" src = "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['cover']['bySize']['home_default']['url'], ENT_QUOTES, 'UTF-8');?> " data-full-size-image-url = "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['cover']['large']['url'], ENT_QUOTES, 'UTF-8');?> " alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8');?> " <?php if (isset($_smarty_tpl->tpl_vars['size_home_default']->value['width'])) {?>width="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['size_home_default']->value['width'], ENT_QUOTES, 'UTF-8');?> "<?php }?> <?php if (isset($_smarty_tpl->tpl_vars['size_home_default']->value['height'])) {?>height="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['size_home_default']->value['height'], ENT_QUOTES, 'UTF-8');?> "<?php }?> > </span> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['images'][1])) {?> <span class="hover_image"> <img class="img-responsive" src = "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['images'][1]['bySize']['home_default']['url'], ENT_QUOTES, 'UTF-8');?> " data-full-size-image-url = "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['images'][1]['bySize']['home_default']['url'], ENT_QUOTES, 'UTF-8');?> " alt="" <?php if (isset($_smarty_tpl->tpl_vars['size_home_default']->value['width'])) {?>width="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['size_home_default']->value['width'], ENT_QUOTES, 'UTF-8');?> "<?php }?> <?php if (isset($_smarty_tpl->tpl_vars['size_home_default']->value['height'])) {?>height="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['size_home_default']->value['height'], ENT_QUOTES, 'UTF-8');?> "<?php }?> > </span> <?php }?> </a> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['show_condition'])&&$_smarty_tpl->tpl_vars['product']->value['condition']['type']=="new"&&$_smarty_tpl->tpl_vars['product']->value['show_condition']==1&&isset($_smarty_tpl->tpl_vars['product']->value['new'])&&$_smarty_tpl->tpl_vars['product']->value['new']==1) {?> <span class="new_product"><span><?php echo smartyTranslate(array('s'=>'New'),$_smarty_tpl);?> </span></span> <?php }?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value['on_sale'])&&$_smarty_tpl->tpl_vars['product']->value['on_sale']&&isset($_smarty_tpl->tpl_vars['product']->value['show_price'])&&$_smarty_tpl->tpl_vars['product']->value['show_price']) {?> <span class="sale_product"><span><?php echo smartyTranslate(array('s'=>'Sale'),$_smarty_tpl);?> </span></span> <?php }?> </div> <div class="right-product"> <div class="product-description"> <div class="product_name"><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['url'], ENT_QUOTES, 'UTF-8');?> "><?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['product']->value['name'],90,'...'), ENT_QUOTES, 'UTF-8');?> </a></div> <?php if ($_smarty_tpl->tpl_vars['product']->value['show_price']) {?> <div class="product-price-and-shipping"> <?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'=>"before_price"),$_smarty_tpl);?> <span class="price"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['price'], ENT_QUOTES, 'UTF-8');?> </span> <?php if ($_smarty_tpl->tpl_vars['product']->value['has_discount']) {?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayProductPriceBlock','product'=>$_smarty_tpl->tpl_vars['product']->value,'type'=>"old_price"),$_smarty_tpl);?> <span class="regular-price"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['regular_price'], ENT_QUOTES, 'UTF-8');?> </span> <?php }?> <?php if ($_smarty_tpl->tpl_vars['product']->value['has_discount']) {?> <?php if ($_smarty_tpl->tpl_vars['product']->value['discount_type']==='percentage') {?> <span class="discount-percentage-product"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['discount_percentage'], ENT_QUOTES, 'UTF-8');?> </span> <?php }?> <?php }?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayProductPriceBlock','product'=>$_smarty_tpl->tpl_vars['product']->value,'type'=>'unit_price'),$_smarty_tpl);?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayProductPriceBlock','product'=>$_smarty_tpl->tpl_vars['product']->value,'type'=>'weight'),$_smarty_tpl);?> </div> <?php }?> <div class="button-action-product"> <?php $_smarty_tpl->tpl_vars["LAE_quickView"] = new Smarty_variable(Configuration::get('LAE_quickView'), null, 0);?> <?php if (isset($_smarty_tpl->tpl_vars['LAE_quickView']->value)&&$_smarty_tpl->tpl_vars['LAE_quickView']->value) {?> <a href="javascript:void(0)" class="button-action quick-view" data-link-action="quickview" title="<?php echo smartyTranslate(array('s'=>'Quick view'),$_smarty_tpl);?> "> <i class="fa fa-eye"></i> <span class="bg"> <span class="text"> <?php echo smartyTranslate(array('s'=>'Quick view'),$_smarty_tpl);?> </span> </span> </a> <?php }?> <?php if ($_smarty_tpl->tpl_vars['product']->value['main_variants']) {?> <div class="button-action pick-color"> <i class="fa fa-paint-brush"></i> <span class="bg"> <span class="text"> <?php $_smarty_tpl->tpl_vars['variant'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['variant']->_loop = false; $_from = $_smarty_tpl->tpl_vars['product']->value['main_variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['variant']->key => $_smarty_tpl->tpl_vars['variant']->value) { $_smarty_tpl->tpl_vars['variant']->_loop = true; ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['url'], ENT_QUOTES, 'UTF-8');?> " class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['type'], ENT_QUOTES, 'UTF-8');?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['name'], ENT_QUOTES, 'UTF-8');?> " <?php if ($_smarty_tpl->tpl_vars['variant']->value['html_color_code']) {?> style="background-color: <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['html_color_code'], ENT_QUOTES, 'UTF-8');?> " <?php }?> <?php if ($_smarty_tpl->tpl_vars['variant']->value['texture']) {?> style="background-image: url(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['variant']->value['texture'], ENT_QUOTES, 'UTF-8');?> )" <?php }?>> </a> <?php } ?> </span> </span> </div> <?php }?> <div class="button-atc"> <form action="<?php echo htmlspecialchars(Context::getContext()->link->getPageLink('cart'), ENT_QUOTES, 'UTF-8');?> " method="post"> <input type="hidden" name="token" value="<?php echo htmlspecialchars(Tools::getToken(false), ENT_QUOTES, 'UTF-8');?> "> <input type="hidden" name="id_product" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['id'], ENT_QUOTES, 'UTF-8');?> "> <button class="button-action" data-button-action="add-to-cart" type="submit" <?php if (!$_smarty_tpl->tpl_vars['product']->value['add_to_cart_url']) {?>disabled<?php }?>> <?php if ($_smarty_tpl->tpl_vars['product']->value['add_to_cart_url']) {?> <span class="text-atc">Dodaj do koszyka</span> <?php } else { ?> <span class="text-atc">Out of stock</span> <?php }?> </button> </form> </div> </div> </div> </div> </div> </div> </div> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/catalog/_partials/products-bottom.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b130773166_33631900')) {function content_5f33b130773166_33631900($_smarty_tpl) {?> <div id="js-product-list-bottom"></div> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/errors/not-found.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b130783db1_95493118')) {function content_5f33b130783db1_95493118($_smarty_tpl) {?> <section id="content" class="page-content page-not-found"> <h4><?php echo smartyTranslate(array('s'=>'Sorry for the inconvenience.','d'=>'Shop.Theme'),$_smarty_tpl);?> </h4> <p><?php echo smartyTranslate(array('s'=>'Search again what you are looking for','d'=>'Shop.Theme'),$_smarty_tpl);?> </p> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displaySearch'),$_smarty_tpl);?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayNotFound'),$_smarty_tpl);?> </section> <?php }} ?> <?php /* Smarty version Smarty-3.1.19, created on 2020-08-12 11:06:56 compiled from "/home/marketst/domains/marketstolarski.pl/public_html/themes/kapa_home1/templates/_partials/footer.tpl" */ ?> <?php if ($_valid && !is_callable('content_5f33b1307e7d69_35428155')) {function content_5f33b1307e7d69_35428155($_smarty_tpl) {?> <?php $_smarty_tpl->tpl_vars['URI'] = new Smarty_variable($_SERVER['REQUEST_URI'], null, 0);?> <?php if ($_smarty_tpl->tpl_vars['URI']->value=="/") {?> <div class="container" style="font-size:16px;color:#000;"> <h1 style="color:#000;font-size:24px;">Hurtownia akcesoriów meblowych</h1> <p style="font-size:16px;color:#000;">Gorąco zapraszamy do zapoznania się z profesjonalną ofertą hurtowni sprzedającej najlepsze na rynku artykuły przeznaczone do wykonywania mebli. Nasze ogromne doświadczenie przekłada się nie tylko na sprzedaż najlepszych na rynku materiałów, ale także na przystępne ceny, które każdego pozytywnie zaskoczą. Hurtownia meblarska posiada asortyment dopasowany do różnych potrzeb, przeznaczony do wielu rodzajów mebli i przede wszystkim prosty w montażu oraz po prostu niezawodny.</p> <h2 style="font-size:20px;color:#000;">Sprzedaż artykułów do mebli od najlepszych producentów</h2> <p style="font-size:16px;color:#000;">Przygotowaliśmy ofertę, w której znajdą Państwo wyłącznie materiały najlepszych na rynku producentów, bardzo wysokiej jakości, precyzyjnie wykonane, a do tego po prostu niezawodne. Pośród akcesoriów kuchennych oraz innych produktów dostępnych w ofercie, znaleźć można między innymi:</p> <ul style="list-style-type:disc"> <li style="margin-left:30px">różnego rodzaju nóżki do mebli;</li> <li style="margin-left:30px">wysokiej jakości okucia meblowe; </li> <li style="margin-left:30px">zawiasy oraz podnośniki; </li> <li style="margin-left:30px">profesjonalne oświetlenie. </li> </ul> <p style="font-size:16px;color:#000;">W profesjonalnej hurtowni meblarskiej każdy może liczyć nie tylko na szeroki wybór produktów, ale także na szybką oraz niedrogą wysyłkę, a do tego mnóstwo ciekawych promocji, dzięki którym można oszczędzać pieniądze.</p> <p style="font-size:16px;color:#000;">Szeroka oferta stolarska z pewnością sprosta nawet najbardziej wygórowanym oczekiwaniom. Zapraszamy do zapoznania się z całą ofertą sklepu i do wyboru artykułów najlepiej dopasowanych do potrzeb.</p> <h2 style="font-size:20px;color:#000;">Hurtownia internetowa z akcesoriami meblowymi</h2> <p style="font-size:16px;color:#000;">Nowoczesne meble mają do spełnienia szereg wymogów. Po pierwsze - powinny dobrze wyglądać i zgrabnie wpisywać się w wystrój wnętrz. Po drugie – powinny gwarantować wygodne użytkowanie. P o trzecie – powinny w pełni wykorzystywać swój potencjał, zapewniając jak największą funkcjonalność. Za pomocą nowoczesnych akcesoriów oraz artykułów meblarskich, można znacząco podnieść użyteczność oraz ergonomię mebli. Zatroszczyliśmy się o to, aby w naszym sklepie stolarskim zgromadzić najciekawsze nowoczesne rozwiązania oraz wszelkie akcesoria, które są niezbędne w pracy każdego stolarza!</p> <h2 style="font-size:20px;color:#000;">Ergonomiczne meble</h2> <p style="font-size:16px;color:#000;">Wybierając meble do domu, klienci coraz częściej zwracają uwagę nie tylko na ich wygląd, ale również na użyteczność. Najbardziej poszukiwane są takie modele mebli które łączą w sobie nowoczesny, minimalistyczny wygląd z wygodą oraz pojemnym wnętrzem. Na zróżnicowany asortyment naszego sklepu składają się wszelkie niezbędne elementy meblowe, w tym: prowadnice, spowalniacze, półki, kosze, podnośniki, systemy szuflad oraz wiele więcej. Znajdziesz u nas również modne elementy oświetleniowe do mebli, np. stylowe profile LED.</p> <p style="font-size:16px;color:#000;">Szeroka oferta artykułów meblarskich w sklepie stolarskim marketstolarski.pl spełni oczekiwania najbardziej wymagających klientów. Oferujemy sprawdzone akcesoria do mebli w korzystnych cenach.</p> </div> <?php }?> <footer id="footer"> <div class="footer-container"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayFooterCustom'),$_smarty_tpl);?> </div> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'popupnewsletter'),$_smarty_tpl);?> <div id="back-top"><a href="javascript:void(0)" class="mypresta_scrollup hidden-phone"><i class="fa fa-chevron-up"></i></a></div> </footer><?php }} ?> when I delete this cache file there is "ContextErrorException in smarty_internal_templatebase.php(157) : eval()'d code line 335:Notice: Undefined index: category" <?php /** * Smarty Internal Plugin Smarty Template Base * This file contains the basic shared methods for template handling * * @package Smarty * @subpackage Template * @author Uwe Tews */ /** * Class with shared template methods * * @package Smarty * @subpackage Template */ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data { /** * fetches a rendered Smarty template * * @param string $template the resource handle of the template file or template object * @param mixed $cache_id cache id to be used with this template * @param mixed $compile_id compile id to be used with this template * @param object $parent next higher level of Smarty variables * @param bool $display true: display, false: fetch * @param bool $merge_tpl_vars if true parent template variables merged in to local scope * @param bool $no_output_filter if true do not run output filter * * @throws Exception * @throws SmartyException * @return string rendered template output */ public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null, $display = false, $merge_tpl_vars = true, $no_output_filter = false) { if ($template === null && $this instanceof $this->template_class) { $template = $this; } if ($cache_id !== null && is_object($cache_id)) { $parent = $cache_id; $cache_id = null; } if ($parent === null && ($this instanceof Smarty || is_string($template))) { $parent = $this; } // create template object if necessary $_template = ($template instanceof $this->template_class) ? $template : $this->smarty->createTemplate($template, $cache_id, $compile_id, $parent, false); // if called by Smarty object make sure we use current caching status if ($this instanceof Smarty) { $_template->caching = $this->caching; } // merge all variable scopes into template if ($merge_tpl_vars) { // save local variables $save_tpl_vars = $_template->tpl_vars; $save_config_vars = $_template->config_vars; $ptr_array = array($_template); $ptr = $_template; while (isset($ptr->parent)) { $ptr_array[] = $ptr = $ptr->parent; } $ptr_array = array_reverse($ptr_array); $parent_ptr = reset($ptr_array); $tpl_vars = $parent_ptr->tpl_vars; $config_vars = $parent_ptr->config_vars; while ($parent_ptr = next($ptr_array)) { if (!empty($parent_ptr->tpl_vars)) { $tpl_vars = array_merge($tpl_vars, $parent_ptr->tpl_vars); } if (!empty($parent_ptr->config_vars)) { $config_vars = array_merge($config_vars, $parent_ptr->config_vars); } } if (!empty(Smarty::$global_tpl_vars)) { $tpl_vars = array_merge(Smarty::$global_tpl_vars, $tpl_vars); } $_template->tpl_vars = $tpl_vars; $_template->config_vars = $config_vars; } // dummy local smarty variable if (!isset($_template->tpl_vars['smarty'])) { $_template->tpl_vars['smarty'] = new Smarty_Variable; } if (isset($this->smarty->error_reporting)) { $_smarty_old_error_level = error_reporting($this->smarty->error_reporting); } // check URL debugging control if (!$this->smarty->debugging && $this->smarty->debugging_ctrl == 'URL') { if (isset($_SERVER['QUERY_STRING'])) { $_query_string = $_SERVER['QUERY_STRING']; } else { $_query_string = ''; } if (false !== strpos($_query_string, $this->smarty->smarty_debug_id)) { if (false !== strpos($_query_string, $this->smarty->smarty_debug_id . '=on')) { // enable debugging for this browser session setcookie('SMARTY_DEBUG', true); $this->smarty->debugging = true; } elseif (false !== strpos($_query_string, $this->smarty->smarty_debug_id . '=off')) { // disable debugging for this browser session setcookie('SMARTY_DEBUG', false); $this->smarty->debugging = false; } else { // enable debugging for this page $this->smarty->debugging = true; } } else { if (isset($_COOKIE['SMARTY_DEBUG'])) { $this->smarty->debugging = true; } } } // must reset merge template date $_template->smarty->merged_templates_func = array(); // get rendered template // disable caching for evaluated code if ($_template->source->recompiled) { $_template->caching = false; } // checks if template exists if (!$_template->source->exists) { if ($_template->parent instanceof Smarty_Internal_Template) { $parent_resource = " in '{$_template->parent->template_resource}'"; } else { $parent_resource = ''; } throw new SmartyException("Unable to load template {$_template->source->type} '{$_template->source->name}'{$parent_resource}"); } // read from cache or render if (!($_template->caching == Smarty::CACHING_LIFETIME_CURRENT || $_template->caching == Smarty::CACHING_LIFETIME_SAVED) || !$_template->cached->valid) { // render template (not loaded and not in cache) if (!$_template->source->uncompiled) { /** @var Smarty_Internal_Template $_smarty_tpl * used in evaluated code */ $_smarty_tpl = $_template; if ($_template->source->recompiled) { $code = $_template->compiler->compileTemplate($_template); if ($this->smarty->debugging) { Smarty_Internal_Debug::start_render($_template); } try { ob_start(); eval("?>" . $code); unset($code); } catch (Exception $e) { ob_get_clean(); throw $e; } } else { if (!$_template->compiled->exists || ($_template->smarty->force_compile && !$_template->compiled->isCompiled)) { $_template->compileTemplateSource(); $code = file_get_contents($_template->compiled->filepath); eval("?>" . $code); unset($code); $_template->compiled->loaded = true; $_template->compiled->isCompiled = true; } if ($this->smarty->debugging) { Smarty_Internal_Debug::start_render($_template); } if (!$_template->compiled->loaded) { include($_template->compiled->filepath); if ($_template->mustCompile) { // recompile and load again $_template->compileTemplateSource(); $code = file_get_contents($_template->compiled->filepath); eval("?>" . $code); unset($code); $_template->compiled->isCompiled = true; } $_template->compiled->loaded = true; } else { $_template->decodeProperties($_template->compiled->_properties, false); } try { ob_start(); if (empty($_template->properties['unifunc']) || !is_callable($_template->properties['unifunc'])) { throw new SmartyException("Invalid compiled template for '{$_template->template_resource}'"); } array_unshift($_template->_capture_stack, array()); // // render compiled template // $_template->properties['unifunc']($_template); // any unclosed {capture} tags ? if (isset($_template->_capture_stack[0][0])) { $_template->capture_error(); } array_shift($_template->_capture_stack); } catch (Exception $e) { ob_get_clean(); throw $e; } } } else { if ($_template->source->uncompiled) { if ($this->smarty->debugging) { Smarty_Internal_Debug::start_render($_template); } try { ob_start(); $_template->source->renderUncompiled($_template); } catch (Exception $e) { ob_get_clean(); throw $e; } } else { throw new SmartyException("Resource '$_template->source->type' must have 'renderUncompiled' method"); } } $_output = ob_get_clean(); if (!$_template->source->recompiled && empty($_template->properties['file_dependency'][$_template->source->uid])) { $_template->properties['file_dependency'][$_template->source->uid] = array($_template->source->filepath, $_template->source->timestamp, $_template->source->type); } if ($_template->parent instanceof Smarty_Internal_Template) { $_template->parent->properties['file_dependency'] = array_merge($_template->parent->properties['file_dependency'], $_template->properties['file_dependency']); foreach ($_template->required_plugins as $code => $tmp1) { foreach ($tmp1 as $name => $tmp) { foreach ($tmp as $type => $data) { $_template->parent->required_plugins[$code][$name][$type] = $data; } } } } if ($this->smarty->debugging) { Smarty_Internal_Debug::end_render($_template); } // write to cache when nessecary if (!$_template->source->recompiled && ($_template->caching == Smarty::CACHING_LIFETIME_SAVED || $_template->caching == Smarty::CACHING_LIFETIME_CURRENT)) { if ($this->smarty->debugging) { Smarty_Internal_Debug::start_cache($_template); } $_template->properties['has_nocache_code'] = false; // get text between non-cached items $cache_split = preg_split("!/\*%%SmartyNocache:{$_template->properties['nocache_hash']}%%\*\/(.+?)/\*/%%SmartyNocache:{$_template->properties['nocache_hash']}%%\*/!s", $_output); // get non-cached items preg_match_all("!/\*%%SmartyNocache:{$_template->properties['nocache_hash']}%%\*\/(.+?)/\*/%%SmartyNocache:{$_template->properties['nocache_hash']}%%\*/!s", $_output, $cache_parts); $output = ''; // loop over items, stitch back together foreach ($cache_split as $curr_idx => $curr_split) { // escape PHP tags in template content $output .= preg_replace('/(<%|%>|<\?php|<\?|\?>)/', "<?php echo '\$1'; ?>\n", $curr_split); if (isset($cache_parts[0][$curr_idx])) { $_template->properties['has_nocache_code'] = true; // remove nocache tags from cache output $output .= preg_replace("!/\*/?%%SmartyNocache:{$_template->properties['nocache_hash']}%%\*/!", '', $cache_parts[0][$curr_idx]); } } if (!$no_output_filter && !$_template->has_nocache_code && (isset($this->smarty->autoload_filters['output']) || isset($this->smarty->registered_filters['output']))) { $output = Smarty_Internal_Filter_Handler::runFilter('output', $output, $_template); } // rendering (must be done before writing cache file because of {function} nocache handling) /** @var Smarty_Internal_Template $_smarty_tpl * used in evaluated code */ $_smarty_tpl = $_template; try { ob_start(); eval("?>" . $output); $_output = ob_get_clean(); } catch (Exception $e) { ob_get_clean(); throw $e; } // write cache file content $_template->writeCachedContent($output); if ($this->smarty->debugging) { Smarty_Internal_Debug::end_cache($_template); } } else { // var_dump('renderTemplate', $_template->has_nocache_code, $_template->template_resource, $_template->properties['nocache_hash'], $_template->parent->properties['nocache_hash'], $_output); if (!empty($_template->properties['nocache_hash']) && !empty($_template->parent->properties['nocache_hash'])) { // replace nocache_hash $_output = str_replace("{$_template->properties['nocache_hash']}", $_template->parent->properties['nocache_hash'], $_output); $_template->parent->has_nocache_code = $_template->parent->has_nocache_code || $_template->has_nocache_code; } } } else { if ($this->smarty->debugging) { Smarty_Internal_Debug::start_cache($_template); } try { ob_start(); array_unshift($_template->_capture_stack, array()); // // render cached template // $_template->properties['unifunc']($_template); // any unclosed {capture} tags ? if (isset($_template->_capture_stack[0][0])) { $_template->capture_error(); } array_shift($_template->_capture_stack); $_output = ob_get_clean(); } catch (Exception $e) { ob_get_clean(); throw $e; } if ($this->smarty->debugging) { Smarty_Internal_Debug::end_cache($_template); } } if ((!$this->caching || $_template->has_nocache_code || $_template->source->recompiled) && !$no_output_filter && (isset($this->smarty->autoload_filters['output']) || isset($this->smarty->registered_filters['output']))) { $_output = Smarty_Internal_Filter_Handler::runFilter('output', $_output, $_template); } if (isset($this->error_reporting)) { error_reporting($_smarty_old_error_level); } // display or fetch if ($display) { if ($this->caching && $this->cache_modified_check) { $_isCached = $_template->isCached() && !$_template->has_nocache_code; $_last_modified_date = @substr($_SERVER['HTTP_IF_MODIFIED_SINCE'], 0, strpos($_SERVER['HTTP_IF_MODIFIED_SINCE'], 'GMT') + 3); if ($_isCached && $_template->cached->timestamp <= strtotime($_last_modified_date)) { switch (PHP_SAPI) { case 'cgi': // php-cgi < 5.3 case 'cgi-fcgi': // php-cgi >= 5.3 case 'fpm-fcgi': // php-fpm >= 5.3.3 header('Status: 304 Not Modified'); break; case 'cli': if (/* ^phpunit */ !empty($_SERVER['SMARTY_PHPUNIT_DISABLE_HEADERS']) /* phpunit$ */ ) { $_SERVER['SMARTY_PHPUNIT_HEADERS'][] = '304 Not Modified'; } break; default: header($_SERVER['SERVER_PROTOCOL'] . ' 304 Not Modified'); break; } } else { switch (PHP_SAPI) { case 'cli': if (/* ^phpunit */ !empty($_SERVER['SMARTY_PHPUNIT_DISABLE_HEADERS']) /* phpunit$ */ ) { $_SERVER['SMARTY_PHPUNIT_HEADERS'][] = 'Last-Modified: ' . gmdate('D, d M Y H:i:s', $_template->cached->timestamp) . ' GMT'; } break; default: header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $_template->cached->timestamp) . ' GMT'); break; } echo $_output; } } else { echo $_output; } // debug output if ($this->smarty->debugging) { Smarty_Internal_Debug::display_debug($_template); } if ($merge_tpl_vars) { // restore local variables $_template->tpl_vars = $save_tpl_vars; $_template->config_vars = $save_config_vars; } return; } else { if ($merge_tpl_vars) { // restore local variables $_template->tpl_vars = $save_tpl_vars; $_template->config_vars = $save_config_vars; } // return fetched content return $_output; } } /** * displays a Smarty template * * @param string $template the resource handle of the template file or template object * @param mixed $cache_id cache id to be used with this template * @param mixed $compile_id compile id to be used with this template * @param object $parent next higher level of Smarty variables */ public function display($template = null, $cache_id = null, $compile_id = null, $parent = null) { // display template $this->fetch($template, $cache_id, $compile_id, $parent, true); } /** * test if cache is valid * * @param string|object $template the resource handle of the template file or template object * @param mixed $cache_id cache id to be used with this template * @param mixed $compile_id compile id to be used with this template * @param object $parent next higher level of Smarty variables * * @return boolean cache status */ public function isCached($template = null, $cache_id = null, $compile_id = null, $parent = null) { if ($template === null && $this instanceof $this->template_class) { return $this->cached->valid; } if (!($template instanceof $this->template_class)) { if ($parent === null) { $parent = $this; } $template = $this->smarty->createTemplate($template, $cache_id, $compile_id, $parent, false); } // return cache status of template return $template->cached->valid; } /** * creates a data object * * @param object $parent next higher level of Smarty variables * * @returns Smarty_Data data object */ public function createData($parent = null) { return new Smarty_Data($parent, $this); } /** * Registers plugin to be used in templates * * @param string $type plugin type * @param string $tag name of template tag * @param callback $callback PHP callback to register * @param boolean $cacheable if true (default) this fuction is cachable * @param array $cache_attr caching attributes if any * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining * @throws SmartyException when the plugin tag is invalid */ public function registerPlugin($type, $tag, $callback, $cacheable = true, $cache_attr = null) { if (isset($this->smarty->registered_plugins[$type][$tag])) { throw new SmartyException("Plugin tag \"{$tag}\" already registered"); } elseif (!is_callable($callback)) { throw new SmartyException("Plugin \"{$tag}\" not callable"); } else { $this->smarty->registered_plugins[$type][$tag] = array($callback, (bool) $cacheable, (array) $cache_attr); } return $this; } /** * Unregister Plugin * * @param string $type of plugin * @param string $tag name of plugin * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining */ public function unregisterPlugin($type, $tag) { if (isset($this->smarty->registered_plugins[$type][$tag])) { unset($this->smarty->registered_plugins[$type][$tag]); } return $this; } /** * Registers a resource to fetch a template * * @param string $type name of resource type * @param Smarty_Resource|array $callback or instance of Smarty_Resource, or array of callbacks to handle resource (deprecated) * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining */ public function registerResource($type, $callback) { $this->smarty->registered_resources[$type] = $callback instanceof Smarty_Resource ? $callback : array($callback, false); return $this; } /** * Unregisters a resource * * @param string $type name of resource type * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining */ public function unregisterResource($type) { if (isset($this->smarty->registered_resources[$type])) { unset($this->smarty->registered_resources[$type]); } return $this; } /** * Registers a cache resource to cache a template's output * * @param string $type name of cache resource type * @param Smarty_CacheResource $callback instance of Smarty_CacheResource to handle output caching * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining */ public function registerCacheResource($type, Smarty_CacheResource $callback) { $this->smarty->registered_cache_resources[$type] = $callback; return $this; } /** * Unregisters a cache resource * * @param string $type name of cache resource type * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining */ public function unregisterCacheResource($type) { if (isset($this->smarty->registered_cache_resources[$type])) { unset($this->smarty->registered_cache_resources[$type]); } return $this; } /** * Registers object to be used in templates * * @param $object_name * @param object $object_impl the referenced PHP object to register * @param array $allowed list of allowed methods (empty = all) * @param boolean $smarty_args smarty argument format, else traditional * @param array $block_methods list of block-methods * * @throws SmartyException * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining */ public function registerObject($object_name, $object_impl, $allowed = array(), $smarty_args = true, $block_methods = array()) { // test if allowed methods callable if (!empty($allowed)) { foreach ((array) $allowed as $method) { if (!is_callable(array($object_impl, $method)) && !property_exists($object_impl, $method)) { throw new SmartyException("Undefined method or property '$method' in registered object"); } } } // test if block methods callable if (!empty($block_methods)) { foreach ((array) $block_methods as $method) { if (!is_callable(array($object_impl, $method))) { throw new SmartyException("Undefined method '$method' in registered object"); } } } // register the object $this->smarty->registered_objects[$object_name] = array($object_impl, (array) $allowed, (boolean) $smarty_args, (array) $block_methods); return $this; } /** * return a reference to a registered object * * @param string $name object name * * @return object * @throws SmartyException if no such object is found */ public function getRegisteredObject($name) { if (!isset($this->smarty->registered_objects[$name])) { throw new SmartyException("'$name' is not a registered object"); } if (!is_object($this->smarty->registered_objects[$name][0])) { throw new SmartyException("registered '$name' is not an object"); } return $this->smarty->registered_objects[$name][0]; } /** * unregister an object * * @param string $name object name * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining */ public function unregisterObject($name) { if (isset($this->smarty->registered_objects[$name])) { unset($this->smarty->registered_objects[$name]); } return $this; } /** * Registers static classes to be used in templates * * @param $class_name * @param string $class_impl the referenced PHP class to register * * @throws SmartyException * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining */ public function registerClass($class_name, $class_impl) { // test if exists if (!class_exists($class_impl)) { throw new SmartyException("Undefined class '$class_impl' in register template class"); } // register the class $this->smarty->registered_classes[$class_name] = $class_impl; return $this; } /** * Registers a default plugin handler * * @param callable $callback class/method name * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining * @throws SmartyException if $callback is not callable */ public function registerDefaultPluginHandler($callback) { if (is_callable($callback)) { $this->smarty->default_plugin_handler_func = $callback; } else { throw new SmartyException("Default plugin handler '$callback' not callable"); } return $this; } /** * Registers a default template handler * * @param callable $callback class/method name * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining * @throws SmartyException if $callback is not callable */ public function registerDefaultTemplateHandler($callback) { if (is_callable($callback)) { $this->smarty->default_template_handler_func = $callback; } else { throw new SmartyException("Default template handler '$callback' not callable"); } return $this; } /** * Registers a default template handler * * @param callable $callback class/method name * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining * @throws SmartyException if $callback is not callable */ public function registerDefaultConfigHandler($callback) { if (is_callable($callback)) { $this->smarty->default_config_handler_func = $callback; } else { throw new SmartyException("Default config handler '$callback' not callable"); } return $this; } /** * Registers a filter function * * @param string $type filter type * @param callback $callback * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining */ public function registerFilter($type, $callback) { $this->smarty->registered_filters[$type][$this->_get_filter_name($callback)] = $callback; return $this; } /** * Unregisters a filter function * * @param string $type filter type * @param callback $callback * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining */ public function unregisterFilter($type, $callback) { $name = $this->_get_filter_name($callback); if (isset($this->smarty->registered_filters[$type][$name])) { unset($this->smarty->registered_filters[$type][$name]); } return $this; } /** * Return internal filter name * * @param callback $function_name * * @return string internal filter name */ public function _get_filter_name($function_name) { if (is_array($function_name)) { $_class_name = (is_object($function_name[0]) ? get_class($function_name[0]) : $function_name[0]); return $_class_name . '_' . $function_name[1]; } else { return $function_name; } } /** * load a filter of specified type and name * * @param string $type filter type * @param string $name filter name * * @throws SmartyException if filter could not be loaded */ public function loadFilter($type, $name) { $_plugin = "smarty_{$type}filter_{$name}"; $_filter_name = $_plugin; if ($this->smarty->loadPlugin($_plugin)) { if (class_exists($_plugin, false)) { $_plugin = array($_plugin, 'execute'); } if (is_callable($_plugin)) { $this->smarty->registered_filters[$type][$_filter_name] = $_plugin; return true; } } throw new SmartyException("{$type}filter \"{$name}\" not callable"); } /** * unload a filter of specified type and name * * @param string $type filter type * @param string $name filter name * * @return Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining */ public function unloadFilter($type, $name) { $_filter_name = "smarty_{$type}filter_{$name}"; if (isset($this->smarty->registered_filters[$type][$_filter_name])) { unset($this->smarty->registered_filters[$type][$_filter_name]); } return $this; } /** * preg_replace callback to convert camelcase getter/setter to underscore property names * * @param string $match match string * * @return string replacemant */ private function replaceCamelcase($match) { return "_" . strtolower($match[1]); } /** * Handle unknown class methods * * @param string $name unknown method-name * @param array $args argument array * * @throws SmartyException */ public function __call($name, $args) { static $_prefixes = array('set' => true, 'get' => true); static $_resolved_property_name = array(); static $_resolved_property_source = array(); // method of Smarty object? if (method_exists($this->smarty, $name)) { return call_user_func_array(array($this->smarty, $name), $args); } // see if this is a set/get for a property $first3 = strtolower(substr($name, 0, 3)); if (isset($_prefixes[$first3]) && isset($name[3]) && $name[3] !== '_') { if (isset($_resolved_property_name[$name])) { $property_name = $_resolved_property_name[$name]; } else { // try to keep case correct for future PHP 6.0 case-sensitive class methods // lcfirst() not available < PHP 5.3.0, so improvise $property_name = strtolower(substr($name, 3, 1)) . substr($name, 4); // convert camel case to underscored name $property_name = preg_replace_callback('/([A-Z])/', array($this, 'replaceCamelcase'), $property_name); $_resolved_property_name[$name] = $property_name; } if (isset($_resolved_property_source[$property_name])) { $_is_this = $_resolved_property_source[$property_name]; } else { $_is_this = null; if (property_exists($this, $property_name)) { $_is_this = true; } elseif (property_exists($this->smarty, $property_name)) { $_is_this = false; } $_resolved_property_source[$property_name] = $_is_this; } if ($_is_this) { if ($first3 == 'get') { return $this->$property_name; } else { return $this->$property_name = $args[0]; } } elseif ($_is_this === false) { if ($first3 == 'get') { return $this->smarty->$property_name; } else { return $this->smarty->$property_name = $args[0]; } } else { throw new SmartyException("property '$property_name' does not exist."); } } if ($name == 'Smarty') { throw new SmartyException("PHP5 requires you to call __construct() instead of Smarty()"); } // must be unknown throw new SmartyException("Call of unknown method '$name'."); } } please help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now