You are here

function _easysocial_button_linkedin_markup in Easy Social 7

Same name and namespace in other branches
  1. 6 easy_social.module \_easysocial_button_linkedin_markup()

Generate the needed markeup for the linkedin share link

Parameters

$url The url to be shared:

$type Generate horizontal or vertical widgets:

$data Actually not used:

Return value

the html markup

File

./easy_social.module, line 463
This is the file description for Easy Social module.

Code

function _easysocial_button_linkedin_markup($url, $type, $data = NULL, $lang = 'en_US') {
  $type = $type == 0 ? 'right' : 'top';
  $markup = <<<LI
    <script type="in/share" data-url="{<span class="php-variable">$url</span>}" data-counter="{<span class="php-variable">$type</span>}"></script>
LI;
  return $markup;
}