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

bsandor’s picture

I 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);
}
}

vladimiraus’s picture

Version: 7.x-2.5 » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)

Issue was inactive for more than 9 years. Closing.
Feel free to reopen if you feel that it is still relevant. ⏳