Use banner content provider
authorThierry Florac <thierry.florac@onf.fr>
Mon, 09 Jul 2018 11:44:47 +0200
changeset 74 5514b9412459
parent 73 d29bba682119
child 75 c87bb4047e5d
Use banner content provider
src/pyams_default_theme/features/header/skin/templates/simple-header.pt
--- a/src/pyams_default_theme/features/header/skin/templates/simple-header.pt	Thu Jul 05 15:10:47 2018 +0200
+++ b/src/pyams_default_theme/features/header/skin/templates/simple-header.pt	Mon Jul 09 11:44:47 2018 +0200
@@ -1,21 +1,6 @@
 <div class="header header-simple"
 	 tal:define="settings view.settings" i18n:domain="pyams_default_theme">
-	<div class="banner">
-		<tal:if define="banner settings.banner"
-				condition="banner">
-			<img class="banner"
-				 tal:define="src extension:absolute_url(banner)"
-				 tal:attributes="src string:${src}?_=${extension:timestamp(banner)}" />
-		</tal:if>
-		<tal:if define="logo settings.logo"
-				condition="logo">
-			<a href="/" title="Back home" i18n:attributes="title">
-				<img class="logo"
-					 tal:define="src extension:absolute_url(settings.logo, '++thumb++200x200')"
-					 tal:attributes="src string:${src}?_=${extension:timestamp(logo)}" />
-			</a>
-		</tal:if>
-	</div>
+	<tal:var replace="structure provider:pyams.banner" />
 	<ul class="nav nav-tabs" role="tablist">
 		<tal:loop repeat="link settings.tabs.get_visible_items()">
 			<li role="presentation"