From 9db8ee600860893a18f76ebbe822393426463bcb Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 3 Dec 2010 07:00:49 +0000 Subject: 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 git-svn-id: http://piwigo.org/svn/trunk@7987 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/header.tpl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'themes/default/template/header.tpl') diff --git a/themes/default/template/header.tpl b/themes/default/template/header.tpl index 36222e268..45152d206 100644 --- a/themes/default/template/header.tpl +++ b/themes/default/template/header.tpl @@ -30,25 +30,26 @@ {if isset($last.U_IMG) }{/if} {if isset($U_UP) }{/if} + +{get_combined_css} + {foreach from=$themes item=theme} {if $theme.load_css} - +{combine_css path="themes/`$theme.id`/theme.css" order=-10} {/if} -{if !empty($theme.local_head)}{include file=$theme.local_head}{/if} +{if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if} {/foreach} + {if isset($U_PREFETCH) }{/if} {if not empty($page_refresh) }{/if} -{* - -*} + +{get_combined_scripts load='header'} -{get_combined_scripts load='header'} - {if not empty($head_elements)} {foreach from=$head_elements item=elt}{$elt} {/foreach} -- cgit v1.2.3