diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-01 12:58:47 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-01 12:58:47 +0000 |
commit | e2ef6b4a49fdf4a8696dc9b2c4c6bff76df59fef (patch) | |
tree | d5f63931bbbe0eb10a17877ab7d62c6356c723ba /mod/groups/views/default | |
parent | 079a3a59fee4bcd9c3c749508ade6242ae1e0b43 (diff) | |
download | elgg-e2ef6b4a49fdf4a8696dc9b2c4c6bff76df59fef.tar.gz elgg-e2ef6b4a49fdf4a8696dc9b2c4c6bff76df59fef.tar.bz2 |
groups owners can choose if they want pages/files/forum enabled or not. Still a little more to do, this is just the beginning code.
git-svn-id: https://code.elgg.org/elgg/trunk@2526 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default')
-rw-r--r-- | mod/groups/views/default/forms/groups/edit.php | 47 | ||||
-rw-r--r-- | mod/groups/views/default/groups/forum_latest.php | 14 |
2 files changed, 60 insertions, 1 deletions
diff --git a/mod/groups/views/default/forms/groups/edit.php b/mod/groups/views/default/forms/groups/edit.php index 35eb065c6..267e9bb5b 100644 --- a/mod/groups/views/default/forms/groups/edit.php +++ b/mod/groups/views/default/forms/groups/edit.php @@ -57,7 +57,54 @@ <?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $vars['entity']->access_id )); ?> </label> </p> + <p> + <label> + <?php echo elgg_echo('groups:enablepages'); ?><br /> + <?php + echo elgg_view("input/radio",array( + "internalname" => "pages_enable", + "value" => $vars['entity']->pages_enable, + 'options' => array( + elgg_echo('groups:yes') => 'yes', + elgg_echo('groups:no') => 'no', + ), + )); + ?> + </label> + </p> + <p> + <label> + <?php echo elgg_echo('groups:enableforum'); ?><br /> + <?php + + echo elgg_view("input/radio",array( + "internalname" => "forum_enable", + "value" => $vars['entity']->forum_enable, + 'options' => array( + elgg_echo('groups:yes') => 'yes', + elgg_echo('groups:no') => 'no', + ), + )); + ?> + </label> + </p> + <p> + <label> + <?php echo elgg_echo('groups:enablefiles'); ?><br /> + <?php + + echo elgg_view("input/radio",array( + "internalname" => "files_enable", + "value" => $vars['entity']->files_enable, + 'options' => array( + elgg_echo('groups:yes') => 'yes', + elgg_echo('groups:no') => 'no', + ), + )); + ?> + </label> + </p> <p> <?php if ($vars['entity']) diff --git a/mod/groups/views/default/groups/forum_latest.php b/mod/groups/views/default/groups/forum_latest.php index a903b7fd4..a6d80252a 100644 --- a/mod/groups/views/default/groups/forum_latest.php +++ b/mod/groups/views/default/groups/forum_latest.php @@ -1,3 +1,12 @@ +<?php
+
+ // Latest forum discussion for the group home page
+
+ //check to make sure this group forum has been activated
+ if($vars['entity']->forum_enable == 'yes'){
+
+?>
+
<div id="latest_discussion_widget">
<h2><?php echo elgg_echo('groups:latestdiscussion'); ?></h2>
<?php
@@ -22,4 +31,7 @@ }
?>
<br class="clearfloat" />
-</div>
\ No newline at end of file +</div>
+<?php
+ }//end of forum active check
+?>
\ No newline at end of file |