mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 17:43:16 +00:00
23 lines
448 B
PHP
23 lines
448 B
PHP
|
<?php
|
||
|
|
||
|
function like_widget_name() {
|
||
|
return "Shows likes";
|
||
|
}
|
||
|
function like_widget_help() {
|
||
|
return "Search first item which contains <em>KEY</em> and print like/dislike count";
|
||
|
}
|
||
|
|
||
|
function like_widget_args(){
|
||
|
return Array("KEY");
|
||
|
}
|
||
|
|
||
|
function like_widget_content(&$a, $conf){
|
||
|
$args = explode(",",$_GET['a']);
|
||
|
|
||
|
if ($args[0]!=""){
|
||
|
return " #TODO like/dislike count for item with <em>" .$args[0]. "</em> # ";
|
||
|
} else {
|
||
|
return " #TODO# ";
|
||
|
}
|
||
|
}
|