From: Greg M. <drk...@co...> - 2006-03-01 07:07:49
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Matthew McNaney wrote: > On Mon, 2006-02-27 at 23:00 -0700, Greg Morgan wrote: > > Here is a quick definition list. > > align-(center, left, right) : > > bgcolor1-3 : > > bigger & smaller : > > box, box-title, box-content : > module styles : > > img.float-left/right : > no-bullet : > phpws_form : > spoiler : > Please see below. >>[theme_variables] >>0 = LAYOUT_HEADER >>1 = LAYOUT_FOOTER >>2 = BOTTOM >>3 = USERS_LOGIN_BOX >>4 = NOTES_REMINDER >>5 = CATEGORIES_ADMIN_MENU >>6 = SEARCH_SEARCH_BOX 7 = BODY 8 = DEFAULT Will adding these required variables here in the [theme_variables] section confuse the layout system? > > These values tell Layout what extra content sections you have in your > theme. > Each theme MUST have BODY and DEFAULT. Beyond that, you can create a > content section just by adding it to the numeric list. If these are not Is the numeric order in the [theme_variables] section significant? > put in, you cannot move content around the page and content will not > anchor properly. > > The theme variables that are prefixes by module names are anchors. The > first time the above content was created, layout checks to see if it has > an anchor, if it doesn't, it checks the theme.ini file for a module_name > + content variable name. If it finds that variable, it places the > content in that space. If it doesn't, it plops it into the DEFAULT theme > variable. > http://phpwebsite-comm.sourceforge.net/wiki/index.php?title=En_Layout Ok so I revised and dumped layout.txt and parts of this discussion into the page above. The selector catalog is still located here http://phpwebsite-comm.sourceforge.net/wiki/index.php?title=En_default . I dumped my regex's from vim here http://phpwebsite-comm.sourceforge.net/wiki/index.php?title=En_blueballs . The main_page has also been redesigned http://phpwebsite-comm.sourceforge.net/wiki/index.php?title=Main_Page . Interesting: as I was updating .txt files for the next 0.10.3 release critical mass was achieved for the 0.9.x theming system. As noted in the email that started this thread I started to grep for all the selectors and "touch" points for module development and theming in fallout. At present combining all the roles in the http://phpwebsite-comm.sourceforge.net/wiki/index.php?title=En_Layout page is a good thing so that the parts can be seen functioning as a whole. Here's what I sense so far then. A catalog of each of the modules available theme variables must be defined. It sounds like each module page requires a section covering these variables for theme designers. So based on these emails * LAYOUT module has two * * HEADER (LAYOUT_HEADER) * * FOOTER (LAYOUT_FOOTER) * USERS module has one * * LOGIN_BOX (USERS_LOGIN_BOX) * NOTES module has one * * REMINDER (NOTES_REMINDER) * CATEGORIES module has one * * ADMIN_MENU (CATEGORIES_ADMIN_MENU) * SEARCH module has one * * SEARCH_BOX (SEARCH_SEARCH_BOX) * BOTTOM is just there so that phpWebSite has something to hold...well never mind. I might grep on 'Layout::add' to locate and catalog the variables? Likewise, the selector variables, bgcolor1-3, need to be cataloged so that designers know where to add their color, structure, and fonts to a theme whereas the the theme variables would allow them to position the content in the theme. > This allows people to choose a theme and just have it work without > having to move boxes afterward. It also gives the theme developer more > room to style certain components (the menu for example). > > > >>[persistant_style_sheet] >>file = style.css >> >>[default_style_sheet] >>file = default.css >>title = Default Delite >> >>[alternate_style_sheet_1] >>file = blue.css >>title = Blue > > > A persistent style sheet is always loaded. (yes I realize I misspelled > it now) > The default style sheet is then loaded. > The alternate style sheets are loaded should the user want a different > view. Firefox allows you to do this but if you want the change to > "stick" you may have to download an extension. "stick" as in http://www.stickdeath.com/frameset.htm ? ;-) I am not familiar with firefox "sticks". I heard tell that they are breaking IE's bones. > > For now, I put positioning, font sizes, padding widths, etc. in the > persistent style sheet. Color choices go into the default and alternate. > You are not required to use this format, you could just use ONE style > sheet if you wish. Default uses alternates as an example. Greg -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFEBUg+xyxe5L6mr7IRAo+wAJ9fpbQ51WXdrfNVs94nt5Q7tNKa2ACfeHI9 LntrOHzsp62ty51njqBCQsc= =zhby -----END PGP SIGNATURE----- |