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() {
|
2011-09-02 07:37:09 +02:00
|
|
|
return "Search first item which 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# ";
|
|
|
|
}
|
|
|
|
}
|