LANG, 'date' => date("Y"), 'site_title' => $site_title, // 'site_title' => title.($site_title?' - '.$site_title:''), 'site_description' => site_description, 'site_keywords' => site_keywords, 'ip' => get_ip_address(), 'favicon' => 'favicon.ico', 'topmenu' => $topmenu, 'mobile_menu' => $mobile_menu, 'bottom_menu' => $footer_menu, 'footer_menu' => $footer_menu, 'ACTIVE' => $ACTIVE, 'header_bg' => $header_bg, 'keywords' => $FUNC->unpackData($ACTIVE['keywords'],LANG), 'description' => $FUNC->unpackData($ACTIVE['description'],LANG), 'metatags' => $FUNC->unpackData($ACTIVE['metatags'],LANG), ); $tpl->addVar($DESIGN, 'variables', $variables); $tpl->addVar($DESIGN, '_CONF', $_CONF); $tpl->addVar($DESIGN, 'ACTIVE', $ACTIVE); $cms_lang = $row['lang']; $registry = Registry::getInstance(); function limitWord($value, $limit = 100, $end = '...') { if (mb_strwidth($value, 'UTF-8') <= $limit) return $value; return rtrim(mb_strimwidth($value, 0, $limit, '', 'UTF-8')).$end; } ### reading structure and building left,central and right blocks $structure = array(); $structure = unserialize($ACTIVE['structure']); foreach ($structure as $k=>$v) { BuildBlock($k,$v); } print $tpl->parseIntoString($DESIGN , $_CONF['templater']); $CONN->_close(); list($msec,$sec)=explode(chr(32),microtime()); ?>