guid; $title = $vars['entity']->title; $description = $vars['entity']->description; $address = $vars['entity']->address; $tags = $vars['entity']->tags; $access_id = $vars['entity']->access_id; $shares = $vars['entity']->shares; $owner = $vars['entity']->getOwnerEntity(); $highlight = 'default'; } else { $guid = 0; $title = get_input('title',""); $title = stripslashes($title); // strip slashes from URL encoded apostrophes $description = ""; $address = get_input('address',""); $highlight = 'all'; if ($address == "previous") $address = $_SERVER['HTTP_REFERER']; $tags = array(); if (defined('ACCESS_DEFAULT')) { $access_id = ACCESS_DEFAULT; } else { $access_id = 0; } $shares = array(); $owner = page_owner_entity(); } ?>

$shares, 'owner' => $owner)); if ($friends = elgg_get_entities_from_relationship(array('relationship' => 'friend', 'relationship_guid' => $owner->getGUID(), 'inverse_relationship' => FALSE, 'type' => 'user', 'limit' => 9999))) { ?>


$friends, 'name' => 'shares', 'highlight' => $highlight)); ?>

'container_guid', 'value' => $vars['container_guid'])) : ""; ?>