Ignore:
Timestamp:
Dec 3, 2010, 8:00:49 AM (13 years ago)
Author:
rvelices
Message:

new template feature: combine_css

  • fully functional with file merging
  • takes care of url() in css and recursively merge all @import
  • migrated public templates only; need more code doc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/header.tpl

    r7975 r7987  
    3131{if isset($U_UP)          }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if}
    3232
     33
     34{get_combined_css}
     35
    3336{foreach from=$themes item=theme}
    3437{if $theme.load_css}
    35 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/{$theme.id}/theme.css">
     38{combine_css path="themes/`$theme.id`/theme.css" order=-10}
    3639{/if}
    37 {if !empty($theme.local_head)}{include file=$theme.local_head}{/if}
     40{if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if}
    3841{/foreach}
     42
    3943
    4044{if isset($U_PREFETCH)          }<link rel="prefetch" href="{$U_PREFETCH}">{/if}
    4145
    4246{if not empty($page_refresh)    }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
    43 {*
    44 <script type="text/javascript" src="{$ROOT_URL}themes/default/js/scripts.js"></script>
    45 *}
     47
     48{get_combined_scripts load='header'}
    4649<!--[if lt IE 7]>
    4750<script type="text/javascript" src="{$ROOT_URL}themes/default/js/pngfix.js"></script>
    4851<![endif]-->
    49 
    50 {get_combined_scripts load='header'}
    5152
    5253{if not empty($head_elements)}
Note: See TracChangeset for help on using the changeset viewer.