You are here

public static function ShareaholicPublicJS::get_overrides in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3

Same name and namespace in other branches
  1. 8 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;
}