Ignore:
Timestamp:
Mar 31, 2011, 11:48:00 PM (13 years ago)
Author:
Zaphod
Message:

[extension] stripped - version 1.3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/template/header.tpl

    r8112 r9960  
    3434  {if isset($U_UP)          }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if}
    3535
    36   {if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
     36        {get_combined_css}
     37        {foreach from=$themes item=theme}
     38                {if $theme.load_css}
     39                        {combine_css path="themes/`$theme.id`/theme.css" order=-10}
     40                {/if}
     41                {if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if}
     42        {/foreach}
     43
     44        {if isset($U_PREFETCH)}<link rel="prefetch" href="{$U_PREFETCH}">{/if}
    3745 
    38   {if not empty($page_refresh)}<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
    39 
    40   {known_script id="jquery" src=$ROOT_URL|@cat:"themes/stripped/js/jquery-1.4.2.min.js"}
    41   {known_script id="jquery-effects-core" src=$ROOT_URL|@cat:"themes/default/js/ui/minified/effects.core.min.js"}
    42   {known_script id="jquery-effects-fold" src=$ROOT_URL|@cat:"themes/default/js/ui/minified/effects.fold.min.js"}
    43   {known_script id="scripts" src=$ROOT_URL|cat:"themes/default/js/scripts.js"}
    44 
     46        {if not empty($page_refresh)}<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if}
     47 
     48        {get_combined_scripts load='header'}
     49 
    4550        {if $BODY_ID=='theCategoryPage' || $BODY_ID=='thePicturePage'}
    46                 {php}
    47                         $home=$PHPWG_ROOT_PATH;
    48                         $themes=$this->get_template_vars('themes');
    49                         foreach($themes as $theme)
    50                         {
    51                                 $dir=$home."/themes/".$theme['id']."/conf/";
    52                                 $dir=PHPWG_ROOT_PATH.'/themes/'.$theme['id'].'/conf/';
    53                                 $dir=dirname($_SERVER['SCRIPT_FILENAME'])."/themes/".$theme['id']."/conf/";
    54                                 $dirlocal=dirname($_SERVER['SCRIPT_FILENAME'])."/local/themes/".$theme['id']."/conf/";
    55                                 $this->assign("default_conf", $dir."default.conf");
    56                                 if(file_exists($dirlocal."local.conf"))
    57                                 {
    58                                   $this->assign("local_conf", $dirlocal."local.conf");
    59                                 }
    60                                 else
    61                                 {
    62                                   $this->assign("local_conf", "");
    63                                 }
    64                         }
    65                 {/php}
    66                 {config_load file=$default_conf}
    67                 {if $local_conf!=""}
    68                         {config_load file=$local_conf}
    69                 {/if}
    7051                {include file='config.js.tpl'}
    7152        {/if}
    7253
    7354        {if ($BODY_ID=='theCategoryPage')}
    74                 {known_script id="scripts-tpp" src=$ROOT_URL|cat:"themes/stripped/js/scripts-tcp.js"}
     55                {combine_script id='scripts-tcp' load='header' require='jquery.effects.blind' path='themes/stripped/js/scripts-tcp.js'}
    7556        {/if}
    7657
    7758        {if $BODY_ID=='thePicturePage'}
    78                 {known_script id="scripts-tpp" src=$ROOT_URL|cat:"themes/stripped/js/scripts-tpp.js"}
     59                {combine_script id='scripts-tpp' load='header' require='jquery' path='themes/stripped/js/scripts-tpp.js'}
    7960        {/if}
    8061
    8162        {if ($BODY_ID=='theMapListPage')}
    82                 {known_script id="scripts-tml" src=$ROOT_URL|cat:"themes/stripped/js/scripts-tml.js"}
     63                {combine_script id='scripts-tml' load='header' require='jquery' path='themes/stripped/js/scripts-tml.js'}
    8364        {/if}
    84 
    85   {foreach from=$themes item=theme}
    86   {if $theme.load_css}
    87   <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/{$theme.id}/theme.css">
    88   {/if}
    89   {if !empty($theme.local_head)}{include file=$theme.local_head}{/if}
    90   {/foreach}
    91 
    92   {if isset($U_FEED)}
    93   <link rel="alternate" type="application/rss+xml" title="{'Image only RSS feed'|@translate}" href="{$U_FEED_IMAGE_ONLY}">
    94   <link rel="alternate" type="application/rss+xml" title="{'Complete RSS feed (images, comments)'|@translate}" href="{$U_FEED}">
    95   {/if}
    9665
    9766  {if not empty($head_elements)}
Note: See TracChangeset for help on using the changeset viewer.