From 539b1edaa15b901862352974ddc1b7a520a51c26 Mon Sep 17 00:00:00 2001
From: Josh Walker <josh@marmaladesoul.com>
Date: Sat, 17 Nov 2012 11:52:26 -0800
Subject: [PATCH] convert comment-wrapper.tpl.php to comment-wrapper.html.twig

---
 .../bartik/templates/comment-wrapper.html.twig     |   48 ++++++++++++++++++++
 .../bartik/templates/comment-wrapper.tpl.php       |   48 --------------------
 2 files changed, 48 insertions(+), 48 deletions(-)
 create mode 100644 core/themes/bartik/templates/comment-wrapper.html.twig
 delete mode 100644 core/themes/bartik/templates/comment-wrapper.tpl.php

diff --git a/core/themes/bartik/templates/comment-wrapper.html.twig b/core/themes/bartik/templates/comment-wrapper.html.twig
new file mode 100644
index 0000000..b4ebce7
--- /dev/null
+++ b/core/themes/bartik/templates/comment-wrapper.html.twig
@@ -0,0 +1,48 @@
+{#
+
+/**
+ * @file
+ * Bartik's theme implementation to provide an HTML container for comments.
+ *
+ * Available variables:
+ * - content: The array of content-related elements for the node. Use
+ *   content to print them all, or
+ *   print a subset such as content['comment_form'].
+ * - attributes: An instance of Attributes class that can be manipulated as an
+ *    array and printed as a string.
+ *    It includes the 'class' information, which includes:
+ *   - comment-wrapper: The current template type, i.e., "theming hook".
+ * - 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.
+ *
+ * The following variables are provided for contextual information.
+ * - node: Node entity the comments are attached to.
+ * The constants below the variables show the possible values and should be
+ * used for comparison.
+ * - display_mode
+ *   - COMMENT_MODE_FLAT
+ *   - COMMENT_MODE_THREADED
+ *
+ * @see template_preprocess_comment_wrapper()
+ *
+ * @ingroup themeable
+ */
+#}
+<div id="comments" {{ attributes }}>
+  {% if content.comments and node.type != 'forum' %}
+    {{ title.prefix }}
+    <h2 class="title">{{ 'Comments' | t }}</h2>
+    {{ title.suffix }}
+  {% endif %}
+
+  {{ comments }}
+
+  {% if form %}
+    <h2 class="title comment-form">{{ 'Add new comment' | t }}</h2>
+    {{ form }}
+  {% endif %}
+</div>
diff --git a/core/themes/bartik/templates/comment-wrapper.tpl.php b/core/themes/bartik/templates/comment-wrapper.tpl.php
deleted file mode 100644
index 764f91e..0000000
--- a/core/themes/bartik/templates/comment-wrapper.tpl.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-/**
- * @file
- * Bartik's theme implementation to provide an HTML container for comments.
- *
- * Available variables:
- * - $content: The array of content-related elements for the node. Use
- *   render($content) to print them all, or
- *   print a subset such as render($content['comment_form']).
- * - $attributes: An instance of Attributes class that can be manipulated as an
- *    array and printed as a string.
- *    It includes the 'class' information, which includes:
- *   - comment-wrapper: The current template type, i.e., "theming hook".
- * - $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.
- *
- * The following variables are provided for contextual information.
- * - $node: Node entity the comments are attached to.
- * The constants below the variables show the possible values and should be
- * used for comparison.
- * - $display_mode
- *   - COMMENT_MODE_FLAT
- *   - COMMENT_MODE_THREADED
- *
- * @see template_preprocess_comment_wrapper()
- *
- * @ingroup themeable
- */
-?>
-<div id="comments" <?php print $attributes; ?>>
-  <?php if ($content['comments'] && $node->type != 'forum'): ?>
-    <?php print render($title_prefix); ?>
-    <h2 class="title"><?php print t('Comments'); ?></h2>
-    <?php print render($title_suffix); ?>
-  <?php endif; ?>
-
-  <?php print render($content['comments']); ?>
-
-  <?php if ($content['comment_form']): ?>
-    <h2 class="title comment-form"><?php print t('Add new comment'); ?></h2>
-    <?php print render($content['comment_form']); ?>
-  <?php endif; ?>
-</div>
-- 
1.7.9.6 (Apple Git-31.1)

