You are here

function theme_janrain_capture_share_button in Janrain Registration 7.4

Same name and namespace in other branches
  1. 7.2 janrain_capture.module \theme_janrain_capture_share_button()
  2. 7.3 janrain_capture.module \theme_janrain_capture_share_button()

Returns markup for the "share" button.

1 theme call to theme_janrain_capture_share_button()
_janrain_capture_share_button in ./janrain_capture.module
Returns HTML markup for the social share button.

File

./janrain_capture.module, line 1055
This module implements authentication endpoints for Janrain Capture.

Code

function theme_janrain_capture_share_button($variables) {
  $node = $variables['node'];
  $args = $variables['args'];
  $button_style = array(
    'janrain-share-container',
  );
  $text = isset($args['text']) ? $args['text'] : 'Share on';
  $attributes = array(
    'class' => $button_style,
    'id' => 'janrain-capture-link-social-node-' . $node->nid,
  );
  return '<div' . drupal_attributes($attributes) . '><span class="janrain-share-text">' . $text . '</span>' . theme('janrain_capture_share_icons', array(
    'args' => $args,
    'node' => $node,
  )) . '</div>';
}