list_mini_carousel1.html
1 <section class="portlet portlet-carousel">
2 <#if portlet_name??>
3 <header>
4 <h1>${portlet_name!}</h1>
5 </header>
6 </#if>
7 <div class="portlet-content">
8 <div id="carousel-portlet-${portlet_id!}" class="carousel carousel-mini slide" data-ride="carousel">
9 <div class="carousel-inner">
10 <#list blog_list_published as doc>
11 <#assign bg=''>
12 <!--
13 <#if doc.docContent?? && doc.docContent?size!=0>
14 <#list doc.docContent as docContent >
15 <#if docContent.contentType.idContentType==2>
16 <#assign bg="servlet/plugins/blogs/file?id_file=${docContent.id}" alt="servlet/plugins/blog/file?id_file=${docContent.id}" >
17 </#if>
18 </#list>
19 </#if>
20 <div class="item <#if doc?index==0>active</#if>" style="background-image:url(${bg});">
21 -->
22 <div class="item <#if doc?index==0>active</#if>">
23 <#if doc.docContent?? && doc.docContent?size!=0>
24 <#list doc.docContent as docContent >
25 <#if docContent.contentType.idContentType=4>
26 <img src="servlet/plugins/blogs/file?id_file=${docContent.id}" alt="servlet/plugins/blog/file?id_file=${docContent.id}" >
27 <#break>
28 </#if>
29 </#list>
30 </#if>
31 <div class="carousel-caption">
32 <a class="left carousel-control" href="#carousel-portlet-${portlet_id!}" role="button" data-slide="prev">
33 <span class="fa fa-chevron-left" aria-hidden="true"></span>
34 <span class="sr-only">Previous</span>
35 </a>
36 <#if doc.url?? && doc.url !=''>
37 <a href="${doc.url!}" target="_blank">
38 <#else>
39 <a href="jsp/site/Portal.jsp?page=blog&id=${doc.id}&portlet_id=${portlet_id}" >
40 </#if>
41 <h2>${doc.contentLabel}</h2>
42 <p>${doc.description!}</p>
43 </a>
44 <a class="right carousel-control" href="#carousel-portlet-${portlet_id!}" role="button" data-slide="next">
45 <span class="fa fa-chevron-right" aria-hidden="true"></span>
46 <span class="sr-only">Next</span>
47 </a>
48 </div>
49 </div>
50 </#list>
51 </div>
52
53 </div>
54 </div>
55 </section>