Closed (outdated)
Project:
ShareThis
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2013 at 19:27 UTC
Updated:
2 Mar 2023 at 14:36 UTC
Jump to comment: Most recent
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. ⏳