You are here

function _easysocial_button_googleplus_markup in Easy Social 6

Same name and namespace in other branches
  1. 7 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:

Return value

the html markup

File

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

Code

function _easysocial_button_googleplus_markup($url, $type, $lang = 'en') {

  // no language options
  $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;
}