Am 07/13/2014 07:10 PM, schrieb Aivaras Stepukonis:
Marcus, could it be something else?
I compared that section of "index.html" with its English counterpart and
it looks the same.
The functions "shareFacebook()", "shareTwitter()" and
"shareGooglePlus()" are listed right under "share( platform )" as
conditions ("if" / "else if").
assuming we speak about the same file ;-) , I can see this function in
"/lt/download/index.html":
function share( platform ) {
_gaq.push( ['_trackEvent', 'social', 'shareDownload', platform] );
if ( platform == 'apacheblog' ) {
window.open( 'http://blogs.apache.org/OOo/', '_blank' );
} else if ( platform == 'facebook' ) {
window.open(
'http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2F',
'_blank', 'toolbar=0, status=0, width=580, height=325' );
} else if ( platform == 'twitter' ) {
window.open(
'http://twitter.com/intent/tweet?url=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2F&text=Join+the+OpenOffice+revolution%2C+the+free+office+productivity+suite+with+over+100+million+trusted+downloads.',
'_blank', 'toolbar=0, status=0, width=580, height=325' );
} else if ( platform == 'google+' ) {
window.open(
'http://plus.google.com/share?url=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2F',
'_blank', 'toolbar=0, status=0, width=580, height=325' );
}
}
So, you call the function with "share" and depending which network you
want to use give the respective parameter, e.g., "share( ' facebook' )
To recapitulate: 1) it used to work, 2) it stopped working, 3) the
relevant part of "index.html" was not edited.
It's getting a bit too complex for me in terms of programming syntax to
fix it on my own.
I can try if you want.
Marcus
2014.07.13 18:43, Marcus (OOo) rašė:
Am 07/13/2014 05:02 PM, schrieb Aivaras Stepukonis:
Website > native subsite (in my case, lt) > Download > Blue Box (Help
spread the word): the link to the official blog disappeared and the rest
of the links (Facebook, Twitter, Google+) are broken.
This may be due to the ongoing work in the JavaScript compartment.
Please, instruct how to fix it.
in Firebug I can see error messages when clicking on the 3 links. The
functions "shareFacebook()", "shareTwitter()" and "shareGooglePlus()"
were expected.
But at top in the script area there is only a single function "share(
platform )" were the social network name is expected as parameter.
So, when exchanging the 3 functions calls with "share( 'facebook' )",
"share( 'twitter' )" and "share( 'google+' )" it would work.
The link + image for the blog is not defined at all. But you can use
this schema:
<a style="padding: 0pt 5px 0pt 30px; display: inline;"
href="javascript:share( 'apacheblog' )"
title="Papasakokite savo draugams apie „Apache OpenOffice“, naudodami
„Weblog of OpenOffice“">
<img src="/images/logo-rss-32.png"
alt="Papasakokite savo draugams apie „Apache OpenOffice“, naudodami
„Weblog of OpenOffice“" />
</a>
When you put the blog icon at first you have to exchange the CSS style
for padding between Facebook and blog.
HTH
Marcus
---------------------------------------------------------------------
To unsubscribe, e-mail: l10n-unsubscr...@openoffice.apache.org
For additional commands, e-mail: l10n-h...@openoffice.apache.org