]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3578 added a css class to thewire add form
authorCash Costello <cash.costello@gmail.com>
Wed, 29 Jun 2011 10:59:42 +0000 (06:59 -0400)
committerCash Costello <cash.costello@gmail.com>
Wed, 29 Jun 2011 10:59:42 +0000 (06:59 -0400)
mod/thewire/pages/thewire/everyone.php
mod/thewire/pages/thewire/friends.php
mod/thewire/pages/thewire/owner.php
mod/thewire/pages/thewire/reply.php

index 26586c71c82ad69317112703b887120f7e53e6f4..e78395c3122576bc36e56272d00d04233f9d3e30 100644 (file)
@@ -9,7 +9,8 @@ elgg_push_breadcrumb(elgg_echo('thewire'));
 $title = elgg_echo('thewire:everyone');
 
 if (elgg_is_logged_in()) {
-       $content .= elgg_view_form('thewire/add');
+       $form_vars = array('class' => 'thewire-form');
+       $content .= elgg_view_form('thewire/add', $form_vars);
        $content .= elgg_view('input/urlshortener');
 }
 
index 0dfdcada974e37735fb9ece3be2e43c39cc3ed89..265b73eabfe545f028d9564d741708aaa6ea9bbb 100644 (file)
@@ -11,7 +11,13 @@ elgg_push_breadcrumb(elgg_echo('thewire'), "thewire/all");
 elgg_push_breadcrumb($owner->name, "thewire/owner/$owner->username");
 elgg_push_breadcrumb(elgg_echo('friends'));
 
-$content = list_user_friends_objects($owner->guid, 'thewire', 15, false);
+if (get_loggedin_userid() == $owner->guid) {
+       $form_vars = array('class' => 'thewire-form');
+       $content = elgg_view_form('thewire/add', $form_vars);
+       $content .= elgg_view('input/urlshortener');
+}
+
+$content .= list_user_friends_objects($owner->guid, 'thewire', 15, false);
 
 $body = elgg_view_layout('content', array(
        'filter_context' => 'friends',
index 6a16ef51dd9478d1e3acad97109c7fa24f153d9f..b6449b217f90e8b5b7411527de59665323e9c7c8 100644 (file)
@@ -12,7 +12,8 @@ elgg_push_breadcrumb(elgg_echo('thewire'), "thewire/all");
 elgg_push_breadcrumb($owner->name);
 
 if (get_loggedin_userid() == $owner->guid) {
-       $content = elgg_view_form('thewire/add');
+       $form_vars = array('class' => 'thewire-form');
+       $content = elgg_view_form('thewire/add', $form_vars);
        $content .= elgg_view('input/urlshortener');
 }
 
index a3d3ea0175b7f31ec60aa19980d9abe9d5a233ba..df4511c51186af810b7337848d3a55bf5715e1e4 100644 (file)
@@ -14,7 +14,8 @@ elgg_push_breadcrumb(elgg_echo('thewire'), 'thewire/all');
 elgg_push_breadcrumb($title);
 
 $content = elgg_view('thewire/reply', array('post' => $post));
-$content .= elgg_view_form('thewire/add', array(), array('post' => $post));
+$form_vars = array('class' => 'thewire-form');
+$content .= elgg_view_form('thewire/add', $form_vars, array('post' => $post));
 $content .= elgg_view('input/urlshortener');