AddThis Backbone Init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initAddThis: function() { | |
var addthis_config = | |
{ | |
data_track_clickback: true, | |
data_ga_property: 'UA-xxxxxxx-x', | |
data_ga_social : true | |
}; | |
var addthis_share = | |
{ | |
url: window.location.protocol+'//'+window.location.host + App.Views.singleEntry.slug + '/' + App.Views.singleEntry.model.get('url_title') + '/', | |
title: App.Views.singleEntry.model.get('title'), | |
description: App.Views.singleEntry.model.get('content_teaser') | |
}; | |
if (window.addthis){ | |
window.addthis.toolbox("#addthis_toolbox", addthis_config, addthis_share); | |
} | |
}, | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment