20 if (isset(
$vars[
'id'])) {
21 $id =
"id=\"{$vars['id']}\"";
25 if (isset(
$vars[
'class'])) {
26 $class =
"$class {$vars['class']}";
30 unset(
$vars[
'internalid']);
32 echo
"<div $id class=\"$class\">";
36 'subtype' =>
'comment',
37 'container_guid' =>
$vars[
'entity']->getGUID(),
38 'reverse_order_by' =>
true,
44 echo
'<h3 id="comments">' .
elgg_echo(
'comments') .
'</h3>';
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_list_entities(array $options=array(), $getter='elgg_get_entities', $viewer='elgg_view_entity_list')
Returns a string of rendered entities.
if(file_exists($welcome)) $vars
elgg_view_form($action, $form_vars=array(), $body_vars=array())