source: trunk/www.guidonia.net/wp/wp-content/plugins/fbconnect/fbconnect_widget.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 15 years ago
File size: 1.8 KB
Line 
1<?php
2/**
3 * @author: Javier Reyes Gomez (http://www.sociable.es)
4 * @date: 23/12/2008
5 * @license: GPLv2
6 */
7
8 if ( $user->ID ) {
9 echo "<div class=\"fbconnect_miniprofile\">";
10 echo "<div class=\"fbconnect_userpicmain\"><a onclick=\"location.href='".$siteurl."/?fbconnect_action=myhome&amp;userid=".$user->ID."';\" href=\"".$siteurl."/?fbconnect_action=myhome&amp;userid=".$user->ID."\"><fb:profile-pic uid=\"".$user->fbconnect_userid."\" size=\"thumb\" linked=\"false\"></fb:profile-pic></a></div>";
11 echo "<p>".$welcometext;
12 echo "<br/><a href=\"".$siteurl."/?fbconnect_action=myhome&amp;userid=".$user->ID."\">".$user->display_name."</a>";
13 echo "<br/><a href=\"".$siteurl."/wp-admin/profile.php"."\">Edit profile</a>";
14 echo '<br/><a href="#" onclick="FB.Connect.logout(function() { window.location = \''.$siteurl.'/?fbconnect_action=logout'.'\'; })">Logout</a>';
15 echo "</p>";
16 echo "</div>";
17 }else{
18 echo $alreadytext."<br/>";
19 echo '<a href="'.$siteurl.'/wp-login.php'.'"><b>Login</b></a><br/>';
20 }
21 echo "<div class=\"invitebutton\">";
22
23 if ($fb_user){
24 echo "<input type=\"button\" value=\"".$invitetext."\" style=\"width:100%;\" onclick=\"location.href='".$siteurl."/?fbconnect_action=invite'\"/>";
25 }else{
26 echo $logintext."<br/>";
27 echo "<fb:login-button length=\"".$loginbutton."\" onlogin=\"window.location = '".$uri."';\"></fb:login-button>\n";
28 }
29 echo "</div>";
30
31
32 echo "<div class=\"fbconnect_LastUsers\">";
33 echo "<div class=\"fbconnect_title\">".$lastvisittext."</div>";
34 echo "<div class=\"fbconnect_userpics\">";
35
36
37 foreach($users as $user){
38 echo get_avatar( $user->ID,50 );
39 }
40
41 echo "</div>";
42 echo '<div style="text-align:right;"><a href="'.$siteurl.'/?fbconnect_action=community'.'">'.__('view more...', 'fbconnect').' </a></div>';
43 echo "</div>";
44
45?>
Note: See TracBrowser for help on using the repository browser.