-
Notifications
You must be signed in to change notification settings - Fork 732
/
simple.html
33 lines (33 loc) · 2.04 KB
/
simple.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!--/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2019 Adobe
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/-->
<template data-sly-template.simple="${ @ container}">
<sly data-sly-test="${wcmmode.edit}" data-sly-use.allowed="com.day.cq.wcm.foundation.AllowedComponentList"></sly>
<div data-sly-use.templates="core/wcm/components/commons/v1/templates.html"
id="${container.id}"
class="cmp-container${wcmmode.edit ? ' {0}': '' @ format=[allowed.cssClass]}"
aria-label="${container.accessibilityLabel}"
role="${container.roleAttribute}"
style="${container.backgroundStyle @ context='styleString'}">
<sly data-sly-test.isAllowedApplicable="${allowed.isApplicable}"
data-sly-use.allowedTemplate="allowedcomponents.html"
data-sly-call="${allowedTemplate.allowedcomponents @ title=allowed.title, components=allowed.components}"></sly>
<sly data-sly-test="${!isAllowedApplicable}"
data-sly-set.items="${container.children || container.items}"
data-sly-repeat="${items}" data-sly-resource="${item.resource || item.path @ decoration=true}"></sly>
<sly data-sly-test="${!isAllowedApplicable && !wcmmode.disabled}"
data-sly-resource="${resource.path @ resourceType='core/wcm/components/container/v1/container/new', appendPath='/*', decorationTagName='div', cssClassName='new section'}" />
</div>
</template>