1
Hello
I want to display a different banner for the News module. So I modified a theme from template zetagenesis. In the template xobanner.html I've placed the code below
<{if $xoops_dirname =="system"}>
<div id="xo-banner" class="<{$xoops_dirname}>">
<a href="<{xoAppUrl /}>"><img src="<{xoImgUrl img/heade.png}>" alt="<{$xoops_sitename}>" />a>
<a id="xo-main-logo" href="<{xoAppUrl /}>modules/xdonations"><img src="<{xoImgUrl img/header-logo.png}>" alt="<{$xoops_sitename}>" />a>
div>
<{/if}>
<{if $xoops_dirname =="liaise"}>
<div id="xo-banner" class="<{$xoops_dirname}>">
<a href="<{xoAppUrl /}>"><img src="<{xoImgUrl img/heade.png}>" alt="<{$xoops_sitename}>" />a>
<a id="xo-main-logo" href="<{xoAppUrl /}>modules/xdonations"><img src="<{xoImgUrl img/header-logo.png}>" alt="<{$xoops_sitename}>" />a>
div>
<{/if}>
<{if $xoops_dirname =="evennews"}>
<div id="xo-banner" class="<{$xoops_dirname}>">
<a href="<{xoAppUrl /}>"><img src="<{xoImgUrl img/heade.png}>" alt="<{$xoops_sitename}>" />a>
<a id="xo-main-logo" href="<{xoAppUrl /}>modules/xdonations"><img src="<{xoImgUrl img/header-logo.png}>" alt="<{$xoops_sitename}>" />a>
div>
<{/if}>
<{if $xoops_dirname =="mytube"}>
<div id="xo-banner" class="<{$xoops_dirname}>">
<a href="<{xoAppUrl /}>"><img src="<{xoImgUrl img/heade.png}>" alt="<{$xoops_sitename}>" />a>
<a id="xo-main-logo" href="<{xoAppUrl /}>modules/xdonations"><img src="<{xoImgUrl img/header-logo.png}>" alt="<{$xoops_sitename}>" />a>
div>
<{/if}>
<{if $xoops_dirname =="pm"}>
<div id="xo-banner" class="<{$xoops_dirname}>">
<a href="<{xoAppUrl /}>"><img src="<{xoImgUrl img/heade.png}>" alt="<{$xoops_sitename}>" />a>
<a id="xo-main-logo" href="<{xoAppUrl /}>modules/xdonations"><img src="<{xoImgUrl img/header-logo.png}>" alt="<{$xoops_sitename}>" />a>
div>
<{/if}>
<{if $xoops_dirname =="profile"}>
<div id="xo-banner" class="<{$xoops_dirname}>">
<a href="<{xoAppUrl /}>"><img src="<{xoImgUrl img/heade.png}>" alt="<{$xoops_sitename}>" />a>
<a id="xo-main-logo" href="<{xoAppUrl /}>modules/xdonations"><img src="<{xoImgUrl img/header-logo.png}>" alt="<{$xoops_sitename}>" />a>
div>
<{/if}>
<{if $xoops_dirname =="publisher"}>
<div id="xo-banner" class="<{$xoops_dirname}>">
<a href="<{xoAppUrl /}>"><img src="<{xoImgUrl img/heade.png}>" alt="<{$xoops_sitename}>" />a>
<a id="xo-main-logo" href="<{xoAppUrl /}>modules/xdonations"><img src="<{xoImgUrl img/header-logo.png}>" alt="<{$xoops_sitename}>" />a>
div>
<{/if}>
<{if $xoops_dirname =="xdonations"}>
<div id="xo-banner" class="<{$xoops_dirname}>">
<a href="<{xoAppUrl /}>"><img src="<{xoImgUrl img/heade.png}>" alt="<{$xoops_sitename}>" />a>
<a id="xo-main-logo" href="<{xoAppUrl /}>modules/xdonations"><img src="<{xoImgUrl img/header-logo.png}>" alt="<{$xoops_sitename}>" />a>
div>
<{/if}>
<{if $xoops_dirname =="news"}>
<div id="xo-banner2">
<a href="<{xoAppUrl /}>"><img src="<{xoImgUrl img/Bandeau-blog.jpg}>" alt="<{$xoops_sitename}>" />a>
<a id="xo-main-logo2" href="<{xoAppUrl /}>modules/xdonations"><img src="<{xoImgUrl img/header-logo.png}>" alt="<{$xoops_sitename}>" />a>
div>
<{/if}>
It works fine, the problem is that I wanted to know if the code was clean and then if there were an easier way to use the News module
Thank you