Xtemplate has a rather nice feature allowing you to turn off "submitted by" info ("post info") by node type. This patch gives phptemplate the same functionality. It adds a "toggle post information" section to the theme config settings, and makes a variable "display_info" available to templates.

For example, in node.tpl.php:

if ($display_info):

print t("Posted by") ." ". $name ." on ". $date . $terms

endif;

Comments

mrowe’s picture

StatusFileSize
new811 bytes

Sorry, just realised it would probably be nice to include a patch for the default node.tpl.php also.

drewish’s picture

Project: » PHPTemplate
Component: Code » User Interface
Status: Needs review » Fixed

Not sure when this was fixed but admin/themes/settings lets you select which nodes have the posted by information displayed.

Anonymous’s picture

Status: Fixed » Closed (fixed)