Skip to content

Instantly share code, notes, and snippets.

@dokipen
Created February 1, 2011 17:16
Show Gist options
  • Select an option

  • Save dokipen/806186 to your computer and use it in GitHub Desktop.

Select an option

Save dokipen/806186 to your computer and use it in GitHub Desktop.
Shareaholic 4 Publishers config
script do
self <<<<-"END"
jQuery(document).ready(function($) {
if (typeof(SHR4P) == 'undefined') {
SHR4P = {};
}
SHR4P.onready = function() {
SHR4P.jQuery('.shr').shareaholic_publishers({
mode: 'inject',
showShareCount: true,
service: '202,7,5,40,2,52,3',
apikey: '#{CONFIG[:shareaholic_key]}',
link: "#{CONFIG[:canonical_url]}",
short_link: '#{CONFIG[:short_url]}',
title: 'Kalimba - #{CONFIG[:tagline]}',
center: true
});
};
if (typeof(SHR4P.ready) != 'undefined' &&
SHR4P.ready) {
SHR4P.onready();
}
});
END
end
script(:src =>
'http://www.shareaholic.com/media/js/jquery.shareaholic-publishers-api.min.js'
) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment