function sharethis_get_js in ShareThis 5
Creates the complete script tag to create SHARETHIS elements.
See for the options available.
Parameters
$title: The name of the article.
$options: The options to be passed (http://sharethis.com/publisher?type=stapi).
$chicklet: (optional) The name of the chicklet to pass if desired (email, twitter, etc).
2 calls to sharethis_get_js()
- sharethis_link in ./
sharethis.module - Implementation of hook_link().
- sharethis_nodeapi in ./
sharethis.module - Implementation of hook_nodeapi().
File
- ./
sharethis.module, line 215 - Provides the ShareThis service.
Code
function sharethis_get_js($title, $url, $chicklet = 'sharethis') {
sharethis_add_js();
$title = check_plain($title);
$chickletname = $chicklet == 'sharethis' ? t('ShareThis') : ucfirst($chicklet);
$image = drupal_get_path('module', 'sharethis') . "/images/{$chicklet}.gif";
return theme('sharethis', $title, $url, $chicklet, $chickletname, $image);
}