}
$likebuttons = '';
- $shareable = ((($profile_owner == local_user()) && ($mode != 'display') && (! $item['private'])) ? true : false);
+ $shareable = ((($profile_owner == local_user()) && (! $item['private'])) ? true : false); //($mode != 'display') &&
if($page_writeable) {
if($toplevelpost) {
}}
-function status_editor($a,$x, $notes_cid = 0) {
+function status_editor($a,$x, $notes_cid = 0, $popup=false) {
$o = '';
$o .= replace_macros($tpl,array(
'$return_path' => $a->cmd,
- '$action' => 'item',
+ '$action' => $a->get_baseurl().'/item',
'$share' => (($x['button']) ? $x['button'] : t('Share')),
'$upload' => t('Upload photo'),
'$shortupload' => t('upload photo'),
'$preview' => t('Preview'),
));
+
+ if ($popup==true){
+ $o = '<div id="jot-popup" style="display: none;">'.$o.'</div>';
+
+ }
+
return $o;
}
notice( t('Access to this profile has been restricted.') . EOL);
return;
}
+
+ if ($is_owner)
+ $o .= status_editor($a,$x,0,true);
+
$sql_extra = permissions_sql($a->profile['uid'],$remote_contact,$groups);