Basic layout customization

phpGraphy use the system of header/footer combined to templates, this way you have a very fine control of your website aspect. If you simply want to change colors, font attributes (font itself, size, color) and spacing etc... everything is controled by CSS. If you want to customize more deeply, you might want to edit the templates.

Here is the list of the three files used to control the layout :

For php beginners, here is an example on how to modify header.inc.php so that the logo isn't displayed in popups (addcomment and editwelcome)

            
            ---- bottom of header.inc.php in phpGraphy 0.9.11 ----
            <div <?php if (!$_GET['popup']) echo 'id="main"'; ?>>
            <a href="<?php echo basename($_SERVER['SCRIPT_NAME']); ?>"><img src="<?php echo $base_images_dir ?>phpgraphy-banner.gif" alt="phpGraphy banner" id="banner" /></a>

            ---- modification example if you do not want to have the logo included in popup mode ----
            <div <?php if (!$_GET['popup']) echo 'id="main"'; ?>>
            <?php if (!$_GET['popup']) : ?>
            <a href="<?php echo basename($_SERVER['SCRIPT_NAME']); ?>"><img src="<?php echo $base_images_dir ?>phpgraphy-banner.gif" alt="phpGraphy banner" id="banner" /></a>
            <?php endif; ?>