Web hosting bandwidth - 168 CHAPTER 5 ADDING AND CUSTOMIZING THEMES

168 CHAPTER 5 ADDING AND CUSTOMIZING THEMES Table 5-8. Continued Variable Description $head_title The page s title, for display in the tag. The $head_title variable is constructed either from $title and $site_name or $site_name and $site_slogan. $help Help text for the page, if it is available. $language The two-letter language code based on the locale in which the site is being displayed; for example, en for English or de for German. $layout A string (’left’, ‘right’, ‘both’, or empty) that indicates if and where blocks are found for this page. The idea is that the template can check which layout is being demanded and react accordingly. $logo The path to the image to be used as the site logo. $messages Status and error messages to the user. $mission The text of the mission statement as defined by the Mission field on the admin/settings page. $onload_attributes HTML code added inside the opening <body> tag of the page. Its main purpose is to expose the onload parameter of the <body> tag to modules so that they can trigger events when the page is loaded in the browser. This is the mechanism that allows the WYSIWYG editors like TinyMCE to function properly; the JavaScript that loads the editors will be embedded in $onload_attributes. $primary_links An array of links that are defined in the Primary Link Settings field of the admin/themes/settings page. $search_box The HTML to render the search box, if it is enabled. $secondary_links An array of links that are defined in the Secondary Link Settings field of the admin/themes/settings page. $sidebar_left HTML to render the left sidebar. $sidebar_right HTML to render the right sidebar. $site_name The name of the site, as specified by you from the admin/settings page. $site_slogan The text for the site slogan that is defined on the admin/settings page. $styles HTML for the <head> tag of the page that consists of style sheet imports in the correct order. $tabs HTML to render tabbed navigation for a page. An example of this is the view and edit tabs that are visible on node pages (when you re logged in and have the right privileges). $title The title of this page. The PHPTemplate theme engine does not provide a page.tpl.php implementation; this is the realm of the individual themes. The page.tpl.php file provided by the Bluemarine theme is a good example of what needs to happen and what issues need to be addressed. As the file is relatively long, I ll discuss only excerpts here. The first two lines are the DOCTYPE declaration and the opening <html> tag. Noteworthy is that the document is declared to be XHTML 1.0 STRICT and that the lang and xml:lang parameters of the <html> tag are both set dynamically using the $language variable provided to the template. <br />Note: In case you are looking for affordable and reliable webhost to host and run your business application check Vision <a href="http://j2ee.a1websitehosting.net">php5 hosting</a> services </p> <p class="postmetadata alt"> <small> This entry was posted on Wednesday, May 2nd, 2007 at 4:10 am and is filed under <a href="http://mysql5.premiumwebsitehosting.net/category/mysql5/" title="View all posts in MySQL5" rel="category tag">MySQL5</a>. You can follow any responses to this entry through the <a href='http://mysql5.premiumwebsitehosting.net/mysql5/web-hosting-bandwidth-168-chapter-5-adding-and-customizing-themes/feed/'>RSS 2.0</a> feed. You can <a href="#respond">leave a response</a>, or <a href="http://mysql5.premiumwebsitehosting.net/mysql5/web-hosting-bandwidth-168-chapter-5-adding-and-customizing-themes/trackback/" rel="trackback">trackback</a> from your own site. </small> </p> </div> </div> <!-- You can start editing here. --> <!-- If comments are open, but there are no comments. --> <h3 id="respond">Leave a Reply</h3> <form action="http://mysql5.premiumwebsitehosting.net/wp-comments-post.php" method="post" id="commentform"> <p><input type="text" name="author" id="author" value="" size="22" tabindex="1" /> <label for="author"><small>Name (required)</small></label></p> <p><input type="text" name="email" id="email" value="" size="22" tabindex="2" /> <label for="email"><small>Mail (will not be published) (required)</small></label></p> <p><input type="text" name="url" id="url" value="" size="22" tabindex="3" /> <label for="url"><small>Website</small></label></p> <!--<p><small><strong>XHTML:</strong> You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> </small></p>--> <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> <input type="hidden" name="comment_post_ID" value="70" /> </p> </form> </div> <hr /> <div id="footer"> <!-- If you'd like to support WordPress, having the "powered by" link someone on your blog is the best way, it's our only promotion or advertising. --> <p> Servlet Web Hosting - MySQL, Java, JSP, Servlet, Tomcat, SSH Blog is proudly powered by <a href="http://www.visionwebhosting.net/">cheap hosting</a> <br /><a href="feed:http://mysql5.premiumwebsitehosting.net/feed/">Entries (RSS)</a> and <a href="feed:http://mysql5.premiumwebsitehosting.net/comments/feed/">Comments (RSS)</a>. <!-- 20 queries. 0.068 seconds. --> </p> </div> </div> <!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ --> </body> </html>