From b153d19474c6cc1a48ba73df15f65b27bae9fc4f Mon Sep 17 00:00:00 2001 From: mistic100 Date: Fri, 13 Jun 2014 19:10:41 +0000 Subject: clean HTML code of header and footer git-svn-id: http://piwigo.org/svn/trunk@28690 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/footer.tpl | 85 ++++++++++++-------------------- admin/themes/default/template/header.tpl | 47 +++++++++--------- 2 files changed, 56 insertions(+), 76 deletions(-) (limited to 'admin/themes/default/template') diff --git a/admin/themes/default/template/footer.tpl b/admin/themes/default/template/footer.tpl index 2704ef5c1..e3daa12c3 100644 --- a/admin/themes/default/template/footer.tpl +++ b/admin/themes/default/template/footer.tpl @@ -2,82 +2,59 @@ Warning : This is the admin pages footer only don't be confusing with the public page footer *} - +{* *} + {if isset($footer_elements)} -{foreach from=$footer_elements item=v} -{$v} +{foreach from=$footer_elements item=elt} + {$elt} {/foreach} {/if} + {if isset($debug.QUERIES_LIST)}
-{$debug.QUERIES_LIST} + {$debug.QUERIES_LIST}
{/if}
- {if isset($debug.TIME) } - {'Page generated in'|@translate} {$debug.TIME} ({$debug.NB_QUERIES} {'SQL queries in'|@translate} {$debug.SQL_TIME}) - - {/if} + {if isset($debug.TIME) } + {'Page generated in'|translate} {$debug.TIME} ({$debug.NB_QUERIES} {'SQL queries in'|translate} {$debug.SQL_TIME}) - + {/if} + {'Contact'|translate} + {'Webmaster'|translate} +
{* *} - {'Contact'|@translate} - {'Webmaster'|@translate} - +{* *} +{* *} - - - -{combine_script id='jquery.tipTip' load='async' path='themes/default/js/plugins/jquery.tipTip.minified.js'} +{combine_script id='jquery.tipTip' load='footer' path='themes/default/js/plugins/jquery.tipTip.minified.js'} {footer_script require='jquery.tipTip'} -jQuery(document).ready(function() {ldelim} - jQuery('#pwgHead A[title], #footer A[title], .themeActions .tiptip, .languageActions .tiptip').tipTip({ldelim} - 'delay' : 0, - 'fadeIn' : 200, - 'fadeOut' : 200 - }); +jQuery('.tiptip').tipTip({ + delay: 0, + fadeIn: 200, + fadeOut: 200 +}); + +jQuery('a.externalLink').click(function() { + window.open(jQuery(this).attr("href")); + return false; }); {/footer_script} - + {get_combined_scripts load='footer'} - - -{literal} - -{/literal} - -{if not $ENABLE_SYNCHRONIZATION} -{literal} - -{/literal} -{/if} + \ No newline at end of file diff --git a/admin/themes/default/template/header.tpl b/admin/themes/default/template/header.tpl index 5188edff4..1979c9d58 100644 --- a/admin/themes/default/template/header.tpl +++ b/admin/themes/default/template/header.tpl @@ -1,8 +1,6 @@ {* - Warning : This is the admin pages header only don't confuse with the public page header - *} @@ -11,27 +9,32 @@ {$GALLERY_TITLE} :: {$PAGE_TITLE} -{get_combined_css} +{strip} {foreach from=$themes item=theme} -{if $theme.load_css} -{combine_css path="admin/themes/`$theme.id`/theme.css" order=-10} -{/if} -{if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if} + {if $theme.load_css} + {combine_css path="admin/themes/`$theme.id`/theme.css" order=-10} + {/if} + {if !empty($theme.local_head)} + {include file=$theme.local_head load_css=$theme.load_css} + {/if} {/foreach} -{combine_css path="admin/themes/default/fontello/css/fontello.css"} - -{get_combined_scripts load='header'} - +{combine_css path="admin/themes/default/fontello/css/fontello.css"} {combine_script id='jquery' path='themes/default/js/jquery.min.js'} +{/strip} + + +{get_combined_css} + +{get_combined_scripts load='header'} + {if not empty($head_elements)} {foreach from=$head_elements item=elt} -{$elt} + {$elt} {/foreach} {/if} - @@ -48,18 +51,18 @@

- - - {$GALLERY_TITLE} + + + {$GALLERY_TITLE}

@@ -73,4 +76,4 @@ {/if} -
\ No newline at end of file +
-- cgit v1.2.3