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