its awesome, to be awesome.
[gwvp-mini.git] / gwvpmini / gwvpmini_web.php
index eb1a7c5..4f83206 100644 (file)
@@ -26,7 +26,7 @@ function gwvpmini_goWeb()
        // this is important for our plugin structure later on - the key on the array serves an an ordering method
        ksort($CALL_ME_FUNCTIONS);
        foreach($CALL_ME_FUNCTIONS as $key => $val) {
-               error_log("checking callmefunction $key as $val");
+               //error_log("checking callmefunction $key as $val");
                $callme = $val();
                if($callme !== false) {
                        $callme();
@@ -264,7 +264,22 @@ function gwvpmini_fourZeroFour()
  * @param array $atts Optional, additional key/value attributes to include in the IMG tag\r
  * @return String containing either just a URL or a complete image tag\r
  * @source http://gravatar.com/site/implement/images/php/\r
- */\r
+ */
+function gwvpmini_HtmlGravatar($email, $size, $htmlappend="")
+{
+       
+       global $use_gravatar;
+       
+       if($use_gravatar) {
+               error_log("call to gravatar with yes");
+       } else {
+               error_log("call to gravatar with no");
+       }
+       
+       if($use_gravatar == false) return "";
+       return get_gravatar( $email, $size, 'mm', 'g', true)."$htmlappend";
+}
+\r
 function get_gravatar( $email, $s = 80, $d = 'mm', $r = 'g', $img = false, $atts = array() ) {\r
        $url = 'http://en.gravatar.com/avatar/';\r
        $url .= md5( strtolower( trim( $email ) ) );\r