1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
lib.socialplugins = COA lib.socialplugins { wrap = <div id="social_buttons">|</div> 10 = TEXT 10 { value = Facebook typolink.title = Auf Facebook teilen typolink.ATagParams = class="facebook popup" typolink.parameter.cObject = COA typolink.parameter.cObject { wrap = http://www.facebook.com/sharer.php?u= 10 = TEXT 10.typolink.parameter.data = getIndpEnv:TYPO3_REQUEST_URL 10.typolink.returnLast = url 20 = TEXT 20.data = page:title 20.wrap = &t=| 20.rawUrlEncode = 1 } } 20 = TEXT 20 { value = Twitter typolink.title = Auf Twitter teilen typolink.ATagParams = class="twitter popup" typolink.parameter = http://twitter.com/share } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
$('.popup').click(function(event) { var width = 600, height = 500, left = ($(window).width() - width) / 2, top = ($(window).height() - height) / 2, url = this.href, opts = 'status=1' + ',width=' + width + ',height=' + height + ',top=' + top + ',left=' + left; window.open(url, 'twitter', opts); event.preventDefault() }); |