2 //returns array of linked nodes, possible args listing_amount,offset,node_id,orderby=synapse
4 function smarty_function_get_linked_nodes($params,&$smarty) {
7 if ($params['listing_amount']=='all') $listing_amount=DEF_MAX_LISTING_AMMOUNT
;
8 elseif (is_numeric($params['listing_amount'])) $listing_amount=$params['listing_amount'];
9 else $listing_amount=DEFAULT_LISTING_AMOUNT
;
11 if (is_numeric($params['offset'])) $offset=$params['offset'];
12 elseif (is_numeric($_POST['offset'])) $offset=$_POST['offset'];
15 if (isset($params['node_id'])) {
16 $node_id=$params['node_id'];
18 $node_id=$node['node_id'];
21 if ($params['orderby']='synapse') {
22 $orderby='synapse_created';
27 $get_linked_nodes=nodes
::getLinkedNodes($node_id,$orderby,$offset,$listing_amount);
28 $smarty->assign('get_linked_nodes',$get_linked_nodes);
This page took 0.259506 seconds and 4 git commands to generate.