Smarty engine help

From: Date: Tue, 14 Aug 2007 02:55:30 +0000
Subject: Smarty engine help
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13738@lists.php.net to get a copy of this message
Hello all! I am using Gallery2 which uses the smarty engine. I have a gallery and a lightbox on this gallery. I have added the class for the lightbox in the G2 template so the pic's load in a lightbox; like so: {foreach from=$theme.children item=child} {if !$child.canContainChildren} {if $firstItem} <div class="gallery-items"> {assign var="firstItem" value=false} {/if} <div class="gallery-thumb"> <a href="{g->url params=$theme.pageUrl arg1="itemId=$child.id"}" class="lightwindow"> {if isset($child.thumbnail)} {g->image item=$child image=$child.thumbnail} {else} {g->text text="no thumbnail"} {/if} </a> </div> {/if} {/foreach} The problem is that the pics load the header and footer in the lightbox. I have asked this on the G2 forums and the replies were to ask smarty people. You can see what i am talking about here: http://www.mytimewithgod.net/wp-gallery2.php?g2_itemId=26 and click on any pic. You will see that the lightbox has the site header and footer in it. Thanks for any help.

« previous php.smarty.general (#13738) next »