Committer: ailyin
LJSUP-8375 (Profile changes - the External services)U trunk/cgi-bin/LJ/Hooks/Userinfo.pm U trunk/htdocs/manage/profile/index.bml.text.local
Modified: trunk/cgi-bin/LJ/Hooks/Userinfo.pm =================================================================== --- trunk/cgi-bin/LJ/Hooks/Userinfo.pm 2011-03-25 09:07:43 UTC (rev 10301) +++ trunk/cgi-bin/LJ/Hooks/Userinfo.pm 2011-03-25 09:09:29 UTC (rev 10302) @@ -488,6 +488,20 @@ }; } + if ( $u->is_person && $u->prop('vkontakte_access_token') ) { + my $vk_name = LJ::ehtml($u->prop('vkontakte_name')); + my $vk_link = LJ::ehtml($u->prop('vkontakte_link')); + + $ret .= qq{ + <tr class='im_lj'> + <td class='im_icon'> + <img src='$LJ::IMGPREFIX/vkontakte-profile.gif?v=2' alt='' /> + </td> + <td colspan="2"><a href="$vk_link">$vk_name</a></td> + </tr> + }; + } + unless ($u->hide_ljtalk) { my $jab_title = LJ::run_hook('jabber_title'); my $jab_link = LJ::run_hook('jabber_link'); @@ -583,6 +597,19 @@ $ret .= "</td></tr>\n"; + $ret .= "<tr><td class='field_name'>" . LJ::Lang::ml('/manage/profile/index.bml.chat.vkontakte'). "</td><td>"; + if ($u->prop('vkontakte_access_token')) { + my $vk_name = $u->prop('vkontakte_name'); + $ret .= qq{ + <img src="$LJ::IMGPREFIX/vkontakte-profile.gif?v=2" alt='' /> + <strong>$vk_name</strong> + } + } else { + $ret .= "<em>(" . LJ::Lang::ml('/manage/profile/index.bml.chat.vkontakte.none') . ")</em> "; + } + $ret .= qq{<a href="$LJ::SITEROOT/manage/settings/?cat=extensions">} . LJ::Lang::ml('/manage/profile/index.bml.chat.vkontakte.change') . '</a>'; + $ret .= "</td></tr>\n"; + return $ret; }); Modified: trunk/htdocs/manage/profile/index.bml.text.local =================================================================== --- trunk/htdocs/manage/profile/index.bml.text.local 2011-03-25 09:07:43 UTC (rev 10301) +++ trunk/htdocs/manage/profile/index.bml.text.local 2011-03-25 09:09:29 UTC (rev 10302) @@ -23,6 +23,12 @@ .chat.twitter.change=Change +.chat.vkontakte=Vkontakte + +.chat.vkontakte.none=None + +.chat.vkontakte.change=Change + .error.gender.not_specified=Please select one of the following options. .friendof=Show list of users who have friended you.