You are here

function theme_fbconnect_user_picture_override in Facebook Connect 6.2

Same name and namespace in other branches
  1. 6 fbconnect.pages.inc \theme_fbconnect_user_picture_override()

Make rendering of facebook user picture themeable

1 theme call to theme_fbconnect_user_picture_override()
fbconnect_theme_user_picture_override in ./fbconnect.module
Our replacement for theme('user_picture', ...)

File

./fbconnect.pages.inc, line 293
User pages callbacks for the fbconnect module.

Code

function theme_fbconnect_user_picture_override($fbuid = '', $account = NULL, $user_url = '', $size = 'square', $logo = TRUE) {
  $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
  $output = <<<PIC
    <div class="picture">
      <a href="{<span class="php-variable">$user_url</span>}">
        <img src="{<span class="php-variable">$protocol</span>}://graph.facebook.com/{<span class="php-variable">$fbuid</span>}/picture?type={<span class="php-variable">$size</span>}" />
      </a>
    </div>
PIC;
  return $output;
}