Elgg  Version 3.0
responses.php
Go to the documentation of this file.
1 <?php
2 
9 if (!elgg_extract('show_responses', $vars, true)) {
10  return;
11 }
12 
13 $entity = elgg_extract('entity', $vars);
14 
15 $responses = elgg_extract('responses', $vars);
16 if ($responses === null && ($entity instanceof \ElggEntity)) {
18 }
19 
20 if (!$responses) {
21  return;
22 }
23 
25  'class' => 'elgg-listing-full-responses',
26 ], $responses);
$responses
Definition: responses.php:15
if(!elgg_extract('show_responses', $vars, true)) $entity
Outputs responses.
Definition: responses.php:13
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:168
elgg echo
Translates a string.
Definition: languages.js:43
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
$vars['type']
Definition: save.php:11
elgg_view_comments($entity, $add_comment=true, array $vars=[])
Returns rendered comments and a comment form for an entity.
Definition: views.php:1141