You are here

shareaholic_verify_api_key.tpl.php in Share Buttons, Related Posts, Content Analytics - Shareaholic 8

Same filename and directory in other branches
  1. 7.3 templates/shareaholic_verify_api_key.tpl.php

File

templates/shareaholic_verify_api_key.tpl.php
View source
<script>
Shareaholic.click_objects['unverified_app_settings'] = {
  selector: Shareaholic.click_objects['app_settings'].selector,
  url: function(button) {
    var url = window.first_part_of_url + 'verify'
      + '?verification_key=' + window.verification_key
      + '&embedded=true'
      + '&redirect_to='
      + encodeURIComponent(
        Shareaholic.click_objects['app_settings'].url(button)
      );
    return url;
  },
  callback: function(button) {
  },
  close: Shareaholic.click_objects['app_settings'].close
}

Shareaholic.click_objects['unverified_general_settings'] = {
  selector: Shareaholic.click_objects['general_settings'].selector,
  url: function(button) {
    var url = first_part_of_url + 'verify'
      + '?verification_key=' + window.verification_key
      + '&redirect_to='
      + encodeURIComponent(
        Shareaholic.click_objects['general_settings'].url(button)
      );
    return Shareaholic.click_objects['general_settings'].url(button);
  },
  callback: function(button) {
    Shareaholic.click_objects['general_settings'].callback(button);
  },
  close: Shareaholic.click_objects['general_settings'].close
}
</script>