Re: [SMARTY] Re: Conditional

[email protected] (Owen Cole) Tue, 21 Aug 2007 15:37:06 -0400
Newsgroups php.smarty.general
Organization Blue Spider Inc.
Message-ID <[email protected]>
If you are using a lightbox your HREF should be direct to the picture or 
the script that generates the picture... Don't link back to your website 
then try to hide stuff... if you do so you will be wasting CPU cycles 
generating the header and footer, just to go and hide it..

<div class="gallery-thumb">
	<a href="main.php?g2_view=core.DownloadItem&g2_itemId=23&g2_serialNumber=1" class="lightwindow">
		<img src="photos/main.php?g2_view=core.DownloadItem&amp;g2_itemId=24&amp;g2_serialNumber=2" width="150" height="113" alt="DSC01416"/>
	</a>
</div>


Chris Arnold wrote:
> (Sorry Scott, i sent that mail directly to you instead of the list.)
> OK, check it out, what i am trying to do is when lightwindow is called, not display header and footer in the lightwindow. So, i used this <div style="display:none;"><div class="header"></div></div>. Nothing changed, the header was still shown. Is this the right way to do what i want to do? Linkage: http://www.mytimewithgod.net/wp-gallery2.php?g2_itemId=22 click on any photo and you will see
>
> Chris
> ----- Original Message -----
> From: "Chris Arnold" <[email protected]>
> To: [email protected]
> Sent: Tuesday, August 21, 2007 9:54:24 AM (GMT-0500) America/New_York
> Subject: Conditional
>
> I use a lightbox effect on my G2 site (which uses Smarty). When this
> lightbox effect is called, i want to display only certain stuff. How
> would i write this using smarty? Thanks for any help
>
> Chris
>
>