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[] = + ''; + } } } } diff --git a/template-extension/distributed/samples/my-thumbnails2.css b/template-extension/distributed/samples/my-thumbnails2.css new file mode 100644 index 000000000..cb03e1144 --- /dev/null +++ b/template-extension/distributed/samples/my-thumbnails2.css @@ -0,0 +1,7 @@ +/* $Id$ */ +legend.thumbLegend { padding: 0 5px; color: #24919c; font-style:italic; font-size: 7px; } +fieldset.wrap1 { width: 96px; min-width: 96px; padding: 0; +margin: 5px; display: inline;} +.wrap2 { display: block; padding: 4px 15px 10px 15px; border: 0;} +a.wrap2:hover { border: 0; background-color: #000; } +img.thumbnail { display: block; margin: 2px auto; } \ No newline at end of file diff --git a/template-extension/distributed/samples/my-thumbnails2.tpl b/template-extension/distributed/samples/my-thumbnails2.tpl index 0f17542d1..33f6e0569 100644 --- a/template-extension/distributed/samples/my-thumbnails2.tpl +++ b/template-extension/distributed/samples/my-thumbnails2.tpl @@ -4,32 +4,14 @@