You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ma...@apache.org on 2014/07/05 17:38:38 UTC
svn commit: r1608037 -
/openoffice/ooo-site/trunk/content/download/test/boxed_download.js
Author: marcus
Date: Sat Jul 5 15:38:37 2014
New Revision: 1608037
URL: http://svn.apache.org/r1608037
Log:
Moved text and links into variables
Modified:
openoffice/ooo-site/trunk/content/download/test/boxed_download.js
Modified: openoffice/ooo-site/trunk/content/download/test/boxed_download.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/boxed_download.js?rev=1608037&r1=1608036&r2=1608037&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/boxed_download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/boxed_download.js Sat Jul 5 15:38:37 2014
@@ -129,7 +129,9 @@ function createShareBox() {
+ "<div class='lightblue-icon'></div>"
// Headline.
- + "<h2 title='" + l10n_share_light_blue_box_headline_title + "'>" + l10n_share_light_blue_box_headline_text + "</h2>"
+ + "<h2 title='" + l10n_share_light_blue_box_headline_title + "'>"
+ + l10n_share_light_blue_box_headline_text
+ + "</h2>"
// Box text.
+ "<p id='ShareDownloadLinks'"
@@ -141,29 +143,33 @@ function createShareBox() {
// Apache OpenOffice blog.
+ "<span onclick='javascript:share( \"apacheblog\" )'"
+ "title='" + l10n_share_light_blue_box_blog_title + "'>"
- + "<img src='http://www.openoffice.org/images/logo-rss-32.png' alt='" + l10n_share_light_blue_box_blog_alt + "'/>"
- + "<a>Official Blog</a>"
+ + "<img src='" + l10n_share_light_blue_box_blog_src + "'"
+ + "alt='" + l10n_share_light_blue_box_blog_alt + "'/>"
+ + "<a>" + l10n_share_light_blue_box_blog_text + "</a>"
+ "</span>"
// Facebook.
+ "<span onclick='javascript:share( \"facebook\" )'"
+ "title='" + l10n_share_light_blue_box_facebook_title + "'>"
- + "<img src='http://www.openoffice.org/images/logo-facebook-32.png' alt='" + l10n_share_light_blue_box_facebook_alt + "' />"
- + "<a>Facebook</a>"
+ + "<img src='" + l10n_share_light_blue_box_facebook_src + "'"
+ + "alt='" + l10n_share_light_blue_box_facebook_alt + "' />"
+ + "<a>" + l10n_share_light_blue_box_facebook_text + "</a>"
+ "</span>"
// Twitter.
+ "<span onclick='javascript:share( \"twitter\" )'"
+ "title='" + l10n_share_light_blue_box_twitter_title + "'>"
- + "<img src='http://www.openoffice.org/images/logo-twitter-32.png' alt='" + l10n_share_light_blue_box_twitter_alt + "' />"
- + "<a>Twitter</a>"
+ + "<img src='" + l10n_share_light_blue_box_twitter_src + "'"
+ + "alt='" + l10n_share_light_blue_box_twitter_alt + "' />"
+ + "<a>" + l10n_share_light_blue_box_twitter_text + "</a>"
+ "</span>"
// Google+.
+ "<span onclick='javascript:share( \"google+\" )'"
+ "title='" + l10n_share_light_blue_box_googleplus_title + "'>"
- + "<img src='http://www.openoffice.org/images/logo-googleplus-32.png' alt='" + l10n_share_light_blue_box_googleplus_alt + "' />"
- + "<a>Google+</a>"
+ + "<img src='" + l10n_share_light_blue_box_googleplus_src + "'"
+ + "alt='" + l10n_share_light_blue_box_googleplus_alt + "' />"
+ + "<a>" + l10n_share_light_blue_box_googleplus_text + "</a>"
+ "</span>"
+ "</div>"
+ "</div>" );
@@ -178,15 +184,17 @@ function createShareBox() {
*/
function createExtensionsBox() {
document.write( "<div class='blue button' id='optionitem5' "
- + "onclick='openItem(\"optionitem5\",\"http://extensions.openoffice.org/\"); return false;'>"
+ + "onclick='openItem(\"optionitem5\",\"" + l10n_ext_blue_box_text_href + "\"); return false;'>"
+ "<div class='blue-icon'></div>"
// Headline.
- + "<h2 title='" + l10n_ext_blue_box_headline_title + "'>" + l10n_ext_blue_box_headline_text + "</h2>"
+ + "<h2 title='" + l10n_ext_blue_box_headline_title + "'>"
+ + l10n_ext_blue_box_headline_text
+ + "</h2>"
// Box text.
+ "<p style='margin-left: 5px; padding-bottom: 3%;'>"
- + "<a href='http://extensions.openoffice.org/' title='" + l10n_ext_blue_box_text_title + "'>"
+ + "<a href='" + l10n_ext_blue_box_text_href + "' title='" + l10n_ext_blue_box_text_title + "'>"
+ l10n_ext_blue_box_text_text
+ "</a>"
+ "</p>"
@@ -202,15 +210,17 @@ function createExtensionsBox() {
*/
function createTemplatesBox() {
document.write( "<div class='button blue' id='optionitem6' "
- + "onclick='openItem(\"optionitem6\",\"http://templates.openoffice.org/\"); return false;'>"
+ + "onclick='openItem(\"optionitem6\",\"" + l10n_tlp_blue_box_text_href + "\"); return false;'>"
+ "<div class='blue-icon'></div>"
// Headline.
- + "<h2 title='" + l10n_tlp_blue_box_headline_title + "'>" + l10n_tlp_blue_box_headline_text + "</h2>"
+ + "<h2 title='" + l10n_tlp_blue_box_headline_title + "'>"
+ + l10n_tlp_blue_box_headline_text
+ + "</h2>"
// Box text.
+ "<p style='margin-left: 5px; padding-bottom: 3%;'>"
- + "<a href='http://templates.openoffice.org/' title='" + l10n_tlp_blue_box_text_title + "'>"
+ + "<a href='" + l10n_tlp_blue_box_text_href + "' title='" + l10n_tlp_blue_box_text_title + "'>"
+ l10n_tlp_blue_box_text_text
+ "</a>"
+ "</p>"
@@ -360,18 +370,14 @@ function createLogoSection() {
document.write( "<div id='SupportedAndSupporters'>"
// Sourceforge logo.
- + "<a href='http://www.sourceforge.net' title='"
- + l10n_img_sourceforge_title + "'>"
- + "<img src='http://www.openoffice.org/images/sourceforge.png' width='160' height='34' alt='"
- + l10n_img_sourceforge_alt + "' />"
+ + "<a href='" + l10n_img_sourceforge_href + "' title='" + l10n_img_sourceforge_title + "'>"
+ + "<img src='" + l10n_img_sourceforge_src + "' width='160' height='34' alt='" + l10n_img_sourceforge_alt + "' />"
+ "</a>"
+ "<br /><br />"
// W3C Validator logo.
- + "<a href='http://validator.w3.org/check?uri=referer' target='_blank' title='"
- + l10n_img_w3c_title + "'>"
- + "<img src='http://www.openoffice.org/images/valid-xhtml10-blue.png' alt='"
- + l10n_img_w3c_alt + "' />"
+ + "<a href='" + l10n_img_w3c_href + "' target='_blank' title='" + l10n_img_w3c_title + "'>"
+ + "<img src='" + l10n_img_w3c_src + "' alt='" + l10n_img_w3c_alt + "' />"
+ "</a>"
+ "</div>" );
return;