I didn't find any article how to embed sharethis buttons into my code.
Please help. Also would be a good idea putting this info into readme.txt
Thanks
I didn't find any article how to embed sharethis buttons into my code.
Please help. Also would be a good idea putting this info into readme.txt
Thanks
Comments
Comment #1
bsandor commentedI posted very early. I found the way. Also I believe it would be helpful putting it into readme.txt
An Example:
function sharethis_block_contents() {
if (variable_get('sharethis_location', 'content') == 'block') {
// First get all of the options for the sharethis widget from the database:
$data_options = sharethis_get_options_array();
$path = isset($_GET['q']) ? $_GET['q'] : '';
$mPath = url($_GET['q'], array('absolute' => TRUE));
$mTitle = drupal_get_title();
return sharethis_get_button_HTML($data_options, $mPath, $mTitle);
}
}
Comment #2
vladimirausIssue was inactive for more than 9 years. Closing.
Feel free to reopen if you feel that it is still relevant. ⏳