/
threaded_comments.php
45 lines (41 loc) · 1.31 KB
/
threaded_comments.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**************************************************
* PluginLotto.com *
* Copyrights (c) 2005-2010. iZAP *
* All rights reserved *
***************************************************
* @author iZAP Team "<support@izap.in>"
* @link http://www.izap.in/
* @version {version} $Revision: {revision}
* Under this agreement, No one has rights to sell this script further.
* For more information. Contact "Tarun Jangra<tarun@izap.in>"
* For discussion about corresponding plugins, visit http://www.pluginlotto.com/pg/forums/
* Follow us on http://facebook.com/PluginLotto and http://twitter.com/PluginLotto
*/
?>
<div id="threaded_comments">
<?php
$options = array(
'metadata_names' => 'parent_guid',
'metadata_values' => $vars['entity']->guid,
'type' => 'object',
'subtype' => 'IzapThreadedComments',
'order_by' => 'e.time_created asc',
'count' => TRUE,
'limit' => 999,
);
$count = elgg_get_entities_from_metadata($options);
if($count) {
$options['count'] = FALSE;
$entities = elgg_get_entities_from_metadata($options);
}
echo elgg_view('page/components/list', array(
'items' => $entities,
'offset' => 0,
'limit' => 999,
'full_view' => TRUE,
'list_type_toggle' => FALSE,
'pagination' => FALSE
) );
?>
</div>