svn commit: r769029 - in /lenya/contributions/2_0_X/modules: defaultstyle/resources/css/ defaultstyle/xslt/ firedocs/resources/javascript/

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Mon Apr 27 15:30:32 2009
New Revision: 769029

URL: http://svn.apache.org/viewvc?rev=769029&view=rev
Log:
Adding missing license headers, adding script for Firedocs installation support (thanks to Thomas Comiotto).

Added:
    lenya/contributions/2_0_X/modules/firedocs/resources/javascript/
    lenya/contributions/2_0_X/modules/firedocs/resources/javascript/firedocs.js
Modified:
    lenya/contributions/2_0_X/modules/defaultstyle/resources/css/homepage.css
    lenya/contributions/2_0_X/modules/defaultstyle/resources/css/links.css
    lenya/contributions/2_0_X/modules/defaultstyle/resources/css/news.css
    lenya/contributions/2_0_X/modules/defaultstyle/resources/css/xhtml.css
    lenya/contributions/2_0_X/modules/defaultstyle/xslt/page.xsl

Modified: lenya/contributions/2_0_X/modules/defaultstyle/resources/css/homepage.css
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/defaultstyle/resources/css/homepage.css?rev=769029&r1=769028&r2=769029&view=diff
==============================================================================
--- lenya/contributions/2_0_X/modules/defaultstyle/resources/css/homepage.css (original)
+++ lenya/contributions/2_0_X/modules/defaultstyle/resources/css/homepage.css Mon Apr 27 15:30:32 2009
@@ -1,3 +1,20 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 /* Put your doctype-specific CSS here */
 
 div#body {

Modified: lenya/contributions/2_0_X/modules/defaultstyle/resources/css/links.css
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/defaultstyle/resources/css/links.css?rev=769029&r1=769028&r2=769029&view=diff
==============================================================================
--- lenya/contributions/2_0_X/modules/defaultstyle/resources/css/links.css (original)
+++ lenya/contributions/2_0_X/modules/defaultstyle/resources/css/links.css Mon Apr 27 15:30:32 2009
@@ -1 +1,18 @@
-/* Put your doctype-specific CSS here */
\ No newline at end of file
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+/* Put your doctype-specific CSS here */

Modified: lenya/contributions/2_0_X/modules/defaultstyle/resources/css/news.css
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/defaultstyle/resources/css/news.css?rev=769029&r1=769028&r2=769029&view=diff
==============================================================================
--- lenya/contributions/2_0_X/modules/defaultstyle/resources/css/news.css (original)
+++ lenya/contributions/2_0_X/modules/defaultstyle/resources/css/news.css Mon Apr 27 15:30:32 2009
@@ -15,6 +15,8 @@
 * limitations under the License.
 */
 
+/* Put your doctype-specific CSS here */
+
 div.newsDate {
   font-size: small;
   font-weight: normal;

Modified: lenya/contributions/2_0_X/modules/defaultstyle/resources/css/xhtml.css
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/defaultstyle/resources/css/xhtml.css?rev=769029&r1=769028&r2=769029&view=diff
==============================================================================
--- lenya/contributions/2_0_X/modules/defaultstyle/resources/css/xhtml.css (original)
+++ lenya/contributions/2_0_X/modules/defaultstyle/resources/css/xhtml.css Mon Apr 27 15:30:32 2009
@@ -1,3 +1,20 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 /* Put your doctype-specific CSS here */
 
 .column1of2 {

Modified: lenya/contributions/2_0_X/modules/defaultstyle/xslt/page.xsl
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/defaultstyle/xslt/page.xsl?rev=769029&r1=769028&r2=769029&view=diff
==============================================================================
--- lenya/contributions/2_0_X/modules/defaultstyle/xslt/page.xsl (original)
+++ lenya/contributions/2_0_X/modules/defaultstyle/xslt/page.xsl Mon Apr 27 15:30:32 2009
@@ -60,12 +60,15 @@
         <link rel="stylesheet" href="/{$pub}/{$area}/defaultstyle/css/print.css" type="text/css" media="print"/>
         -->
         <link rel="alternate" type="application/rss+xml"  title="News" href="/{$pub}/{$area}/news.rss"/>
-        <i:include src="cocoon://modules/atom/serviceLinks" strip-root="true"/>
         <meta content="Apache Lenya {$lenyaVersion}" name="generator"/>
         <title><meta:value element="title" ns="http://purl.org/dc/elements/1.1/" default="error-404"
           i18n:attr="default" uuid="{$uuid}" lang="{$language}"/></title>
         <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
         <link rel="SHORTCUT ICON" href="/{$pub}/{$area}/favicon.ico"/>
+        <xsl:if test="$area = 'authoring'">
+          <i:include src="cocoon://modules/atom/serviceLinks" strip-root="true"/>
+          <script type="text/javascript" src="/modules/firedocs/javascript/firedocs.js"/>
+        </xsl:if>
       </head>
       <body>
         <div id="page">

Added: lenya/contributions/2_0_X/modules/firedocs/resources/javascript/firedocs.js
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/firedocs/resources/javascript/firedocs.js?rev=769029&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/firedocs/resources/javascript/firedocs.js (added)
+++ lenya/contributions/2_0_X/modules/firedocs/resources/javascript/firedocs.js Mon Apr 27 15:30:32 2009
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+var installFiredocs = function () {
+
+  var anchors = document.getElementsByTagName("a");
+
+  for (var i=0; i < anchors.length; i++) {
+    var anchor = anchors.item(i);
+
+    if (anchor.hasAttribute("href") && anchor.getAttribute("href").indexOf("firedocs://") == 0 && !window.firedocsInfo) {
+      anchor.setAttribute("href", "http://wiki.apache.org/lenya/HowToInstallFiredocs"); // point to install location
+      anchor.setAttribute("target", "_blank");
+      anchor.textContent = "Install Firedocs";
+    }
+  }
+
+};
+
+window.addEventListener("load", installFiredocs, false);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.