<?php /* Smarty version Smarty3-RC3, created on 2016-01-24 14:59:27
         compiled from "/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/messy-0.4.2/template.tpl" */ ?>
<?php /*%%SmartyHeaderCode:49223566056a4d8bf4caa38-00954031%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1d673e43b349eb8f3325fa62898b6799dcf9693e' => 
    array (
      0 => '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/messy-0.4.2/template.tpl',
      1 => 1453643829,
    ),
  ),
  'nocache_hash' => '49223566056a4d8bf4caa38-00954031',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_escape')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/modifier.escape.php';
if (!is_callable('smarty_modifier_replace')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/modifier.replace.php';
if (!is_callable('smarty_function_googleWebFontsAPI')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/function.googleWebFontsAPI.php';
if (!is_callable('smarty_function_pageHeader')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/function.pageHeader.php';
if (!is_callable('smarty_function_messClasses')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/messy-0.4.2/plugins/function.messClasses.php';
if (!is_callable('smarty_function_messStyles')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/messy-0.4.2/plugins/function.messStyles.php';
if (!is_callable('smarty_function_bertaLink')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/function.bertaLink.php';
if (!is_callable('smarty_function_responsiveImage')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/function.responsiveImage.php';
if (!is_callable('smarty_function_bertaTarget')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/function.bertaTarget.php';
if (!is_callable('smarty_function_entriesListClasses')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/function.entriesListClasses.php';
if (!is_callable('smarty_function_entryClasses')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/function.entryClasses.php';
if (!is_callable('smarty_function_customEntryHeader')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/messy-0.4.2/plugins/function.customEntryHeader.php';
if (!is_callable('smarty_function_entryGallery')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/function.entryGallery.php';
if (!is_callable('smarty_modifier_toPrice')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/messy-0.4.2/plugins/modifier.toPrice.php';
if (!is_callable('smarty_modifier_toCartAttributes')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/messy-0.4.2/plugins/modifier.toCartAttributes.php';
if (!is_callable('smarty_function_entryFooter')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/function.entryFooter.php';
if (!is_callable('smarty_function_bannerPos')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/messy-0.4.2/plugins/function.bannerPos.php';
if (!is_callable('smarty_function_gridView')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/messy-0.4.2/plugins/function.gridView.php';
if (!is_callable('smarty_function_bertaCopyright')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/function.bertaCopyright.php';
if (!is_callable('smarty_function_videoTutorials')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/function.videoTutorials.php';
if (!is_callable('smarty_function_intercomScript')) include '/home/gjzavrct/domains/siemlasseel.be/public_html/t/prikbord/_templates/_plugins/function.intercomScript.php';
?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['responsive']=='yes'){?><meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"><?php }?>
    <meta name="keywords" content="<?php if ($_smarty_tpl->getVariable('berta')->value['section']['seoKeywords']){?><?php echo smarty_modifier_escape(strip_tags($_smarty_tpl->getVariable('berta')->value['section']['seoKeywords']));?>
<?php }else{ ?><?php echo smarty_modifier_escape(strip_tags($_smarty_tpl->getVariable('berta')->value['settings']['texts']['metaKeywords']));?>
<?php }?>">
    <meta name="description" content="<?php if ($_smarty_tpl->getVariable('berta')->value['section']['seoDescription']){?><?php echo smarty_modifier_escape(strip_tags($_smarty_tpl->getVariable('berta')->value['section']['seoDescription']));?>
<?php }else{ ?><?php echo smarty_modifier_escape(strip_tags($_smarty_tpl->getVariable('berta')->value['settings']['texts']['metaDescription']));?>
<?php }?>">
    <meta name="author" content="<?php echo $_smarty_tpl->getVariable('berta')->value['settings']['texts']['ownerName'];?>
">
    <?php if ($_smarty_tpl->getVariable('berta')->value['options']['NOINDEX']){?><meta name="robots" content="noindex, nofollow"><?php }?>
    <?php echo html_entity_decode($_smarty_tpl->getVariable('berta')->value['settings']['settings']['googleSiteVerification']);?>

    <title><?php if ($_smarty_tpl->getVariable('berta')->value['section']['seoTitle']){?><?php echo smarty_modifier_escape(strip_tags($_smarty_tpl->getVariable('berta')->value['section']['seoTitle']));?>
<?php }else{ ?><?php echo smarty_modifier_escape(strip_tags($_smarty_tpl->getVariable('berta')->value['pageTitle']));?>
<?php }?></title>

    <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['favicon']){?>
    <link rel="SHORTCUT ICON" href="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['favicon'];?>
">
    <?php }else{ ?>
    <link rel="SHORTCUT ICON" href="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['TEMPLATES_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['templateName'];?>
/favicon.ico">
    <?php }?>
    <?php if (($_smarty_tpl->getVariable('berta')->value['section']['type']=='shopping_cart'&&$_smarty_tpl->getVariable('berta')->value['environment']=='engine')||$_smarty_tpl->getVariable('berta')->value['section']['type']!='shopping_cart'){?>
    <?php echo $_smarty_tpl->getVariable('berta')->value['scripts'];?>

    <?php echo $_smarty_tpl->getVariable('berta')->value['css'];?>

        <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['responsive']=='yes'){?>
        <style type="text/css">
            #pageEntries .xEntry {
                padding: <?php if ($_smarty_tpl->getVariable('berta')->value['section']['entryPadding']){?><?php echo $_smarty_tpl->getVariable('berta')->value['section']['entryPadding'];?>
<?php }else{ ?><?php echo $_smarty_tpl->getVariable('berta')->value['sectionTypes']['default']['params']['entryPadding']['default'];?>
<?php }?>;
                <?php if ($_smarty_tpl->getVariable('berta')->value['section']['entryMaxWidth']){?>
                    max-width: <?php echo $_smarty_tpl->getVariable('berta')->value['section']['entryMaxWidth'];?>
;
                <?php }?>
            }
        </style>
    <?php }?>
    <?php if ($_smarty_tpl->getVariable('berta')->value['shop_enabled']==true){?>
        <link rel="stylesheet" href="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['SITE_ABS_ROOT'];?>
_plugin_shop/css/shop.css.php?<?php echo $_smarty_tpl->getVariable('berta')->value['options']['int_version'];?>
<?php if ($_smarty_tpl->getVariable('berta')->value['options']['MULTISITE']){?>&amp;site=<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MULTISITE'];?>
<?php }?>" type="text/css">
    <?php }?>

    <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['css']['customCSS']){?>
        <style type="text/css">
        <?php echo smarty_modifier_replace(html_entity_decode($_smarty_tpl->getVariable('berta')->value['settings']['css']['customCSS']),'<br />',"\n");?>

        </style>
    <?php }?>
    <?php echo smarty_function_googleWebFontsAPI(array(),$_smarty_tpl->smarty,$_smarty_tpl);?>

    <?php }?>
    <script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['TEMPLATES_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['templateName'];?>
/mess.js?<?php echo $_smarty_tpl->getVariable('berta')->value['options']['int_version'];?>
"></script>
    <script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['TEMPLATES_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['templateName'];?>
/mooMasonry.js"></script>

    <?php if ($_smarty_tpl->getVariable('berta')->value['shop_enabled']==true){?>
        <script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['SITE_ABS_ROOT'];?>
_plugin_shop/js/shop.js?<?php echo $_smarty_tpl->getVariable('berta')->value['options']['int_version'];?>
"></script>
    <?php }?>
</head>

<body class="xContent-<?php echo $_smarty_tpl->getVariable('berta')->value['section']['name'];?>
<?php if ($_smarty_tpl->getVariable('berta')->value['tagName']){?> xSubmenu-<?php echo $_smarty_tpl->getVariable('berta')->value['tagName'];?>
<?php }?><?php if ($_smarty_tpl->getVariable('berta')->value['environment']=='engine'){?> page-xMySite<?php }?>">
    <?php if (($_smarty_tpl->getVariable('berta')->value['section']['type']=='shopping_cart'&&$_smarty_tpl->getVariable('berta')->value['environment']=='engine')||$_smarty_tpl->getVariable('berta')->value['section']['type']!='shopping_cart'){?>

                <?php $_smarty_tpl->tpl_vars['bgAttr'] = new Smarty_variable($_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['@attributes'], null, null);?>
        <?php $_smarty_tpl->tpl_vars['bgFileAttr'] = new Smarty_variable($_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']['@attributes'], null, null);?>
        <div id="xBackgroundContainer">
            <div id="xBackground" class="xBgDataAutoplay-<?php echo $_smarty_tpl->getVariable('bgAttr')->value['autoplay'];?>
 xBgDataImageSize-<?php echo $_smarty_tpl->getVariable('bgAttr')->value['image_size'];?>
 xBgDataFading-<?php if ($_smarty_tpl->getVariable('berta')->value['environment']=='site'){?><?php echo $_smarty_tpl->getVariable('bgAttr')->value['fade_content'];?>
<?php }?> xBgDataAnimation-<?php echo $_smarty_tpl->getVariable('bgAttr')->value['animation'];?>
" <?php if ($_smarty_tpl->getVariable('berta')->value['section']['sectionBgColor']){?>style="background-color: <?php echo $_smarty_tpl->getVariable('berta')->value['section']['sectionBgColor'];?>
"<?php }?>>
                <div id="xBackgroundLoader"></div>
                                <?php if ($_smarty_tpl->getVariable('bgFileAttr')->value&&$_smarty_tpl->getVariable('bgFileAttr')->value['type']=='image'&&!($_COOKIE['_berta_grid_view']&&$_smarty_tpl->getVariable('berta')->value['section']['type']=='grid')){?>

                    <div class="visual-list">
                    <?php if ($_smarty_tpl->getVariable('bgFileAttr')->value['type']=='image'){?>
                        <?php if ($_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']['value']){?>
                            <textarea <?php if ($_COOKIE['_berta_grid_img_link']&&$_COOKIE['_berta_grid_img_link']==$_smarty_tpl->getVariable('bgFileAttr')->value['src']){?>class="sel"<?php }elseif(!$_COOKIE['_berta_grid_img_link']){?>class="sel"<?php }?>><?php echo $_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']['value'];?>
</textarea>
                            <input type="hidden" width="<?php echo $_smarty_tpl->getVariable('bgFileAttr')->value['width'];?>
" height="<?php echo $_smarty_tpl->getVariable('bgFileAttr')->value['height'];?>
" src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['section']['mediafolder'];?>
/_bg_<?php echo $_smarty_tpl->getVariable('bgFileAttr')->value['src'];?>
" />
                        <?php }else{ ?>
                            <input type="hidden" width="<?php echo $_smarty_tpl->getVariable('bgFileAttr')->value['width'];?>
" height="<?php echo $_smarty_tpl->getVariable('bgFileAttr')->value['height'];?>
" src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['section']['mediafolder'];?>
/_bg_<?php echo $_smarty_tpl->getVariable('bgFileAttr')->value['src'];?>
" <?php if ($_COOKIE['_berta_grid_img_link']&&$_COOKIE['_berta_grid_img_link']==$_smarty_tpl->getVariable('bgFileAttr')->value['src']){?>class="sel"<?php }elseif(!$_COOKIE['_berta_grid_img_link']){?>class="sel"<?php }?> />
                        <?php }?>
                    <?php }?>
                    </div>

                    <?php if ($_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']['value']){?>
                        <div class="visual-image">
                        </div>
                        <div class="visual-caption" style="<?php if ($_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color']){?>background: rgb(<?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color'];?>
); background: rgba(<?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color'];?>
,0.5);<?php }?><?php if ($_smarty_tpl->getVariable('bgAttr')->value['caption_color']){?> color: <?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_color'];?>
<?php }?>">
                            <div class="caption-content"><?php echo $_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']['value'];?>
</div>
                        </div>
                    <?php }else{ ?>
                        <div class="visual-image">
                            <img width="<?php echo $_smarty_tpl->getVariable('bgFileAttr')->value['width'];?>
" height="<?php echo $_smarty_tpl->getVariable('bgFileAttr')->value['height'];?>
" src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['section']['mediafolder'];?>
/_bg_<?php echo $_smarty_tpl->getVariable('bgFileAttr')->value['src'];?>
" class="bg-element" />
                        </div>
                        <div class="visual-caption" style="<?php if ($_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color']){?>background: rgb(<?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color'];?>
); background: rgba(<?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color'];?>
,0.5);<?php }?><?php if ($_smarty_tpl->getVariable('bgAttr')->value['caption_color']){?> color: <?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_color'];?>
<?php }?>">
                        </div>
                    <?php }?>

                                <?php }elseif($_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']&&!$_smarty_tpl->getVariable('bgFileAttr')->value&&!($_COOKIE['_berta_grid_view']&&$_smarty_tpl->getVariable('berta')->value['section']['type']=='grid')){?>

                                        <?php if ($_COOKIE['_berta_grid_img_link']){?>
                        <div class="visual-list">
                        <?php  $_smarty_tpl->tpl_vars['fVal'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['fKey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['fVal']->index=-1;
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['fVal']->key => $_smarty_tpl->tpl_vars['fVal']->value){
 $_smarty_tpl->tpl_vars['fKey']->value = $_smarty_tpl->tpl_vars['fVal']->key;
 $_smarty_tpl->tpl_vars['fVal']->index++;
 $_smarty_tpl->tpl_vars['fVal']->first = $_smarty_tpl->tpl_vars['fVal']->index === 0;
?>
                            <?php if ($_smarty_tpl->tpl_vars['fVal']->value['@attributes']['type']=='image'){?>
                                <?php if ($_smarty_tpl->tpl_vars['fVal']->value['value']){?>
                                    <textarea><?php echo $_smarty_tpl->tpl_vars['fVal']->value['value'];?>
</textarea>
                                    <input type="hidden" width="<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['width'];?>
" height="<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['height'];?>
" src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['section']['mediafolder'];?>
/_bg_<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['src'];?>
" <?php if ($_COOKIE['_berta_grid_img_link']&&$_COOKIE['_berta_grid_img_link']==$_smarty_tpl->tpl_vars['fVal']->value['@attributes']['src']){?>class="sel"<?php }elseif(!$_COOKIE['_berta_grid_img_link']&&$_smarty_tpl->tpl_vars['fVal']->first){?>class="sel"<?php }?> />
                                <?php }else{ ?>
                                    <input type="hidden" width="<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['width'];?>
" height="<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['height'];?>
" src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['section']['mediafolder'];?>
/_bg_<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['src'];?>
" <?php if ($_COOKIE['_berta_grid_img_link']&&$_COOKIE['_berta_grid_img_link']==$_smarty_tpl->tpl_vars['fVal']->value['@attributes']['src']){?>class="sel"<?php }elseif(!$_COOKIE['_berta_grid_img_link']&&$_smarty_tpl->tpl_vars['fVal']->first){?>class="sel"<?php }?> />
                                <?php }?>
                            <?php }?>
                        <?php }} ?>
                        </div>

                        <?php  $_smarty_tpl->tpl_vars['fVal'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['fKey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['fVal']->index=-1;
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['fVal']->key => $_smarty_tpl->tpl_vars['fVal']->value){
 $_smarty_tpl->tpl_vars['fKey']->value = $_smarty_tpl->tpl_vars['fVal']->key;
 $_smarty_tpl->tpl_vars['fVal']->index++;
 $_smarty_tpl->tpl_vars['fVal']->first = $_smarty_tpl->tpl_vars['fVal']->index === 0;
?>
                            <?php if ($_COOKIE['_berta_grid_img_link']==$_smarty_tpl->tpl_vars['fVal']->value['@attributes']['src']){?>
                                <div class="visual-image">
                                    <img width="<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['width'];?>
" height="<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['height'];?>
" src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['section']['mediafolder'];?>
/_bg_<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['src'];?>
" class="bg-element" />
                                </div>
                                <div class="visual-caption" style="<?php if ($_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color']){?>background: rgb(<?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color'];?>
); background: rgba(<?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color'];?>
,0.5);<?php }?><?php if ($_smarty_tpl->getVariable('bgAttr')->value['caption_color']){?> color: <?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_color'];?>
<?php }?>">
                                </div>
                            <?php }?>
                        <?php }} ?>

                                        <?php }else{ ?>
                        <div class="visual-list">
                        <?php  $_smarty_tpl->tpl_vars['fVal'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['fKey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['fVal']->index=-1;
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['fVal']->key => $_smarty_tpl->tpl_vars['fVal']->value){
 $_smarty_tpl->tpl_vars['fKey']->value = $_smarty_tpl->tpl_vars['fVal']->key;
 $_smarty_tpl->tpl_vars['fVal']->index++;
 $_smarty_tpl->tpl_vars['fVal']->first = $_smarty_tpl->tpl_vars['fVal']->index === 0;
?>
                        <?php if ($_smarty_tpl->tpl_vars['fVal']->value['@attributes']['type']=='image'){?>
                            <?php if ($_smarty_tpl->tpl_vars['fVal']->value['value']){?>
                                <textarea <?php if ($_COOKIE['_berta_grid_img_link']&&$_COOKIE['_berta_grid_img_link']==$_smarty_tpl->tpl_vars['fVal']->value['@attributes']['src']){?>class="sel"<?php }elseif(!$_COOKIE['_berta_grid_img_link']&&$_smarty_tpl->tpl_vars['fVal']->first){?>class="sel"<?php }?>><?php echo $_smarty_tpl->tpl_vars['fVal']->value['value'];?>
</textarea>
                                <input type="hidden" width="<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['width'];?>
" height="<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['height'];?>
" src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['section']['mediafolder'];?>
/_bg_<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['src'];?>
" />
                            <?php }else{ ?>
                                <input type="hidden" width="<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['width'];?>
" height="<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['height'];?>
" src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['section']['mediafolder'];?>
/_bg_<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['src'];?>
" <?php if ($_COOKIE['_berta_grid_img_link']&&$_COOKIE['_berta_grid_img_link']==$_smarty_tpl->tpl_vars['fVal']->value['@attributes']['src']){?>class="sel"<?php }elseif(!$_COOKIE['_berta_grid_img_link']&&$_smarty_tpl->tpl_vars['fVal']->first){?>class="sel"<?php }?> />
                            <?php }?>
                        <?php }?>
                        <?php }} ?>
                        </div>

                        <?php  $_smarty_tpl->tpl_vars['fVal'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['fKey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['fVal']->index=-1;
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['fVal']->key => $_smarty_tpl->tpl_vars['fVal']->value){
 $_smarty_tpl->tpl_vars['fKey']->value = $_smarty_tpl->tpl_vars['fVal']->key;
 $_smarty_tpl->tpl_vars['fVal']->index++;
 $_smarty_tpl->tpl_vars['fVal']->first = $_smarty_tpl->tpl_vars['fVal']->index === 0;
?>
                            <?php if ($_smarty_tpl->tpl_vars['fVal']->first&&$_smarty_tpl->tpl_vars['fVal']->value['@attributes']['type']=='image'){?>
                                <?php if ($_smarty_tpl->tpl_vars['fVal']->value['value']){?>
                                    <div class="visual-image">
                                    </div>
                                    <div class="visual-caption" style="<?php if ($_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color']){?>background: rgb(<?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color'];?>
); background: rgba(<?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color'];?>
,0.5);<?php }?><?php if ($_smarty_tpl->getVariable('bgAttr')->value['caption_color']){?> color: <?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_color'];?>
<?php }?>">
                                        <div class="caption-content"><?php echo $_smarty_tpl->tpl_vars['fVal']->value['value'];?>
</div>
                                    </div>
                                <?php }else{ ?>
                                    <div class="visual-image">
                                        <img width="<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['width'];?>
" height="<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['height'];?>
" src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['section']['mediafolder'];?>
/_bg_<?php echo $_smarty_tpl->tpl_vars['fVal']->value['@attributes']['src'];?>
" class="bg-element" />
                                    </div>
                                    <div class="visual-caption" style="<?php if ($_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color']){?>background: rgb(<?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color'];?>
); background: rgba(<?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_bg_color'];?>
,0.5);<?php }?><?php if ($_smarty_tpl->getVariable('bgAttr')->value['caption_color']){?> color: <?php echo $_smarty_tpl->getVariable('bgAttr')->value['caption_color'];?>
<?php }?>">
                                    </div>
                                <?php }?>
                            <?php }?>
                        <?php }} ?>
                    <?php }?>

                <?php }?>

                                <?php if (!$_smarty_tpl->getVariable('berta')->value['options']['MOBILE_DEVICE']&&(count($_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file'])>1||$_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']['value'])&&!($_smarty_tpl->getVariable('berta')->value['section']['type']=='grid'&&$_COOKIE['_berta_grid_view'])){?>
                    <div id="xBackgroundLeft"></div>
                    <div id="xBackgroundRight"></div>
                    <div id="xBackgroundLeftCounter"<?php if ($_smarty_tpl->getVariable('bgAttr')->value['hide_navigation']=='yes'||$_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['responsive']=='yes'){?> class="xHidden"<?php }?>><div class="counterContent"></div></div>
                    <div id="xBackgroundRightCounter"<?php if ($_smarty_tpl->getVariable('bgAttr')->value['hide_navigation']=='yes'||$_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['responsive']=='yes'){?> class="xHidden"<?php }?>><div class="counterContent"></div></div>
                <?php }?>
            </div>

                        <?php if ($_smarty_tpl->getVariable('berta')->value['options']['MOBILE_DEVICE']&&(count($_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file'])>1||$_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']['value'])&&!($_smarty_tpl->getVariable('berta')->value['section']['type']=='grid'&&$_COOKIE['_berta_grid_view'])){?>
                <div id="xBackgroundPrevious"<?php if ($_smarty_tpl->getVariable('bgAttr')->value['hide_navigation']=='yes'){?> class="xHidden"<?php }?>><a href="#"><span>previous</span></a></div>
                <div id="xBackgroundNext"<?php if ($_smarty_tpl->getVariable('bgAttr')->value['hide_navigation']=='yes'){?> class="xHidden"<?php }?>><a href="#"><span>next</span></a></div>
            <?php }?>
        </div>

        <?php if ($_smarty_tpl->getVariable('berta')->value['section']['backgroundVideoEmbed']&&strlen(trim($_smarty_tpl->getVariable('berta')->value['section']['backgroundVideoEmbed']))>0){?>
            <div id="xBackgroundVideoEmbed" class="<?php if ($_smarty_tpl->getVariable('berta')->value['section']['backgroundVideoRatio']){?><?php echo $_smarty_tpl->getVariable('berta')->value['section']['backgroundVideoRatio'];?>
<?php }else{ ?>fillWindow<?php }?>"><?php echo htmlspecialchars_decode($_smarty_tpl->getVariable('berta')->value['section']['backgroundVideoEmbed']);?>
</div>
        <?php }?>

                <?php if ($_smarty_tpl->getVariable('berta')->value['environment']=='engine'&&$_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['showGrid']=='yes'&&$_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridStep']>1){?>
            <div id="xGridBackground" style="background-size: <?php echo $_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridStep']*5;?>
px <?php echo $_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridStep']*5;?>
px, <?php echo $_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridStep']*5;?>
px <?php echo $_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridStep']*5;?>
px, <?php echo $_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridStep'];?>
px <?php echo $_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridStep'];?>
px, <?php echo $_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridStep'];?>
px <?php echo $_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridStep'];?>
px; background-image: linear-gradient(rgba(<?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridColor']=='white'){?>255, 255, 255<?php }else{ ?>0, 0, 0<?php }?>, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(<?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridColor']=='white'){?>255, 255, 255<?php }else{ ?>0, 0, 0<?php }?>, 0.5) 1px, transparent 0px), linear-gradient(rgba(<?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridColor']=='white'){?>255, 255, 255<?php }else{ ?>0, 0, 0<?php }?>, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(<?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['gridColor']=='white'){?>255, 255, 255<?php }else{ ?>0, 0, 0<?php }?>, 0.2) 1px, transparent 0px);"></div>
        <?php }?>

        <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['background']['backgroundAttachment']=='fill'&&$_smarty_tpl->getVariable('berta')->value['settings']['background']['backgroundImageEnabled']=='yes'&&$_smarty_tpl->getVariable('berta')->value['settings']['background']['backgroundImage']!=''){?>
            <div id="xFilledBackground" class="xPosition-<?php echo str_replace(' ','_',$_smarty_tpl->getVariable('berta')->value['settings']['background']['backgroundPosition']);?>
">
                <img src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['settings']['background']['backgroundImage'];?>
" />
            </div>
        <?php }?>

                <?php if ($_smarty_tpl->getVariable('berta')->value['shop_enabled']==true){?>
        	<?php $_smarty_tpl->tpl_vars["shoppingCartSection"] = new Smarty_variable('', null, null);?>
            <?php  $_smarty_tpl->tpl_vars['section'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['sName'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('berta')->value['publishedSections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['section']->key => $_smarty_tpl->tpl_vars['section']->value){
 $_smarty_tpl->tpl_vars['sName']->value = $_smarty_tpl->tpl_vars['section']->key;
?>
                <?php if ($_smarty_tpl->tpl_vars['section']->value['type']=='shopping_cart'){?>
                        <?php $_smarty_tpl->tpl_vars["shoppingCartSection"] = new Smarty_variable($_smarty_tpl->getVariable('berta')->value['publishedSections'][$_smarty_tpl->getVariable('sName')->value], null, null);?>
                <?php }?>
            <?php }} ?>
        <?php }?>

                <div id="allContainer">

                <?php echo smarty_function_pageHeader(array(),$_smarty_tpl->smarty,$_smarty_tpl);?>

    <?php }?>

        <?php if ($_smarty_tpl->getVariable('berta')->value['section']['type']=='shopping_cart'){?>
        <?php if ($_smarty_tpl->getVariable('berta')->value['environment']=='engine'){?>
        <div style="height: 50px"></div>
        <?php }?>
        <?php $_template = new Smarty_Internal_Template("../../_plugin_shop/_includes/inc.shopping_cart.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
        </div>     <?php }else{ ?>

            <div id="contentContainer" class="<?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['centered']=='yes'){?>xCentered <?php }?><?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['responsive']=='yes'){?>xResponsive<?php }?>">

                                <?php if ($_smarty_tpl->getVariable('berta')->value['shop_enabled']==true){?>

                    <?php if ($_smarty_tpl->getVariable('shoppingCartSection')->value){?>
                        <div id="shoppingCart" class="<?php echo smarty_function_messClasses(array('property'=>'shoppingCartXY'),$_smarty_tpl->smarty,$_smarty_tpl);?>
"<?php if ($_smarty_tpl->getVariable('shoppingCartXY')->value){?> style="<?php echo smarty_function_messStyles(array('xy'=>$_smarty_tpl->getVariable('shoppingCartXY')->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
"<?php }?>>
                            <?php if ($_smarty_tpl->getVariable('berta')->value['environment']=='engine'){?>
                                <a href="<?php echo smarty_function_bertaLink(array('section'=>$_smarty_tpl->getVariable('shoppingCartSection')->value['name']),$_smarty_tpl->smarty,$_smarty_tpl);?>
" id="xShoppingCart"><span class="title"><?php if ($_smarty_tpl->getVariable('berta')->value['settings']['shop']['cartImage']){?><img src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['settings']['shop']['cartImage'];?>
" alt="<?php echo $_smarty_tpl->getVariable('shoppingCartSection')->value['title'];?>
" title="<?php echo $_smarty_tpl->getVariable('shoppingCartSection')->value['title'];?>
" /><?php }else{ ?><?php echo $_smarty_tpl->getVariable('shoppingCartSection')->value['title'];?>
<?php }?></span><span class="numItemsContainer hidden"> (<span class="numItems">0</span>)</span></a>
                            <?php }else{ ?>
                                <a href="javascript:openShoppingCart('<?php echo smarty_function_bertaLink(array('section'=>$_smarty_tpl->getVariable('shoppingCartSection')->value['name']),$_smarty_tpl->smarty,$_smarty_tpl);?>
');"><span class="title"><?php if ($_smarty_tpl->getVariable('berta')->value['settings']['shop']['cartImage']){?><img src="<?php echo $_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'];?>
<?php echo $_smarty_tpl->getVariable('berta')->value['settings']['shop']['cartImage'];?>
" alt="<?php echo $_smarty_tpl->getVariable('shoppingCartSection')->value['title'];?>
" title="<?php echo $_smarty_tpl->getVariable('shoppingCartSection')->value['title'];?>
" /><?php }else{ ?><?php echo $_smarty_tpl->getVariable('shoppingCartSection')->value['title'];?>
<?php }?></span><span class="numItemsContainer hidden"> (<span class="numItems">0</span>)</span></a>
                            <?php }?>
                        </div>
                    <?php }?>
                <?php }?>

                                <?php if (count($_smarty_tpl->getVariable('berta')->value['options']['MULTISITES'])>1){?>
                    <ul id="multisites" class="<?php echo smarty_function_messClasses(array('property'=>'multisitesXY'),$_smarty_tpl->smarty,$_smarty_tpl);?>
" style="<?php echo smarty_function_messStyles(array('xy'=>$_smarty_tpl->getVariable('multisitesXY')->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
">
                        <?php  $_smarty_tpl->tpl_vars['site'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['siteName'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('berta')->value['options']['MULTISITES']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['site']->key => $_smarty_tpl->tpl_vars['site']->value){
 $_smarty_tpl->tpl_vars['siteName']->value = $_smarty_tpl->tpl_vars['site']->key;
?>
                            <?php if ($_smarty_tpl->getVariable('berta')->value['environment']=='engine'||$_smarty_tpl->getVariable('berta')->value['options']['MULTISITE']!=$_smarty_tpl->tpl_vars['siteName']->value||($_smarty_tpl->tpl_vars['siteName']->value=='0'&&$_smarty_tpl->getVariable('berta')->value['options']['MULTISITE']!='')){?>
                                <li<?php if ($_smarty_tpl->getVariable('berta')->value['options']['MULTISITE']===$_smarty_tpl->tpl_vars['siteName']->value||($_smarty_tpl->tpl_vars['siteName']->value=='0'&&$_smarty_tpl->getVariable('berta')->value['options']['MULTISITE']=='')){?> class="selected"<?php }?>><a href="<?php echo smarty_function_bertaLink(array('site'=>$_smarty_tpl->tpl_vars['siteName']->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
"><?php if ($_smarty_tpl->tpl_vars['site']->value['title']['value']!=''){?><?php echo $_smarty_tpl->tpl_vars['site']->value['title']['value'];?>
<?php }else{ ?><?php if ($_smarty_tpl->tpl_vars['siteName']->value=='0'){?>Main site<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['siteName']->value;?>
<?php }?><?php }?></a></li>
                            <?php }?>
                        <?php }} ?>
                    </ul>
                <?php }?>

                <?php if ($_smarty_tpl->getVariable('berta')->value['environment']=='engine'&&$_smarty_tpl->getVariable('berta')->value['sections']){?>
                <div id="xBgEditorPanelContainer"></div>
                <div id="xBgEditorPanelTrigContainer">
                    <a href="#" id="xBgEditorPanelTrig" title="edit background gallery"><span>background settings</span></a>
                </div>
                <?php }?>

                <!-- PAGE HEADING -->
                <?php if (($_smarty_tpl->getVariable('berta')->value['environment']=='site'&&$_smarty_tpl->getVariable('berta')->value['settings']['navigation']['landingSectionPageHeadingVisible']=='yes')||$_smarty_tpl->getVariable('berta')->value['environment']=='engine'||($_smarty_tpl->getVariable('berta')->value['environment']=='site'&&$_smarty_tpl->getVariable('berta')->value['settings']['navigation']['landingSectionPageHeadingVisible']=='no'&&$_smarty_tpl->getVariable('berta')->value['sectionName']!=key($_smarty_tpl->getVariable('berta')->value['sections']))){?>
                    <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['heading']['image']){?>
                        <h1 class="<?php echo smarty_function_messClasses(array('property'=>'siteHeadingXY'),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php if ($_smarty_tpl->getVariable('berta')->value['settings']['heading']['position']=='fixed'){?> xFixed<?php }?>" style="<?php echo smarty_function_messStyles(array('xy'=>$_smarty_tpl->getVariable('siteHeadingXY')->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
"><a href="<?php echo smarty_function_bertaLink(array(),$_smarty_tpl->smarty,$_smarty_tpl);?>
"><?php echo smarty_function_responsiveImage(array('image'=>$_smarty_tpl->getVariable('berta')->value['settings']['heading'],'prefix'=>'image','path'=>$_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT'],'alt'=>$_smarty_tpl->getVariable('berta')->value['settings']['texts']['pageTitle']),$_smarty_tpl->smarty,$_smarty_tpl);?>
</a></h1>
                    <?php }else{ ?>
                        <h1 class="<?php echo smarty_function_messClasses(array('property'=>'siteHeadingXY'),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php if ($_smarty_tpl->getVariable('berta')->value['settings']['heading']['position']=='fixed'){?> xFixed<?php }?>" style="<?php echo smarty_function_messStyles(array('xy'=>$_smarty_tpl->getVariable('siteHeadingXY')->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
">
                            <span class="xEditable xProperty-siteHeading">
                            <?php if ($_smarty_tpl->getVariable('berta')->value['environment']=="engine"){?>
                                <?php echo $_smarty_tpl->getVariable('siteHeading')->value;?>

                            <?php }else{ ?>
                                <a href="<?php echo smarty_function_bertaLink(array(),$_smarty_tpl->smarty,$_smarty_tpl);?>
"><?php echo $_smarty_tpl->getVariable('siteHeading')->value;?>
</a>
                            <?php }?>
                            </span>
                        </h1>
                    <?php }?>
                <?php }?>

                <!-- MENU -->
                <?php if (count($_smarty_tpl->getVariable('berta')->value['publishedSections'])>0&&(($_smarty_tpl->getVariable('berta')->value['environment']=='site'&&$_smarty_tpl->getVariable('berta')->value['settings']['navigation']['landingSectionMenuVisible']=='yes')||$_smarty_tpl->getVariable('berta')->value['environment']=='engine'||($_smarty_tpl->getVariable('berta')->value['environment']=='site'&&$_smarty_tpl->getVariable('berta')->value['settings']['navigation']['landingSectionMenuVisible']=='no'&&$_smarty_tpl->getVariable('berta')->value['sectionName']!=key($_smarty_tpl->getVariable('berta')->value['sections'])))){?>
                    <nav>
                        <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['responsive']=='yes'){?>
                            <a href="#" id="menuToggle"><span></span></a>
                        <?php }?>
                        <ul>
                            <?php $_smarty_tpl->tpl_vars["currentSectionName"] = new Smarty_variable($_smarty_tpl->getVariable('berta')->value['sectionName'], null, null);?>
                            <?php  $_smarty_tpl->tpl_vars['section'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['sName'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('berta')->value['publishedSections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['section']->key => $_smarty_tpl->tpl_vars['section']->value){
 $_smarty_tpl->tpl_vars['sName']->value = $_smarty_tpl->tpl_vars['section']->key;
?>
                                <?php if ($_smarty_tpl->tpl_vars['section']->value['type']!='shopping_cart'){?>
                                <li class="menuItem xSection-<?php echo $_smarty_tpl->tpl_vars['sName']->value;?>
 <?php echo smarty_function_messClasses(array('property'=>'positionXY'),$_smarty_tpl->smarty,$_smarty_tpl);?>
 <?php if ($_smarty_tpl->getVariable('currentSectionName')->value==$_smarty_tpl->tpl_vars['section']->value['name']){?>menuItemSelected<?php }?><?php if ($_smarty_tpl->getVariable('berta')->value['settings']['menu']['position']=='fixed'){?> xFixed<?php }?>" style="<?php echo smarty_function_messStyles(array('xy'=>$_smarty_tpl->tpl_vars['section']->value['positionXY']),$_smarty_tpl->smarty,$_smarty_tpl);?>
">
                                    <a href="<?php echo smarty_function_bertaLink(array('section'=>$_smarty_tpl->tpl_vars['sName']->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
" target="<?php echo smarty_function_bertaTarget(array('section'=>$_smarty_tpl->tpl_vars['sName']->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
"><?php echo $_smarty_tpl->tpl_vars['section']->value['title'];?>
</a>

                                    <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['tagsMenu']['hidden']=='no'&&(!empty($_smarty_tpl->getVariable('berta')->value['tags'][$_smarty_tpl->getVariable('sName')->value])&&($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['responsive']=='yes'||$_smarty_tpl->getVariable('berta')->value['settings']['tagsMenu']['alwaysOpen']=='yes'||$_smarty_tpl->getVariable('berta')->value['sectionName']==$_smarty_tpl->tpl_vars['sName']->value))){?>
                                        <ul class="subMenu xSection-<?php echo $_smarty_tpl->tpl_vars['sName']->value;?>
<?php if (count($_smarty_tpl->getVariable('berta')->value['tags'][$_smarty_tpl->getVariable('sName')->value])>1&&$_smarty_tpl->getVariable('berta')->value['environment']=='engine'){?> xAllowOrdering<?php }?>">
                                            <?php  $_smarty_tpl->tpl_vars['tag'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['tName'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('berta')->value['tags'][$_smarty_tpl->getVariable('sName')->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['tag']->key => $_smarty_tpl->tpl_vars['tag']->value){
 $_smarty_tpl->tpl_vars['tName']->value = $_smarty_tpl->tpl_vars['tag']->key;
?>
                                                <li class="xTag-<?php echo $_smarty_tpl->tpl_vars['tName']->value;?>
<?php if ($_smarty_tpl->getVariable('berta')->value['tagName']==$_smarty_tpl->tpl_vars['tName']->value&&$_smarty_tpl->getVariable('currentSectionName')->value==$_smarty_tpl->tpl_vars['section']->value['name']){?> selected<?php }?>">
                                                    <a class="handle" href="<?php echo smarty_function_bertaLink(array('section'=>$_smarty_tpl->tpl_vars['sName']->value,'tag'=>$_smarty_tpl->tpl_vars['tName']->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
" target="<?php echo smarty_function_bertaTarget(array('section'=>$_smarty_tpl->tpl_vars['sName']->value,'tag'=>$_smarty_tpl->tpl_vars['tName']->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
"><?php echo $_smarty_tpl->tpl_vars['tag']->value['title'];?>
</a>
                                                </li>
                                            <?php }} ?>
                                        </ul>
                                    <?php }?>
                                </li>
                                <?php }?>
                            <?php }} ?>
                        </ul>
                    </nav>
                <?php }?>


                                <?php if (!($_COOKIE['_berta_grid_view']&&$_smarty_tpl->getVariable('berta')->value['section']['type']=='grid')){?>
                <div id="pageEntries" class="<?php echo smarty_function_entriesListClasses(array(),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['responsive']!='yes'){?> xNoEntryOrdering<?php }else{ ?> <?php if (intval($_smarty_tpl->getVariable('berta')->value['section']['columns'])>1){?>columns-<?php echo intval($_smarty_tpl->getVariable('berta')->value['section']['columns']);?>
<?php }?><?php }?> clearfix">

                                        <?php  $_smarty_tpl->tpl_vars['entry'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('entries')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['entry']->key => $_smarty_tpl->tpl_vars['entry']->value){
?>

                        <div class="<?php echo smarty_function_entryClasses(array('entry'=>$_smarty_tpl->tpl_vars['entry']->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
 <?php echo smarty_function_messClasses(array('property'=>'positionXY'),$_smarty_tpl->smarty,$_smarty_tpl);?>
 xShopMessyEntry" style="<?php echo smarty_function_messStyles(array('xy'=>$_smarty_tpl->tpl_vars['entry']->value['positionXY'],'entry'=>$_smarty_tpl->tpl_vars['entry']->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['responsive']!='yes'){?><?php if ($_smarty_tpl->tpl_vars['entry']->value['width']){?> width:<?php echo $_smarty_tpl->tpl_vars['entry']->value['width'];?>
;<?php }elseif(strlen(trim($_smarty_tpl->getVariable('berta')->value['settings']['shop']['entryWidth']))>0&&$_smarty_tpl->getVariable('berta')->value['section']['type']=='shop'){?>width: <?php echo $_smarty_tpl->getVariable('berta')->value['settings']['shop']['entryWidth'];?>
px;<?php }?><?php }?>">


                                                        <?php $_smarty_tpl->tpl_vars['isshopentry'] = new Smarty_variable(0, null, null);?>
                            <?php if ($_smarty_tpl->getVariable('berta')->value['section']['type']=='shop'&&$_smarty_tpl->getVariable('berta')->value['shop_enabled']==true){?>
                                <?php $_smarty_tpl->tpl_vars['isshopentry'] = new Smarty_variable(1, null, null);?>
                            <?php }?>
                            <?php echo smarty_function_customEntryHeader(array('entry'=>$_smarty_tpl->tpl_vars['entry']->value,'ishopentry'=>$_smarty_tpl->getVariable('isshopentry')->value),$_smarty_tpl->smarty,$_smarty_tpl);?>


                                                        <?php echo smarty_function_entryGallery(array('entry'=>$_smarty_tpl->tpl_vars['entry']->value),$_smarty_tpl->smarty,$_smarty_tpl);?>



                            <?php if (($_smarty_tpl->getVariable('berta')->value['environment']=='engine'||!empty($_smarty_tpl->tpl_vars['entry']->value['cartTitle']))&&$_smarty_tpl->getVariable('berta')->value['section']['type']=='shop'&&$_smarty_tpl->getVariable('berta')->value['shop_enabled']==true){?>
                                <h2><span class="xEditable xProperty-cartTitle xCaption-item-name cCartTitle"><?php echo $_smarty_tpl->tpl_vars['entry']->value['cartTitle'];?>
</span></h2>
                            <?php }?>


                            <?php if ($_smarty_tpl->getVariable('berta')->value['environment']=='engine'||!empty($_smarty_tpl->tpl_vars['entry']->value['description'])){?>
                                <div class="entryText xEditableMCE xProperty-description"><?php echo $_smarty_tpl->tpl_vars['entry']->value['description'];?>
</div>
                            <?php }?>



                            <?php if ($_smarty_tpl->getVariable('berta')->value['section']['type']=='shop'&&$_smarty_tpl->getVariable('berta')->value['shop_enabled']==true){?>
                                <div class="addToCart" data-uniqid="<?php echo $_smarty_tpl->tpl_vars['entry']->value['uniqid'];?>
">
                                    <?php if ($_smarty_tpl->getVariable('berta')->value['environment']=='engine'){?>
                                        <div class="cartPrice xEditableRC xProperty-cartPrice xCaption-price xFormatModifier-toPrice" title="<?php echo $_smarty_tpl->tpl_vars['entry']->value['cartPrice'];?>
"><?php echo smarty_modifier_toPrice($_smarty_tpl->tpl_vars['entry']->value['cartPrice']);?>
</div>
                                    <?php }else{ ?>
                                        <div class="cartPrice" title="<?php echo $_smarty_tpl->tpl_vars['entry']->value['cartPrice'];?>
" data-weight="<?php echo intval($_smarty_tpl->tpl_vars['entry']->value['weight']);?>
"><?php echo smarty_modifier_toPrice($_smarty_tpl->tpl_vars['entry']->value['cartPrice']);?>
</div>
                                    <?php }?>

                                    <br class="clear">

                                    <div class="cartAttributes<?php if (!$_smarty_tpl->tpl_vars['entry']->value['cartAttributes']){?> hidden<?php }?>"><?php echo smarty_modifier_toCartAttributes($_smarty_tpl->tpl_vars['entry']->value['cartAttributes']);?>
</div>
                                    <span class="aele<?php if (empty($_smarty_tpl->tpl_vars['entry']->value['cartPrice'])||$_smarty_tpl->getVariable('berta')->value['environment']=='site'){?> hidden<?php }?>"><span><?php echo $_smarty_tpl->getVariable('berta')->value['settings']['shop']['addToBasket'];?>
</span></span>
                                    <span class="addedToCart hidden"><span></span> <?php echo $_smarty_tpl->getVariable('berta')->value['settings']['shop']['addedToBasket'];?>
</span>
                                    <span class="outOfStock hidden"><?php echo $_smarty_tpl->getVariable('berta')->value['settings']['shop']['outOfStock'];?>
</span>

                                </div>
                            <?php }?>


                                                        <?php echo smarty_function_entryFooter(array('entry'=>$_smarty_tpl->tpl_vars['entry']->value),$_smarty_tpl->smarty,$_smarty_tpl);?>

                        </div>

                    <?php }} else { ?>
                    <?php } ?>
                </div>
                <?php }?>

                <?php if (($_smarty_tpl->getVariable('berta')->value['environment']=='site'&&$_smarty_tpl->getVariable('berta')->value['settings']['navigation']['landingSectionMenuVisible']=='yes')||$_smarty_tpl->getVariable('berta')->value['environment']=='engine'||($_smarty_tpl->getVariable('berta')->value['environment']=='site'&&$_smarty_tpl->getVariable('berta')->value['settings']['navigation']['landingSectionMenuVisible']=='no'&&$_smarty_tpl->getVariable('berta')->value['sectionName']!=key($_smarty_tpl->getVariable('berta')->value['sections']))){?>
                    <div id="additionalText" class="<?php echo smarty_function_messClasses(array('property'=>'additionalTextXY'),$_smarty_tpl->smarty,$_smarty_tpl);?>
" style="<?php echo smarty_function_messStyles(array('xy'=>$_smarty_tpl->getVariable('additionalTextXY')->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
">
                        <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['socialMediaButtons']['socialMediaLocation']=='additionalText'&&$_smarty_tpl->getVariable('berta')->value['settings']['socialMediaButtons']['socialMediaHTML']){?>
                            <?php echo smarty_modifier_replace(html_entity_decode($_smarty_tpl->getVariable('berta')->value['settings']['socialMediaButtons']['socialMediaHTML']),'<br />',"\n");?>

                        <?php }else{ ?>
                            <div class="xEditableMCESimple xProperty-additionalText xCaption-additional-text">
                                <?php echo $_smarty_tpl->getVariable('additionalText')->value;?>

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

                <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['banners']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['name'] = 'banners';
$_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['loop'] = is_array($_loop=10) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['banners']['total']);
?>
                    <?php $_smarty_tpl->tpl_vars["setting_name_image"] = new Smarty_variable("banner".($_smarty_tpl->getVariable('smarty')->value['section']['banners']['iteration'])."_image", null, null);?>
                    <?php $_smarty_tpl->tpl_vars["setting_name_link"] = new Smarty_variable("banner".($_smarty_tpl->getVariable('smarty')->value['section']['banners']['iteration'])."_link", null, null);?>
                    <?php $_smarty_tpl->tpl_vars["setting_pos_name"] = new Smarty_variable("banner".($_smarty_tpl->getVariable('smarty')->value['section']['banners']['iteration'])."XY", null, null);?>

                    <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['banners'][$_smarty_tpl->getVariable('setting_name_image')->value]){?>
                        <div class="floating-banner banner-<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['banners']['iteration'];?>
<?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['responsive']!='yes'){?> xEditableDragXY xProperty-<?php echo $_smarty_tpl->getVariable('setting_pos_name')->value;?>
<?php }?>"<?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['responsive']!='yes'){?> style="<?php echo smarty_function_bannerPos(array('xy_name'=>$_smarty_tpl->getVariable('setting_pos_name')->value),$_smarty_tpl->smarty,$_smarty_tpl);?>
"<?php }?>>
                            <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['pageLayout']['responsive']!='yes'){?>
                                <div class="xHandle"></div>
                            <?php }?>
                            <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['banners'][$_smarty_tpl->getVariable('setting_name_link')->value]){?>
                                <a href="<?php echo $_smarty_tpl->getVariable('berta')->value['settings']['banners'][$_smarty_tpl->getVariable('setting_name_link')->value];?>
" target="_blank">
                                    <?php echo smarty_function_responsiveImage(array('image'=>$_smarty_tpl->getVariable('berta')->value['settings']['banners'],'prefix'=>$_smarty_tpl->getVariable('setting_name_image')->value,'path'=>$_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT']),$_smarty_tpl->smarty,$_smarty_tpl);?>

                                </a>
                            <?php }else{ ?>
                                <?php echo smarty_function_responsiveImage(array('image'=>$_smarty_tpl->getVariable('berta')->value['settings']['banners'],'prefix'=>$_smarty_tpl->getVariable('setting_name_image')->value,'path'=>$_smarty_tpl->getVariable('berta')->value['options']['MEDIA_ABS_ROOT']),$_smarty_tpl->smarty,$_smarty_tpl);?>

                            <?php }?>
                        </div>

                    <?php }?>
                <?php endfor; endif; ?>

            </div>

                        <?php if ($_smarty_tpl->getVariable('berta')->value['section']['type']=='grid'&&$_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']&&!$_smarty_tpl->getVariable('berta')->value['section']['mediaCacheData']['file']['@attributes']&&!$_COOKIE['_berta_grid_view']){?>
            <div id="xGridViewTriggerContainer" <?php if ($_smarty_tpl->getVariable('berta')->value['environment']=='engine'){?>style="right: 44px"<?php }elseif($_smarty_tpl->getVariable('berta')->value['environment']=='site'&&$_smarty_tpl->getVariable('shoppingCartSection')->value){?> style="top: 20px;"<?php }?>>
                <a id="xGridViewTrigger" href="<?php echo smarty_function_bertaLink(array('section'=>$_smarty_tpl->getVariable('berta')->value['sectionName'],'tag'=>$_smarty_tpl->getVariable('berta')->value['tagName']),$_smarty_tpl->smarty,$_smarty_tpl);?>
"><span>thumbnails</span></a>
            </div>
            <?php }?>

        </div>

                <?php if (($_smarty_tpl->getVariable('berta')->value['section']['type']=='grid'&&$_COOKIE['_berta_grid_view'])){?>
        <div id="xGridView">
            <?php echo smarty_function_gridView(array('section'=>$_smarty_tpl->getVariable('berta')->value['section'],'tag'=>$_smarty_tpl->getVariable('berta')->value['tagName']),$_smarty_tpl->smarty,$_smarty_tpl);?>

        </div>
        <?php }?>

        <div id="bottom" class="clearfix">
            <div id="additionalFooterText" class="<?php if (!($_smarty_tpl->getVariable('berta')->value['settings']['socialMediaButtons']['socialMediaLocation']=='footer'&&$_smarty_tpl->getVariable('berta')->value['settings']['socialMediaButtons']['socialMediaHTML'])){?>xEditableMCESimple <?php }?>xProperty-additionalFooterText xCaption-additional-footer-text clearfix">
                <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['socialMediaButtons']['socialMediaLocation']=='footer'&&$_smarty_tpl->getVariable('berta')->value['settings']['socialMediaButtons']['socialMediaHTML']){?>
                    <?php echo smarty_modifier_replace(html_entity_decode($_smarty_tpl->getVariable('berta')->value['settings']['socialMediaButtons']['socialMediaHTML']),'<br />',"\n");?>

                <?php }else{ ?>
                    <?php echo $_smarty_tpl->getVariable('additionalFooterText')->value;?>

                <?php }?>
            </div>

            <?php if (!($_smarty_tpl->getVariable('berta')->value['settings']['settings']['hideBertaCopyright']=='yes'&&$_smarty_tpl->getVariable('berta')->value['hostingPlan']>1)){?>
                <p id="bertaCopyright"><?php echo smarty_function_bertaCopyright(array(),$_smarty_tpl->smarty,$_smarty_tpl);?>
</p>
            <?php }?>
            <p id="userCopyright" class="xEditableTA xProperty-siteFooter"><?php echo $_smarty_tpl->getVariable('siteFooter')->value;?>
</p>
        </div>

        <?php if ($_smarty_tpl->getVariable('berta')->value['settings']['settings']['showTutorialVideos']=='yes'&&!$_COOKIE['_berta_videos_hidden']){?><?php echo smarty_function_videoTutorials(array(),$_smarty_tpl->smarty,$_smarty_tpl);?>
<?php }?>

        <?php echo smarty_function_intercomScript(array(),$_smarty_tpl->smarty,$_smarty_tpl);?>


        <?php $_template = new Smarty_Internal_Template("../_includes/inc.js_include.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>

        <?php $_template = new Smarty_Internal_Template("../_includes/inc.counter.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
    <?php }?>

    <?php if ($_smarty_tpl->getVariable('berta')->value['msg']){?>
        <script type="text/javascript">alert('<?php echo $_smarty_tpl->getVariable('berta')->value['msg'];?>
');</script>
    <?php }?>
</body>
</html>