-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added: group status (open/closed) in owner_block and group stats
- Loading branch information
Showing
5 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,4 +83,8 @@ | |
|
||
#group_tools_mail_member_selection { | ||
display: none; | ||
} | ||
|
||
#group_tools_group_status { | ||
font-weight: normal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
if(($group = page_owner_entity()) && ($group instanceof ElggGroup)){ | ||
if($group->membership == ACCESS_PUBLIC){ | ||
$status = elgg_echo("groups:open"); | ||
} else { | ||
$status = elgg_echo("groups:closed"); | ||
} | ||
|
||
$status = ucfirst($status); | ||
|
||
?> | ||
<script type="text/javascript"> | ||
$('#group_stats').append("<p><?php echo $status;?></p>"); | ||
</script> | ||
<?php | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
if(($group = page_owner_entity()) && ($group instanceof ElggGroup)){ | ||
if($group->membership == ACCESS_PUBLIC){ | ||
$status = elgg_echo("groups:open"); | ||
} else { | ||
$status = elgg_echo("groups:closed"); | ||
} | ||
|
||
$status = ucfirst($status); | ||
|
||
?> | ||
<script type="text/javascript"> | ||
$('#owner_block_content').append("<div id='group_tools_group_status'><?php echo $status;?></div>"); | ||
</script> | ||
<?php | ||
} |