changed git call from https to git readonly
[atutor.git] / mods / wiki / fragments / css.php
1 <style type="text/css"><!--
2 <?php
3
4   /*
5      Just include() this fragment in the <head> part of yoursite.php,
6      it will include the appropriate stylesheet snippets for the
7      current page.
8      You may want to remove the surrounding <style> tags here, if
9      you already have them in yoursite.
10   */
11
12   #-- base dir
13   $_css_dir = dirname(__FILE__) . "/css/";
14
15   #-- page id
16   if (!$ewiki_id) {
17      $ewiki_action = EWIKI_DEFAULT_ACTION;
18      $ewiki_id = ewiki_id();
19      if (strpos($ewiki_id, "/")) {
20         list($ewiki_action, $ewiki_id) = explode("/", $ewiki_id, 2);
21      }
22   }
23
24   #-- PageName.css
25   if (file_exists($_css = $_css_dir.$ewiki_id.".css") || file_exists($_css = $_css_dir.strtolower($ewiki_id).".css")) {
26      include($_css);
27   }
28
29   #-- action.css
30   if (file_exists($_css = $_css_dir.$ewiki_action.".css")) {
31      include($_css);
32   }
33
34 ?>
35 //--></style>