BuckoSoft Web Page Organization | January 3, 2006 |
This is how the web pages are constructed. It's become a rat's nest over the last 29.0 years, so i thought i would write this down. (Already, improvements jump out at me :))
...well, i looked at it for a week and had to somewhat clean it up.:)
- pagetop.php
A normal page would include just this file. The results of including this file is the entire html preamble leaving the page in the body.
- include bs.php
- printHead();
- printHeadCompass();
- printHeadEBody();
- printBodyCompass();
- include header.php
- printH1Titles();
- bs.php
The main BuckoSoft php include file.- include parseprefs.php
- include pagesetup.php
- include compass.php
- include buttbar.php
- function printHead()
- print the DOCTYPE
- print <html/head>
- print the title
- function printHeadEBody()
- print </HEAD><BODY>
- function printStyleSheet($stylefile)
- print the link to the stylesheet
- function printScript($scriptfile)
- print the link to the JavaScript file
- function printH1Titles()
- output <h1>title (title1)</h1> and <hr>
- pagesetup.php
- Include webLinks.php to read the database.
- set the global vars accordingly.
- compass.php
The compass comes in 2 parts:- function printHeadCompass()
- print the stylesheet.
- print the <LINK rel="blah"> links.
- function printBodyCompass()
- Print the mini-nav buttons on top in a <div id="compass">.
- function printHeadCompass()
- header.php
Print the main buttbar on top (if desired). - webLinks.php
Read the record for this page from the database. - parseprefs.php
Parse the cookies and agent headers to determine html options. - footer.php
Output the <hr> (if desired), buttbar (if desired), and page date line.
- Options
- $opt_hasJSTimer
? - $opt_noButtbar
Don't display the button bar - $opt_nocompass
Don't include compass support - $opt_noh1
Don't display the page's h1 title - $opt_nohr
Don't display the hr in the top. Page to provide an alternative (silly graphic?) - $opt_title1line
Display the two title parts on one line. i.e. t1 - t2 - $useXhtml
Generate xhtml instead of html 4.01 - $useHtml5
Generate html5 instead of html 4.01 - $style
Use an alternate style sheet to bs.css - $bodyOnLoad
Call this javascript function when the page is ready
Sitemap |
Home |
Dick |
Links |
News |
SiteMap |
Prefs |
Pinball |
XPilot |
Art |