shareaholic_verify_api_key.tpl.php in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3
1 theme call to shareaholic_verify_api_key.tpl.php
- ShareaholicAdmin::draw_verify_api_key in ./admin.php
- This function is in charge of the logic for
showing whatever it is we want to show a user
about whether they have verified their api
key or not.
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>