friendica/addon/widgets/widget_like.php

23 lines
448 B
PHP
Raw Normal View History

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