Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

suggestion

This discussion is related to the I Like This ( Plugin ) addon.

Suggest plus a css class , give 'Unlike' , 'Like' different css class , so people can custom ther "like button"

here my code

 if(!$Self){
          if (in_array($UID, $Likes))
          {
            $QuoteURL = Url("discussion/Like/{$Url}/remove",TRUE);
            $QuoteText = T('Unlike');
            $QuoteClass = 'Unlike';
          } 
          else 
          {
            $QuoteURL = Url("discussion/Like/{$Url}",TRUE);
            $QuoteText = T('Like');
            $QuoteClass = 'Like';
          }
          $Src .= '<span class="LikeThis '.$QuoteClass.'"><a href="'.$QuoteURL.'">'.$QuoteText.'</a></span>';
        }
        return $Src;

Best Answer

Answers

Sign In or Register to comment.