function _easy_social_widget_linkedin_markup in Easy Social 7.2
Generate the needed markeup for the linkedin share link.
Parameters
$url The url to be shared:
$type Generate horizontal or vertical widgets:
$title The title to be shared:
Return value
string the html markup
1 string reference to '_easy_social_widget_linkedin_markup'
- easy_social_easy_social_widget in ./
easy_social.module - Implements hook_easy_social_widget().
File
- includes/
easy_social.widgets.inc, line 126 - Easy Social default widget functions.
Code
function _easy_social_widget_linkedin_markup($url, $type, $title = NULL, $lang = 'und') {
// This widget doesn't yet offer a localization option.
// @TODO Use "data-onsuccess" to track successful shares this will likely be
// in either a seperate module or a new version.
$type = $type == EASY_SOCIAL_WIDGET_HORIZONTAL ? 'right' : 'top';
$type_show = variable_get_value('easy_social_linkedin_count_show');
if (!$type_show) {
$type = FALSE;
}
$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;
}