Author: piergiorgio
Date: Fri May  4 14:34:01 2018
New Revision: 1830921

URL: http://svn.apache.org/viewvc?rev=1830921&view=rev
Log:
Added the Apache events banner: all the XSLT templates updated for generating 
HTML  (CONNECTORS-1501)

Added:
    
manifoldcf/site/trunk/src/documentation/resources/images/SupportApache-small-128.png
   (with props)
    
manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/render-event-logo.xsl
   (with props)
Modified:
    manifoldcf/site/trunk/src/documentation/skinconf.xml
    
manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/site-to-xhtml.xsl
    
manifoldcf/site/trunk/src/documentation/skins/lucene/xslt/html/site-to-xhtml.xsl

Added: 
manifoldcf/site/trunk/src/documentation/resources/images/SupportApache-small-128.png
URL: 
http://svn.apache.org/viewvc/manifoldcf/site/trunk/src/documentation/resources/images/SupportApache-small-128.png?rev=1830921&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
manifoldcf/site/trunk/src/documentation/resources/images/SupportApache-small-128.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Modified: manifoldcf/site/trunk/src/documentation/skinconf.xml
URL: 
http://svn.apache.org/viewvc/manifoldcf/site/trunk/src/documentation/skinconf.xml?rev=1830921&r1=1830920&r2=1830921&view=diff
==============================================================================
--- manifoldcf/site/trunk/src/documentation/skinconf.xml (original)
+++ manifoldcf/site/trunk/src/documentation/skinconf.xml Fri May  4 14:34:01 
2018
@@ -77,14 +77,14 @@ which will be used to configure the chos
   <group-name>Apache</group-name>
   <group-description>Apache Software Foundation</group-description>
   <group-url>http://www.apache.org</group-url>
-  <group-logo>images/asf_18_years.png</group-logo>
+  <group-logo>images/SupportApache-small-128.png</group-logo>
   <!-- Alternative static image:
   <group-logo>images/group-logo.gif</group-logo> -->
 
   <!-- optional host logo (e.g. sourceforge logo)
        default skin: renders it at the bottom-left corner -->
-  <host-url></host-url>
-  <host-logo></host-logo>
+  <host-url>https://www.apache.org/events/current-event.html</host-url>
+  <host-logo>https://www.apache.org/events/current-event-234x60.png</host-logo>
 
   <!-- relative url of a favicon file, normally favicon.ico -->
   <favicon-url>images/favicon.ico</favicon-url>

Added: 
manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/render-event-logo.xsl
URL: 
http://svn.apache.org/viewvc/manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/render-event-logo.xsl?rev=1830921&view=auto
==============================================================================
--- 
manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/render-event-logo.xsl
 (added)
+++ 
manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/render-event-logo.xsl
 Fri May  4 14:34:01 2018
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  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.
+-->
+<!--
+A simple callable template that renders a logo for an entity. The logo will 
+be a hyperlink and may include an image (with width and height if specified)
+or else it will just include the specified text.
+
+Note that text and image are mandatory parts of the template.
+-->
+<xsl:stylesheet
+  version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
+  <xsl:template name="render-event-logo">
+    <xsl:param name="url"/>
+    <xsl:param name="logo"/>
+    <a href="{$url}">
+    <xsl:choose>
+      <xsl:when test="$logo and not($logo = '')">
+        <img class="logoImage">
+          <xsl:attribute name="src">
+            <xsl:value-of select="$logo"/>
+          </xsl:attribute>
+        </img>
+      </xsl:when>
+    </xsl:choose></a>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: 
manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/render-event-logo.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/render-event-logo.xsl
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: 
manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/render-event-logo.xsl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: 
manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/site-to-xhtml.xsl
URL: 
http://svn.apache.org/viewvc/manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/site-to-xhtml.xsl?rev=1830921&r1=1830920&r2=1830921&view=diff
==============================================================================
--- 
manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/site-to-xhtml.xsl
 (original)
+++ 
manifoldcf/site/trunk/src/documentation/skins/common/xslt/html/site-to-xhtml.xsl
 Fri May  4 14:34:01 2018
@@ -52,6 +52,7 @@ footer, searchbar, css etc.  As input, i
   <xsl:include href="dotdots.xsl"/>
   <xsl:include href="pathutils.xsl"/>
   <xsl:include href="renderlogo.xsl"/>
+  <xsl:include href="render-event-logo.xsl"/>
 <!-- Path (..'s) to the root directory -->
   <xsl:variable name="root">
     <xsl:call-template name="dotdots">
@@ -151,14 +152,6 @@ footer, searchbar, css etc.  As input, i
         <script language="JavaScript" type="text/javascript"><![CDATA[<!--
           document.write(" - "+"Last Published: " + document.lastModified);
           //  -->]]></script>
-        <xsl:if test="//skinconfig/host-logo and not(//skinconfig/host-logo = 
'')"><a href="{//skinconfig/host-url}">
-          <xsl:call-template name="renderlogo">
-            <xsl:with-param name="name" select="//skinconfig/host-name"/>
-            <xsl:with-param name="url" select="//skinconfig/host-url"/>
-            <xsl:with-param name="logo" select="//skinconfig/host-logo"/>
-            <xsl:with-param name="root" select="$root"/>
-          </xsl:call-template></a>
-        </xsl:if>
         <xsl:if test="$filename = 'index.html' and //skinconfig/credits">
           <xsl:for-each select="//skinconfig/credits/credit[not(@role='pdf')]">
             <xsl:call-template name="renderlogo">

Modified: 
manifoldcf/site/trunk/src/documentation/skins/lucene/xslt/html/site-to-xhtml.xsl
URL: 
http://svn.apache.org/viewvc/manifoldcf/site/trunk/src/documentation/skins/lucene/xslt/html/site-to-xhtml.xsl?rev=1830921&r1=1830920&r2=1830921&view=diff
==============================================================================
--- 
manifoldcf/site/trunk/src/documentation/skins/lucene/xslt/html/site-to-xhtml.xsl
 (original)
+++ 
manifoldcf/site/trunk/src/documentation/skins/lucene/xslt/html/site-to-xhtml.xsl
 Fri May  4 14:34:01 2018
@@ -191,6 +191,12 @@ footer, searchbar, css etc.  As input, i
             <xsl:comment>+
     |end Project Logo
     +</xsl:comment>
+    <div class="projectlogo">           
+              <xsl:call-template name="render-event-logo">
+                <xsl:with-param name="url" select="$config/host-url"/>
+                <xsl:with-param name="logo" select="$config/host-logo"/>
+              </xsl:call-template>
+            </div>
             <xsl:if 
             test="$config/search and not($config/search/@box-location = 
'alt')">
               <xsl:comment>+
@@ -362,16 +368,6 @@ footer, searchbar, css etc.  As input, i
               </xsl:if>
             </div>
           </xsl:if>
-          <xsl:if test="$config/host-logo and not($config/host-logo = '')">
-            <div class="host">
-              <xsl:call-template name="renderlogo">
-                <xsl:with-param name="name" select="$config/host-name"/>
-                <xsl:with-param name="url" select="$config/host-url"/>
-                <xsl:with-param name="logo" select="$config/host-logo"/>
-                <xsl:with-param name="root" select="$root"/>
-              </xsl:call-template>
-            </div>
-          </xsl:if>
           <xsl:if test="$config/feedback">
             <xsl:call-template name="feedback"/>
           </xsl:if>


Reply via email to