?> images/favicon.png" type="image/png" /> <?php echo Layout::zone('meta'); ?> <!-- reset and font stylesheet --> <?php echo Layout::resetter(); ?> <!-- common stylesheet --> <link rel="stylesheet" type="text/css" href="<?php echo Layout::path(); ?> style/base.css" /> <link rel="stylesheet" type="text/css" href="<?php echo Layout::path(); ?> style/lms-home.css" /> <?php echo Layout::rtl(); ?> <!-- specific stylesheet --> <?php YuiLib::load('base'); ?> <!-- printer stylesheet--> <?php echo Layout::accessibility(); ?> <!-- Page Head area --> <?php
$module_cfg = false; $GLOBALS['modname'] = Get::req('modname', DOTY_ALPHANUM, ''); $GLOBALS['op'] = Get::req('op', DOTY_ALPHANUM, ''); $r = Get::req('r', DOTY_MIXED, ''); $GLOBALS['mvc'] = $r; if (!empty($GLOBALS['modname'])) { require_once _lms_ . '/lib/lib.istance.php'; $module_cfg =& createModule($GLOBALS['modname']); } if ($r !== '') { $GLOBALS['page']->add(Util::get_css(Layout::path() . 'style/base.css', true), 'page_head'); $GLOBALS['page']->add(Util::get_css(Layout::path() . 'style/base-old-treeview.css', true), 'page_head'); $GLOBALS['page']->add(Util::get_css(Layout::path() . 'style/lms.css', true), 'page_head'); $GLOBALS['page']->add(Util::get_css(Layout::path() . 'style/lms-to-review.css', true), 'page_head'); $GLOBALS['page']->add(Util::get_css(Layout::path() . 'style/lms-menu.css', true), 'page_head'); $GLOBALS['page']->add(Util::get_css(Layout::path() . 'style/print.css', true), 'page_head'); $r = preg_replace('/[^a-zA-Z0-9\\-\\_\\/]+/', '', $r); $r = explode('/', $r); if (count($r) == 3) { // Position, class and method defined in the path requested $mvc_class = ucfirst(strtolower($r[1])) . ucfirst(strtolower($r[0])) . 'Controller'; $mvc_name = $r[1]; $task = $r[2]; } else { // Only class and method defined in the path requested $mvc_class = '' . ucfirst(strtolower($r[0])) . 'LmsController'; $mvc_name = $r[0]; $task = $r[1]; } ob_clean(); $controller = new $mvc_class($mvc_name);
public static function rtl() { if (!self::$_lang) { self::$_lang = Docebo::langManager()->getLanguageInfo(Lang::get()); } if (isset(self::$_lang->lang_direction) && self::$_lang->lang_direction == 'rtl') { echo '<link rel="stylesheet" type="text/css" href="' . Layout::path() . 'style/base-rtl.css" />'; } }
public function __construct($p_settings = array()) { $p_settings[] = new \Mangrova\Link(['rel' => 'stylesheet', 'type' => 'text/css', 'href' => Layout::path() . 'Main.css']); parent::__construct($p_settings); }