From d9fce8a30956c5e461e7b1d89e1ae6b7a524e181 Mon Sep 17 00:00:00 2001 From: HWFord <54360213+HWFord@users.noreply.github.com> Date: Wed, 14 Jan 2026 14:18:27 +0100 Subject: [PATCH] fixes #2508 add header.tpl to standard pages duplicate header.tpl from themes/default remove anything that isn't needed, load jQuery in header instead of footer --- themes/standard_pages/template/header.tpl | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 themes/standard_pages/template/header.tpl diff --git a/themes/standard_pages/template/header.tpl b/themes/standard_pages/template/header.tpl new file mode 100644 index 000000000..7a1022594 --- /dev/null +++ b/themes/standard_pages/template/header.tpl @@ -0,0 +1,41 @@ + + + +{if $SHOW_MOBILE_APP_BANNER} + +{/if} + + + +{if $PAGE_TITLE!=l10n('Home') && $PAGE_TITLE!=$GALLERY_TITLE}{$PAGE_TITLE} | {/if}{$GALLERY_TITLE} + + +{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} +{/foreach} + +{combine_script id="jquery" load="header"} +{/strip} + + +{get_combined_css} + +{get_combined_scripts load='header'} + + +{if not empty($head_elements)} +{foreach from=$head_elements item=elt} + {$elt} +{/foreach} +{/if} + + + + +
\ No newline at end of file