You are here

function theme_fb_social_livestream in Facebook social plugins integration 6

1 theme call to theme_fb_social_livestream()
_fb_social_livestream_block in ./fb_social.module

File

./fb_social.module, line 165
Common settings for all fb social plugins

Code

function theme_fb_social_livestream() {
  global $_fb_script_init;
  $_fb_script_init = TRUE;
  $attrs = array(
    'appid' => variable_get('fb_social_appid', ''),
    'width' => variable_get('fb_social_livestream_width', 300),
    'height' => variable_get('fb_social_livestream_height', 500),
    'always_post_to_friends' => variable_get('fb_social_livestream_posttofriends', 0) ? 'true' : 'false',
  );
  $attrs = drupal_attributes($attrs);
  return '<div class="fb-social-live-stream-widget"><fb:live-stream ' . $attrs . '></fb:live-stream></div>';
}