Elgg
Version 2.3
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
$poster
$poster
Definition:
generic_comment.php:11
elgg_echo
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition:
languages.php:21
$extensions
$extensions
Definition:
generic_comment.php:19
$permalink
$permalink
Definition:
generic_comment.php:14
$vars
$vars['entity']
Definition:
plugin_settings.php:15
title
ui datepicker title
Definition:
admin.css.php:662
description
if(!$site) if(!($site instanceof ElggSite)) $site description
Definition:
update_basic.php:21
$poster_name
$poster_name
Definition:
generic_comment.php:12
echo
elgg echo
Translates a string.
Definition:
languages.js:48
elgg_view
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:336
item
elgg item
Definition:
admin.css.php:441
$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
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11