#if($isInServletMode)## Visible only in a page
<div id="footer" class="layoutsection">
<div class="footerinline">
  <div id="xwikilicence">$!copyright</div>
  #set ($version = $xwiki.getSpacePreference('version'))
  #if ("$!version" == "")
    #set ($version = $xwiki.getXWikiPreference("version"))
  #end
  #if ("$!version" != "")
    #set ($version = $xwiki.parseContent($version))
  #else
    #set ($version = $!xwiki.version)
  #end
  <div id="xwikiplatformversion">$version</div>
</div> ### footerinline
</div> ### footer
#end
### TODO: Format the footer for pdf output