Picture Gallery

22 posts by 8 authors in: Forums > CMS Builder
Last Post: November 9, 2012   (RSS)

Re: [degreesnorth] Picture Gallery

It won't make that much difference to the speed of the page if the code is in the header for all pages, as the click event could never been run unless . When I want to only show something on a specific page that has to be in a include header, I do this:

In the Gallery file:

$isGalleryPage = true;
include('include_header.php');


include_header.php file:

<?php if(@$isGalleryPage ): ?>

<!-- Code to only appear on gallery page goes here -->

<?php endif; ?>


Could you give me a bit more clarification on the second point?

Thanks
Greg Thomas







PHP Programmer - interactivetools.com