hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1068448 - /httpcomponents/maven-skin/trunk/src/main/resources/META-INF/maven/site.vm
Date Tue, 08 Feb 2011 15:47:13 GMT
Author: sebb
Date: Tue Feb  8 15:47:13 2011
New Revision: 1068448

URL: http://svn.apache.org/viewvc?rev=1068448&view=rev
Log:
Make use of the <custom> site tag for our footer customisation
This means the setup is now all in the site.xml - does not need pom properties

Modified:
    httpcomponents/maven-skin/trunk/src/main/resources/META-INF/maven/site.vm

Modified: httpcomponents/maven-skin/trunk/src/main/resources/META-INF/maven/site.vm
URL: http://svn.apache.org/viewvc/httpcomponents/maven-skin/trunk/src/main/resources/META-INF/maven/site.vm?rev=1068448&r1=1068447&r2=1068448&view=diff
==============================================================================
--- httpcomponents/maven-skin/trunk/src/main/resources/META-INF/maven/site.vm (original)
+++ httpcomponents/maven-skin/trunk/src/main/resources/META-INF/maven/site.vm Tue Feb  8 15:47:13
2011
@@ -520,10 +520,13 @@
       <hr/>
     </div>
     <div id="footer">
-      <!-- Footer customisation - start -->
-      <div class="xleft">${leftfooter1}</div>
-      <div class="xleft">${leftfooter2}</div>
-      <!-- Footer customisation - end -->
+    #if ( $decoration.custom.getChild("footer") )
+      ## See DOXIA-150
+      #set ( $documentHeader = '<?xml version="1.0" encoding="UTF-8"?>' )
+      #foreach( $item in $decoration.custom.getChild("footer").getChildren() )
+      $StringUtils.replace( $item.toString().trim(), $documentHeader, "" )
+      #end
+    #end
       <div class="xright">Copyright &#169;#copyright()All Rights Reserved.#publishDate(
"bottom" $decoration.publishDate $decoration.version )</div>
       <div class="clear">
         <hr/>



Mime
View raw message