From 4dcec5fb8a2c85a9292374672b887b46f2862a53 Mon Sep 17 00:00:00 2001 From: vdigital Date: Wed, 30 Jul 2008 19:24:55 +0000 Subject: Feature:837 "Extend for templates" could have dedicated .css files. git-svn-id: http://piwigo.org/svn/trunk@2462 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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[] = + ''; + } } } } -- cgit v1.2.3