coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: mala on March 19, 2008, 02:03:42 PM

Title: [Solved]: Conditional custom_header contents
Post by: mala on March 19, 2008, 02:03:42 PM
Like usual I am sorry if the question has be posted before, I could not find it.

It is easier for me to describe the question on the example of my gallery in
http://sikinos.unige.ch/NOB

We are  using a slightly modified igames theme (which is pretty classy).
In the top panel there is a big static image of the sea which we absolutely want to keep.
It is in a  CUSTOM_HEADER file.
It is fine in the album list view and in the thumbnails view.
But in the image view it takes too much room obliging the user to scroll down on every picture to see
the pictures details.
Can we display the image conditionally, I mean make  it disappear every time we are in the image view situation but
reappear in the other views?

Thanks
Title: Re: Conditional custom_header contents
Post by: Nibbler on March 19, 2008, 02:20:23 PM
Post the contents of your custom header file.
Title: Re: Conditional custom_header contents
Post by: mala on March 19, 2008, 04:57:02 PM
<?php
?>
<img src="/NOB/themes/NOBtheme/images/SmallSeaHeader.JPG" width="2080" height="200" border="0">
<?php
?>

It is just that, the image.
Title: Re: Conditional custom_header contents
Post by: Nibbler on March 19, 2008, 05:23:57 PM
Change to


<?php
if (!defined('DISPLAYIMAGE_PHP')){
    echo 
'<img src="/NOB/themes/NOBtheme/images/SmallSeaHeader.JPG" width="2080" height="200" border="0">';
}
?>

Title: Re: Conditional custom_header contents
Post by: mala on March 19, 2008, 05:43:14 PM
Thanks and thanks for the classy igames theme.