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_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}

- {'Hello'|@translate} {$USERNAME} | - {'Visit Gallery'|@translate} | - {'Change Admin Colors'|@translate} | - {'Help Me'|@translate} | - {'Logout'|@translate} + {'Hello'|translate} {$USERNAME} | + {'Visit Gallery'|translate} | + {'Change Admin Colors'|translate} | + {'Help Me'|translate} | + {'Logout'|translate}
@@ -73,4 +76,4 @@ {/if} -
\ No newline at end of file +
diff --git a/themes/default/template/footer.tpl b/themes/default/template/footer.tpl index 08c94fb4f..a62b27a18 100644 --- a/themes/default/template/footer.tpl +++ b/themes/default/template/footer.tpl @@ -1,34 +1,40 @@ {* *} -{if isset($footer_elements)} -{foreach from=$footer_elements item=v} -{$v} -{/foreach} -{/if} -
{* copyright *} {if isset($debug.QUERIES_LIST)}
-{$debug.QUERIES_LIST} + {$debug.QUERIES_LIST}
{/if} -
{* the_page *} +{* *} + + +{get_combined_scripts load='footer'} + + \ No newline at end of file diff --git a/themes/default/template/header.tpl b/themes/default/template/header.tpl index 3debe3872..03084aa87 100644 --- a/themes/default/template/header.tpl +++ b/themes/default/template/header.tpl @@ -1,77 +1,88 @@ - + -{if isset($meta_ref) } + +{if isset($meta_ref)} {if isset($INFO_AUTHOR)} - + {/if} {if isset($related_tags)} {/if} {if isset($COMMENT_IMG)} - + {else} {/if} {/if} + {if $PAGE_TITLE!=l10n('Home') && $PAGE_TITLE!=$GALLERY_TITLE}{$PAGE_TITLE} | {/if}{$GALLERY_TITLE} - - -{if isset($first.U_IMG) }{/if} -{if isset($previous.U_IMG)}{/if} -{if isset($next.U_IMG) }{/if} -{if isset($last.U_IMG) }{/if} -{if isset($U_UP) }{/if} + + -{get_combined_css} +{if isset($first.U_IMG) }{/if} +{if isset($previous.U_IMG)}{/if} +{if isset($next.U_IMG) }{/if} +{if isset($last.U_IMG) }{/if} +{if isset($U_UP) }{/if} + +{if isset($U_PREFETCH) }{/if} +{if isset($U_CANONICAL) }{/if} + +{if not empty($page_refresh)}{/if} + +{strip} {foreach from=$themes item=theme} -{if $theme.load_css} -{combine_css path="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="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_script id="jquery" load="footer"} +{/strip} -{if isset($U_PREFETCH)}{/if} -{if isset($U_CANONICAL)}{/if} - -{if not empty($page_refresh) }{/if} + +{get_combined_css} {get_combined_scripts load='header'} + + -{combine_script id="jquery" load="footer"} - {if not empty($head_elements)} - {foreach from=$head_elements item=elt}{$elt} - {/foreach} +{foreach from=$head_elements item=elt} + {$elt} +{/foreach} {/if} - +
{if not empty($header_msgs)}
- {foreach from=$header_msgs item=elt} - {$elt}
- {/foreach} + {foreach from=$header_msgs item=elt} + {$elt}
+ {/foreach}
{/if}
{$PAGE_BANNER}
-{if isset($theSwiftHeader)}{$theSwiftHeader}{/if} + {if not empty($header_notes)}
- {foreach from=$header_notes item=elt} -

{$elt}

- {/foreach} + {foreach from=$header_notes item=elt} +

{$elt}

+ {/foreach}
{/if}