This repository has been archived by the owner on Jun 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed deprecated code, and fixed the commentwall
- Loading branch information
Showing
6 changed files
with
45 additions
and
48 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
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 |
---|---|---|
@@ -1,41 +1,10 @@ | ||
<?php | ||
/** | ||
* Comment wall annotation view | ||
* Elgg commentwall annotation view | ||
* - Just outputs the regular generic_comment view for consistency | ||
* | ||
* @uses $vars['annotation'] | ||
* @uses $vars['annotation'] ElggAnnotation object | ||
* @uses $vars['full_view'] Display fill view or brief view | ||
*/ | ||
|
||
$annotation = $vars['annotation']; | ||
$poster = $annotation->getOwnerEntity(); | ||
$date = elgg_view_friendly_time($annotation->time_created); | ||
|
||
$icon = elgg_view('profile/icon', array( | ||
'entity' => $poster, | ||
'size' => 'tiny', | ||
)); | ||
|
||
$delete_url = "action/commentwall/delete?id=$annotation->id"; | ||
$delete_link = elgg_view('output/confirmlink', array( | ||
'href' => $delete_url, | ||
'text' => '<span class="elgg-icon elgg-icon-delete"></span>', | ||
'title' => elgg_echo('delete'), | ||
'confirm' => elgg_echo('deleteconfirm'), | ||
'text_encode' => false, | ||
)); | ||
|
||
$metadata = <<<HTML | ||
<ul class="elgg-list-metadata"> | ||
<li>$delete_link</li> | ||
</ul> | ||
HTML; | ||
|
||
$subtext = "$poster->name $date"; | ||
$content = elgg_view('output/longtext', array('value' => $annotation->value)); | ||
|
||
$body = <<<HTML | ||
$metadata | ||
<p class="elgg-subtext">$subtext</p> | ||
$content | ||
HTML; | ||
|
||
echo elgg_view_image_block($icon, $body); | ||
echo elgg_view('annotation/generic_comment', $vars); |
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