diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-09-09 09:53:31 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-09-09 09:53:31 +0000 |
commit | 9aec2fb5e728a37026adc0d5246e1cfe7d226cb9 (patch) | |
tree | 61cd3a69456a91747317de8db797db56e01157f7 /admin/template/yoga/header.tpl | |
parent | 26474d349f6f03b3f74beb91ef680f0c634e05d5 (diff) |
- fix typing error in index.tpl
- added template smarty function known_script (e.g.{known_script id="x" src"y.js"}) - useful to avoid double inclusion of a script such as prototype,jquery,... when a template and plugin need it independently (see the use in admin.tpl for example)
- removed unused themeconf.template_dir
git-svn-id: http://piwigo.org/svn/trunk@2513 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/template/yoga/header.tpl')
-rw-r--r-- | admin/template/yoga/header.tpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/template/yoga/header.tpl b/admin/template/yoga/header.tpl index b6169df99..607f31529 100644 --- a/admin/template/yoga/header.tpl +++ b/admin/template/yoga/header.tpl @@ -3,7 +3,7 @@ Warning : This is the admin pages header only - don't be confusing with the public page header + don't confuse with the public page header *} <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" @@ -22,6 +22,7 @@ <link rel="stylesheet" type="text/css" media="print" href="{$ROOT_URL}template/{$themeconf.template}/print.css"> <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/default-colors.css"> <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css"> +{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js" now=1} {*jQuery is always available by default*} {$themeconf.local_head} <script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script> <!--[if lt IE 7]> |