Ignore:
Timestamp:
Jul 31, 2008, 8:58:44 AM (16 years ago)
Author:
vdigital
Message:

Feature:837 "Extend for templates" could have dedicated .css files by a simple technical {html_head} inclusion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.class.php

    r2462 r2464  
    171171              $this->files[$handle] = '../.' . $localtpl;
    172172              /* assign their tpl-extension */
    173               /* For test purpose: Do advanced users need a php access? */
    174               // $localphp = '../.' . substr($localtpl,0,-3).'php';
    175               // if (file_exists($localphp)) @include_once($localphp);
    176              
    177               /* Does it have a samename.css available */
    178               $localcss = substr($localtpl,0,-3).'css';
    179               if (file_exists($localcss))
    180               {
    181                 $this->html_head_elements[] =
    182                 '<link rel="stylesheet" type="text/css" href="'
    183                 . substr($localcss, 2) . '">';
    184               }
    185173          }
    186174        }
Note: See TracChangeset for help on using the changeset viewer.