Skip to content

Commit

Permalink
changed: group status (open/closed) CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Nov 14, 2011
1 parent 164c83f commit afa7172
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ ToDo
====================
Version History
====================
x.x:
- changed: group status (open/closed) CSS
1.8 (2011-11-11):
- added: activity filter in group river widget
- added: group listing filter: open and closed
Expand Down
10 changes: 10 additions & 0 deletions views/default/group_tools/css.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,14 @@

#group_tools_group_status {
font-weight: normal;
}

#group_tools_group_status.group_status_open,
#group_stats .group_status_open {
color: green;
}

#group_tools_group_status.group_status_closed,
#group_stats .group_status_closed {
color: orange;
}
4 changes: 3 additions & 1 deletion views/default/group_tools/group_stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
if(($group = page_owner_entity()) && ($group instanceof ElggGroup)){
if($group->membership == ACCESS_PUBLIC){
$status = elgg_echo("groups:open");
$class = "group_status_open";
} else {
$status = elgg_echo("groups:closed");
$class = "group_status_closed";
}

$status = ucfirst($status);

?>
<script type="text/javascript">
$('#group_stats').append("<p><?php echo $status;?></p>");
$('#group_stats').append("<p class='<?php echo $class; ?>'><?php echo $status;?></p>");
</script>
<?php
}
4 changes: 3 additions & 1 deletion views/default/group_tools/owner_block.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
if(($group = page_owner_entity()) && ($group instanceof ElggGroup)){
if($group->membership == ACCESS_PUBLIC){
$status = elgg_echo("groups:open");
$class = "group_status_open";
} else {
$status = elgg_echo("groups:closed");
$class = "group_status_closed";
}

$status = ucfirst($status);

?>
<script type="text/javascript">
$('#owner_block_content').append("<div id='group_tools_group_status'><?php echo $status;?></div>");
$('#owner_block_content').append("<div id='group_tools_group_status' class='<?php echo $class; ?>'><?php echo $status;?></div>");
</script>
<?php
}

0 comments on commit afa7172

Please sign in to comment.