mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
addon repository relocated
This commit is contained in:
parent
2bf19ae652
commit
056921b1e8
124 changed files with 11673 additions and 1 deletions
22
widgets/widget_like.php
Normal file
22
widgets/widget_like.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
function like_widget_name() {
|
||||
return "Shows likes";
|
||||
}
|
||||
function like_widget_help() {
|
||||
return "Search first item which contains <em>KEY</em> and print like/dislike count";
|
||||
}
|
||||
|
||||
function like_widget_args(){
|
||||
return Array("KEY");
|
||||
}
|
||||
|
||||
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# ";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue