function content_5627a0e3007be7_50554482($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars['option_tpl'] = new Smarty_variable(OvicLayoutControl::getTemplateFile('imagesearchblock-top.tpl', 'imagesearchblock'), null, 0);
        if ($_smarty_tpl->tpl_vars['option_tpl']->value !== null) {
            ?>
    <?php 
            echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['option_tpl']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

<?php 
        } else {
            ?>
    <div class="search-container pull-left">
		<form action="<?php 
            echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('search');
            ?>
" id="searchbox" class="search-form">
			<input type="hidden" name="controller" value="search" />
			<input type="hidden" name="orderby" value="position" />
			<input type="hidden" name="orderway" value="desc" />
			<input type="search" id="search_query_top" name="search_query" placeholder="<?php 
            echo smartyTranslate(array('s' => 'Search', 'mod' => 'imagesearchblock'), $_smarty_tpl);
            ?>
" />
			<input type="submit" value="Submit" class="search-submit-btn">		
		</form>
	</div>
    <?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['self']->value . "/imagesearchblock-instantsearch.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

<?php 
        }
        ?>

<?php 
    }
示例#2
0
 public function hookDisplayHeader($params)
 {
     $this->context->controller->removeJS('/granada/js/jquery/plugins/jqzoom/jquery.jqzoom.js');
     $id_shop = (int) $this->context->shop->id;
     $current_id_option = Configuration::get('OVIC_CURRENT_OPTION', null, null, $id_shop);
     $current_option = new Options($current_id_option);
     $current_theme = Theme::getThemeInfo($this->context->shop->id_theme);
     if (strtolower($current_option->theme) != strtolower($current_theme['theme_name'])) {
         Configuration::deleteByName('OVIC_CURRENT_OPTION');
         Configuration::deleteByName('OVIC_LAYOUT_COLUMN');
         Configuration::deleteByName('OVIC_CURRENT_DIR');
         $current_id_option = null;
     }
     $emptyOption = false;
     if (!$current_id_option || !Validate::isUnsignedId($current_id_option) || !OvicLayoutControl::isAvailablebyId($current_id_option)) {
         $id_lang_default = (int) Configuration::get('PS_LANG_DEFAULT');
         $sql = 'SELECT * FROM `' . _DB_PREFIX_ . 'ovic_options` o
                WHERE LCASE(o.`theme`) =\'' . strtolower($current_theme['theme_name']) . '\'';
         $options = Db::getInstance()->executeS($sql);
         if ($options && is_array($options) && sizeof($options) > 0) {
             foreach ($options as $option) {
                 $current_option = new Options($option['id_option']);
                 Configuration::updateValue('OVIC_CURRENT_OPTION', $option['id_option'], false, null, $id_shop);
                 Configuration::updateValue('OVIC_CURRENT_DIR', str_replace(' ', '_', $current_option->alias), false, null, $id_shop);
                 $current_id_option = $option['id_option'];
                 break;
             }
         } else {
             $emptyOption = true;
         }
     }
     if (!$emptyOption) {
         $current_option = new Options($current_id_option);
         if (strtolower($current_option->theme) == strtolower($current_theme['theme_name'])) {
             $selected_layout = Configuration::get('OVIC_LAYOUT_COLUMN', null, null, $id_shop);
             if (!$selected_layout || substr_count($current_option->column, $selected_layout) < 1) {
                 if (strlen($current_option->column) > 0) {
                     $selected_layout = (int) substr($current_option->column, 0, 1);
                     Configuration::updateValue('OVIC_LAYOUT_COLUMN', $selected_layout, false, null, $id_shop);
                     $this->ProcessLayoutColumn();
                 }
             }
         } else {
             $emptyOption = true;
         }
     }
     if ($emptyOption) {
         $this->context->smarty->assign(array('emptyOption' => Tools::displayError('There is no Option, please add new Option from Layout Builder menu.')));
         return '';
     }
     $output = '';
     global $smarty;
     $optionStyle = $this->getOptionStyle($current_option->theme, $current_option->alias);
     $fonts = array();
     if ($optionStyle['font'] && is_array($optionStyle['font']) && sizeof($optionStyle['font']) > 0) {
         foreach ($optionStyle['font'] as $key => $font) {
             $start = strpos($font, 'family');
             $fontName = substr_replace($font, '', 0, $start + 7);
             $start = strpos($fontName, "'");
             $fontName = substr_replace($fontName, '', $start, strlen($fontName));
             if (strpos($fontName, ":") > 0) {
                 $start = strpos($fontName, ":");
                 $fontName = substr_replace($fontName, '', $start, strlen($fontName));
             }
             $fontName = str_replace('+', ' ', $fontName);
             if (strlen($font) > 0) {
                 $start = strpos($font, 'http');
                 $substr = substr_replace($font, '', $start, strlen($font) - $start);
                 $start = strpos($font, ':');
                 $font = substr_replace($font, '', 0, $start);
                 $font = $substr . (empty($_SERVER['HTTPS']) ? 'http' : 'https') . $font;
             }
             $fonts[] = array('fontname' => $fontName, 'linkfont' => $font);
         }
     }
     if ($optionStyle['color'] && is_array($optionStyle['color']) && sizeof($optionStyle['color']) > 0) {
         $grbacolor = $this->hex2rgba($optionStyle['color']['main']);
     }
     $current_id_option = Configuration::get('OVIC_CURRENT_OPTION', null, null, $id_shop);
     $current_dir = trim(Configuration::get('OVIC_CURRENT_DIR', null, null, $id_shop));
     if (Dispatcher::getInstance()->getController() == 'contact') {
         $default_country = new Country((int) Tools::getCountry());
         //$a = 'http'.((Configuration::get('PS_SSL_ENABLED') && Configuration::get('PS_SSL_ENABLED_EVERYWHERE')) ? 's' : '').'://maps.google.com/maps/api/js?sensor=true&region='.substr($default_country->iso_code, 0, 2);
         $this->context->controller->addJS('http' . (Configuration::get('PS_SSL_ENABLED') && Configuration::get('PS_SSL_ENABLED_EVERYWHERE') ? 's' : '') . '://maps.google.com/maps/api/js?sensor=true&region=' . substr($default_country->iso_code, 0, 2));
         $this->context->controller->addJS(_THEME_JS_DIR_ . 'contact.js');
         $distanceUnit = Configuration::get('PS_DISTANCE_UNIT');
         if (!in_array($distanceUnit, array('km', 'mi'))) {
             $distanceUnit = 'km';
         }
         $this->context->smarty->assign(array('mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), 'defaultLat' => (double) Configuration::get('PS_STORES_CENTER_LAT'), 'defaultLong' => (double) Configuration::get('PS_STORES_CENTER_LONG'), 'searchUrl' => $this->context->link->getPageLink('stores'), 'logo_store' => Configuration::get('PS_STORES_ICON'), 'distanceUnit' => $distanceUnit, 'hasStoreIcon' => file_exists(_PS_IMG_DIR_ . Configuration::get('PS_STORES_ICON'))));
     }
     $smarty->assign(array('grbacolor' => isset($grbacolor) ? $grbacolor : '', 'font' => $fonts, 'color' => $optionStyle['color'], 'current_id_option' => $current_id_option, 'current_dir' => $current_dir, 'BEFORE_LOGO' => Hook::exec('displayBeforeLogo'), 'HOOK_HOME_TOP_COLUMN' => Hook::exec('displayHomeTopColumn'), 'HOME_BOTTOM_CONTENT' => Hook::exec('displayHomeBottomContent'), 'HOME_BOTTOM_COLUMN' => Hook::exec('displayHomeBottomColumn'), 'HOME_TOP_CONTENT' => Hook::exec('displayHomeTopContent'), 'BOTTOM_COLUMN' => Hook::exec('displayBottomColumn')));
     return $this->display(__FILE__, 'multistyle.tpl');
 }
    function content_5627a0e2d8f274_27258827($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars['option_tpl'] = new Smarty_variable(OvicLayoutControl::getTemplateFile('homeslider.tpl', 'homeslider'), null, 0);
        if ($_smarty_tpl->tpl_vars['option_tpl']->value !== null) {
            ?>
    <?php 
            echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['option_tpl']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array(), 0);
            ?>

<?php 
        } else {
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['page_name']->value == 'index') {
                ?>
    <!-- Module HomeSlider -->
        <?php 
                if (isset($_smarty_tpl->tpl_vars['homeslider_slides']->value)) {
                    ?>
    		<div id="homepage-slider" class="clearfix">
    			<?php 
                    if (isset($_smarty_tpl->tpl_vars['homeslider_slides']->value[0]) && isset($_smarty_tpl->tpl_vars['homeslider_slides']->value[0]['sizes'][1])) {
                        $_smarty_tpl->_capture_stack[0][] = array('height', null, null);
                        ob_start();
                        echo $_smarty_tpl->tpl_vars['homeslider_slides']->value[0]['sizes'][1];
                        list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                        if (!empty($_capture_buffer)) {
                            if (isset($_capture_assign)) {
                                $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                            }
                            if (isset($_capture_append)) {
                                $_smarty_tpl->append($_capture_append, ob_get_contents());
                            }
                            Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                        } else {
                            $_smarty_tpl->capture_error();
                        }
                    }
                    ?>
    			<ul id="homeslider"<?php 
                    if (isset(Smarty::$_smarty_vars['capture']['height']) && Smarty::$_smarty_vars['capture']['height']) {
                        ?>
 style="max-height:<?php 
                        echo Smarty::$_smarty_vars['capture']['height'];
                        ?>
px;"<?php 
                    }
                    ?>
>
    				<?php 
                    $_smarty_tpl->tpl_vars['slide'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['slide']->_loop = false;
                    $_from = $_smarty_tpl->tpl_vars['homeslider_slides']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['slide']->key => $_smarty_tpl->tpl_vars['slide']->value) {
                        $_smarty_tpl->tpl_vars['slide']->_loop = true;
                        ?>
    					<?php 
                        if ($_smarty_tpl->tpl_vars['slide']->value['active']) {
                            ?>
    						<li class="homeslider-container">
    							<a href="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['slide']->value['url'], ENT_QUOTES, 'UTF-8', true);
                            ?>
" title="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['slide']->value['legend'], ENT_QUOTES, 'UTF-8', true);
                            ?>
">
    								<img src="<?php 
                            echo $_smarty_tpl->tpl_vars['link']->value->getMediaLink((string) @constant('_MODULE_DIR_') . "homeslider/images/" . (string) mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['slide']->value['image'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8'));
                            ?>
"<?php 
                            if (isset($_smarty_tpl->tpl_vars['slide']->value['size']) && $_smarty_tpl->tpl_vars['slide']->value['size']) {
                                ?>
 <?php 
                                echo $_smarty_tpl->tpl_vars['slide']->value['size'];
                            } else {
                                ?>
 width="100%" height="100%"<?php 
                            }
                            ?>
 alt="<?php 
                            echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['slide']->value['legend'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');
                            ?>
" />
    							</a>
    							<?php 
                            if (isset($_smarty_tpl->tpl_vars['slide']->value['description']) && trim($_smarty_tpl->tpl_vars['slide']->value['description']) != '') {
                                ?>
    								<div class="homeslider-description"><?php 
                                echo $_smarty_tpl->tpl_vars['slide']->value['description'];
                                ?>
</div>
    							<?php 
                            }
                            ?>
    						</li>
    					<?php 
                        }
                        ?>
    				<?php 
                    }
                    ?>
    			</ul>
    		</div>
    	<?php 
                }
                ?>
    <!-- /Module HomeSlider -->
    <?php 
            }
        }
    }
 public function ajaxProcessupdateHook()
 {
     $result = array();
     $id_option = (int) Tools::getValue('id_option');
     $datahooks = Tools::getValue('datahook');
     $datahooks = Tools::jsonDecode($datahooks, true);
     if ($id_option && Validate::isUnsignedId($id_option) && $datahooks && is_array($datahooks) && sizeof($datahooks) > 0) {
         foreach ($datahooks as $hookmodules) {
             $res = array();
             $hookName = key($hookmodules);
             $res['status'] = OvicLayoutControl::registerHookModule($id_option, $hookName, Tools::jsonEncode($hookmodules[$hookName]), $this->context->shop->id);
             $res['hookname'] = $hookName;
             $result[] = $res;
         }
     }
     Tools::clearCache();
     die(Tools::jsonEncode($result));
 }
 public function renderColorForm($id_option)
 {
     //$view == 'detail'
     $input_field = array(array('type' => 'hidden', 'name' => 'id_option'));
     $default_font = array();
     foreach (OvicLayoutControl::$OptionFonts as $k => $font) {
         $font_field = array('type' => 'text', 'label' => $this->l('Google font link ' . ($k + 1)), 'name' => $font, 'desc' => $this->l("Example: <link href='http://fonts.googleapis.com/css?family=Gilda+Display' rel='stylesheet' type='text/css'>"));
         $input_field[] = $font_field;
         $default_font[$font] = '';
     }
     $default_color = array();
     foreach (OvicLayoutControl::$OptionColors as $k => $color) {
         $font_field = array('type' => 'color', 'label' => ucwords(str_replace('_', ' ', $color)), 'name' => $color, 'size' => 30);
         $input_field[] = $font_field;
         $default_color[$color] = '';
     }
     $fields_form = array('form' => array('legend' => array('title' => $this->l('Settings'), 'icon' => 'icon-cogs'), 'input' => $input_field, 'submit' => array('title' => $this->l('Save'))));
     $fields_value = array('id_option' => $id_option);
     $option = new Options($id_option);
     $optionStyle = OvicLayoutControl::getOptionStyle($option->theme, $option->alias);
     if ($optionStyle && is_array($optionStyle['font'])) {
         $default_font = $optionStyle['font'];
     }
     if ($optionStyle && is_array($optionStyle['color'])) {
         $default_color = $optionStyle['color'];
     }
     $fields_value = array_merge($fields_value, $default_font, $default_color);
     $id_shop = (int) $this->context->shop->id;
     $helper = new HelperForm();
     $helper->show_toolbar = false;
     $helper->table = $this->table;
     $lang = new Language((int) Configuration::get('PS_LANG_DEFAULT'));
     $helper->default_form_language = $lang->id;
     $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
     $this->fields_form = array();
     $helper->id = (int) Tools::getValue('id_carrier');
     $helper->identifier = $this->identifier;
     $helper->submit_action = 'submitMultiSave';
     $helper->currentIndex = self::$currentIndex;
     $helper->token = Tools::getAdminTokenLite('AdminLayoutBuilder');
     $helper->tpl_vars = array('fields_value' => $fields_value, 'languages' => $this->context->controller->getLanguages(), 'id_language' => $this->context->language->id);
     return $helper->generateForm(array($fields_form));
 }
 /**
  * process update hook, sortable
  */
 public function ajaxProcessupdateHook()
 {
     $result = array();
     $pagemeta = Tools::getValue('pagemeta');
     $datahooks = Tools::getValue('datahook');
     $datahooks = Tools::jsonDecode($datahooks, true);
     if ($datahooks && is_array($datahooks) && sizeof($datahooks) > 0) {
         foreach ($datahooks as $hookmodules) {
             $res = array();
             $hookColumn = key($hookmodules);
             $hookName = 'display' . ucfirst(trim($hookColumn)) . 'Column';
             $res['status'] = OvicLayoutControl::registerSidebarModule($pagemeta, $hookColumn, Tools::jsonEncode($hookmodules[$hookColumn]), $this->context->shop->id);
             $res['hookname'] = $hookName;
             $result[] = $res;
         }
     }
     Tools::clearCache();
     die(Tools::jsonEncode($result));
 }
 public function hookDisplayHeader($params)
 {
     $current_id_option = Configuration::get('OVIC_CURRENT_OPTION');
     $emptyOption = false;
     if (!$current_id_option || !Validate::isUnsignedId($current_id_option) || !OvicLayoutControl::isAvailablebyId($current_id_option)) {
         $id_lang_default = (int) Configuration::get('PS_LANG_DEFAULT');
         $sql = 'SELECT * FROM `' . _DB_PREFIX_ . 'ovic_options` o
                 LEFT JOIN `' . _DB_PREFIX_ . 'ovic_options_lang` ol ON (o.`id_option` = ol.`id_option`) WHERE `id_lang`=' . $id_lang_default;
         $options = Db::getInstance()->executeS($sql);
         if ($options && is_array($options) && sizeof($options) > 0) {
             foreach ($options as $option) {
                 $current_option = new Options($option['id_option'], $this->context->language->id);
                 Configuration::updateValue('OVIC_CURRENT_OPTION', $option['id_option']);
                 $current_id_option = $option['id_option'];
                 break;
             }
         } else {
             $emptyOption = true;
         }
     }
     if (!$emptyOption) {
         $current_option = new Options($current_id_option, $this->context->language->id);
         $selected_layout = Configuration::get('OVIC_LAYOUT_COLUMN');
         if (!$selected_layout || substr_count($current_option->column, $selected_layout) < 1) {
             if (strlen($current_option->column) > 0) {
                 $selected_layout = (int) substr($current_option->column, 0, 1);
                 Configuration::updateValue('OVIC_LAYOUT_COLUMN', $selected_layout);
                 $this->ProcessLayoutColumn();
             }
         }
     } else {
         $this->context->smarty->assign(array('emptyOption' => Tools::displayError('There is no Option, please add new Option from Layout Builder menu.')));
     }
     $output = '';
     global $smarty;
     //$linkfont =  Configuration::get('OVIC_FONT_LINK');
     //       $start = strpos($linkfont,'family');
     //       $linkfont = substr_replace($linkfont,'',0,$start+7);
     //       $start = strpos($linkfont,"'");
     //       $linkfont = substr_replace($linkfont,'',$start,strlen($linkfont));
     //       if (strpos($linkfont,":")>0){
     //            $start = strpos($linkfont,":");
     //            $linkfont = substr_replace($linkfont,'',$start,strlen($linkfont));
     //       }
     //       $font_name = str_replace('+',' ',$linkfont);
     //       $linkfont =  Configuration::get('OVIC_FONT_LINK');
     //       $start = strpos($linkfont,'http');
     //       $substr = substr_replace($linkfont,'',$start,strlen($linkfont)-$start);
     //       $start = strpos($linkfont,'://');
     //       $linkfont = substr_replace($linkfont,'',0,$start);
     //       $linkfont = $substr.(empty( $_SERVER['HTTPS'] ) ? 'http' : 'https') .$linkfont;
     //       $maincolor = Configuration::get('OVIC_MAIN_COLOR');
     //       $btncolor = Configuration::get('OVIC_BTN_COLOR');
     //       $btnHovercolor = Configuration::get('OVIC_BTN_HOVER_COLOR');
     //       $btntextcolor = Configuration::get('OVIC_BTN_TEXT_COLOR');
     //       $btntextHovercolor = Configuration::get('OVIC_BTN_TEXT_HOVER_COLOR');
     //       $grbacolor = $this->hex2rgba($maincolor);
     // $this->context->smarty->assign(array(
     //            'current_id_option' => Configuration::get('OVIC_CURRENT_OPTION'),
     //'linkfont' => $linkfont,
     //			'fontname' => $font_name,
     //			'maincolor' => $maincolor,
     //            'btncolor' => $btncolor,
     //            'btnHovercolor' => $btnHovercolor,
     //            'btntextcolor' => $btntextcolor,
     //            'btntextHovercolor' => $btntextHovercolor,
     //            'grbacolor' => $grbacolor
     //	      	));
     $current_id_option = Configuration::get('OVIC_CURRENT_OPTION');
     $smarty->assign(array('current_id_option' => $current_id_option, 'BEFORE_LOGO' => Hook::exec('displayBeforeLogo'), 'HOOK_HOME_TOP_COLUMN' => Hook::exec('displayHomeTopColumn'), 'HOME_BOTTOM_CONTENT' => Hook::exec('displayHomeBottomContent'), 'HOME_BOTTOM_COLUMN' => Hook::exec('displayHomeBottomColumn'), 'HOME_TOP_CONTENT' => Hook::exec('displayHomeTopContent'), 'BOTTOM_COLUMN' => Hook::exec('displayBottomColumn')));
     $this->context->controller->addCSS(_THEME_CSS_DIR_ . 'option' . $current_id_option . '.css', 'all');
     return $output;
 }
    function content_5627a0e39aed71_45878629($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/home/u481889647/public_html/tools/smarty/plugins/modifier.date_format.php';
        }
        $_smarty_tpl->tpl_vars['option_tpl'] = new Smarty_variable(OvicLayoutControl::getTemplateFile('smartblog_latest_news.tpl', 'smartbloghomelatestnews'), null, 0);
        if ($_smarty_tpl->tpl_vars['option_tpl']->value !== null) {
            ?>
    <?php 
            echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['option_tpl']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array(), 0);
            ?>

<?php 
        } else {
            ?>
	
	<div class="lg-margin2x hidden-sm hidden-xs"></div>
	<div class="md-margin2x visible-sm visible-xs"></div>
	<div class="carousel-container">
		<h2 class="carousel-title"><?php 
            echo smartyTranslate(array('s' => 'From the blog', 'mod' => 'smartbloghomelatestnews'), $_smarty_tpl);
            ?>
</h2>
		<div class="row">
			<?php 
            if (isset($_smarty_tpl->tpl_vars['view_data']->value) && !empty($_smarty_tpl->tpl_vars['view_data']->value)) {
                ?>
			<div class="owl-carousel from-theblog-carousel from-theblog-wide">
				<?php 
                $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);
                ?>
				<?php 
                $_smarty_tpl->tpl_vars['post'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['post']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['view_data']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['post']->key => $_smarty_tpl->tpl_vars['post']->value) {
                    $_smarty_tpl->tpl_vars['post']->_loop = true;
                    ?>
                    <?php 
                    $_smarty_tpl->tpl_vars["options"] = new Smarty_variable(null, null, 0);
                    ?>
                    <?php 
                    $_smarty_tpl->createLocalArrayVariable('options', null, 0);
                    $_smarty_tpl->tpl_vars['options']->value['id_post'] = $_smarty_tpl->tpl_vars['post']->value['id'];
                    ?>
                    <?php 
                    $_smarty_tpl->createLocalArrayVariable('options', null, 0);
                    $_smarty_tpl->tpl_vars['options']->value['slug'] = $_smarty_tpl->tpl_vars['post']->value['link_rewrite'];
                    ?>
                    <article class="article">
                        <div class="article-media-container"><a href="<?php 
                    echo smartblog::GetSmartBlogLink('smartblog_post', $_smarty_tpl->tpl_vars['options']->value);
                    ?>
"><img src="<?php 
                    echo $_smarty_tpl->tpl_vars['modules_dir']->value;
                    ?>
smartblog/images/<?php 
                    echo $_smarty_tpl->tpl_vars['post']->value['post_img'];
                    ?>
-home-default.jpg" class="img-responsive" alt="<?php 
                    echo $_smarty_tpl->tpl_vars['post']->value['title'];
                    ?>
"></a></div>
                        <div class="article-meta-box"><span class="article-icon article-date-icon"></span> <span class="meta-box-text"><?php 
                    echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['post']->value['date_added'], "%d %b");
                    ?>
</span></div>
                        <div class="article-meta-box article-meta-comments"><span class="article-icon article-comment-icon"></span> <a href="#" class="meta-box-text"><?php 
                    echo Blogcomment::getToltalComment($_smarty_tpl->tpl_vars['post']->value['id']);
                    ?>
 <?php 
                    echo smartyTranslate(array('s' => 'Com', 'mod' => 'smartbloghomelatestnews'), $_smarty_tpl);
                    ?>
</a></div>
                        <h3><a href="<?php 
                    echo smartblog::GetSmartBlogLink('smartblog_post', $_smarty_tpl->tpl_vars['options']->value);
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['post']->value['title'];
                    ?>
</a></h3>
                        <p><?php 
                    echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['post']->value['short_description'], 150, "..."), ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');
                    ?>
</p>
                        <a href="<?php 
                    echo smartblog::GetSmartBlogLink('smartblog_post', $_smarty_tpl->tpl_vars['options']->value);
                    ?>
" class="readmore" role="button"><?php 
                    echo smartyTranslate(array('s' => 'Read More', 'mod' => 'smartbloghomelatestnews'), $_smarty_tpl);
                    ?>
</a>
                     </article>
				<?php 
                }
                ?>
				
			</div>			
			<?php 
            }
            ?>
		</div>		
	</div>

	
<?php 
        }
    }
    function content_5627a0e3bf0742_26844389($_smarty_tpl)
    {
        $_smarty_tpl->tpl_vars['option_tpl'] = new Smarty_variable(OvicLayoutControl::getTemplateFile('footer.tpl'), null, 0);
        if ($_smarty_tpl->tpl_vars['option_tpl']->value !== null) {
            ?>
    <?php 
            echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['option_tpl']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

<?php 
        } else {
            ?>
			<?php 
            if (!isset($_smarty_tpl->tpl_vars['content_only']->value) || !$_smarty_tpl->tpl_vars['content_only']->value) {
                ?>
		        
				<?php 
                if (isset($_smarty_tpl->tpl_vars['HOOK_FOOTER']->value)) {
                    ?>
				
					<footer id="footer" class="footer5">
						<?php 
                    if ($_smarty_tpl->tpl_vars['page_name']->value == 'index') {
                        ?>
			                <?php 
                        if (isset($_smarty_tpl->tpl_vars['HOME_BOTTOM_COLUMN']->value) && trim($_smarty_tpl->tpl_vars['HOME_BOTTOM_COLUMN']->value)) {
                            ?>
								<div id="footer-top">
									<div class="container">
										<div class="row"><?php 
                            echo $_smarty_tpl->tpl_vars['HOME_BOTTOM_COLUMN']->value;
                            ?>
</div>
									</div>								
								</div>
			                <?php 
                        }
                        ?>
						<?php 
                    }
                    ?>
						<div id="footer-inner">
							<div class="container">
								<div class="row"><?php 
                    echo $_smarty_tpl->tpl_vars['BOTTOM_COLUMN']->value;
                    ?>
</div>							
							</div>							
						</div>
						<div id="footer-bottom-container">
							<div class="container">
								<div class="row">
									<div class="col-xs-12">
										<div id="footer-bottom" class="clearfix">
											<?php 
                    echo $_smarty_tpl->tpl_vars['HOOK_FOOTER']->value;
                    ?>
					
										</div>
									</div>								
								</div>							
							</div>
						</div>					
					</footer>				
				<?php 
                }
                ?>
			
				<a href="#header" id="scroll-top" class="color2 fixed" title="Go to top">Top</a>
			<?php 
            }
            ?>
		</div>
	<?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./global.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

	</body>
</html>
<?php 
        }
    }
    function content_5627a0e3b5e790_96378248($_smarty_tpl)
    {
        if (!is_callable('smarty_function_implode')) {
            include '/home/u481889647/public_html/tools/smarty/plugins/function.implode.php';
        }
        $_smarty_tpl->tpl_vars['option_tpl'] = new Smarty_variable(OvicLayoutControl::getTemplateFile('header.tpl'), null, 0);
        if ($_smarty_tpl->tpl_vars['option_tpl']->value !== null) {
            ?>
    <?php 
            echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['option_tpl']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

<?php 
        } else {
            ?>
<!DOCTYPE HTML>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 " lang="<?php 
            echo $_smarty_tpl->tpl_vars['lang_iso']->value;
            ?>
"><![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="<?php 
            echo $_smarty_tpl->tpl_vars['lang_iso']->value;
            ?>
"><![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="<?php 
            echo $_smarty_tpl->tpl_vars['lang_iso']->value;
            ?>
"><![endif]-->
<!--[if gt IE 8]> <html class="no-js ie9" lang="<?php 
            echo $_smarty_tpl->tpl_vars['lang_iso']->value;
            ?>
"><![endif]-->
<html lang="<?php 
            echo $_smarty_tpl->tpl_vars['lang_iso']->value;
            ?>
">
	<head>
		<meta charset="utf-8" />
		<title><?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['meta_title']->value, ENT_QUOTES, 'UTF-8', true);
            ?>
</title>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['meta_description']->value) && $_smarty_tpl->tpl_vars['meta_description']->value) {
                ?>
		<meta name="description" content="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['meta_description']->value, ENT_QUOTES, 'UTF-8', true);
                ?>
" />
		<?php 
            }
            ?>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['meta_keywords']->value) && $_smarty_tpl->tpl_vars['meta_keywords']->value) {
                ?>
		<meta name="keywords" content="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['meta_keywords']->value, ENT_QUOTES, 'UTF-8', true);
                ?>
" />
		<?php 
            }
            ?>
		<meta name="generator" content="PrestaShop" />
		<meta name="robots" content="<?php 
            if (isset($_smarty_tpl->tpl_vars['nobots']->value)) {
                ?>
no<?php 
            }
            ?>
index,<?php 
            if (isset($_smarty_tpl->tpl_vars['nofollow']->value) && $_smarty_tpl->tpl_vars['nofollow']->value) {
                ?>
no<?php 
            }
            ?>
follow" />
		<meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<link rel="icon" type="image/vnd.microsoft.icon" href="<?php 
            echo $_smarty_tpl->tpl_vars['favicon_url']->value;
            ?>
?<?php 
            echo $_smarty_tpl->tpl_vars['img_update_time']->value;
            ?>
" />
		<link rel="shortcut icon" type="image/x-icon" href="<?php 
            echo $_smarty_tpl->tpl_vars['favicon_url']->value;
            ?>
?<?php 
            echo $_smarty_tpl->tpl_vars['img_update_time']->value;
            ?>
" />
		<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Judson:200,300,400,400italic,500,600,700" type="text/css">
		<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Code+Pro:200,300,400,400italic,500,600,700" type="text/css">
		<link id="Open_Sans_secondary-css" href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css' />
		<?php 
            $_smarty_tpl->tpl_vars["globalcss"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['tpl_uri']->value . "css/global.css", null, 0);
            ?>
		<link rel="stylesheet" href="<?php 
            echo $_smarty_tpl->tpl_vars['globalcss']->value;
            ?>
" type="text/css" media="all" />    		
		<?php 
            if (isset($_smarty_tpl->tpl_vars['css_files']->value)) {
                ?>
			<?php 
                $_smarty_tpl->tpl_vars['media'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['media']->_loop = false;
                $_smarty_tpl->tpl_vars['css_uri'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['css_files']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['media']->key => $_smarty_tpl->tpl_vars['media']->value) {
                    $_smarty_tpl->tpl_vars['media']->_loop = true;
                    $_smarty_tpl->tpl_vars['css_uri']->value = $_smarty_tpl->tpl_vars['media']->key;
                    ?>
				<?php 
                    if ($_smarty_tpl->tpl_vars['css_uri']->value != $_smarty_tpl->tpl_vars['globalcss']->value) {
                        ?>
				<link rel="stylesheet" href="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['css_uri']->value, ENT_QUOTES, 'UTF-8', true);
                        ?>
" type="text/css" media="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['media']->value, ENT_QUOTES, 'UTF-8', true);
                        ?>
" />
				<?php 
                    }
                    ?>
			<?php 
                }
                ?>
		<?php 
            }
            ?>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['js_defer']->value) && !$_smarty_tpl->tpl_vars['js_defer']->value && isset($_smarty_tpl->tpl_vars['js_files']->value) && isset($_smarty_tpl->tpl_vars['js_def']->value)) {
                ?>
			<?php 
                echo $_smarty_tpl->tpl_vars['js_def']->value;
                ?>

			<?php 
                $_smarty_tpl->tpl_vars['js_uri'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['js_uri']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['js_files']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['js_uri']->key => $_smarty_tpl->tpl_vars['js_uri']->value) {
                    $_smarty_tpl->tpl_vars['js_uri']->_loop = true;
                    ?>
			<script type="text/javascript" src="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['js_uri']->value, ENT_QUOTES, 'UTF-8', true);
                    ?>
"></script>
			<?php 
                }
                ?>
		<?php 
            }
            ?>
		<!-- <script type="text/javascript" src="<?php 
            echo $_smarty_tpl->tpl_vars['js_dir']->value;
            echo $_smarty_tpl->tpl_vars['current_dir']->value;
            ?>
.js"></script> -->       
		<?php 
            echo $_smarty_tpl->tpl_vars['HOOK_HEADER']->value;
            ?>

		<link rel="stylesheet" type="text/css" href="<?php 
            echo $_smarty_tpl->tpl_vars['css_dir']->value;
            ?>
animate.min.css" />
		<link rel="stylesheet" href="http<?php 
            if (Tools::usingSecureMode()) {
                ?>
s<?php 
            }
            ?>
://fonts.googleapis.com/css?family=Open+Sans:300,600&amp;subset=latin,latin-ext" type="text/css" media="all" />
		<!--[if IE 8]>
		<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
		<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
		<![endif]-->
		<script type="text/javascript">
		//<![CDATA[
		//if (typeof EM == 'undefined') EM = {};
		//]]	
		</script>
	</head>
	<body<?php 
            if (isset($_smarty_tpl->tpl_vars['page_name']->value)) {
                ?>
 id="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['page_name']->value, ENT_QUOTES, 'UTF-8', true);
                ?>
"<?php 
            }
            ?>
 class="<?php 
            if (isset($_smarty_tpl->tpl_vars['body_classes']->value) && count($_smarty_tpl->tpl_vars['body_classes']->value)) {
                ?>
 <?php 
                echo smarty_function_implode(array('value' => $_smarty_tpl->tpl_vars['body_classes']->value, 'separator' => ' '), $_smarty_tpl);
            }
            if ($_smarty_tpl->tpl_vars['hide_left_column']->value) {
                ?>
 hide-left-column<?php 
            }
            if ($_smarty_tpl->tpl_vars['hide_right_column']->value) {
                ?>
 hide-right-column<?php 
            }
            if (isset($_smarty_tpl->tpl_vars['content_only']->value) && $_smarty_tpl->tpl_vars['content_only']->value) {
                ?>
 content_only<?php 
            }
            ?>
 lang_<?php 
            echo $_smarty_tpl->tpl_vars['lang_iso']->value;
            ?>
 <?php 
            echo $_smarty_tpl->tpl_vars['current_dir']->value;
            ?>
 content-type wide granada-theme <?php 
            if ($_smarty_tpl->tpl_vars['page_name']->value == 'index') {
                ?>
index-page<?php 
            } else {
                ?>
orther-page<?php 
            }
            ?>
">
	<?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('tplUri' => $_smarty_tpl->tpl_vars['tpl_uri']->value), $_smarty_tpl);
            ?>

    <div id="wrapper" style="overflow: hidden">
    <?php 
            if (!isset($_smarty_tpl->tpl_vars['content_only']->value) || !$_smarty_tpl->tpl_vars['content_only']->value) {
                ?>
		<?php 
                if (isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value) && $_smarty_tpl->tpl_vars['restricted_country_mode']->value) {
                    ?>
			<div id="restricted-country">
				<p><?php 
                    echo smartyTranslate(array('s' => 'You cannot place a new order from your country.'), $_smarty_tpl);
                    ?>
 <span class="bold"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['geolocation_country']->value, ENT_QUOTES, 'UTF-8', true);
                    ?>
</span></p>
			</div>
		<?php 
                }
                ?>
        <?php 
                if ($_smarty_tpl->tpl_vars['page_name']->value == 'index' || $_smarty_tpl->tpl_vars['page_name']->value == 'product') {
                    $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'min_item'));
                    $_block_repeat = true;
                    echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'min_item'), null, $_smarty_tpl, $_block_repeat);
                    while ($_block_repeat) {
                        ob_start();
                        echo smartyTranslate(array('s' => 'Please select at least one product', 'js' => 1), $_smarty_tpl);
                        $_block_content = ob_get_clean();
                        $_block_repeat = false;
                        echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'min_item'), $_block_content, $_smarty_tpl, $_block_repeat);
                    }
                    array_pop($_smarty_tpl->smarty->_tag_stack);
                }
                ?>
        <?php 
                if (($_smarty_tpl->tpl_vars['page_name']->value == 'index' || $_smarty_tpl->tpl_vars['page_name']->value == 'product') && isset($_smarty_tpl->tpl_vars['comparator_max_item']->value)) {
                    ?>
        <?php 
                    $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'max_item'));
                    $_block_repeat = true;
                    echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'max_item'), null, $_smarty_tpl, $_block_repeat);
                    while ($_block_repeat) {
                        ob_start();
                        echo smartyTranslate(array('s' => 'You cannot add more than %d product(s) to the product comparison', 'sprintf' => $_smarty_tpl->tpl_vars['comparator_max_item']->value, 'js' => 1), $_smarty_tpl);
                        $_block_content = ob_get_clean();
                        $_block_repeat = false;
                        echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'max_item'), $_block_content, $_smarty_tpl, $_block_repeat);
                    }
                    array_pop($_smarty_tpl->smarty->_tag_stack);
                    ?>

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

        <?php 
                }
                ?>
        <?php 
                if ($_smarty_tpl->tpl_vars['page_name']->value != 'category' && $_smarty_tpl->tpl_vars['page_name']->value != 'best-sales' && $_smarty_tpl->tpl_vars['page_name']->value != 'search' && $_smarty_tpl->tpl_vars['page_name']->value != 'manufacturer' && $_smarty_tpl->tpl_vars['page_name']->value != 'supplier' && $_smarty_tpl->tpl_vars['page_name']->value != 'prices-drop' && $_smarty_tpl->tpl_vars['page_name']->value != 'new-products' && isset($_smarty_tpl->tpl_vars['compared_products']->value)) {
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('comparedProductsIds' => $_smarty_tpl->tpl_vars['compared_products']->value), $_smarty_tpl);
                }
                ?>
			<div id="sticky-header" class="header4 dark boxed-menu" data-fixed="fixed"></div>
    		<header id="header" class="header4 boxed-menu dark">
               <div id="header-top">
                  <div class="container clearfix">
                  	<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayNav"), $_smarty_tpl);
                ?>
                     
                  </div>
               </div>
               <div class="container header-inside">
                  <div class="row">
                     <div class="col-sm-12 clearfix">
                        <div class="logo-container">
                           <h1 class="logo clearfix"><a href="<?php 
                echo $_smarty_tpl->tpl_vars['base_dir']->value;
                ?>
" title="<?php 
                echo $_smarty_tpl->tpl_vars['shop_name']->value;
                ?>
 - <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['meta_description']->value, ENT_QUOTES, 'UTF-8', true);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['shop_name']->value;
                ?>
</a></h1>
                        </div>
                        <div class="right-side clearfix">
                        	<?php 
                if (isset($_smarty_tpl->tpl_vars['HOOK_TOP']->value)) {
                    echo $_smarty_tpl->tpl_vars['HOOK_TOP']->value;
                }
                ?>
	                        	
                        </div>
                     </div>
                  </div>
               </div>
               <div id="nav-wrapper">	               
	               <div class="container nav-wrapper" data-clone="sticky">
	                  <div class="row">
	                     <div class="col-sm-12">
	                        <a href="#" class="header-search-btn visible-xs" title="Search"></a>
	                        <?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayTopColumn"), $_smarty_tpl);
                ?>

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