/** * show the side panel of the page * * If no parameter is provided, the global attribute $context['skins_navigation_components'] is used instead. * * @param string hard-coded list of components to put aside */ public static function side($names = NULL) { global $context; // we have no database back-end if (!is_callable(array('sql', 'query'))) { return; } // use regular parameters if (!$names) { $names = $context['skins_navigation_components']; } // a list of components if (is_string($names)) { $names = explode(' ', $names); } // populate the extra panel foreach ($names as $name) { Page::component($name, 'navigation'); } // append other items to the navigation panel if ($context['navigation']) { echo $context['navigation'] . "\n"; } }