function _easysocial_button_googleplus_markup in Easy Social 7
Same name and namespace in other branches
- 6 easy_social.module \_easysocial_button_googleplus_markup()
Generate the needed markeup for the googleplus 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 448 - This is the file description for Easy Social module.
Code
function _easysocial_button_googleplus_markup($url, $type, $data = NULL, $lang = 'en_US') {
$type = $type == 0 ? 'medium' : 'tall';
$markup = <<<GP
<g:plusone size="{<span class="php-variable">$type</span>}" href="{<span class="php-variable">$url</span>}"></g:plusone>
GP;
return $markup;
}