Wiki source code of Browse 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 | {{velocity}} | ||
| 2 | ## Only display the Browse box if the Supported feature is enabled | ||
| 3 | #if ($useRecommendations) | ||
| 4 | (% class="extension-link browse-extension box"%)((( | ||
| 5 | ((( | ||
| 6 | ## Display All Extensions if we're on the Supported Extensions page | ||
| 7 | ## Display Supported Extensions if we're on the All Extensions page | ||
| 8 | #if (!$isRecommendedView) | ||
| 9 | === #if($services.icon)$services.icon.render('application_view_tile')#end Supported Extensions === | ||
| 10 | |||
| 11 | {{html clean='false'}} | ||
| 12 | <form action="$xwiki.getURL('Extension.WebHome')" method='post'> | ||
| 13 | The best extensions we recommend. | ||
| 14 | <input type="hidden" name="isRecommendedView" value="true" /> | ||
| 15 | <span class="buttonwrapper"> | ||
| 16 | <input class="btn btn-primary" type="submit" value="Browse" id="browseSubmit"/> | ||
| 17 | </span> | ||
| 18 | </form> | ||
| 19 | {{/html}} | ||
| 20 | #else | ||
| 21 | === #if($services.icon)$services.icon.render('application_view_tile')#end All Extensions === | ||
| 22 | |||
| 23 | {{html clean='false'}} | ||
| 24 | <form action="$xwiki.getURL('Extension.WebHome')" method='post'> | ||
| 25 | The full list of extensions. | ||
| 26 | <input type="hidden" name="isRecommendedView" value="false" /> | ||
| 27 | <span class="buttonwrapper"> | ||
| 28 | <input class="btn btn-primary" type="submit" value="Browse" id="browseSubmit"/> | ||
| 29 | </span> | ||
| 30 | </form> | ||
| 31 | {{/html}} | ||
| 32 | #end | ||
| 33 | ))) | ||
| 34 | ))) | ||
| 35 | #end | ||
| 36 | {{/velocity}} |