adding a new variable to let tool include specific CSS

skala
Arnaud Ligot 15 years ago
parent 35e72dbb7f
commit b68b210831
  1. 7
      main/inc/header.inc.php
  2. 1
      main/inc/lib/display.lib.php

@ -122,6 +122,13 @@ if (empty($my_style)) {
echo '@import "'.api_get_path(WEB_CSS_PATH).$my_style.'/default.css";'."\n";
echo '@import "'.api_get_path(WEB_CSS_PATH).$my_style.'/course.css";'."\n";
// enabling page to load extra css from correct theme
if (isset($htmlCSSXtra) && $htmlCSSXtra) {
foreach ($htmlCSSXtra as & $css)
echo '@import "'.api_get_path(WEB_CSS_PATH).$my_style.'/'.$css.'";'."\n";
}
if ($navigator_info['name']=='Internet Explorer' && $navigator_info['version']=='6') {
echo 'img, div { behavior: url('.api_get_path(WEB_LIBRARY_PATH).'javascript/iepngfix/iepngfix.htc) } ';
}

@ -527,6 +527,7 @@ class Display {
global $_plugins, $lp_theme_css, $mycoursetheme, $user_theme, $platform_theme;
global $httpHeadXtra, $htmlHeadXtra, $htmlIncHeadXtra, $_course, $_user, $clarolineRepositoryWeb, $text_dir, $plugins, $_user, $rootAdminWeb, $_cid, $interbreadcrumb, $charset, $language_file, $noPHP_SELF;
global $menu_navigation;
global $htmlCSSXtra;
require api_get_path(INCLUDE_PATH).'header.inc.php';
}

Loading…
Cancel
Save