Login  Register

Re: app_body_header

Posted by Pedro on Oct 28, 2013; 5:49pm
URL: https://support.nabble.com/app-body-header-tp7584955p7587558.html

First: in order to reduce "if" statements you can do something like this:
<n.if.contains_substring string="id1, id2, id3, etc." substring="[n.id/]">
        <then>Ad Code</then>
</n.if.contains_substring>
It will see if the id is id1, id2, id3 or any you add here.

To avoid rewrite ad codes, you can create macros with the ad script inside it:

<macro name="ad_Lift1">
<n.set_css_header/>
<div id="deals_img" class='header-col'>                     
 <a href="http://www.avantlink.com/click.php?tt=ml&amp;ti=97425&amp;pw=149617" rel="nofollow" target="_blank"><img src="http://www.avantlink.com/gbi/10065/97425/124793/149617/image.png" style="border:1px; margin:20px 0 0 0;" title="Best Deals on Lift Tickets!" alt="Liftopia" /></a>   
</div>
</macro>
And then you can use:
<n.if.equal value1="[n.id/]" value2="3646525">
	<then><n.ad_Lift1></then>  
</n.if.equal>
My test forum.