From: <to...@us...> - 2006-08-12 18:12:38
|
Update of /cvsroot/tikiwiki/tiki/templates In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv6255/templates Modified Files: Tag: BRANCH-1-9 header.tpl Log Message: Enables included php to ask some extra js external with some basic priority. To be used from php as : // Require some extra js middle priority 50 $head_extra_js['lib/imagegals/imagegallib.js'] = 50; Index: header.tpl =================================================================== RCS file: /cvsroot/tikiwiki/tiki/templates/header.tpl,v retrieving revision 1.36.2.35 retrieving revision 1.36.2.36 diff -u -d -r1.36.2.35 -r1.36.2.36 --- header.tpl 11 Aug 2006 17:18:58 -0000 1.36.2.35 +++ header.tpl 12 Aug 2006 18:12:34 -0000 1.36.2.36 @@ -123,7 +123,11 @@ <link rel="alternate" type="application/rss+xml" title="{tr}RSS Calendars{/tr}" href="tiki-calendars_rss.php?ver={$rssfeed_default_version}" /> {/if} - +{* extra javascript external files *} +<!-- {$head_extra_js|@asort} --> +{foreach key=extrajs item=fooprio from=$head_extra_js} + <script type="text/javascript" src="{$extrajs}"></script> +{/foreach} {* ---- END ---- *} |