friendica_2021-01/addon/widgets/widget_like.php

23 lines
447 B
PHP
Raw Normal View History

2011-03-29 14:12:06 +02:00
<?php
2011-05-11 17:04:41 +02:00
function like_widget_name() {
return "Shows likes";
}
function like_widget_help() {
return "Search first item wich contains <em>KEY</em> and print like/dislike count";
2011-03-29 14:12:06 +02:00
}
2011-05-11 17:04:41 +02:00
function like_widget_args(){
2011-03-29 14:12:06 +02:00
return Array("KEY");
}
2011-05-11 17:04:41 +02:00
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# ";
}
}