aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-24 10:51:40 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-24 10:51:40 +0000
commitc53b5d1fb2d3f7aa8bb2580b2dee6884cc90aff8 (patch)
tree4e7163b1ff843890e98f1766a60491e9357f898c /mod
parent792112a10ead7451933d2f9813ae050034b2b5a6 (diff)
downloadelgg-c53b5d1fb2d3f7aa8bb2580b2dee6884cc90aff8.tar.gz
elgg-c53b5d1fb2d3f7aa8bb2580b2dee6884cc90aff8.tar.bz2
invite friends to group page modified
git-svn-id: https://code.elgg.org/elgg/trunk@2913 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/views/default/forms/groups/invite.php59
1 files changed, 30 insertions, 29 deletions
diff --git a/mod/groups/views/default/forms/groups/invite.php b/mod/groups/views/default/forms/groups/invite.php
index 10aa8a846..927c79429 100644
--- a/mod/groups/views/default/forms/groups/invite.php
+++ b/mod/groups/views/default/forms/groups/invite.php
@@ -1,32 +1,33 @@
-<?php
- /**
- * Elgg groups plugin
- *
- * @package ElggGroups
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.com/
- */
-
- $group = $vars['entity'];
- $owner = get_entity($vars['entity']->owner_guid);
- $forward_url = $group->getURL();
-
-
-?>
-<h2><?php echo sprintf(elgg_echo('groups:inviteto'), $group->name); ?></h2>
-<form action="<?php echo $vars['url']; ?>action/groups/addtogroup" method="post">
-
- <?php
+<?php
+ /**
+ * Elgg groups plugin
+ *
+ * @package ElggGroups
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008-2009
+ * @link http://elgg.com/
+ */
+
+ $group = $vars['entity'];
+ $owner = get_entity($vars['entity']->owner_guid);
+ $forward_url = $group->getURL();
+
+
+?>
+<div class="contentWrapper">
+<form action="<?php echo $vars['url']; ?>action/groups/addtogroup" method="post">
+
+ <?php
if ($friends = get_entities_from_relationship('friend',$_SESSION['guid'],false,'user','',0,'',9999)) {
echo elgg_view('friends/picker',array('entities' => $friends, 'internalname' => 'user_guid'));
- }
- // echo elgg_view('sharing/invite',array('shares' => $shares, 'owner' => $owner, 'group' => $group));
-
- ?>
- <input type="hidden" name="forward_url" value="<?php echo $forward_url; ?>" />
- <input type="hidden" name="group_guid" value="<?php echo $group->guid; ?>" />
- <input type="submit" value="<?php echo elgg_echo('invite'); ?>" />
-</form> \ No newline at end of file
+ }
+ // echo elgg_view('sharing/invite',array('shares' => $shares, 'owner' => $owner, 'group' => $group));
+
+ ?>
+ <input type="hidden" name="forward_url" value="<?php echo $forward_url; ?>" />
+ <input type="hidden" name="group_guid" value="<?php echo $group->guid; ?>" />
+ <input type="submit" value="<?php echo elgg_echo('invite'); ?>" />
+</form>
+</div> \ No newline at end of file