[kdewebdev-site] New function in base lib - showMasthead()
Eric Laffoon
eric at kdewebdev.org
Thu Mar 3 12:33:16 EST 2005
Hi all,
several conventions are assumed on the site. One is that pages managing the
display of content reside in the home directory of the domain. Enhanced
content can be in subdirectories and included but contradicting this means
extra work starting with menus. Another convention is that all masthead
images reside in the domain under images/page/masthead.png. However some are
not the same size and this causes problems when pages are copied around. We
really do need good templates, but to keep this safe I set up a function that
will display the masthead consistently and determine the size. Just use
<?php showMasthead() ?>
in place of the image link. This will automatically load the default location
for the domain and get the sizing information.
--
Eric Laffoon
Project Lead - kdewebdev module
More information about the kdewebdev-site
mailing list