You are here

function socialmedia_widgets_element_facebook_like_box in Social media 7

1 call to socialmedia_widgets_element_facebook_like_box()
socialmedia_widgets_element_info in ./socialmedia.widgets.inc
Implements hook_widgets_element_info().

File

./socialmedia.widgets.inc, line 780
Functions needed to execute image elements provided by Image module.

Code

function socialmedia_widgets_element_facebook_like_box() {
  $facebook_js_sdk = socialmedia_widgets_facebook_js_sdk();
  $elements = array();
  $elements['socialmedia_facebook-like-box'] = array(
    'label' => t('Facebook like box'),
    'help' => t('Resizing will make images an exact set of dimensions. This may cause images to be stretched or shrunk disproportionately.'),
    'group' => t('Social media: Facebook'),
    'template' => '<div class="fb-like-box" data-href="[?facebook_page_url=[socialmedia:sm-facebook_url]?]" [?width=data-width="{[socialmedia:sm-default_width]}"?] [?height=data-height="{[socialmedia:sm-default_height]}"?] data-colorscheme="[?color_scheme=light?]" data-border-color="[?border_color=[socialmedia:sm-default_color_border]?]" data-show-faces="[?show_faces=true?]" data-stream="[?data_stream=false?]" data-header="[?data_header=true?]"></div>',
    'add_js' => array(
      'data' => $facebook_js_sdk,
      'options' => array(
        'scope' => 'set_pre',
        'type' => 'inline',
      ),
    ),
    'form callback' => 'widgets_template_auto_form',
  );
  return $elements;
}