1
0
Fork 0
friendica_2020-09-1_sharedH.../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# ";
}
}