Created
August 6, 2010 06:34
-
-
Save jc1arke/510947 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Login or logout will be needed to according to current user state | |
| if( $fbMe ) : | |
| $button_url = $facebook -> getLogoutUrl(); | |
| $button_image = "http://static.ak.fbcdn.net/rsrc.php/z2Y31/hash/cxrz4k7j.gif"; | |
| else : | |
| $button_url = $facebook -> getLoginUrl(); | |
| $button_image = "http://static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif"; | |
| endif; | |
| ..... | |
| // This part will be in the HTML section | |
| <a href="<?php echo $button_url; ?>"> | |
| <img src="<?php echo $button_image; ?>" border="0"> | |
| </a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment