require_once('include/nav.php');
define ( 'FRIENDIKA_PLATFORM', 'Free Friendika');
-define ( 'FRIENDIKA_VERSION', '2.3.1143' );
+define ( 'FRIENDIKA_VERSION', '2.3.1144' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1098 );
'classdo' => (($item['starred']) ? "hidden" : ""),
'classundo' => (($item['starred']) ? "" : "hidden"),
'starred' => t('starred'),
+ 'tagger' => t("add tag"),
+ 'classtagger' => "",
);
}
'$linkurl' => t('Please enter a link URL:'),
'$vidurl' => t("Please enter a video link/URL:"),
'$audurl' => t("Please enter an audio link/URL:"),
+ '$term' => t('Tag term:'),
'$whereareu' => t('Where are you right now?'),
'$title' => t('Enter a title for this item')
));
$s = prepare_text($item['body']);
- call_hooks('prepare_body', $s);
+ $prep_arr = array('item' => $item, 'html' => $s);
+ call_hooks('prepare_body', $prep_arr);
+ $s = $prep_arr['html'];
if(! $attach)
return $s;
}
$s .= '<div class="clear"></div></div>';
}
- call_hooks('prepare_body_final', $s);
- return $s;
+
+ $prep_arr = array('item' => $item, 'html' => $s);
+ call_hooks('prepare_body_final', $prep_arr);
+ return $prep_arr['html'];
}}
proc_run('php',"include/notifier.php","like","$post_id");
- return; // NOTREACHED
+ killme();
+// return; // NOTREACHED
}
\ No newline at end of file
$r = q("SELECT * FROM `item` WHERE `id` = '%s' LIMIT 1",
- dbesc($item_id),
dbesc($item_id)
);
$blocktags = $r[0]['blocktags'];
}
-// if(local_user() != $owner_uid)
-// return;
+ if(local_user() != $owner_uid)
+ return;
if(remote_user()) {
$r = q("select * from contact where id = %d AND `uid` = %d limit 1",
proc_run('php',"include/notifier.php","tag","$post_id");
+ killme();
+
return; // NOTREACHED
}
}
+ function itemTag(id) {
+ $('#like-rotator-' + id).show();
+ reply = prompt("$term");
+ if(reply && reply.length) {
+ reply.replace('#','');
+ if(reply.length) {
+ $.get('tagger/' + id + '?term=' + reply, function(data) {
+ $('#like-rotator-' + id).hide();
+ });
+ }
+ }
+ }
+
function jotClearLocation() {
$('#jot-coord').val('');
$('#profile-nolocation-wrapper').hide();
margin-left: 10px;
float: left;
}
+.tag-item {
+ margin-left: 10px;
+ float: left;
+}
+
.wall-item-links-wrapper {
float: left;
{{ if $star }}
<a href="#" id="starred-$id" onclick="dostar($id); return false;" class="star-item icon $isstarred" title="$star.toggle"></a>
+ <a href="#" id="tagger-$id" onclick="itemTag($id); return false;" class="tag-item icon tagged" title="$star.tagger"></a>
{{ endif }}
<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-$id" >
{{ if $star }}
<a href="#" id="star-$id" onclick="dostar($id); return false;" class="$star.classdo" title="$star.do">$star.do</a>
<a href="#" id="unstar-$id" onclick="dostar($id); return false;" class="$star.classundo" title="$star.undo">$star.undo</a>
+ <a href="#" id="tagger-$id" onclick="itemTag($id); return false;" class="$star.classtagger" title="$star.tagger">$star.tagger</a>
{{ endif }}
{{ if $vote }}