summaryrefslogtreecommitdiff
path: root/modules/comment/comment.tpl.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-04 03:57:19 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-04 03:57:19 +0000
commit37b78e02594e95ac059a69fe47ee62bf24ce5db5 (patch)
tree25c2d9222d30847680ddf664a1a8565868163408 /modules/comment/comment.tpl.php
parent89586bac91ecdd20255f615abd7993dc79092a50 (diff)
downloadbrdo-37b78e02594e95ac059a69fe47ee62bf24ce5db5.tar.gz
brdo-37b78e02594e95ac059a69fe47ee62bf24ce5db5.tar.bz2
#646874 by sun and David_Rothstein: Remove assumptions about Contextual links and Shortcut modules from template files.
Diffstat (limited to 'modules/comment/comment.tpl.php')
-rw-r--r--modules/comment/comment.tpl.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/comment/comment.tpl.php b/modules/comment/comment.tpl.php
index bb6026041..ac5f431f7 100644
--- a/modules/comment/comment.tpl.php
+++ b/modules/comment/comment.tpl.php
@@ -23,7 +23,6 @@
* - $status: Comment status. Possible values are:
* comment-unpublished, comment-published or comment-preview.
* - $title: Linked title.
- * - $contextual_links (array): An array of contextual links for the comment.
* - $classes: String of classes that can be used to style contextually through
* CSS. It can be manipulated through the variable $classes_array from
* preprocess functions. The default values can be one or more of the following:
@@ -35,6 +34,12 @@
* - comment-unpublished: An unpublished comment visible only to administrators.
* - comment-by-viewer: Comment by the user currently viewing the page.
* - comment-new: New comment since last the visit.
+ * - $title_prefix (array): An array containing additional output populated by
+ * modules, intended to be displayed in front of the main title tag that
+ * appears in the template.
+ * - $title_suffix (array): An array containing additional output populated by
+ * modules, intended to be displayed after the main title tag that appears in
+ * the template.
*
* These two variables are provided for context:
* - $comment: Full comment object.
@@ -51,17 +56,15 @@
*/
?>
<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
- <?php if ($contextual_links): ?>
- <?php print render($contextual_links); ?>
- <?php endif; ?>
-
<?php print $picture ?>
<?php if ($new): ?>
<span class="new"><?php print $new ?></span>
<?php endif; ?>
+ <?php print render($title_prefix); ?>
<h3<?php print $title_attributes; ?>><?php print $title ?></h3>
+ <?php print render($title_suffix); ?>
<div class="submitted">
<?php