Elgg /
Elgg
| 1 | <?php |
||
| 2 | |||
| 3 | $guid = get_input("guid"); |
||
| 4 | |||
| 5 | if (!get_entity($guid)) { |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 6 | echo elgg_echo("error:missing_data"); |
||
| 7 | return; |
||
| 8 | } |
||
| 9 | |||
| 10 | $list = elgg_list_annotations([ |
||
| 11 | 'guid' => $guid, |
||
| 12 | 'annotation_name' => 'likes', |
||
| 13 | 'limit' => 99, |
||
| 14 | 'preload_owners' => true, |
||
| 15 | 'pagination' => false, |
||
| 16 | ]); |
||
| 17 | |||
| 18 | echo elgg_format_element('div', ['class' => 'elgg-likes-popup'], $list); |
||
| 19 |