Wiki source code of RepositorySearch
Last modified by Thomas Mortagne on 2020/10/12 17:25
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity output="false"}} | ||
2 | #set ($exoExtensionHome = $request.getSession().getAttribute("exoExtensionHome")) | ||
3 | $xwiki.ssx.use("extensions:Carousel.Section1") | ||
4 | {{/velocity}} | ||
5 | |||
6 | {{include reference="ExtensionCode.RepositoryCode"/}} | ||
7 | |||
8 | {{include reference="ExtensionCode.CreateExtension"/}} | ||
9 | |||
10 | (% class="extension-link browse-extension box"%)((( | ||
11 | ((( | ||
12 | {{velocity}} | ||
13 | (%class="col-xs-12"%)((( | ||
14 | ## Display All Extensions if we're on the Recommended Extensions page | ||
15 | ## Display Recommended Extensions if we're on the All Extensions page | ||
16 | #if ($exoExtensionHome.contains("AllExtensions")) | ||
17 | === #if($services.icon)$services.icon.render('application_view_tile')#end Recommended Extensions === | ||
18 | ))) | ||
19 | |||
20 | (%class="col-xs-8"%)(((The best extensions we recommend.))) | ||
21 | |||
22 | (%class="col-xs-4"%)((( | ||
23 | {{html clean='false'}} | ||
24 | <form action="$xwiki.getURL('Extension.WebHome')" method='post'> | ||
25 | <input type="hidden" name="exoExtensionHome" value="ExtensionCode.RecommendedExtensions.WebHome" /> | ||
26 | <span class="buttonwrapper"> | ||
27 | <input class="btn btn-primary" type="submit" value="Browse" id="browseSubmit"/> | ||
28 | </span> | ||
29 | </form> | ||
30 | {{/html}} | ||
31 | ))) | ||
32 | #else | ||
33 | === #if($services.icon)$services.icon.render('application_view_tile')#end All Extensions === | ||
34 | ))) | ||
35 | |||
36 | (%class="col-xs-8"%)(((Over 600 extensions: applications, macros, skins, plugins, themes, etc.))) | ||
37 | |||
38 | (%class="col-xs-4"%)((( | ||
39 | {{html clean='false'}} | ||
40 | <form action="$xwiki.getURL('Extension.WebHome')" method='post'> | ||
41 | <input type="hidden" name="exoExtensionHome" value="ExtensionCode.AllExtensions.WebHome" /> | ||
42 | <span class="buttonwrapper"> | ||
43 | <input class="btn btn-primary" type="submit" value="Browse" id="browseSubmit"/> | ||
44 | </span> | ||
45 | </form> | ||
46 | {{/html}} | ||
47 | ))) | ||
48 | #end | ||
49 | {{/velocity}} | ||
50 | ))) | ||
51 | ))) | ||
52 | |||
53 | (% class="extension-link search-extension box"%)((( | ||
54 | ((( | ||
55 | {{velocity}} | ||
56 | (%class="col-xs-12"%)((( | ||
57 | === #if($services.icon)$services.icon.render('find')#end Search Extension... === | ||
58 | ))) | ||
59 | {{html}} | ||
60 | <form action="$xwiki.getURL("ExtensionCode.ExtensionSearch")"> | ||
61 | <div class="col-xs-8"> | ||
62 | <input type="text" name="text" value="search..." size="25" class="withTip" id="searchTextInput" /> | ||
63 | </div> | ||
64 | <div class="col-xs-4"> | ||
65 | <span class="buttonwrapper"> | ||
66 | <input class="btn btn-primary" type="submit" value="Search" id="searchSubmit"/> | ||
67 | </span> | ||
68 | </div> | ||
69 | </form> | ||
70 | {{/html}} | ||
71 | {{/velocity}} | ||
72 | ))) | ||
73 | ))) | ||
74 | |||
75 | (% class="extension-link add-extension box"%)((( | ||
76 | ((( | ||
77 | {{velocity}} | ||
78 | (%class="col-xs-12"%)((( | ||
79 | === #if($services.icon)$services.icon.render('add')#end Contribute Extension... === | ||
80 | ))) | ||
81 | {{html}} | ||
82 | #if ($isGuest) | ||
83 | #set ($homeDoc = $xwiki.getDocument($exoExtensionHome)) | ||
84 | You need first to <a href="${escapetool.xml($xwiki.getURL('Main.WebHome', 'login', "xredirect=$homeDoc.externalURL"))}">log in</a> or <a href="${escapetool.xml($xwiki.getURL($services.model.resolveDocument('', 'default'), "register", "xredirect=$homeDoc.externalURL"))}">register</a>. | ||
85 | #else | ||
86 | <form action="$doc.getURL()" id="createextension"> | ||
87 | <input type="hidden" name="parent" value="Extension.WebHome" /> | ||
88 | <input type="hidden" name="template" value="ExtensionCode.ExtensionTemplate" /> | ||
89 | <input type="hidden" name="createExtension" value="true" /> | ||
90 | <div class="col-xs-8"> | ||
91 | <input class="withTip" type="text" name="name" value="extension name..." size="25" id="contributeNameInput"/> | ||
92 | </div> | ||
93 | <div class="col-xs-4"> | ||
94 | <span class="buttonwrapper"> | ||
95 | <input class="btn btn-primary" type="submit" value="Contribute" id="contributeSubmit"/> | ||
96 | </span> | ||
97 | </div> | ||
98 | </form> | ||
99 | {{/html}} | ||
100 | |||
101 | (%class="col-xs-12"%)((( | ||
102 | [[Import>>ExtensionCode.ImportExtension]] | ||
103 | |||
104 | [[How to contribute?>>EXOExtension.ContributingXWikiXarExtensions]] | ||
105 | ))) | ||
106 | #end | ||
107 | {{/velocity}} | ||
108 | ))) | ||
109 | ))) |