Pular para o conteúdo
Um erro ocorreu enquanto processava o modelo.
Method public static com.liferay.portlet.documentlibrary.model.DLFileEntry com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(java.lang.String,long) throws com.liferay.portal.kernel.exception.PortalException,com.liferay.portal.kernel.exception.SystemException threw an exception
1<style> 
2h1.menu-title{ 
3    font-size: 24px; 
4    font-family: "Nexa"; 
5    color: #1d70bb; 
6    margin: 0; 
7    line-height: 26px; 
8 
9
10h1.menu-title a { 
11cursor:pointer; 
12font-size:28px; 
13
14.aui p { 
15    margin: 0; 
16    border-bottom: 1px solid #ccc; 
17    padding: 12px; 
18
19input { 
20  position: absolute; 
21  opacity: 0; 
22  z-index: -1; 
23
24 
25/* Accordion styles */ 
26.tabs { 
27  /*border-radius: 8px;*/ 
28  overflow: hidden; 
29  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5); 
30
31.tab { 
32  width: 100%; 
33  color: white; 
34  overflow: hidden; 
35
36.tab-label { 
37  display: flex !important; 
38  justify-content: space-between; 
39  padding: 1em; 
40  background: #1e357e; 
41  color: white !important; 
42  margin-bottom: 0px !important; 
43  font-weight: bold; 
44  cursor: pointer; 
45  border-bottom: 1px solid #182b65; 
46  /* Icon */ 
47
48.tab-label:hover { 
49  background: #182a65; 
50
51.tab-label::after { 
52  content: "\276F"; 
53  width: 1em; 
54  height: 1em; 
55  text-align: center; 
56  transition: all 0.30s; 
57
58.tab-content { 
59  max-height: 0; 
60  padding: 0; 
61  color: #2c3e50; 
62  background: white; 
63  transition: all 0.35s; 
64
65.tab-close { 
66  display: flex; 
67  justify-content: flex-end; 
68  padding: 1em; 
69  font-size: 0.75em; 
70  background: #2c3e50; 
71  cursor: pointer; 
72
73.tab-close:hover { 
74  background: #182a65; 
75
76input:checked + .tab-label { 
77  background: #182a65; 
78
79input:checked + .tab-label::after { 
80  transform: rotate(90deg); 
81
82input:checked ~ .tab-content { 
83  max-height: 100vh; 
84  padding: 0; 
85
86 
87</style> 
88<h1 class="menu-title"> 
89    <a class="icon-circle-arrow-left previous-level" onclick="goBack()"> 
90        <span class="helper-hidden-accessible"> 
91			Voltar 
92		</span> 
93    </a> 
94    ${.vars['reserved-article-title'].data} 
95</h1> 
96 
97<#if categoria.getSiblings()?has_content> 
98	<div class="tabs"> 
99        <#list categoria.getSiblings() as cur_categoria> 
100            <div class="tab"> 
101                <input type="checkbox" id="${cur_categoria.getData()}"> 
102                <label class="tab-label" for="${cur_categoria.getData()}">${cur_categoria.getData()}</label> 
103                <div class="tab-content"> 
104                    <#if cur_categoria.arquivo?has_content> 
105                        <#list cur_categoria.arquivo.getSiblings() as cur_arquivo> 
106                             
107                            <#if cur_arquivo.youtube.getData()?has_content> 
108                                <#assign counter = 0 > 
109                                <#list "${cur_arquivo.youtube.getData()}"?split("/") as x> 
110                                    <#if counter == 3> 
111                                        <#assign videoURL = x > 
112                                    </#if> 
113                                    <#assign counter = counter+1 > 
114                                </#list> 
115                                 
116                                <div style="width:100%;margin-bottom:50px;"> 
117                                    <#if ((cur_arquivo.youtube.videoTitle.getData())!"") != ""> 
118                                        <h3>${cur_arquivo.youtube.videoTitle.getData()}</h3> 
119                                    </#if> 
120                                    <iframe id="vid_frame" src="https://www.youtube.com/embed/${videoURL}?rel=0&showinfo=0&autohide=1" frameborder="0" width="100%" height="315"> 
121                                    </iframe>	 
122                                </div> 
123                            <#elseif ((cur_arquivo.link.getData())!"") != ""> 
124                                <#if ((cur_arquivo.link.linkDesc.getData())!"") != ""> 
125                                    <p><a href="${cur_arquivo.link.getData()}" target="_blank">${cur_arquivo.link.linkDesc.getData()} <i class="icon-external-link"></i></a></p> 
126                                <#else> 
127                                    <p><a href="${cur_arquivo.link.getData()}" target="_blank">${cur_arquivo.link.getData()} <i class="icon-external-link"></i></a></p> 
128                                </#if> 
129                            <#elseif cur_arquivo.getData()?has_content> 
130                                <#assign counter = 0 > 
131                                <#list "${cur_arquivo.getData()}"?split("/") as x> 
132                                    <#if counter == 2> 
133                                    <#assign groupId = x?number > 
134                                    </#if> 
135                                    <#if counter == 5> 
136                                    <#assign uuId = x > 
137                                    </#if> 
138                                    <#assign counter = counter+1 > 
139                                </#list> 
140                                 
141                                <#assign fileEntry = staticUtil["com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"]> 
142                                <#assign file = fileEntry.getFileEntryByUuidAndGroupId(uuId,groupId) > 
143                                 
144                                <#if file.extension == "pdf" && cur_arquivo.getData()?has_content> 
145                                    <p> 
146                                        <a href="${cur_arquivo.getData()}" target="_blank"> 
147                                            ${file.title} 
148                                        </a> 
149                                    </p> 
150                                <#elseif file.extension == "mp4" && cur_arquivo.getData()?has_content> 
151                                    <div style="width:100%"> 
152                                        <video controls width="100%"> 
153                                            <source src="${cur_arquivo.getData()}" type="video/mp4"> 
154                                        </video> 
155                                    </div> 
156                                <#elseif file.extension == "mp3" && cur_arquivo.getData()?has_content> 
157                                    <h3>${file.getTitle()}</h3> 
158                                    <div style="width:100%"> 
159                                        <audio controls> 
160                                          <source src="${cur_arquivo.getData()}" type="audio/mpeg"> 
161                                        Seu navegador não suporta elementos do tido áudio. 
162                                        </audio> 
163                                    </div> 
164                                <#elseif file.extension == "docx" && cur_arquivo.getData()?has_content> 
165                                    <p> 
166                                        <a href="${cur_arquivo.getData()}" target="_blank"> 
167                                            ${file.title} 
168                                        </a> 
169                                    </p> 
170                                </#if> 
171                            <#else> 
172                                <p><i>Não há arquivos publicados.</i></p> 
173                            </#if> 
174                        </#list> 
175                     
176                    </#if> 
177                </div> 
178            </div> 
179        </#list> 
180	</div> 
181</#if> 
182<script> 
183function goBack() { 
184  window.history.back(); 
185
186</script>