Browse Source

Fixed dependency on being located in /themes.

- added _phptemplate_variables() for custom CSS stylesheet.
Frederic G. MARAND 12 years ago
parent
commit
9f72baa29b
2 changed files with 5 additions and 1 deletions
  1. 0 1
      page.tpl.php
  2. 5 0
      template.php

+ 0 - 1
page.tpl.php

@@ -13,7 +13,6 @@
     <?php print $head ?>
     <?php print $styles ?>
     <script type="text/javascript"><?php /*  avoid Flash of Unstyle Content in IE */ ?></script>
-    <link rel="stylesheet" type="text/css" href="/themes/nested/nested.css" />
     </head>
 
   <body>

+ 5 - 0
template.php

@@ -0,0 +1,5 @@
+<?php
+function _phptemplate_variables($hook, $vars) {
+  drupal_add_css($vars['directory'] .'/nested.css');
+  return array();
+}