*
  • div#header_panel
  • * *
  • div#wrapper
  • * *
  • div#footer_panel
  • * * * @link http://www.ilovejackdaniels.com/design/faux-columns-for-liquid-layouts/ Faux Columns for Liquid Layouts * * 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 * * Background images have been submitted gracefully by [link=Dave Child]http://www.ilovejackdaniels.com/[/link], who is really a gentleman. * * This has been validated as XHTML 1.0 Transitional * * @link http://keystonewebsites.com/articles/mime_type.php Serving up XHTML with the correct MIME type * * This template implements following access keys at all pages: * - 1 to go to the front page of the site * - 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 * * @author Bernard Paques [email]bernard.paques@bigfoot.com[/email] * @author Dave Child [link]http://www.ilovejackdaniels.com/[/link] * @reference * @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; } // build the prefix only once if(!isset($context['embedded']) || ($context['embedded'] == 'prefix')) { // add language information, if known if(isset($context['page_language'])) $language = ' xml:lang="'.$context['page_language'].'" '; else $language = ''; // start the page echo ''."\n" .''."\n" .''."\n"; // give the charset to the w3c validator... echo "\t".''."\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"; } // set icons for this site if(!isset($context['site_icon'])) { echo "\t".''."\n"; echo "\t".''."\n"; } // nice titles echo "\t".''."\n"; echo "\t".''."\n"; // other head directives echo $context['page_header']; // end of the header echo ''."\n"; // start the body Page::body(); // the header panel comes before everything echo '
    '."\n"; // the site name -- can be replaced, through CSS, by an image -- access key 1 if($context['site_name'] && is_callable(array('i18n', 's'))) echo '

    '.$context['site_name'].'

    '."\n"; // site slogan if(isset($context['site_slogan'])) echo '

    '.$context['site_slogan']."

    \n"; // horizontal tabs -- add a tab for the front page, and reverse order // special tabs Page::tabs(TRUE, FALSE, NULL, array('http://www.saaq-clopedia.com/blessures/' => array(NULL, i18n::s('répertoire des blessures'), NULL, '2'))) // end of the header panel echo '
    '."\n"; // several columns in the middle echo '
    '."\n"; // add a drop shadow echo '
    '."\n"; // the main panel echo '
    '."\n"; // display bread crumbs if not at the front page; if not defined, only the 'Home' link will be displayed if($context['skin_variant'] != 'home') Page::bread_crumbs(0); // display main content Page::content(); // prefix ends here } // build the suffix only once if(!isset($context['embedded']) || ($context['embedded'] == 'suffix')) { // separator for text readers echo '
    '."\n"; // end of the main panel echo '
    '."\n"; // the side panel echo '
    '."\n"; // display side content, including extra data Page::side(TRUE); // link to yacs if we are at the front page if(($context['skin_variant'] == 'home') && is_callable(array('i18n', 's'))) echo Skin::build_box(NULL, '

    '.sprintf(i18n::s('Powered by %s'), Skin::build_link(i18n::s('http://www.yetanothercommunitysystem.com/'), i18n::s('yacs'), 'external')).'

    ', 'extra'); // end of the side panel echo '
    '."\n"; // add a drop shadow echo '
    '."\n"; // separator for text readers echo '
    '."\n"; // end of the wrapper echo '
    '."\n"; // the footer panel comes after everything else echo ''."\n"; // end of page echo ''."\n" .''; // suffix ends here } ?>