public static function ShareaholicPublicJS::get_overrides in Share Buttons, Related Posts, Content Analytics - Shareaholic 8
Same name and namespace in other branches
- 7.3 public_js.php \ShareaholicPublicJS::get_overrides()
1 call to ShareaholicPublicJS::get_overrides()
- ShareaholicPublic::js_snippet in ./public.php
- The actual text for the JS snippet because drupal doesn't seem to be
able to add JS from template like Wordpress does...
Using heredocs for now
File
- ./public_js.php, line 36
Class
- ShareaholicPublicJS
- This class gets the necessary components ready
for rendering the shareaholic js code for the template
Code
public static function get_overrides() {
$output = '';
if (ShareaholicUtilities::get_env() === 'staging') {
$output = "data-shr-environment='stage' data-shr-assetbase='//cdn-staging-shareaholic.s3.amazonaws.com/v2/'";
}
return $output;
}