-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
92 lines (78 loc) · 2.7 KB
/
README
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
eZ Engage
=======================================
== Main Content Template ==
{include uri='design:engage/set_pagedata.tpl'}
== Pagelayout.tpl ==
Header
{include uri='design:engage/meta.tpl' module_result=$module_result}
Footer
<div class="engage-suggestion hide"></div>
{literal}
<script id="ezengage_test_html" type="text/x-handlebars-template">
test
{{#each items}}
<div class="item" data-content-id="{{id}}">
<a href="{{link}}">
<div class="play-preview">
<img src="{{img}}" alt="{{title}}" class="img-responsive">
</div>
</a>
<p class="kicker"{{ byline }}</p>
<h2><a href="{{link}}">{{title}}</a></h2>
<p>{{ summary }}</p>
</div>
{{/each}}
</script>
<script id="ezengage_notification_html" type="text/x-handlebars-template">
{{#each items}}
<div class="item">
<a href="{{link}}">
<div class="play-preview">
<img src="{{img}}" alt="{{title}}" class="img-responsive">
</div>
</a>
<a href="{{link}}">{{title}}</a>
</div>
{{/each}}
</script>
{/literal}
== Engage List Item Sample - Line view ==
<div class="content-view-line engage-list-item">
<article data-engage-key="id"
data-engage-type="value"
data-engage-value="{$node.contentobject_id}">
{if $node.data_map.image.has_content}
<div class="attribute-image"
data-engage-key="img"
data-engage-type="image">
{attribute_view_gui image_class=articlethumbnail href=$node.url_alias|ezurl attribute=$node.data_map.image}
</div>
{/if}
<h2
data-engage-key="link"
data-engage-type="link">
<a href="{$node.url_alias|ezurl( 'no' )}" class="teaser-link"
data-engage-key="title"
data-engage-type="text">{$node.data_map.title.content|wash()}</a>
</h2>
<div class="attribute-byline"
data-engage-key="byline"
data-engage-type="text">
<span class="date">
{$node.object.published|l10n(shortdatetime)}
</span>
{if $node.data_map.author.content.is_empty|not()}
<span class="author">
{attribute_view_gui attribute=$node.data_map.author}
</span>
{/if}
</div>
{if $node.data_map.intro.content.is_empty|not}
<div class="attribute-short"
data-engage-key="summary"
data-engage-type="text">
{attribute_view_gui attribute=$node.data_map.intro}
</div>
{/if}
</article>
</div>