]> git.mxchange.org Git - friendica-addons.git/blobdiff - widgets/widget_like.php
Merge pull request #482 from MrPetovan/task/fix-php-notices
[friendica-addons.git] / widgets / widget_like.php
index b60d2d94d9ed483c8c1e509bc96828ace2db3b3f..8f356da976b856b9326a3ceb217be18086314802 100644 (file)
@@ -11,6 +11,11 @@ function like_widget_args(){
        return Array("KEY");
 }
 
+function like_widget_size(){
+       return Array('60px','20px');
+}
+
+
 function like_widget_content(&$a, $conf){
        $args = explode(",",$_GET['a']);
        
@@ -47,7 +52,8 @@ function like_widget_content(&$a, $conf){
        
        $o = "";
        
-       $t = file_get_contents( dirname(__file__). "/widget_like.tpl" );
+#      $t = file_get_contents( dirname(__file__). "/widget_like.tpl" );
+       $t = get_markup_template("widget_like.tpl", "addon/widgets/");
        $o .= replace_macros($t, array(
                '$like'         => $likes,
                '$strlike'      => sprintf( tt("%d person likes this", "%d people like this", $likes), $likes),