function _easysocial_button_linkedin_markup in Easy Social 6
Same name and namespace in other branches
- 7 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:
Return value
the html markup
File
- ./
easy_social.module, line 475 - This is the file description for Easy Social module.
Code
function _easysocial_button_linkedin_markup($url, $type, $lang = 'en') {
// no language options
$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;
}