You are here

function theme_rrssb_button in Ridiculously Responsive Social Sharing Buttons 7.2

Same name and namespace in other branches
  1. 7 rrssb.module \theme_rrssb_button()

Theme function for rrssb_button. Prints a single button.

1 theme call to theme_rrssb_button()
rrssb_get_buttons in ./rrssb.module
Returns a Drupal render array for the buttons.

File

./rrssb.module, line 170

Code

function theme_rrssb_button($variables) {

  // Variables are $name, $button, $rrssb, $link
  extract($variables);
  $class = $button['popup'] ? 'class="popup"' : '';
  $output = <<<EOM
<li class="rrssb-{<span class="php-variable">$name</span>}"><a href="{<span class="php-variable">$link</span>}" {<span class="php-variable">$class</span>}><span class="rrssb-icon"></span><span class="rrssb-text">{<span class="php-variable">$button</span>[<span class="php-string">'text'</span>]}</span></a></li>
EOM;
  return $output;
}