166 CHAPTER 5 ADDING AND CUSTOMIZING (Web hosting domains) THEMES

166 CHAPTER 5 ADDING AND CUSTOMIZING THEMES Table 5-7. Continued Variable Description $page A Boolean that indicates whether to display the node as a stand-alone page. If true, the theme does not need to display the title, because it will be provided by the menu system. $id An integer that uniquely identifies this node among all nodes on the page. $is_front A Boolean that is true if the page being generated is the site s front page. The default node.tpl.php template, shown in Listing 5-4, can be found at themes/ engines/phptemplate/node.tpl.php. Listing 5-4. Default node.tpl.php

“>



As you can see from the template code, the default node template makes three important decisions (highlighted in Listing 5-4): The first is whether or not this node is being displayed in a list as opposed to on a page by itself. This is done with the test . If it is in a list, $page will be zero, and the template is responsible for printing the node s title. On pages where the node is being displayed solo (node/nid), the node s title will be printed by the menu system, and the theme doesn t need to worry about it. The second decision concerns the node s links (such as add new comment), if present. The third decision involves printing the line
if there are not only links, but a user picture as well (the picture would have been printed earlier in the temve from breaking the layout.
Note: If you are looking for high quality webhost to host and run your jsp application check Vision
jsp web hosting services

Leave a Reply