'."\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"; // end of the main panel 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(' ', '
'."\n"."\n";
// no content anymore
echo ''.i18n::user('label').' '.Skin::build_link('http://www.yetanothercommunitysystem.com/', 'yacs', 'external').'
', 'extra'); } // end of the side panel echo '