public function executeMain() { $user = ""; $group = ""; $path = ""; $menuManager = new MenuManager(); $sections = $menuManager->getSections(); $this->page->addVar('menu', $sections); if ($this->getApplication()->getRequest()->hasPostValues()) { if ($this->getApplication()->getRequest()->getPostData("user")) { $user = $this->getApplication()->getRequest()->getPostData("user"); } if ($this->getApplication()->getRequest()->getPostData("group")) { $group = $this->getApplication()->getRequest()->getPostData("group"); } if ($this->getApplication()->getRequest()->getPostData("path")) { $path = $this->getApplication()->getRequest()->getPostData("path"); } $searchManager = new SearchManager(); $result = $searchManager->getStatistics($user, $group, $path); $rowNumber = $searchManager->getRowNumber(); $this->page->addVar('result', $result); $this->page->addVar('rowNumber', $rowNumber); $this->page->addVar('page', 'result'); } else { $this->page->addVar('page', 'form'); } $this->page->addVar('fsname', $menuManager->getfsname()); }
public function executeMain() { $others_count = 0; $others_size = 0; $top_count = array(); $top_size = array(); $menu = array(); $menuManager = new MenuManager(); $sections = $menuManager->getSections(); $manager_name = ucfirst($this->module) . 'Manager'; $manager = new $manager_name(); $result = $manager->getStat(); $count = $result->getCount(); $size = $result->getSize(); array_multisort($count, SORT_NUMERIC, SORT_DESC); array_multisort($size, SORT_NUMERIC, SORT_DESC); //Create final arrays $i = 0; foreach ($count as $key => $value) { if ($i < LIMIT) { $result_count[$key] = $value; } else { $others_count += $value; } $i++; } $result_count['Others'] = $others_count; $i = 0; foreach ($size as $key => $value) { if ($i < LIMIT) { $result_size[$key] = $value; } else { $others_size += $value; } $i++; } $result_size['Others'] = $others_size; $this->page->addVar('menu', $menu); $this->page->addVar('count', $result_count); $this->page->addVar('size', $result_size); $this->page->addVar('statistics', $result); $this->page->addVar('index', $this->module); }
public function executeMain() { $others_count = 0; $others_size = 0; $top_count = array(); $top_size = array(); $menuManager = new MenuManager(); $sections = $menuManager->getSections(); $userManager = new UserManager(); $result = $userManager->getStat(); $count = $result->getCount(); $blks = $result->getBlocks(); array_multisort($count, SORT_NUMERIC, SORT_DESC); array_multisort($blks, SORT_NUMERIC, SORT_DESC); //Create array for the count section (top10) $i = 0; foreach ($count as $key => $value) { if ($i < LIMIT) { $top_count[$key] = $value; } else { $others_count += $value; } $i++; } $top_count['Others'] = $others_count; //Create array for the volume section (top10) $i = 0; foreach ($blks as $key => $value) { if ($i < LIMIT) { $top_size[$key] = $value * DEV_BSIZE; } else { $others_size += $value * DEV_BSIZE; } $i++; } $top_size['Others'] = $others_size; $this->page->addVar('menu', $sections); $this->page->addVar('top_count', $top_count); $this->page->addVar('top_size', $top_size); $this->page->addVar('statistics', $result); $this->page->addVar('fsname', $userManager->getfsname()); }
public function executeMain() { // $others_count = 0; // $others_size = 0; // $top_count = array(); // $top_size = array(); $menuManager = new MenuManager(); $sections = $menuManager->getSections(); $sizeManager = new SizeManager(); $result = $sizeManager->getSizeProfile(); $sz_ranges = array(); global $sz_range_name; $i = 0; foreach ($result as $k => $val) { $sz_ranges[$sz_range_name[$i]] = $val; $i++; } $users = $sizeManager->getSizeProfileUsers(); $this->page->addVar('menu', $sections); $this->page->addVar('sz_ranges', $sz_ranges); $this->page->addVar('users', $users); $this->page->addVar('fsname', $sizeManager->getfsname()); }
function initQuery($params) { $tables = MenuManager::getTables(); $page = $tables['admin_pages']['columns']; $this->addSelectField($page['id'], 'id'); $this->addSelectField($page['identifier'], 'identifier'); $this->addSelectField($page['classname'], 'classname'); $this->addSelectField($page['title'], 'title'); $this->addSelectField($page['heading'], 'heading'); $this->addSelectField($page['help_identifier'], 'help_identifier'); $this->addSelectField($page['item_value'], 'item_value'); $this->addSelectField($page['onload_js'], 'onload_js'); $this->addSelectField($page['parent'], 'parent'); $this->WhereValue($page['identifier'], DB_EQ, $params['identifier']); }
function showVertical($p) { $parent_id = (int) $p['parent_id']; if ($parent_id) { $where[] = "parent_id ='{$parent_id}'"; } else { $where[] = "parent_id is null"; } $where[] = "type_id = " . MenuManager::TYPE_VERTICAL; $where[] = "is_show = 1"; $where = implode(" AND ", $where); $List = MenuManager::getInstance()->getAll($where, "weight asc"); $this->__assign("List", $List); $this->__assign("isParent", (bool) $parent_id); return $this->__display("vertical.tpl"); }
function executeDelete() { $request = fvRequest::getInstance(); if (!($ex = MenuManager::getInstance()->getByPk($request->getRequestParameter('id')))) { $this->setFlash("Ошибка при удалении.", self::$FLASH_ERROR); } else { $ex->delete(); $this->setFlash("Данные успешно удалены", self::$FLASH_SUCCESS); } fvResponce::getInstance()->setHeader('redirect', fvSite::$fvConfig->get('dir_web_root') . $request->getRequestParameter('module') . "/"); if (fvRequest::getInstance()->isXmlHttpRequest()) { return self::$FV_NO_LAYOULT; } else { return self::$FV_OK; } }
<?php /* @var $this ViewArticleController */ /* @var $article Article */ $this->pageTitle = Yii::app()->name; $this->menu = MenuManager::createLinks(); $this->beginWidget('zii.widgets.CPortlet', array('title' => 'Navigation')); $this->widget('zii.widgets.CMenu', array('items' => $this->menu, 'htmlOptions' => array('class' => 'operations'))); $this->endWidget(); ?> <h1><?php echo $article->title; ?> </h1> <p><?php echo $article->text; ?> </p>
/** * Get Menu * @param string $menu The Name of the Menu * @return array Array containing menu items (page, args, class, title, link, li) */ public static function GetMenu($menu) { $theme = Theme::GetInstance(); $array = array(); if (!($menu = new MenuManager($theme->user, $menu))) { trigger_error($menu->message, E_USER_ERROR); } while ($menuItem = $menu->GetNextMenuItem()) { $item = array(); $item['page'] = Kit::ValidateParam($menuItem['name'], _WORD); $item['args'] = Kit::ValidateParam($menuItem['Args'], _STRING); $item['class'] = Kit::ValidateParam($menuItem['Class'], _WORD); $item['title'] = __(Kit::ValidateParam($menuItem['Text'], _STRING)); $item['img'] = Kit::ValidateParam($menuItem['Img'], _STRING); $item['external'] = Kit::ValidateParam($menuItem['External'], _INT); $item['selected'] = $item['page'] == $theme->pageName; if ($item['external'] == 0) { $item['link'] = 'index.php?p=' . $item['page'] . '&' . $item['args']; } else { $item['link'] = $item['args']; } $item['li'] = '<li class="' . $item['class'] . ($item['selected'] ? ' active' : '') . '"><a href="' . $item['link'] . '" class="' . $item['class'] . ($item['selected'] ? ' active' : '') . '">' . $item['title'] . '</a></li>'; $array[] = $item; } return $array; }
<?php include_once "MenuManager.php"; include_once "Menu.php"; $menMan = new MenuManager(); if (isset($_GET['userId'])) { $pazienteId = $_GET['userId']; $menus = $menMan->getMenuByPaziente($pazienteId); if (count($menus) > 0) { echo "<script type='text/javascript'>\n newUrl= 'modificaMenuSettimanale.php?id='+'{$pazienteId}'\n window.location.replace(newUrl);\n </script>"; } else { $res = $menMan->creaMenu($pazienteId); echo "<script type='text/javascript'>\n newUrl= 'modificaMenuSettimanale.php?id='+'{$pazienteId}'\n window.location.replace(newUrl);\n </script>"; } } else { if (!empty($_POST)) { foreach ($_POST as $field_name => $val) { //clean post values $field_userid = strip_tags(trim($field_name)); //separiamo dalla stringa ricevuta l'id dal nome della colonna $split_data = explode(':', $field_userid); $menuId = $split_data[1]; $field_name = $split_data[0]; if (!empty($menuId) && !empty($field_name) && !empty($val)) { //update the values $res = $menMan->modificaMenu($field_name, $val, $menuId); if (!$res) { //echo "Errore nella query al database"; } } else { echo "Invalid Requests";
</p> <!--Tabella del menù--> <table width="100%"> <tr bgcolor="#C0C0C0"> <th>Giorno</th> <th>Colazione</th> <th>Spuntino Mattutino</th> <th>Pranzo</th> <th>Spuntino Pomeridiano</th> <th>Cena</th> </tr> <?php $mgr = new MenuManager(); $menu = $mgr->getMenuByPaziente($paziente); ?> <tbody> <?php foreach ($menu as $m) { ?> <tr class="table-row"> <td><?php echo $m->giornoDellaSettimana; ?> </td> <td id="<?php echo "colazione:", $m->idMenu; ?> " contenteditable="true"><?php
/** * Render the menu * * @param array $data * @param null $view * * @return string */ public function render($data = [], $view = null) { $view = $view ?: MenuManager::PLUGIN_NAME . '::master_menu'; return $this->manager->getView()->make($view, ['menu' => $this], $data)->render(); }
/** * @return bool true if the operation was successfull false otherwise * * @access public */ function saveElement($regroup) { if ($regroup == 'templ_man') { return $this->_saveTemplateManager(); } if ($regroup == 'suiteman') { return $this->_saveSuiteManager(); } $reSetting = sql_query("\r\n\t\tSELECT param_name, value_type, extra_info\r\n\t\tFROM " . $this->table . "\r\n\t\tWHERE regroup = '" . $regroup . "' AND hide_in_modify = '0'"); $re = true; while (list($var_name, $value_type, $extra_info) = sql_fetch_row($reSetting)) { switch ($value_type) { case "menuvoice": require_once $GLOBALS['where_framework'] . '/lib/lib.menu.php'; $menu_man = new MenuManager(); if (isset($_POST['option'][$var_name]) && $_POST['option'][$var_name] == 1) { $menu_man->addPerm(ADMIN_GROUP_GODADMIN, '/lms/admin' . $extra_info); $new_value = 1; } else { $menu_man->removePerm(ADMIN_GROUP_GODADMIN, '/lms/admin' . $extra_info); $new_value = 0; } break; case "menuvoice_course_public": $after_reload_perm = true; require_once $GLOBALS['where_framework'] . '/lib/lib.menu.php'; $menu_man = new MenuManager(); if (isset($_POST['option'][$var_name]) && $_POST['option'][$var_name] == 1) { $perm = explode(';', $extra_info); foreach ($perm as $k => $perm_suffix) { $menu_man->addPerm('/oc_0', '/lms/course' . trim($perm_suffix)); } $new_value = 1; } else { $perm = explode(';', $extra_info); foreach ($perm as $k => $perm_suffix) { $menu_man->removePerm('/oc_0', '/lms/course' . trim($perm_suffix)); } $new_value = 0; } break; case "tablist_coursecatalogue": $tab_selected = array(); foreach ($_POST['tablist'] as $tab_code => $v) { $tab_selected[$tab_code] = 1; } $new_value = urlencode(serialize($tab_selected)); break; case "tablist_mycourses": $temp_arr = array(); for ($i = 0; $i < 3; $i++) { $temp_var = $_POST['mycourses'][$i]; if ($temp_var != '' && !in_array($temp_var, $temp_arr)) { //avoid repeated params $temp_arr[] = $temp_var; } } $new_value = implode(',', $temp_arr); break; //if is int cast it //if is int cast it case "language": $lang = Docebo::langManager()->getAllLangCode(); $new_value = $lang[$_POST['option'][$var_name]]; break; case "template": $templ = getTemplateList(); $new_value = $templ[$_POST['option'][$var_name]]; break; case "int": $new_value = (int) $_POST['option'][$var_name]; break; //if is enum switch value to on or off //if is enum switch value to on or off case "enum": if (isset($_POST['option'][$var_name])) { $new_value = 'on'; } else { $new_value = 'off'; } break; case "check": if (isset($_POST['option'][$var_name]) && $_POST['option'][$var_name] == 1) { $new_value = 1; } else { $new_value = 0; } break; case "menuvoice": require_once $GLOBALS['where_framework'] . '/lib/lib.menu.php'; $menu_man = new MenuManager(); if (isset($_POST['option'][$var_name]) && $_POST['option'][$var_name] == 1) { $menu_man->addPerm(ADMIN_GROUP_GODADMIN, '/framework/admin' . $extra_info); $new_value = 1; } else { $menu_man->removePerm(ADMIN_GROUP_GODADMIN, '/framework/admin' . $extra_info); $new_value = 0; } break; //else simple assignament //else simple assignament default: $new_value = $_POST['option'][$var_name]; } if (!sql_query("UPDATE " . $this->table . "\r\n\t\t\tSET param_value = '{$new_value}'\r\n\t\t\tWHERE param_name = '{$var_name}' AND regroup = '" . $regroup . "'")) { $re = false; } } return $re; }
function content_56b3277d0ac3f4_92884917($_smarty_tpl) { if (!is_callable('smarty_function_anchor')) { include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.anchor.php'; } if (!is_callable('smarty_function_cms_selflink')) { include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.cms_selflink.php'; } if (!is_callable('Search::function_plugin')) { include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.search.php'; } if (!is_callable('smarty_function_cms_version')) { include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.cms_version.php'; } if (!is_callable('smarty_function_cms_versionname')) { include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.cms_versionname.php'; } if (!is_callable('News::function_plugin')) { include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.news.php'; } if (!is_callable('smarty_function_title')) { include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.title.php'; } if (!is_callable('smarty_function_global_content')) { include 'C:\\xampp\\htdocs\\projects\\usse\\plugins\\function.global_content.php'; } ?> <body> <div id="ncleanblue"> <div id="pagewrapper" class="core-wrap-960 core-center"> <ul class="accessibility"> <li><?php echo smarty_function_anchor(array('anchor' => 'menu_vert', 'title' => 'Skip to navigation', 'accesskey' => 'n', 'text' => 'Skip to navigation'), $_smarty_tpl); ?> </li> <li><?php echo smarty_function_anchor(array('anchor' => 'main', 'title' => 'Skip to content', 'accesskey' => 's', 'text' => 'Skip to content'), $_smarty_tpl); ?> </li> </ul> <hr class="accessibility" /> <div id="header" class="util-clearfix"> <div id="logo" class="core-float-left"> <?php echo smarty_function_cms_selflink(array('dir' => "start", 'text' => (string) $_smarty_tpl->tpl_vars['sitename']->value), $_smarty_tpl); ?> </div> <div id="search" class="core-float-right"> <?php echo Search::function_plugin(array('search_method' => "post"), $_smarty_tpl); ?> </div> <span class="util-clearb"> </span> <h2 class="accessibility util-clearb">Navigation</h2> <div class="page-menu util-clearfix"> <?php echo MenuManager::function_plugin(array('loadprops' => 0, 'template' => 'cssmenu_ulshadow.tpl'), $_smarty_tpl); ?> </div> <hr class="accessibility util-clearb" /> </div> <div id="content" class="util-clearfix"> <div title="CMS - <?php echo smarty_function_cms_version(array(), $_smarty_tpl); ?> - <?php echo smarty_function_cms_versionname(array(), $_smarty_tpl); ?> " id="version"> <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'cms_version', null); ob_start(); ob_start(); echo smarty_function_cms_version(array(), $_smarty_tpl); echo mb_strtolower(ob_get_clean(), 'UTF-8'); 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(); } echo preg_replace("/-([a-z]).*/", '', $_smarty_tpl->tpl_vars['cms_version']->value); ?> </div> <div id="bar" class="util-clearfix"> <div class="breadcrumbs core-float-right"> <?php echo MenuManager::smarty_cms_breadcrumbs(array('root' => 'Home'), $_smarty_tpl); ?> </div> <hr class="accessibility util-clearb" /> </div> <div id="left" class="core-float-left"> <div class="sbar-top"> <h2 class="sbar-title">News</h2> </div> <div class="sbar-main"> <div id="news"> <?php echo News::function_plugin(array('number' => '3', 'detailpage' => 'news'), $_smarty_tpl); ?> </div> <img class="screen" src="uploads/NCleanBlue/screen-1.6.jpg" width="139" height="142" title="CMS - <?php echo smarty_function_cms_version(array(), $_smarty_tpl); ?> - <?php echo smarty_function_cms_versionname(array(), $_smarty_tpl); ?> " alt="CMS - <?php echo smarty_function_cms_version(array(), $_smarty_tpl); ?> - <?php echo smarty_function_cms_versionname(array(), $_smarty_tpl); ?> " /> </div> <span class="sbar-bottom"> </span> </div> <div id="main" class="core-float-right"> <div class="main-top"> <div class="print core-float-right"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['print'][0][0]->_my_function_plugin(array('showbutton' => true), $_smarty_tpl); ?> </div> </div> <div class="main-main util-clearfix"> <h1 class="title"><?php echo smarty_function_title(array(), $_smarty_tpl); ?> </h1> <?php CMS_Content_Block::smarty_internal_fetch_contentblock(array(), $_smarty_tpl); ?> </div> <div class="main-bottom"> <div class="right49 core-float-right"> <?php echo smarty_function_anchor(array('anchor' => 'main', 'text' => '^ Top'), $_smarty_tpl); ?> </div> <div class="left49 core-float-left"> <span> <?php echo smarty_function_cms_selflink(array('dir' => "previous", 'label' => "Previous page: "), $_smarty_tpl); ?> </span> <span> <?php echo smarty_function_cms_selflink(array('dir' => "next"), $_smarty_tpl); ?> </span> </div> <hr class="accessibility" /> </div> </div> </div> </div> <span class="util-clearb"> </span> <div id="footer-wrapper"> <div id="footer" class="core-wrap-960"> <div class="block core-float-left"> <?php echo MenuManager::function_plugin(array('loadprops' => 0, 'template' => 'minimal_menu.tpl', 'number_of_levels' => '1'), $_smarty_tpl); ?> </div> <div class="block core-float-left"> <?php echo MenuManager::function_plugin(array('loadprops' => 0, 'template' => 'minimal_menu.tpl', 'start_level' => "2"), $_smarty_tpl); ?> </div> <div class="block cms core-float-left"> <?php echo smarty_function_global_content(array('name' => 'footer'), $_smarty_tpl); ?> </div> <span class="util-clearb"> </span> </div> </div> </div> </body> </html><?php }
private function getBreadcrumbList($parent_menu_id, $list) { if (Utils::isEmpty($parent_menu_id)) { return $list; } $menu_mgr = new MenuManager(); $parent_menu_link = $menu_mgr->getMenuWithLink($parent_menu_id); if (Utils::isEmpty($parent_menu_link)) { return $list; } array_unshift($list, $parent_menu_link); if ($parent_menu_link['parent_menu_id'] == -99) { return $list; } else { return $this->getBreadcrumbList($parent_menu_link['parent_menu_id'], $list); } }
function uninstall() { $query = new DB_Table_Delete(MenuManager::getTables()); global $application; $application->db->getDB_Result($query); }
function showEdit() { $id = $this->getRequestParameter(); $ex = MenuManager::getInstance()->getByPk($id, true); $types = MenuManager::getInstance()->getTypeMenu(); $arr = array(); /* $menuTreeH = $ex->getMenuTree(false, $arr, null, MenuManager::TYPE_HORIZONTAL);*/ $arr = array(); $menuTreeV = $ex->getMenuTree(false, $arr, null, MenuManager::TYPE_VERTICAL); $this->__assign("types", $types); $this->__assign("ex", $ex); /* $this->__assign("menuTreeH", $menuTreeH);*/ $this->__assign("menuTreeV", $menuTreeV); $this->__assign("manager", MenuManager::getInstance()); return $this->__display("edit.tpl"); }
if (!class_exists('MenuManager')) { $menufound = 0; $dirmenus = array_merge(array("/core/menus/"), (array) $conf->modules_parts['menus']); foreach ($dirmenus as $dirmenu) { $menufound = dol_include_once($dirmenu . "standard/" . $file_menu); if (class_exists('MenuManager')) { break; } } if (!class_exists('MenuManager')) { dol_syslog("You define a menu manager '" . $file_menu . "' that can not be loaded.", LOG_WARNING); $file_menu = 'eldy_menu.php'; include_once DOL_DOCUMENT_ROOT . "/core/menus/standard/" . $file_menu; } } $menumanager = new MenuManager($db, empty($user->societe_id) ? 0 : 1); $menumanager->loadMenu(); } // Functions if (!function_exists("llxHeader")) { /** * Show HTML header HTML + BODY + Top menu + left menu + DIV * * @param string $head Optionnal head lines * @param string $title HTML title * @param string $help_url Url links to help page * Syntax is: For a wiki page: EN:EnglishPage|FR:FrenchPage|ES:SpanishPage * For other external page: http://server/url * @param string $target Target to use on links * @param int $disablejs More content into html header * @param int $disablehead More content into html header
$conf->standard_menu = empty($conf->global->MAIN_MENU_STANDARD_FORCED) ? empty($conf->global->MAIN_MENU_STANDARD) ? 'eldy_menu.php' : $conf->global->MAIN_MENU_STANDARD : $conf->global->MAIN_MENU_STANDARD_FORCED; } else { $conf->standard_menu = empty($conf->global->MAIN_MENUFRONT_STANDARD_FORCED) ? empty($conf->global->MAIN_MENUFRONT_STANDARD) ? 'eldy_menu.php' : $conf->global->MAIN_MENUFRONT_STANDARD : $conf->global->MAIN_MENUFRONT_STANDARD_FORCED; } // Load the menu manager (only if not already done) $file_menu = $conf->standard_menu; if (GETPOST('menu')) { $file_menu = GETPOST('menu'); } // example: menu=eldy_menu.php if (!class_exists('MenuManager')) { $menufound = 0; $dirmenus = array_merge(array("/core/menus/"), (array) $conf->modules_parts['menus']); foreach ($dirmenus as $dirmenu) { $menufound = dol_include_once($dirmenu . "standard/" . $file_menu); if ($menufound) { break; } } if (!$menufound) { dol_syslog("You define a menu manager '" . $file_menu . "' that can not be loaded.", LOG_WARNING); $file_menu = 'eldy_menu.php'; include_once DOL_DOCUMENT_ROOT . "/core/menus/standard/" . $file_menu; } } $menumanager = new MenuManager($db, empty($user->societe_id) ? 0 : 1); $menumanager->loadMenu('all', 'all'); $menumanager->showmenu('jmobile'); print '</body>'; print '</html>' . "\n"; $db->close();
<style type="text/css"> table{ border-collapse:collapse; width:100%; height:70%;} table,td,th{ border: 2px solid black;} #bottone{heigh:150px; width:100px;} </style> </head> <body> <?php $menuMgr = new MenuManager(); $menu = $menuMgr->getMenuByPaziente($emailPaziente); if (count($menu) == 0) { echo "<h3 class='result'>Nessun menu trovato. Riprovare tra qualche ora o contattare il medico"; } else { ?> <p style="font-size:120%; text-align:left;"> Menù settimanale </p> <!--Tabella del menù--> <table width="100%"> <tr bgcolor="#C0C0C0"> <th>Giorno</th> <th>Colazione</th>
function content_51f3bfcf494341_20472597($_smarty_tpl) { if (!is_callable('smarty_function_anchor')) { include '/homepages/26/d480780604/htdocs/plugins/function.anchor.php'; } if (!is_callable('smarty_function_root_url')) { include '/homepages/26/d480780604/htdocs/plugins/function.root_url.php'; } if (!is_callable('smarty_function_sitename')) { include '/homepages/26/d480780604/htdocs/plugins/function.sitename.php'; } if (!is_callable('smarty_function_breadcrumbs')) { include '/homepages/26/d480780604/htdocs/plugins/function.breadcrumbs.php'; } if (!is_callable('Search::function_plugin')) { include '/homepages/26/d480780604/htdocs/plugins/function.search.php'; } if (!is_callable('News::function_plugin')) { include '/homepages/26/d480780604/htdocs/plugins/function.news.php'; } if (!is_callable('smarty_function_valid_css')) { include '/homepages/26/d480780604/htdocs/plugins/function.valid_css.php'; } if (!is_callable('smarty_function_valid_xhtml')) { include '/homepages/26/d480780604/htdocs/plugins/function.valid_xhtml.php'; } if (!is_callable('smarty_function_global_content')) { include '/homepages/26/d480780604/htdocs/plugins/function.global_content.php'; } ?> <body> <a id="top"></a> <!-- TEMPLATE BLOCKS --> <?php CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Display Header Slider", 'oneline' => "true", 'size' => "1", 'default' => "-", 'assign' => "display_slider", 'tab' => 'Header', 'wysiwyg' => 'false'), $_smarty_tpl); ?> <?php if (empty($_smarty_tpl->tpl_vars['display_slider']->value)) { if (isset($_smarty_tpl->tpl_vars["display_slider"])) { $_smarty_tpl->tpl_vars["display_slider"] = clone $_smarty_tpl->tpl_vars["display_slider"]; $_smarty_tpl->tpl_vars["display_slider"]->value = "-"; $_smarty_tpl->tpl_vars["display_slider"]->nocache = null; $_smarty_tpl->tpl_vars["display_slider"]->scope = 0; } else { $_smarty_tpl->tpl_vars["display_slider"] = new Smarty_variable("-", null, 0); } } ?> <?php $_smarty_tpl->_capture_stack[0][] = array('default', "galleryfolder", null); ob_start(); CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "galleryfolder", 'oneline' => "true", 'label' => "Gallery Module foldername for Header Slideshow", 'tab' => 'Header', 'wysiwyg' => 'false'), $_smarty_tpl); list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Display Breadcrumbs", 'oneline' => "true", 'size' => "1", 'default' => "+", 'assign' => "display_breadcrumbs", 'tab' => 'Header', 'wysiwyg' => 'false'), $_smarty_tpl); ?> <?php if (empty($_smarty_tpl->tpl_vars['display_breadcrumbs']->value)) { if (isset($_smarty_tpl->tpl_vars["display_breadcrumbs"])) { $_smarty_tpl->tpl_vars["display_breadcrumbs"] = clone $_smarty_tpl->tpl_vars["display_breadcrumbs"]; $_smarty_tpl->tpl_vars["display_breadcrumbs"]->value = "+"; $_smarty_tpl->tpl_vars["display_breadcrumbs"]->nocache = null; $_smarty_tpl->tpl_vars["display_breadcrumbs"]->scope = 0; } else { $_smarty_tpl->tpl_vars["display_breadcrumbs"] = new Smarty_variable("+", null, 0); } } ?> <?php CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Display Sidebar Menu", 'oneline' => "true", 'size' => "1", 'default' => "+", 'assign' => "display_sidebar_menu", 'tab' => 'Sidebar', 'wysiwyg' => 'false'), $_smarty_tpl); ?> <?php if (empty($_smarty_tpl->tpl_vars['display_sidebar_menu']->value)) { if (isset($_smarty_tpl->tpl_vars["display_sidebar_menu"])) { $_smarty_tpl->tpl_vars["display_sidebar_menu"] = clone $_smarty_tpl->tpl_vars["display_sidebar_menu"]; $_smarty_tpl->tpl_vars["display_sidebar_menu"]->value = "+"; $_smarty_tpl->tpl_vars["display_sidebar_menu"]->nocache = null; $_smarty_tpl->tpl_vars["display_sidebar_menu"]->scope = 0; } else { $_smarty_tpl->tpl_vars["display_sidebar_menu"] = new Smarty_variable("+", null, 0); } } ?> <?php CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Display Search", 'oneline' => "true", 'size' => "1", 'default' => "+", 'assign' => "display_search", 'tab' => 'Header', 'wysiwyg' => 'false'), $_smarty_tpl); ?> <?php if (empty($_smarty_tpl->tpl_vars['display_search']->value)) { if (isset($_smarty_tpl->tpl_vars["display_search"])) { $_smarty_tpl->tpl_vars["display_search"] = clone $_smarty_tpl->tpl_vars["display_search"]; $_smarty_tpl->tpl_vars["display_search"]->value = "+"; $_smarty_tpl->tpl_vars["display_search"]->nocache = null; $_smarty_tpl->tpl_vars["display_search"]->scope = 0; } else { $_smarty_tpl->tpl_vars["display_search"] = new Smarty_variable("+", null, 0); } } ?> <?php CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Display News", 'oneline' => "true", 'size' => "1", 'default' => "+", 'assign' => "display_news", 'tab' => 'Sidebar', 'wysiwyg' => 'false'), $_smarty_tpl); ?> <?php if (empty($_smarty_tpl->tpl_vars['display_news']->value)) { if (isset($_smarty_tpl->tpl_vars["display_news"])) { $_smarty_tpl->tpl_vars["display_news"] = clone $_smarty_tpl->tpl_vars["display_news"]; $_smarty_tpl->tpl_vars["display_news"]->value = "+"; $_smarty_tpl->tpl_vars["display_news"]->nocache = null; $_smarty_tpl->tpl_vars["display_news"]->scope = 0; } else { $_smarty_tpl->tpl_vars["display_news"] = new Smarty_variable("+", null, 0); } } ?> <?php CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Sliding News on/off", 'oneline' => "true", 'size' => "1", 'default' => "+", 'assign' => "display_news_slider", 'tab' => 'Sidebar', 'wysiwyg' => 'false'), $_smarty_tpl); ?> <?php if (empty($_smarty_tpl->tpl_vars['display_news_slider']->value)) { if (isset($_smarty_tpl->tpl_vars["display_news_slider"])) { $_smarty_tpl->tpl_vars["display_news_slider"] = clone $_smarty_tpl->tpl_vars["display_news_slider"]; $_smarty_tpl->tpl_vars["display_news_slider"]->value = "+"; $_smarty_tpl->tpl_vars["display_news_slider"]->nocache = null; $_smarty_tpl->tpl_vars["display_news_slider"]->scope = 0; } else { $_smarty_tpl->tpl_vars["display_news_slider"] = new Smarty_variable("+", null, 0); } } ?> <?php CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Display To Top of the page link", 'oneline' => "true", 'size' => "1", 'default' => "+", 'assign' => "display_to_top", 'tab' => 'Footer', 'wysiwyg' => 'false'), $_smarty_tpl); ?> <?php if (empty($_smarty_tpl->tpl_vars['display_to_top']->value)) { if (isset($_smarty_tpl->tpl_vars["display_to_top"])) { $_smarty_tpl->tpl_vars["display_to_top"] = clone $_smarty_tpl->tpl_vars["display_to_top"]; $_smarty_tpl->tpl_vars["display_to_top"]->value = "+"; $_smarty_tpl->tpl_vars["display_to_top"]->nocache = null; $_smarty_tpl->tpl_vars["display_to_top"]->scope = 0; } else { $_smarty_tpl->tpl_vars["display_to_top"] = new Smarty_variable("+", null, 0); } } ?> <?php CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Display Footer Menu", 'oneline' => "true", 'size' => "1", 'default' => "+", 'assign' => "display_footer_menu", 'tab' => 'Footer', 'wysiwyg' => 'false'), $_smarty_tpl); ?> <?php if (empty($_smarty_tpl->tpl_vars['display_footer_menu']->value)) { if (isset($_smarty_tpl->tpl_vars["display_footer_menu"])) { $_smarty_tpl->tpl_vars["display_footer_menu"] = clone $_smarty_tpl->tpl_vars["display_footer_menu"]; $_smarty_tpl->tpl_vars["display_footer_menu"]->value = "+"; $_smarty_tpl->tpl_vars["display_footer_menu"]->nocache = null; $_smarty_tpl->tpl_vars["display_footer_menu"]->scope = 0; } else { $_smarty_tpl->tpl_vars["display_footer_menu"] = new Smarty_variable("+", null, 0); } } ?> <?php CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => "Display Validation Icons", 'oneline' => "true", 'size' => "1", 'default' => "+", 'assign' => "display_validation", 'tab' => 'Footer', 'wysiwyg' => 'false'), $_smarty_tpl); ?> <?php if (empty($_smarty_tpl->tpl_vars['display_validation']->value)) { if (isset($_smarty_tpl->tpl_vars["display_validation"])) { $_smarty_tpl->tpl_vars["display_validation"] = clone $_smarty_tpl->tpl_vars["display_validation"]; $_smarty_tpl->tpl_vars["display_validation"]->value = "+"; $_smarty_tpl->tpl_vars["display_validation"]->nocache = null; $_smarty_tpl->tpl_vars["display_validation"]->scope = 0; } else { $_smarty_tpl->tpl_vars["display_validation"] = new Smarty_variable("+", null, 0); } } $_smarty_tpl->_capture_stack[0][] = array('default', 'pagetitle', null); ob_start(); CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => 'Main Page Title', 'description' => 'H2 Title on a page frontend', 'wysiwyg' => "false", 'oneline' => "true", 'tab' => 'Main'), $_smarty_tpl); list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <!-- END TEMPLATE BLOCKS --> <!-- ACCESSIBILITY SKIP LINKS --> <ul class="accessibility"> <li><?php echo smarty_function_anchor(array('anchor' => 'subNav', 'title' => 'Skip to navigation', 'accesskey' => 'n', 'text' => 'Skip to navigation'), $_smarty_tpl); ?> </li> <li><?php echo smarty_function_anchor(array('anchor' => 'main', 'title' => 'Skip to content', 'accesskey' => 's', 'text' => 'Skip to content'), $_smarty_tpl); ?> </li> </ul> <!-- END ACCESSIBILITY SKIP LINKS --> <hr class="accessibility" /> <!-- NEWS SLIDER SCRIPT --> <?php if ($_smarty_tpl->tpl_vars['display_news_slider']->value == "+") { ?> <script src="/uploads/tpl-buddy-001/news-banner.js" type="text/javascript"></script> <?php } ?> <!-- END NEWS SLIDER SCRIPT --> <!-- HEADER --> <div id="headerWrapper"> <div id="header" class="span-950"> <div id="logo"> <h1><a href="<?php echo smarty_function_root_url(array(), $_smarty_tpl); ?> " title="<?php echo smarty_function_sitename(array(), $_smarty_tpl); ?> "><img alt="<?php echo smarty_function_sitename(array(), $_smarty_tpl); ?> " src="/uploads/tpl-buddy-001/logo.png" /></a></h1> <hr class="accessibility" /> </div> <!-- TOP NAVIGATION --> <div id="mainNav"> <h2 class="accessibility">Navigation</h2> <?php echo MenuManager::function_plugin(array('loadprops' => 0, 'number_of_levels' => '1'), $_smarty_tpl); ?> <hr class="accessibility" /> </div> <!-- END TOP NAVIGATION --> </div> </div> <!-- END HEADER --> <!-- SLIDER --> <div id="sliderWrapper"> <div class="bannerHolder"> <ul id="bannerNav"> </ul> <a href="#"><span id="prevBanner">Previous</span></a> <a href="#"><span id="nextBanner">Next</span></a> <?php echo Gallery::function_plugin(array('template' => "buddySlider", 'dir' => 'slider'), $_smarty_tpl); ?> </div> </div> <!-- END SLIDER --> <!-- CONTENT --> <div id="contentWrapper"> <?php if ($_smarty_tpl->tpl_vars['display_slider']->value == "+") { ?> <div id="content" class="span-950"> <?php } else { ?> <div id="content" class="span-950 border"> <?php } ?> <!-- MAIN CONTENT --> <div id="main" class="twoColumns float-left"> <!-- BREADCRUMBS --> <?php if ($_smarty_tpl->tpl_vars['display_breadcrumbs']->value == "+") { ?> <div class="breadcrumbs"> <?php if (isset($_smarty_tpl->tpl_vars['newstitle']->value)) { ?> <?php echo smarty_function_breadcrumbs(array('starttext' => 'You are here', 'root' => 'Home', 'delimiter' => '»'), $_smarty_tpl); ?> » <?php echo $_smarty_tpl->tpl_vars['newstitle']->value; ?> <?php } else { ?> <?php echo smarty_function_breadcrumbs(array('starttext' => 'You are here', 'root' => 'Home', 'delimiter' => '»'), $_smarty_tpl); ?> <?php } ?> <hr class="accessibility" /> </div> <?php } ?> <!-- END BREADCRUMBS --> <?php if (isset($_smarty_tpl->tpl_vars['newstitle']->value)) { ?> <h2><?php echo $_smarty_tpl->tpl_vars['newstitle']->value; ?> </h2> <?php } else { ?> <h2><?php echo $_smarty_tpl->tpl_vars['pagetitle']->value; ?> </h2> <?php } ?> <?php echo $_smarty_tpl->tpl_vars['capturedcontent']->value; ?> <?php if ($_smarty_tpl->tpl_vars['display_to_top']->value == "+") { ?> <a href="#top" class='to-top float-right'>To Top of the page</a> <?php } ?> <hr class="accessibility" /> </div> <!-- END MAIN CONTENT --> <!-- SIDEBAR --> <div id="sidebar" class="float-right col-border"> <!-- SIDE NAVIGATION (SUBMENU) --> <div id="subNav"> <h2 class="accessibility">Sub Navigation</h2> <?php if ($_smarty_tpl->tpl_vars['display_sidebar_menu']->value == "+") { ?> <?php echo MenuManager::function_plugin(array('loadprops' => 0, 'start_level' => '2', 'collapse' => '1'), $_smarty_tpl); ?> <?php } ?> <hr class="accessibility" /> </div> <!-- END SIDE NAVIGATION --> <!-- SEARCH --> <?php if ($_smarty_tpl->tpl_vars['display_search']->value == "+") { ?> <div id="search"> <?php echo Search::function_plugin(array('search_method' => "post"), $_smarty_tpl); ?> </div> <?php } ?> <!-- END SEARCH --> <!-- NEWS --> <?php if ($_smarty_tpl->tpl_vars['display_news']->value == "+") { ?> <div id="news"> <!-- <h2>Infos</h2>--> <?php echo News::function_plugin(array('number' => '2', 'moretext' => "En savoir plus"), $_smarty_tpl); ?> </div> <?php } ?> <a class="twitter-timeline" href="https://twitter.com/BEAUPOTAGER" data-widget-id="361139390489178112"><img alt="<?php echo smarty_function_sitename(array(), $_smarty_tpl); ?> " src="/uploads/tpl-buddy-001/icone.gif" />Suivez-nous sur Twitter</a> <!-- END NEWS --> <!-- SIDEBAR CONTENT BLOCK --> <?php CMS_Content_Block::smarty_internal_fetch_contentblock(array('block' => 'sidebar', 'label' => 'Sidebar content block (to hide this block just leave it empty)', 'assign' => 'sidecontent', 'tab' => 'Sidebar'), $_smarty_tpl); ?> <?php if (!empty($_smarty_tpl->tpl_vars['sidecontent']->value)) { ?> <div class="sidecontent"> <?php echo $_smarty_tpl->tpl_vars['sidecontent']->value; ?> </div> <?php } ?> <!-- END SIDEBAR CONTENT BLOCK --> </div> </div> </div> <!-- END CONTENT --> <!-- FOOTER --> <div id="footerWrapper"> <div id="footer" class="span-950"> <!-- FOOTER MENU --> <?php if ($_smarty_tpl->tpl_vars['display_footer_menu']->value == "+") { ?> <div id="footerNav"> <?php echo MenuManager::function_plugin(array('loadprops' => 0, 'number_of_levels' => '1'), $_smarty_tpl); ?> </div> <?php } ?> <!-- END FOOTER MENU --> <!-- VALIDATION ICONS --> <?php if ($_smarty_tpl->tpl_vars['display_validation']->value == "+") { ?> <div class="footer-icons"> <div class="validation"> <?php echo smarty_function_valid_css(array('image' => 'false', 'class' => 'valid-css', 'target' => '_blank', 'text' => 'valid css3'), $_smarty_tpl); ?> <?php echo smarty_function_valid_xhtml(array('image' => 'false', 'class' => 'valid-xhtml', 'target' => '_blank'), $_smarty_tpl); ?> </div> </div> <?php } ?> <!-- END VALIDATION ICONS --> <!-- GCB FOOTER --> <div class="clearer"> <?php echo smarty_function_global_content(array('name' => 'footer'), $_smarty_tpl); ?> <p class="float-right"> Design by <a href="http://www.cmstemplatebuddy.com" target="_blank">CMS Template Buddy </a> </p> </div> <!-- END GCB FOOTER --> </div> </div> <!-- END FOOTER --> <!-- Template for CMS Made Simple Design by www.cmstemplatebuddy.com Version 1.01 --> </body> </html><?php }