From ab28e232a3a005c27d35cda5dd613e22df84fc45 Mon Sep 17 00:00:00 2001 From: Jerome Bakker Date: Mon, 17 Oct 2011 14:58:42 +0200 Subject: [PATCH] changed: group edit now has tabs --- languages/en.php | 4 +++ languages/nl.php | 2 ++ manifest.xml | 1 + start.php | 3 ++ .../default/group_tools/group_edit_tabbed.php | 35 +++++++++++++++++++ 5 files changed, 45 insertions(+) create mode 100644 views/default/group_tools/group_edit_tabbed.php diff --git a/languages/en.php b/languages/en.php index 76d39822..fc24d6d1 100644 --- a/languages/en.php +++ b/languages/en.php @@ -77,6 +77,10 @@ To visit the group please click on the following link: %s", + // group edit tabbed + 'group_tools:group:edit:profile' => "Group profile / tools", + 'group_tools:group:edit:other' => "Other options", + // admin transfer - form 'group_tools:admin_transfer:transfer' => "Transfer group ownership to", 'group_tools:admin_transfer:myself' => "Myself", diff --git a/languages/nl.php b/languages/nl.php index bb977b00..bfc6ba38 100644 --- a/languages/nl.php +++ b/languages/nl.php @@ -1,5 +1,7 @@ 'Groep profiel / tools', + 'group_tools:group:edit:other' => 'Andere opties', 'widgets:group_river_widget:edit:no_groups' => 'Je moet van minstens ��n groep lid zijn om gebruik te kunnen maken van deze widget', 'group_tools:auto_join:fix' => 'Om alle leden van de site lid te maken van deze groep, %sklik hier%s.', 'group_tools:mail:form:js:members' => 'Selecteer minstens ��n lid om het bericht aan te versturen', diff --git a/manifest.xml b/manifest.xml index b484c34e..340f322b 100644 --- a/manifest.xml +++ b/manifest.xml @@ -58,6 +58,7 @@ x.x: - added: option to make all site users a member of an auto join group - changed: moved some functions - changed: transfer group ownership now show members alphabeticly + - changed: group edit now has tabs 1.6 (2011-10-05): - added: option to resend invites to already invited users diff --git a/start.php b/start.php index b92cb8ff..e2a3e7b4 100644 --- a/start.php +++ b/start.php @@ -52,6 +52,9 @@ function group_tools_init(){ // manage auto join for groups elgg_extend_view("forms/groups/edit", "group_tools/forms/auto_join", 400); register_elgg_event_handler("create", "member_of_site", "group_tools_join_site_handler"); + + // show group edit as tabbed + elgg_extend_view("forms/groups/edit", "group_tools/group_edit_tabbed", 1); } if(isadminloggedin()){ diff --git a/views/default/group_tools/group_edit_tabbed.php b/views/default/group_tools/group_edit_tabbed.php new file mode 100644 index 00000000..a10d434f --- /dev/null +++ b/views/default/group_tools/group_edit_tabbed.php @@ -0,0 +1,35 @@ + +
+
+
    +
  • +
  • +
+
+
+ + + \ No newline at end of file