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 ++++++++++++++ views/default/groups/profile/profile_block.php | 69 ++++++++++++++++++++++++++ views/default/groups/profile/stats.php | 19 +++++++ views/default/groups/profile/summary.php | 17 +++++++ 4 files changed, 141 insertions(+) create mode 100644 views/default/groups/profile/fields.php create mode 100644 views/default/groups/profile/profile_block.php create mode 100644 views/default/groups/profile/stats.php create mode 100644 views/default/groups/profile/summary.php (limited to 'views/default/groups') 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 diff --git a/views/default/groups/profile/profile_block.php b/views/default/groups/profile/profile_block.php new file mode 100644 index 000000000..9dcad2715 --- /dev/null +++ b/views/default/groups/profile/profile_block.php @@ -0,0 +1,69 @@ +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/views/default/groups/profile/stats.php b/views/default/groups/profile/stats.php new file mode 100644 index 000000000..9289cbab9 --- /dev/null +++ b/views/default/groups/profile/stats.php @@ -0,0 +1,19 @@ +getOwnerEntity(); + +?> +
+
+
+ $owner->name, + 'value' => $owner->getURL(), + )); + ?> +
+
+
getMembers(0, 0, TRUE); ?>
+
\ No newline at end of file diff --git a/views/default/groups/profile/summary.php b/views/default/groups/profile/summary.php new file mode 100644 index 000000000..8b4c0fadf --- /dev/null +++ b/views/default/groups/profile/summary.php @@ -0,0 +1,17 @@ +