diff options
Diffstat (limited to 'mod/groups/views/default/groups/groupprofile.php')
-rw-r--r-- | mod/groups/views/default/groups/groupprofile.php | 163 |
1 files changed, 73 insertions, 90 deletions
diff --git a/mod/groups/views/default/groups/groupprofile.php b/mod/groups/views/default/groups/groupprofile.php index 426eaeae6..5232e9a6f 100644 --- a/mod/groups/views/default/groups/groupprofile.php +++ b/mod/groups/views/default/groups/groupprofile.php @@ -1,102 +1,85 @@ <?php - /** - * Elgg groups plugin full profile view. - * - * @package ElggGroups - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Curverider - * @copyright Curverider Ltd 2008-2010 - * @link http://elgg.com/ - */ - - if ($vars['full'] == true) { - $iconsize = "large"; - } else { - $iconsize = "medium"; - } - +/** + * Elgg groups plugin full profile view. + * + * @package ElggGroups + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Curverider + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.com/ + */ ?> +<div id="content_header" class="clearfloat"> + <div class="content_header_title"> + <h2><?php echo $vars['entity']->name; ?></h2> + </div> + <?php + if ($vars['entity']->canEdit()) { + ?> + <div class="content_header_options"> + <a class="action_button" href="<?php echo $vars['url']; ?>mod/groups/edit.php?group_guid=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("groups:edit"); ?></a> + </div> + <?php + } + ?> +</div> -<div id="groups_info_column_right"><!-- start of groups_info_column_right --> - <div id="groups_icon_wrapper" class="margin_top"><!-- start of groups_icon_wrapper --> - +<div class="group_profile clearfloat"> + <div class="group_profile_column icon"> + <div class="group_profile_icon"> <?php - echo elgg_view( - "groups/icon", array( - 'entity' => $vars['entity'], - //'align' => "left", - 'size' => $iconsize, - ) - ); + echo elgg_view( + "groups/icon", array( + 'entity' => $vars['entity'], + 'size' => 'large', + )); ?> - - </div><!-- end of groups_icon_wrapper --> - <div id="group_stats"><!-- start of group_stats --> + </div> + + <div class="group_stats"> + <?php + echo "<p><b>" . elgg_echo("groups:owner") . ": </b><a href=\"" . get_user($vars['entity']->owner_guid)->getURL() . "\">" . get_user($vars['entity']->owner_guid)->name . "</a></p>"; + ?> + <p><?php echo elgg_echo('groups:members') . ": " . get_entities_from_relationship('member', $vars['entity']->guid, true, 'user', '', 0, '', 9999, 0, true); ?></p> + </div> + </div> + + <div class="group_profile_column info"> <?php - - echo "<p><b>" . elgg_echo("groups:owner") . ": </b><a href=\"" . get_user($vars['entity']->owner_guid)->getURL() . "\">" . get_user($vars['entity']->owner_guid)->name . "</a></p>"; - - ?> - <p><?php echo elgg_echo('groups:members') . ": " . get_entities_from_relationship('member', $vars['entity']->guid, true, 'user', '', 0, '', 9999, 0, true); ?></p> - </div><!-- end of group_stats --> -</div><!-- end of groups_info_column_right --> - -<div id="groups_info_column_left" class="margin_top"><!-- start of groups_info_column_left --> - <?php - if ($vars['full'] == true) { - if (is_array($vars['config']->group) && sizeof($vars['config']->group) > 0){ - - foreach($vars['config']->group as $shortname => $valtype) { - if ($shortname != "name") { - $value = $vars['entity']->$shortname; - - if (!empty($value)) { - //This function controls the alternating class - $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; - } - - echo "<p class=\"{$even_odd}\">"; - echo "<b>"; - echo elgg_echo("groups:{$shortname}"); - echo ": </b>"; - - $options = array( - 'value' => $vars['entity']->$shortname - ); - - if ($valtype == 'tags') { - $options['tag_names'] = $shortname; + if ($vars['full'] == true) { + if (is_array($vars['config']->group) && sizeof($vars['config']->group) > 0){ + + foreach($vars['config']->group as $shortname => $valtype) { + if ($shortname != "name") { + $value = $vars['entity']->$shortname; + + if (!empty($value)) { + //This function controls the alternating class + $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; + } + + echo "<p class=\"{$even_odd}\">"; + echo "<b>"; + echo elgg_echo("groups:{$shortname}"); + echo ": </b>"; + + $options = array( + 'value' => $vars['entity']->$shortname + ); + + if ($valtype == 'tags') { + $options['tag_names'] = $shortname; + } + + echo elgg_view("output/{$valtype}", $options); + + echo "</p>"; } - - echo elgg_view("output/{$valtype}", $options); - - echo "</p>"; } } } - } - ?> -</div><!-- end of groups_info_column_left --> - -<div id="groups_info_wide"> - - <p class="groups_info_edit_buttons"> - -<?php - if ($vars['entity']->canEdit()) - { - -?> - - <a href="<?php echo $vars['url']; ?>mod/groups/edit.php?group_guid=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("edit"); ?></a> - - -<?php + ?> + </div> +</div> - } -?> - - </p> -</div> -<div class="clearfloat"></div>
\ No newline at end of file |