aboutsummaryrefslogtreecommitdiff
path: root/views/default/comments/forms
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-16 19:26:37 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-16 19:26:37 +0000
commit8048313e87b9fd5ab6734e29a0e951524fa33e45 (patch)
tree556f70ba4a4c70cbd4890e1d90317d2a636e2d9e /views/default/comments/forms
parent17c17807cc0b63d322d56acfae4f30399041cdb5 (diff)
downloadelgg-8048313e87b9fd5ab6734e29a0e951524fa33e45.tar.gz
elgg-8048313e87b9fd5ab6734e29a0e951524fa33e45.tar.bz2
Standardized more files.
git-svn-id: http://code.elgg.org/elgg/trunk@3554 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/comments/forms')
-rw-r--r--views/default/comments/forms/edit.php36
1 files changed, 15 insertions, 21 deletions
diff --git a/views/default/comments/forms/edit.php b/views/default/comments/forms/edit.php
index b629fc3f0..3116bd3da 100644
--- a/views/default/comments/forms/edit.php
+++ b/views/default/comments/forms/edit.php
@@ -1,25 +1,19 @@
<?php
+/**
+ * Elgg comments add form
+ *
+ * @package Elgg
+ * @author Curverider Ltd <info@elgg.com>
+ * @link http://elgg.com/
+ *
+ * @uses $vars['entity']
+ */
- /**
- * Elgg comments add form
- *
- * @package Elgg
+if (isset($vars['entity']) && isloggedin()) {
+ $form_body = "<div class=\"contentWrapper\"><p class='longtext_editarea'><label>".elgg_echo("generic_comments:text")."<br />" . elgg_view('input/longtext',array('internalname' => 'generic_comment')) . "</label></p>";
+ $form_body .= "<p>" . elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID()));
+ $form_body .= elgg_view('input/submit', array('value' => elgg_echo("save"))) . "</p></div>";
- * @author Curverider Ltd <info@elgg.com>
+ echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/comments/add"));
- * @link http://elgg.com/
- *
- * @uses $vars['entity']
- */
-
- if (isset($vars['entity']) && isloggedin()) {
-
- $form_body = "<div class=\"contentWrapper\"><p class='longtext_editarea'><label>".elgg_echo("generic_comments:text")."<br />" . elgg_view('input/longtext',array('internalname' => 'generic_comment')) . "</label></p>";
- $form_body .= "<p>" . elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID()));
- $form_body .= elgg_view('input/submit', array('value' => elgg_echo("save"))) . "</p></div>";
-
- echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/comments/add"));
-
- }
-
-?> \ No newline at end of file
+} \ No newline at end of file