Changeset 9960 for extensions/stripped/template/header.tpl
- Timestamp:
- Mar 31, 2011, 11:48:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/template/header.tpl
r8112 r9960 34 34 {if isset($U_UP) }<link rel="up" title="{'Thumbnails'|@translate}" href="{$U_UP}" >{/if} 35 35 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} 37 45 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 45 50 {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 else61 {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}70 51 {include file='config.js.tpl'} 71 52 {/if} 72 53 73 54 {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'} 75 56 {/if} 76 57 77 58 {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'} 79 60 {/if} 80 61 81 62 {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'} 83 64 {/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}96 65 97 66 {if not empty($head_elements)}
Note: See TracChangeset
for help on using the changeset viewer.