Wiki source code of Contribute box for the Home page
Last modified by ztx lyghters on 2025/01/31 19:55
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | (% class="extension-link add-extension box" %)((( | ||
| 2 | ((( | ||
| 3 | {{velocity}} | ||
| 4 | === #if($services.icon)$services.icon.render('add')#end Contribute Extension... === | ||
| 5 | {{html}} | ||
| 6 | #if ($isGuest) | ||
| 7 | You need first to <a href="${escapetool.xml($xwiki.getURL('Main.WebHome', 'login', "xredirect=$doc.externalURL"))}">log in</a> or <a href="${escapetool.xml($xwiki.getURL($services.model.resolveDocument('', 'default'), "register", "xredirect=$doc.externalURL"))}">register</a>. | ||
| 8 | #else | ||
| 9 | <form action="$doc.getURL()" id="createextension"> | ||
| 10 | <input type="hidden" name="parent" value="Extension.WebHome" /> | ||
| 11 | <input type="hidden" name="template" value="ExtensionCode.ExtensionTemplate" /> | ||
| 12 | <input type="hidden" name="createExtension" value="true" /> | ||
| 13 | <input class="withTip" type="text" name="name" value="extension name..." size="25" id="contributeNameInput"/> | ||
| 14 | <span class="buttonwrapper"> | ||
| 15 | <input class="btn btn-success" type="submit" value="Add" id="contributeSubmit"/> | ||
| 16 | </span> | ||
| 17 | </form> | ||
| 18 | {{/html}} | ||
| 19 | |||
| 20 | [[Import>>ExtensionCode.ImportExtension]] | ||
| 21 | #end | ||
| 22 | {{/velocity}} | ||
| 23 | ))) | ||
| 24 | ))) | ||
| 25 | |||
| 26 | (% class="clearfloats" %)((()))(%%) |