How to hide the gsHeader block.

digitrebel
digitrebel's picture

Joined: 2005-09-02
Posts: 12
Posted: Fri, 2005-09-02 10:07

Hello

I would like to hide (not just visibility:hidden) the <div id="gsHeader"> block everywhere except the main gallery page. (Matrix or PG theme).
Any idea ?

Another question:
is it possible to crypt an email (for spam) displayed on the main page ? I already have a javascript for this, but I get a Smarty error with Gallery2. I have too a php function, but I don't know how to include it in theme.tpl

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Fri, 2005-09-02 15:21

Put this in right above the <div id="gsHeader"> in theme.tpl

{if $theme.item.parentId == 0}

Then put this after </div>

{/if}
 
digitrebel
digitrebel's picture

Joined: 2005-09-02
Posts: 12
Posted: Fri, 2005-09-02 16:28

Work fine.
Thanks lvthunder :-)