Smarty engine help

[email protected] (Chris Arnold) Mon, 13 Aug 2007 22:55:30 -0400
Newsgroups php.smarty.general
Message-ID <[email protected]>
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.