Changes for page New XWiki Skin
Last modified by Simon Urli on 2024/04/09 12:44
From version 3.2
edited by Thomas Mortagne
on 2012/10/04 17:05
on 2012/10/04 17:05
Change comment:
There is no comment for this version
To version 4.1
edited by Ludovic Dubost
on 2012/10/09 18:02
on 2012/10/09 18:02
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. ThomasMortagne1 +XWiki.ludovic
- XWiki.XWikiSkins[0]
-
- Scripting Reference Documentation
-
... ... @@ -1,0 +1,62 @@ 1 +## 2 +## Additional Template used by platform:SRD.WebHome 3 +## 4 +#template("xwikivars.vm") 5 +#template("layoutvars.vm") 6 +#set($showLeftPanels = 0) 7 +#set($showRightPanels = 0) 8 +#template("htmlheader.vm") 9 +<div class="contenthidelefthideright" id="contentcontainer"> 10 +<div id="contentcontainerinner"> 11 +<div class="leftsidecolumns"> 12 + <div id="contentcolumn"> 13 + <div class="main layoutsubsection"> 14 + <div id="mainContentArea"> 15 +### 16 +### Display document contents in "view" mode. 17 +### 18 +## ------------------------------- 19 +## Compute the content to display 20 +## ------------------------------- 21 +## Honor the syntax if it's passed in the request. 22 +#set($outputSyntax = $xwiki.getAvailableRendererSyntax($request.outputSyntax, $request.outputSyntaxVersion)) 23 +#if ($outputSyntax) 24 + ## If the passed syntax is not an HTML-compatible syntax we need to HTML-escape it so that it can be 25 + ## displayed fine in HTML (since at the point this vm file is called we're already inside an HTML page with 26 + ## panels on the side, header, etc). 27 + #set($syntaxType = $outputSyntax.type.toIdString()) 28 + #if (($syntaxType == "xhtml") || ($syntaxType == "html")) 29 + #set ($renderedContent = $tdoc.getRenderedContent($outputSyntax)) 30 + #else 31 + ## Make sure to print correctly the result when it's not HTML 32 + #set ($renderedContent = "<pre>$escapetool.html($tdoc.getRenderedContent($outputSyntax))</pre>") 33 + #end 34 +#else 35 + #set ($renderedContent = $tdoc.getRenderedContent()) 36 +#end 37 +## -------------------------------------------------------------------------- 38 +## Drop permissions as they are no longer needed. This allows us not to have 39 +## to review the code below for security holes since nothing bad can happen. 40 +## -------------------------------------------------------------------------- 41 +$xcontext.dropPermissions() 42 +## ---------------------------- 43 +## Display the rendered content 44 +## ---------------------------- 45 +<div id="xwikicontent"> 46 +$renderedContent 47 +</div> 48 +## ----------------------------------------------------------------------------------- 49 +## Display the footnotes if the document is in 1.0 syntax and if there are any defined 50 +## ----------------------------------------------------------------------------------- 51 +#set($footnotes = "#putFootnotes()") 52 +$xwiki.renderText($footnotes, $doc) 53 +<div class="clearfloats"></div> 54 + </div>## mainContentArea 55 + </div>## main 56 + </div>## contentcolumn 57 + </div>## leftsidecolumns 58 +<div class="clearfloats"></div> 59 + </div>## contentcontainerinner 60 +</div>## contentcontainer 61 +#template("htmlfooter.vm") 62 +