Conversation
Notices
-
Diogo Cordeiro (diogo@loadaverage.org)'s status on Friday, 21-Jun-2019 08:40:59 JST Diogo Cordeiro I guess you are looking for the `StartShowNoticeItem` event...
Maybe something like:
function onStartShowNoticeItem($item)
{
$url = common_local_url('YandexTranslate', ['id' => $item->notice->id]);
$item->out->element('a', ['href' => $url, 'class' => 'YandexTranslate', 'title' => 'Translate this dent to my language.'], 'Translate this dent to my language.');
return true;
}-
Diogo Cordeiro (diogo@loadaverage.org)'s status on Friday, 21-Jun-2019 08:41:42 JST Diogo Cordeiro You have the list of available events here: https://notabug.org/diogo/gnu-social/src/nightly/DOCUMENTATION/DEVELOPERS/EVENTS.txt Diogo Cordeiro likes this.
-