164 CHAPTER 5 (Make my own web site) ADDING AND CUSTOMIZING THEMES
164 CHAPTER 5 ADDING AND CUSTOMIZING THEMES Table 5-6. Continued Variable Description $content The comment itself. $date The comment s formatted submission date (same as date in $submitted). $links The contextual control links, like reply, edit, and delete, as a single string. $new If the user has not yet viewed this comment, $new will contain the translated text new. Otherwise, it will be an empty string (use $comment->new to test if the comment is new). $picture If enabled and available, the comment author s picture in a hyperlink to the user s profile page. $submitted The translated text Submitted by user_linkon date. $title The subject of the title as a hyperlink to the comment itself using an anchor (#). This is like a permalink to the comment. $id An integer that uniquely identifies this comment among all comments on the page. $zebra Alternates between the strings even and 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 comment.tpl.php template, shown in Listing 5-3, can be found at themes/engines/phptemplate/comment.tpl.php. Listing 5-3. Default comment.tpl.php
Notice that $comment->new plays a big role in templating the comments. If a user has not yet read a comment, the enclosing
will also be printed at the end of the comment. This draws on the class clear, which is defined in the default Drupal style sheet (misc/drupal.css) and prevents floating images from breaking the layout. The drupal.cssstyle Themes section.
Note: If you are looking for cheap and reliable webhost to host and run your web application check Vision coldfusion web hosting services