From 7f4e7c8a0a9bf500f9c888fc49aece9644fee8fd Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 21 Mar 2011 01:47:20 +0000 Subject: Fixes #3113 pulled group profile fields out of top profile area git-svn-id: http://code.elgg.org/elgg/trunk@8800 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/groups/profile/fields.php | 38 +++++++++++ .../views/default/groups/profile/profile_block.php | 77 ---------------------- .../views/default/groups/profile/summary.php | 50 ++++++++++++++ 3 files changed, 88 insertions(+), 77 deletions(-) create mode 100644 mod/groups/views/default/groups/profile/fields.php delete mode 100644 mod/groups/views/default/groups/profile/profile_block.php create mode 100644 mod/groups/views/default/groups/profile/summary.php (limited to 'mod/groups/views/default') diff --git a/mod/groups/views/default/groups/profile/fields.php b/mod/groups/views/default/groups/profile/fields.php new file mode 100644 index 000000000..5cd06025f --- /dev/null +++ b/mod/groups/views/default/groups/profile/fields.php @@ -0,0 +1,38 @@ + 0) { + + $even_odd = 'odd'; + foreach ($profile_fields as $key => $valtype) { + // do not show the name + if ($key == 'name') { + continue; + } + + $value = $group->$key; + if (empty($value)) { + continue; + } + + $options = array('value' => $group->$key); + if ($valtype == 'tags') { + $options['tag_names'] = $key; + } + + echo "

"; + echo ""; + echo elgg_echo("groups:$key"); + echo ": "; + echo elgg_view("output/$valtype", $options); + echo "

"; + + $even_odd = ($even_odd == 'even') ? 'odd' : 'even'; + } +} diff --git a/mod/groups/views/default/groups/profile/profile_block.php b/mod/groups/views/default/groups/profile/profile_block.php deleted file mode 100644 index 2f384b4bf..000000000 --- a/mod/groups/views/default/groups/profile/profile_block.php +++ /dev/null @@ -1,77 +0,0 @@ -getOwnerEntity(); - -$profile_fields = elgg_get_config('group'); - -?> -
-
-
- '')); ?> -
-
-

- : - $owner->name, - 'value' => $owner->getURL(), - )); - ?> -

-

- getMembers(0, 0, TRUE); - ?> -

-
-
- -
- 0) { - - $even_odd = 'odd'; - foreach ($profile_fields as $key => $valtype) { - // do not show the name - if ($key == 'name') { - continue; - } - - $value = $group->$key; - if (empty($value)) { - continue; - } - - $options = array('value' => $group->$key); - if ($valtype == 'tags') { - $options['tag_names'] = $key; - } - - echo "

"; - echo ""; - echo elgg_echo("groups:$key"); - echo ": "; - echo elgg_view("output/$valtype", $options); - echo "

"; - - $even_odd = ($even_odd == 'even') ? 'odd' : 'even'; - } -} -?> -
-
diff --git a/mod/groups/views/default/groups/profile/summary.php b/mod/groups/views/default/groups/profile/summary.php new file mode 100644 index 000000000..b7ae51070 --- /dev/null +++ b/mod/groups/views/default/groups/profile/summary.php @@ -0,0 +1,50 @@ +getOwnerEntity(); + +?> +
+
+
+ '')); ?> +
+
+

+ : + $owner->name, + 'value' => $owner->getURL(), + )); + ?> +

+

+ getMembers(0, 0, TRUE); + ?> +

+
+
+ +
+ +
+
+ + -- cgit v1.2.3