23 if (isset(
$vars[
'id'])) {
24 $id =
"id=\"{$vars['id']}\"";
26 $id =
"id=\"comments\"";
30 if (isset(
$vars[
'class'])) {
31 $class =
"$class {$vars['class']}";
35 unset(
$vars[
'internalid']);
37 echo "<div $id class=\"$class\">";
41 'subtype' =>
'comment',
42 'container_guid' =>
$vars[
'entity']->getGUID(),
43 'reverse_order_by' =>
true,
46 'preload_owners' =>
true,
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
Translates a string.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
elgg_list_entities(array $options=array(), $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
elgg_view_form($action, $form_vars=array(), $body_vars=array())
if(file_exists($welcome)) $vars