CHAPTER 5 ADDING AND CUSTOMIZING THEMES (Space web hosting) 163

CHAPTER 5 ADDING AND CUSTOMIZING THEMES 163 Table 5-5. Variables Available in box.tpl.php Variable Description $content The box s content. $region Specifies the region on the screen in which the box appears. Can be main, left, or right. Defaults to main. $title The title of the box. $id An integer that uniquely identifies this block among all blocks on the page. $zebra Alternates between the strings evenand odd, in case you want to use alternating styles. $is_front A Boolean that will be true if the page being generated is the site s front page. The default box.tpl.php template, shown in Listing 5-2, can be found at themes/engines/ phptemplate/box.tpl.php. Listing 5-2. Default box.tpl.php

Comment.tpl.php The comment.tpl.php file overrides the theme_comment function for the output of comments to posts, including forums. Table 5-6 lists the variables available in comment.tpl.php. Note The theme_comment themable function is not responsible for controlling the threading of comments. See theme_comment_thread_min() and theme_comment_thread_max() in modules/ comment.module for the functions responsible for threading. Table 5-6. Variables Available in comment.tpl.php Variable Description $author Name of the comment s author as a link to his profile page. $comment The comment object as passed to the theme_commentfunction. The following $comment->variables are the standard fields in the $commentobject. $comment->subject The comment s subject. $comment->comment The content of the comment (same as $content). $comment->name The name of the user who submitted the comment. $comment->timestamp The UNIX timestamp from when the comment was created. $comment->uid The user ID from the user who added the comment. $comment->new A Boolean value that is equal to 1 if the comment is being viewed for the first time by the current user, and 0 if the user has seen it before. This is used to add the red new text to new comments on Drupal.org. Continued
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