Show last authors
1 {{velocity output="false"}}
2 #set($discard=$xwiki.ssx.use("EXOExtension.StoreContentFeatured"))
3 #set($docextras=[])
4 {{/velocity}}
5 {{velocity output="false"}}
6 #macro(displayStoreItem $name $url $summary $icon $category)
7 ##set ($itemDoc = $xwiki.getDocument($sitem))
8 ##set ($itemObj = $itemDoc.getObject('ExtensionCode.ExtensionClass'))
9 ##set ($itemURL = $xwiki.getURL($sitem))
10 #set ($itemURL = $url)
11 ##set ($itemName = $itemObj.getProperty('name').getValue())
12 #set ($itemName = $name)
13 ##set ($itemSummary = $itemObj.getProperty('summary').getValue())
14 #set ($itemSummary = $summary)
15 ##set ($itemIcon = $itemObj.getProperty('icon').getValue())
16 #set ($itemIcon = $icon)
17 ##set ($itemType = $itemObj.getProperty('type').getValue())
18 #set ($itemType = "Paid")
19 ##set ($itemCategory = $itemObj.getValue('category'))
20 #set ($itemCategory = $category)
21
22 {{html clean="false"}}
23 <div class="wrap-to-click col-xs-4">
24 <div class="top-product $itemType">
25 <a href="$itemURL" title="$itemName" class="hidden">
26 <label class="short-desc">$itemName</label>
27 <span class="product-icon">
28 #if($itemIcon!='')${services.icon.renderHTML($itemIcon)}#else <span class="fa fa-search"></span>#end
29 </span>
30 </a>
31 </div>
32 <div class="bottom-product">
33 <div class="actions hidden">
34 <a href="$itemURL" class="btn btn-primary"><span class="fa fa-shopping-cart"></span></a>
35 #if($itemType=='trial')&nbsp;<a href="$itemURL" class="btn btn-default"><span class="fa fa-cloud-upload"></span></a>#end
36 </div>
37 <a href="$itemURL" title="$itemName">
38 <label class="short-desc">$itemName</label>
39 </a>
40 <div class="product-name">$itemSummary</div>
41 <div class="price-reviews">
42 <div class="row custom-flex">
43 <div class="col-sm-6 col-xs-12 category-bottom">
44 <span class="category">$itemCategory</span>
45 </div>
46 <div class="col-sm-6 col-xs-12 price-bottom">
47 <div class="price-box">
48 <p class="old-price">
49 <span class="price">$itemType</span>
50 </p>
51 <p class="regular-price hidden">
52 <span class="price">$99.00</span>
53 </p>
54 </div>
55 </div>
56 </div>
57 </div>
58 </div>
59 </div>
60 {{/html}}
61 #end
62 {{/velocity}}
63
64 {{html wiki="true" clean="false"}}
65 <div class="homepage-featured">
66 <div class="contain clearfix fill-white keyline-top padding-top4">
67 <div class="homepage slide">
68 <div class="blocktitle col-xs-12 col-md-12">
69 = Sponsored Extensions =
70 == Extensions featured by [[XWiki SAS>>http://xwiki.com]] (as the [[Top Sponsoring Company>>dev:Community.Governance]]), and available on the [[XWiki SAS Store>>https://store.xwiki.com/xwiki/bin/view/Main/WebHome]] ==
71 <div class="clearfix row">
72 <div class="featured list-product">
73 {{/html}}
74
75 {{comment}}
76 {{velocity}}
77 #set($hql = "select obj.name from BaseObject obj where obj.className='ExtensionCode.ExtensionClass'")
78 #set($results = $xwiki.search($hql, 3, 0))
79 #foreach ($item in $results)
80 #set ($itemDoc = $xwiki.getDocument($item))
81 #if($itemDoc.name != 'ExtensionTemplate')
82 #displayStoreItem($item)
83 #end
84 #end
85 {{/velocity}}
86 {{/comment}}
87
88 {{velocity}}
89 #set ($storeFeaturedDoc = $xwiki.getDocument('EXOExtension.StoreContentFeatured'))
90 #set ($extensionsAttachment = $storeFeaturedDoc.getAttachment('extensions.json'))
91 #set ($extensionsJSON = $jsontool.parse($extensionsAttachment.contentAsString))
92
93 (% id="img-product-view" class="owl-carousel owl-theme" %)
94 (((
95 #foreach ($extension in $extensionsJSON.entrySet())
96 #if ($foreach.index % 3 == 0)
97 (% class="item" %)(((
98 (% class="wrap-item-product"%)(((
99 #end
100 #set ($value = $extension.value)
101 #displayStoreItem($value[0] $value[1] $value[2] $value[3] $value[4])
102 #if ($foreach.index % 3 == 2)
103 )))
104 )))
105 #end
106 #end
107 )))
108
109 {{OwlCarousel2 id="img-product-view" loop="true" dots="true" autoplay="true" autoplayTimeout="5000" autoplayHoverPause="true" responsive="true" items480="1" items768="1" items992="1" items1200="1" /}}
110 {{/velocity}}
111
112 {{html clean="false"}}
113 </div>
114 </div>
115 </div>
116 </div>
117 </div>
118 </div>
119 {{/html}}

Get Connected