From 5041c6c48153453ed597206d08eeff37cf20e676 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 15 Mar 2014 14:46:48 -0300 Subject: Squashed 'mod/cool_theme/' content from commit a26f7df git-subtree-dir: mod/cool_theme git-subtree-split: a26f7df43a266f7d1ff04847da330d15f6041e9b --- views/default/groups/profile/fields.php | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 views/default/groups/profile/fields.php (limited to 'views/default/groups/profile/fields.php') diff --git a/views/default/groups/profile/fields.php b/views/default/groups/profile/fields.php new file mode 100644 index 000000000..6a666cfb7 --- /dev/null +++ b/views/default/groups/profile/fields.php @@ -0,0 +1,36 @@ +"; +if (is_array($profile_fields) && count($profile_fields) > 0) { + + 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 elgg_echo("groups:$key"); + echo "
"; + echo elgg_view("output/$valtype", $options); + echo "
"; + } +} +echo ""; \ No newline at end of file -- cgit v1.2.3