Ignore:
Timestamp:
Jul 30, 2008, 9:24:55 PM (16 years ago)
Author:
vdigital
Message:

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

File:
1 edited

Legend:

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

    r2434 r2462  
    174174              // $localphp = '../.' . substr($localtpl,0,-3).'php';
    175175              // 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              }
    176185          }
    177186        }
Note: See TracChangeset for help on using the changeset viewer.