aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-07-30 19:24:55 +0000
committervdigital <vdigital@piwigo.org>2008-07-30 19:24:55 +0000
commit4dcec5fb8a2c85a9292374672b887b46f2862a53 (patch)
tree13d43412374bfae8f9be91397e1703a7f92419dd /include/template.class.php
parentc8c61b7f3af2cf48ee72b3b3fe9fca1376a5cf13 (diff)
Feature:837 "Extend for templates" could have dedicated .css files.
git-svn-id: http://piwigo.org/svn/trunk@2462 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/template.class.php')
-rw-r--r--include/template.class.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/template.class.php b/include/template.class.php
index e7ab39b8d..614bcb888 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -173,6 +173,15 @@ class Template {
/* For test purpose: Do advanced users need a php access? */
// $localphp = '../.' . substr($localtpl,0,-3).'php';
// if (file_exists($localphp)) @include_once($localphp);
+
+ /* Does it have a samename.css available */
+ $localcss = substr($localtpl,0,-3).'css';
+ if (file_exists($localcss))
+ {
+ $this->html_head_elements[] =
+ '<link rel="stylesheet" type="text/css" href="'
+ . substr($localcss, 2) . '">';
+ }
}
}
}