|
From: W.D.Sumilang <wa...@on...> - 2001-03-20 11:15:24
|
> Message: 8
> Date: Mon, 19 Mar 2001 07:59:31 -0500
> From: Matt McNaney <mcn...@ap...>
> To: phpWebSite Developers <php...@li...>
> Subject: [Phpwebsite-developers] Some answers
> Reply-To: php...@li...
>
> A little about themes...
>
> The header.php file in the root pretty much just checks cookies, then
> loads the appropriate theme from the themes/ directory.
>
> As for the the themes directory itself: themes.php creates the boxes.
> That is why there are so many different theme functions. We wanted
> users to have the ability to form them however they want. header.php
> is more general. It controls the layout of the page, not the individual
> boxes.
>
> Just so you know, we aren't thrilled about the way it works currently.
> There are too many files (two really but that is still too much =).
> I would like there to be just ONE file that is edited for a theme.
> However, the engine needs to be flexible enough to handle anything
> the designer can dream up while editing that one file.
>
> Even better would be menu driven theming, and I think we should be
> able to get there. In any case, ideas are welcome. Keep in mind
> however, that we want to allow legacy themes as much as possible. We
> don't want to have to include upgrading theme info with every install.
> I think that would drive people away.
While this is NOT a solution to the phpWS's problem with theme flexibility,
it's cleaner than creating new functions that basically do the same thing...
everything in phpWS is contained in the same "box" structure, so why
not just pass the style class rules as arguments... hopefully this will
lead in a better direction for themes ;o)
function themesidebox($title, $content, $bgClassname, $titleClassname,
$contentClassname)
{
include("config.php");
echo "
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"
summary=\"Border for Generic Block\">
<tr>
<td class=\"$bgClassname\">
<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\"
summary=\"Data for Generic Block\">
<tr>
<td class=\"$titleClassname\">$title
</td>
</tr>
<tr>
<td class=\"$contentClassname\">$content
</td> </tr> </table> </td> </tr> </table> <br /> ";
}
__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com
|