*
  • div#wrapper - limit the horizontal size of everything, and center it in the page
  • * * * * This template implements following access keys at all pages: * - hit 1 to jump to the front page of the site * - hit 2 to skip the header and jump to the main area of the page * - 9 to go to the control panel * - 0 to go to the help page * * Also, the main [code]body[/code] has an id, which is the skin variant, and a class, which is "extra" when $context['extra'] is not empty. * * These can be combined in the style sheet to match particular situations. Some examples: * - body#home -- at the front page * - body#sections -- section page, or section index * - body#articles -- regular page, or index of articles * - body.extra -- when some extra content has been inserted in the page * * @author Bernard Paques [email]bernard.paques@bigfoot.com[/email] * @license http://www.gnu.org/copyleft/lesser.txt GNU Lesser General Public License */ // this one has to be included if(count(get_included_files()) < 3) { echo 'Script must be included'; return; } ?> '."\n"; // as we are passing arguments in the path, set the base href echo "\t".''."\n"; // we have one style sheet for everything -- media="all" means it is not loaded by Netscape Navigator 4 echo "\t".''."\n"; // implement the 'you are here' feature if($focus = Page::top_focus()) { echo "\t".''."\n"; } // nice titles //echo "\t".''."\n"; //echo "\t".''."\n"; // other head directives echo $context['page_header']; // end of the header echo ''."\n"."\n"; // start the body Page::body(); // limit the horizontal size of everything, and center it in the page echo "\n".'
    '."\n"; // the header panel comes before everything echo "\n".'
    '."\n"; // the site name -- can be replaced, through CSS, by an image -- access key 1 if($context['site_name']) { $local['label_en'] = 'Return to front page'; $local['label_fr'] = 'Retourner à la page d\'accueil'; echo '

    '.$context['site_name'].'

    '."\n"; } // site slogan -- can be replaced, through CSS, by an image if($context['site_slogan']) echo '

    '.$context['site_slogan']."

    \n"; // horizontal tabs Page::tabs(); // end of the header panel echo '
    '."\n"; // where content actually is echo "\n".'
    '."\n"; // display bread crumbs, or display site slogan Page::bread_crumbs(0, TRUE); // the main panel echo "\n".'
    '."\n"; // display main content Page::content(); // ensure we have some content echo '
     '."\n"; // end of the main panel echo '
    '."\n"."\n"; // separator for text readers echo '
    '."\n"; // the side panel echo "\n".'
    '."\n"; // display side content, including extra data Page::side(); // ensure we are in a section include_once $context['path_to_root'].'sections/sections.php'; if(strpos($context['skin_variant'], 'section:') == 0) { // the contextual menu, in a navigation box, if this has not been disabled if( (!is_object($anchor) || !$anchor->has_option('no_contextual_menu')) && (!isset($item['options']) || !preg_match('/bno_contextual_menub/i', $item['options'])) && isset($context['current_focus']) && ($menu =& Skin::build_contextual_menu($context['current_focus']))) { // use title from topmost level if(count($context['current_focus']) && ($anchor = get_anchor($context['current_focus'][0]))) { $box_title = $anchor->get_title(); $box_url = $anchor->get_url(); // generic title } else { $box_title = 'Dans cette section'; $box_url = ''; } // in a navigation box $box_popup = ''; echo Skin::build_box($box_title, $menu, 'navigation', 'contextual_menu', $box_url, $box_popup)."\n"; } } // link to yacs if we are at the front page if($context['skin_variant'] == 'home') { $local['label_en'] = 'Powered by'; $local['label_fr'] = 'Encore un serveur'; echo Skin::build_box(' ', '

    '.i18n::user('label').' '.Skin::build_link('http://www.yetanothercommunitysystem.com/', 'yacs', 'external').'

    ', 'extra'); } // end of the side panel echo '
    '."\n"."\n"; // no content anymore echo '
     
    '."\n"; // the footer panel comes after everything else echo "\n".'