Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
rss
annotation
generic_comment.php
Go to the documentation of this file.
1
<?php
9
$annotation
=
$vars
[
'annotation'
];
10
11
$poster
=
$annotation
->getOwnerEntity();
12
$poster_name
= htmlspecialchars(
$poster
->name, ENT_NOQUOTES,
'UTF-8'
);
13
$pubdate
= date(
'r'
,
$annotation
->getTimeCreated());
14
$permalink
=
$annotation
->getURL();
15
16
$title
=
elgg_echo
(
'generic_comment:title'
, array(
$poster_name
));
17
18
$creator
=
elgg_view
(
'page/components/creator'
, array(
'entity'
=>
$annotation
));
19
$extensions
=
elgg_view
(
'extensions/item'
,
$vars
);
20
21
$item
= <<<__HTML
22
<
item
>
23
<guid isPermaLink=
'true'
>
$permalink
</guid>
24
<pubDate>
$pubdate
</pubDate>
25
<link>
$permalink
</link>
26
<
title
><![CDATA[
$title
]]></
title
>
27
<
description
><![CDATA[{
$vars
[
'annotation'
]->value}]]></
description
>
28
$creator
$extensions
29
</
item
>
30
31
__HTML;
32
33
echo
$item
;
$creator
$creator
Definition:
generic_comment.php:18
title
ui datepicker title
Definition:
admin.php:616
$poster
$poster
Definition:
generic_comment.php:11
$extensions
$extensions
Definition:
generic_comment.php:19
$permalink
$permalink
Definition:
generic_comment.php:14
description
if(!$site) if(!($site instanceof ElggSite)) $site description
Definition:
update_basic.php:21
elgg_echo
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition:
languages.php:21
$poster_name
$poster_name
Definition:
generic_comment.php:12
echo
elgg echo
Translates a string.
Definition:
languages.js:43
elgg_view
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:354
item
elgg item
Definition:
admin.php:437
$title
$title
Definition:
generic_comment.php:16
$annotation
$annotation
Definition:
generic_comment.php:9
$pubdate
$pubdate
Definition:
generic_comment.php:13
$item
$item
Definition:
generic_comment.php:21
$vars
if(file_exists($welcome)) $vars
Definition:
upgrade.php:93
Generated on Mon Nov 11 2024 00:00:48 for Elgg by
1.8.11