Wiki source code of Skin
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | ## Keep testing the inline action for backward compatibility with existing skin documents. | ||
| 3 | #if ($context.action == 'edit' || $context.action == 'inline') | ||
| 4 | #set ($className = 'XWiki.XWikiSkins') | ||
| 5 | #set ($class = $doc.getObject($className).xWikiClass) | ||
| 6 | #foreach ($prop in $class.properties) | ||
| 7 | ; $prop.prettyName | ||
| 8 | : #if ($prop.name == 'logo'){{attachmentSelector classname="${className}" property="${prop.name}" filter="png,jpg,gif" displayImage="true"/}}#else$doc.display($prop.name)#end | ||
| 9 | |||
| 10 | #end | ||
| 11 | #else | ||
| 12 | ## Call getDefaultEditMode() for backward compatibility with existing skins. | ||
| 13 | * [[$msg.get('xe.admin.skin.editskin')>>path:${doc.getURL($doc.getDefaultEditMode())}]] | ||
| 14 | * [[$msg.get('xe.admin.skin.testskin')>>Main.WebHome||queryString="skin=${doc.fullName}"]] | ||
| 15 | #end | ||
| 16 | {{/velocity}} |