diff options
author | Chris Case <kahotep@bunda.dreamhost.com> | 2011-05-21 21:40:16 -0700 |
---|---|---|
committer | Chris Case <kahotep@bunda.dreamhost.com> | 2011-05-21 21:40:16 -0700 |
commit | 4cff911939b263993eb41682ca558c975e2db01f (patch) | |
tree | 78f58e08d04413827744689d0f5df7660bee6caa /addon/widgets/widget_like.php | |
parent | 2cf696d0b5d647e1741d2f94ee379aa19b25ae1b (diff) | |
parent | f3f063c0dd7fd8b706987b856d79c7b58924acbb (diff) | |
download | volse-hubzilla-4cff911939b263993eb41682ca558c975e2db01f.tar.gz volse-hubzilla-4cff911939b263993eb41682ca558c975e2db01f.tar.bz2 volse-hubzilla-4cff911939b263993eb41682ca558c975e2db01f.zip |
merged multipart email changes
Diffstat (limited to 'addon/widgets/widget_like.php')
-rw-r--r-- | addon/widgets/widget_like.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/addon/widgets/widget_like.php b/addon/widgets/widget_like.php new file mode 100644 index 000000000..9b54212a8 --- /dev/null +++ b/addon/widgets/widget_like.php @@ -0,0 +1,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# "; + } +} |