Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r17507: LJSUP-7043: When you hover on the icon t...

Committer: gariev
LJSUP-7043: When you hover on the icon twitter account in the pop up window displays the icon Open Id

U   trunk/htdocs/tools/endpoints/ctxpopup.bml
Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml	2010-10-05 06:41:58 UTC (rev 17506)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml	2010-10-05 07:51:23 UTC (rev 17507)
@@ -91,7 +91,14 @@
         if ($u->is_syndicated) {
             $ret{url_userpic} = "$LJ::IMGPREFIX/feed100x100.png";
         } elsif ($u->is_identity) {
-            $ret{url_userpic} = "$LJ::IMGPREFIX/identity_100x100.png";
+            ## show OpedID placeholder for OpenID accounts, and
+            ## default placeholder for all the rest identities (Facebook, Twitter etc)
+            my $identity = $u->identity;
+            if ($identity && $identity->isa("LJ::Identity::OpenID")) {
+                $ret{url_userpic} = "$LJ::IMGPREFIX/identity_100x100.png";
+            } else {
+                $ret{url_userpic} = "$LJ::IMGPREFIX/ctxpopup-nopic.gif";
+            }
         } else {
             $ret{url_userpic} = "$LJ::IMGPREFIX/ctxpopup-nopic.gif";
         }

Tags: bml, gariev, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments