aboutsummaryrefslogtreecommitdiffstats
path: root/addon/widgets/widget_like.php
blob: 9b54212a80cc7b13004ed1c4161b9cd30cd5912c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

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";
}

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# ";
	}
}