openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1624609 - /openoffice/ooo-site/trunk/content/index_asfcon.html
Date Fri, 12 Sep 2014 18:47:44 GMT
Author: marcus
Date: Fri Sep 12 18:47:43 2014
New Revision: 1624609

URL: http://svn.apache.org/r1624609
Log:
Moved the event box into a new JS function

Modified:
    openoffice/ooo-site/trunk/content/index_asfcon.html

Modified: openoffice/ooo-site/trunk/content/index_asfcon.html
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/index_asfcon.html?rev=1624609&r1=1624608&r2=1624609&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/index_asfcon.html (original)
+++ openoffice/ooo-site/trunk/content/index_asfcon.html Fri Sep 12 18:47:43 2014
@@ -35,12 +35,44 @@
         }
       }
 
+      function showEventBox() {
+	// The text is defined in "/msg_prop_l10n.js".
+
+	// Show the event box or not?
+	if( l10n.index_event_box_show ) {
+		// Show the banner logo and text with link and cursor as poiner.
+		document.write( "<div id='event_box' onclick='window.open( \"" + l10n.index_event_box_text_href
+			+ "\", \"_blank\" ); return false;'>"
+			+ "<ul>"
+			  + "<li>"
+			    // Event banner logo on the left hand side.
+			    + "<p style='float: left;'>"
+			      + "<a href='" + l10n.index_event_box_graphic_href
+			      + "' title='" + l10n.index_event_box_graphic_title + "' target='_blank'>"
+				+ "<img src='" + l10n.index_event_box_graphic_src
+				+ "' alt='" + l10n.index_event_box_graphic_alt + "' />"
+			      + "</a>"
+			    + "</p>"
+
+			    // Event text on the right hand side.
+			    + "<p>"
+			      + "<a style='color: black; text-decoration: none;'"
+				+ "href='" + l10n.index_event_box_text_href
+				+ "' title='" + l10n.index_event_box_text_title + "' target='_blank'>"
+				+ l10n.index_event_box_text_text
+			      + "</a>"
+			    + "</p>"
+			  + "</li>"
+			+ "</ul>"
+		+ "</div>" );
+	}
+      }
+
       function showAlertBox() {
 	// The text is defined in "/msg_prop_l10n.js".
 
-	// Show alert box or not?
-	if( ! l10n.index_alert_box_show ) {
-		// Show alert box with defined background color.
+	// Show the alert box or not?
+	if( l10n.index_alert_box_show ) {
 		// Depending if link is available, make the whole DIV clickable or not.
 		if( l10n.index_alert_box_href ) {
 			// Show the text with link and cursor as poiner.
@@ -70,7 +102,7 @@
 				+ l10n.index_alert_box_text_text + "</p>" );
 			}
 		}
-		document.write( "</li></ul></div>" ); // Alert box
+		document.write( "</li></ul></div>" ); // Alert box.
 	}
       }
 
@@ -150,7 +182,7 @@
 			+ "<ul><li>"
 			+ "<p>" + lang_text + "</p>"
 			+ "</li></ul>"
-			+ "</div>" ); // redirect box
+			+ "</div>" ); // Redirect box.
 			break;
 		case "none":
 		default:
@@ -170,38 +202,16 @@
 
 <div id="actionstatements">
 
-  <!-- Show event box. -->
-  <!-- Show a banner logo for events and a text. -->
-  <div id="event_box">
-    <ul>
-      <li>
-        <!-- Event banner logo on the left hand side. -->
-        <p style="float: left;">
-          <a href="http://apachecon.com/" target="_blank">
-            <img src="http://www.apache.org/ads/ApacheCon/2014-eu-234x60.png" alt="Apache
Software Foundation" />
-          </a>
-        </p>
-
-        <!-- Event text on the right hand side. -->
-        <p>
-          <a style="color: black; text-decoration: none;"
-          href="http://events.linuxfoundation.org/events/apachecon-europe" target="_blank">
-            ApacheCon Europe, 2014
-            <br />
-            Budapest, November 17th - 21st, 2014
-            <br />
-            Click to see conference site for details and registration.
-          </a>
-        </p>
-      </li>
-    </ul>
-  </div>
-
   <script type="text/javascript">
   <!--
+  // Show event box.
+  // Show a banner logo and message of the event.
+  // In "/msg_prop_l10n.js": Change to 'true' to show the box that is defined in the variables.
+  showEventBox();
+
   // Show alert box.
-  // Show important messages and announcements.
-  // In "/msg_prop_l10n.js": Change to 'true' to show the text that is defined in the variables.
+  // Show an important message or announcement.
+  // In "/msg_prop_l10n.js": Change to 'true' to show the box that is defined in the variables.
   showAlertBox();
 
   // Show redirect box.



Mime
View raw message