function _mymodule_custom_share_button_markup in Easy Social 7.2
Widget markup callback. This is where you return your widget's markup.
Parameters
string: The URL to share.
int: The widget type (horizontal or vertical). This maps to one of the defined constants: EASY_SOCIAL_WIDGET_HORIZONTAL or EASY_SOCIAL_WIDGET_VERTICAL.
string: The title to share.
string: The widget's language code. Not all widgets implement i18n so this can be ignored and fallback to a default language.
Return value
string A rendered html string.
See also
1 string reference to '_mymodule_custom_share_button_markup'
- hook_easy_social_widget in ./
easy_social.api.php - Implements hook_easy_social_widget().
File
- ./
easy_social.api.php, line 57 - Easy Social API documentation.
Code
function _mymodule_custom_share_button_markup($url, $type, $title = NULL, $lang = 'en') {
return <<<HTML
This is my widget' markup, I can replace parameters with variables such as {<span class="php-variable">$url</span>} and {<span class="php-variable">$title</span>}.
HTML;
}