Hi,
Ralf Hilgenstock asked me, how the doc files could be formated with the theme CSS. My proposal is, to use 2 CSS calls after another:
<link rel="stylesheet" href="docstyles.css" type="TEXT/CSS">
<link rel="stylesheet" type="text/css" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/styles.php" />
The first styles the page, when it's called directly, the second overwrites the first, when the doc-file is called through Moodle and styles the page in the theme design. This works, but with the problem that the browser shows a part of the second CSS-call on the page, when the file is opened directly. How can the second line be hidden from direct HTML rendering without losing it's function, when rendered through PHP?
I attach my testfile "intro.html" from the german docs.
Thank you very much for your help.
Urs