Feature:837 "Extend for templates" could have dedicated .css files.

git-svn-id: http://piwigo.org/svn/trunk@2462 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
vdigital
2008-07-30 19:24:55 +00:00
parent c8c61b7f3a
commit 4dcec5fb8a
3 changed files with 22 additions and 24 deletions
+9
View File
@@ -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) . '">';
}
}
}
}