mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Feature:837 "Extend for templates" could have dedicated .css files by a simple technical {html_head} inclusion.
git-svn-id: http://piwigo.org/svn/trunk@2464 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -170,18 +170,6 @@ class Template {
|
||||
{ /* examples: Are best_rated, created-monthly-calendar, list, ... set? */
|
||||
$this->files[$handle] = '../.' . $localtpl;
|
||||
/* assign their tpl-extension */
|
||||
/* 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) . '">';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user