Permalink
Browse files

Added a JS to open the styles from the theme folder for the doc pages.

In the theme "standardxhtml" I added a stylesheet file "docstyles.php" to overwrite the theme independend "docstyles.css".
  • Loading branch information...
1 parent 8aa1bb5 commit c1a0356dc72250b9a249177fd7ab70c3a5a83882 urs_hunkler committed Jan 24, 2005
@@ -4,6 +4,15 @@
<title>Moodle Dokumentation: Hintergrund</title>
<link rel="stylesheet" href="docstyles.css" type=
"TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
View
@@ -3,6 +3,15 @@
<head>
<title>Moodle Dokumentation: Coding Guidelines</title>
<link rel="stylesheet" href="docstyles.css" type="TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
@@ -4,6 +4,15 @@
<title>Moodle Dokumentation: Danke sch&ouml;n</title>
<link rel="stylesheet" href="docstyles.css" type=
"TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
View
@@ -5,6 +5,15 @@
k&ouml;nnen</title>
<link rel="stylesheet" href="docstyles.css" type=
"TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
@@ -4,6 +4,15 @@
<title>Moodle Dokumentation: Entwicklerhandbuch</title>
<link rel="stylesheet" href="docstyles.css" type=
"TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
View
@@ -5,6 +5,15 @@
(FAQ)</title>
<link rel="stylesheet" href="docstyles.css" type=
"TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
@@ -3,6 +3,15 @@
<head>
<title>Moodle Dokumentation: Features</title>
<link rel="stylesheet" href="docstyles.css" type="TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
View
@@ -3,6 +3,15 @@
<head>
<title>Moodle Dokumentation: Future</title>
<link rel="stylesheet" href="docstyles.css" type="TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
@@ -4,6 +4,15 @@
<title>Moodle Dokumentation: Installation</title>
<link rel="stylesheet" href="docstyles.css" type=
"TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
@@ -4,6 +4,15 @@
<title>Moodle Dokumentation: Apache, MySQL und PHP
installieren</title>
<link rel="stylesheet" href="docstyles.css" type="TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
View
@@ -4,6 +4,15 @@
<title>Moodle Dokumentation: Einführung</title>
<link rel="stylesheet" href="docstyles.css" type=
"TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
@@ -4,6 +4,15 @@
<title>Moodle Dokument: Urheberrechtsbestimmungen</title>
<link rel="stylesheet" href="docstyles.css" type=
"TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
View
@@ -4,6 +4,15 @@
<title>Moodle Dokumentantion: Weitere Hilfedateien und
Handb&uuml;cher</title>
<link rel="stylesheet" href="docstyles.css" type="TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
@@ -3,6 +3,15 @@
<head>
<title>Moodle Dokumentation: Philosophie</title>
<link rel="stylesheet" href="docstyles.css" type="TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
@@ -3,6 +3,15 @@
<head>
<title>Moodle Dokumentation: Aktuelle Release Informationen</title>
<link rel="stylesheet" href="docstyles.css" type="TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
@@ -3,6 +3,15 @@
<head>
<title>Moodle Dokumentation Kleines Trainerhandbuch</title>
<link rel="stylesheet" href="docstyles.css" type="TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
@@ -4,6 +4,15 @@
<title>moodle Dokumentation: Leitfaden f&uuml;r
Moodle-&Uuml;bersetzungen</title>
<link rel="stylesheet" href="docstyles.css" type="TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>
@@ -4,6 +4,15 @@
<title>Moodle Dokumentation: Upgrade</title>
<link rel="stylesheet" href="docstyles.css" type=
"TEXT/CSS">
+ <script language="JavaScript" type="text/javascript">
+ <!-- //hide
+ var themeCSS = "<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>";
+ if (themeCSS.indexOf("CFG->wwwroot") != true) {
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/styles.php\" />");
+ document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + themeCSS +"/docstyles.php\" />");
+ }
+ // done hiding -->
+ </script>
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
</head>

0 comments on commit c1a0356

Please sign in to comment.