Közzétételek - Raiffeisen BANK
Közzétételek
Kereső sáv
Keresési eredmények
Hiba jelentkezett a sablon feldolgozása során.
For "#if" condition: Expected a boolean, but this has evaluated to a number (wrapper: f.t.SimpleNumber): ==> rawDate?length [in template "10132#10165#4489501" at line 105, column 10] ---- FTL stack trace ("~" means nesting-related): - Failed at: #if rawDate?length [in template "10132#10165#4489501" at line 105, column 5] ----
1<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
3
4<div class="c-mb-4 c-mt-4 search-total-label">
5 <#assign keywordHtml = "<strong>" + htmlUtil.escape(searchResultsPortletDisplayContext.getKeywords()) + "</strong>">
6 <#if searchContainer.getTotal() == 1>
7 ${languageUtil.format(locale, "x-result-for-x", [searchContainer.getTotal(), keywordHtml], false)}
8 <#else>
9 ${languageUtil.format(locale, "x-results-for-x", [searchContainer.getTotal(), keywordHtml], false)}
10 </#if>
11</div>
12
13<div class="display-list">
14 <ul class="list-group" id="search-results-display-list">
15 <#if entries?has_content>
16 <#list entries as entry>
17
18 <#assign url = "">
19 <#if entry.getClassName() == "com.liferay.document.library.kernel.model.DLFileEntry">
20 <#assign dlFileEntry = dlFileEntryLocalService.getDLFileEntry(entry.getClassPK())>
21 <#assign url = themeDisplay.getPortalURL() + "/documents/" + themeDisplay.getScopeGroupId() + "/" + dlFileEntry.getFolderId() + "/" + dlFileEntry.getTitle()?url("UTF-8") + "/" + dlFileEntry.getUuid()>
22 <#else>
23 <#assign url = entry.getViewURL()>
24 </#if>
25
26 <a href="${url}" class="text-decoration-none">
27 <li class="list-group-item list-group-item-flex">
28 <div class="autofit-col autofit-col-expand">
29 <section class="autofit-section">
30 <div class="c-mt-0 list-group-title">
31 ${entry.getHighlightedTitle()}
32 </div>
33
34 <div class="search-results-metadata">
35 <#if entry.isLocaleReminderVisible()>
36 <p class="list-group-subtext">
37 <span class="lfr-portal-tooltip" title="${entry.getLocaleReminder()}">
38 <@clay["icon"] symbol="${entry.getLocaleLanguageId()?lower_case?replace('_', '-')}" />
39 </span>
40 </p>
41 </#if>
42
43 <#if entry.isContentVisible()>
44 <p class="list-group-subtext">
45 <span class="subtext-item">
46 ${entry.getContent()}
47 </span>
48 </p>
49 </#if>
50
51 <#if entry.isFieldsVisible()>
52 <p class="list-group-subtext">
53 <#assign separate = false>
54 <#list entry.getFieldDisplayContexts() as fieldDisplayContext>
55 <#if separate>·</#if>
56 <span class="badge">${fieldDisplayContext.getName()}</span>
57 <span>${fieldDisplayContext.getValuesToString()}</span>
58 <#assign separate = true>
59 </#list>
60 </p>
61 </#if>
62
63 <#if entry.isDocumentFormVisible()>
64 <div class="expand-details text-default">
65 <span class="list-group-text text-2">
66 <a class="shadow-none" href="javascript:void(0);">
67 <@liferay.language key="details" />...
68 </a>
69 </span>
70 </div>
71
72 <div class="hide search-results-list table-details table-responsive">
73 <table class="table table-sm">
74 <thead>
75 <tr>
76 <th class="table-cell-expand-smaller table-cell-text-end">
77 <@liferay.language key="key" />
78 </th>
79 <th class="table-cell-expand">
80 <@liferay.language key="value" />
81 </th>
82 </tr>
83 </thead>
84 <tbody>
85 <#list entry.getDocumentFormFieldDisplayContexts() as fieldDisplayContext>
86 <tr>
87 <td class="table-cell-expand-smaller table-cell-text-end table-details-content">
88 <strong>${htmlUtil.escape(fieldDisplayContext.getName())}</strong>
89 </td>
90 <td class="table-cell-expand table-details-content">
91 <code>${fieldDisplayContext.getValuesToString()}</code>
92 </td>
93 </tr>
94 </#list>
95 </tbody>
96 </table>
97 </div>
98 </#if>
99
100 <#assign assetEntry = assetEntryLocalService.getEntry(entry.getClassName(), entry.getClassPK())>
101 <#assign assetCategories = assetEntry.getCategories()>
102 <#assign displayDate = "">
103<#assign rawDate = entry.getPublishedDateString()>
104<#if rawDate?has_content>
105 <#if rawDate?length >= 10>
106 <#assign displayDate = rawDate?substring(0, 10)>
107 </#if>
108</#if>
109
110 <#assign showDate = false>
111 <#assign hasCategory = false>
112 <#list assetCategories as category>
113 <#assign categoryName = category.getTitle(locale)>
114 <#if categoryName == "Hír" || categoryName == "DirektNet hír" || categoryName == "Sajtóközlemény" || categoryName == "Bank közzététel" || categoryName == "Alapkezelő közzététel" || categoryName == "Karbantartás">
115 <#assign showDate = true>
116 </#if>
117 <#assign hasCategory = true>
118 </#list>
119
120 <#if hasCategory || showDate>
121 <p class="list-group-subtext" style="margin-top:10px;">
122 <#if hasCategory>
123 <#list assetCategories as category>
124 <span class="subtext-item">${category.getTitle(locale)}</span>
125 </#list>
126 </#if>
127 <#if showDate>
128 <#if hasCategory>
129 <span class="subtext-item">/</span>
130 </#if>
131 <span class="subtext-item">${displayDate}</span>
132 </#if>
133 </p>
134 </#if>
135
136 </div>
137 </section>
138 </div>
139 </li>
140 </a>
141 </#list>
142 </#if>
143 </ul>
144</div>
145
146<style>
147 .rbhu-search-container {
148 display: flex;
149 justify-content: center;
150 width: 100%;
151 padding: 0 32px;
152 }
153
154 #main-content .portlet-search-results,
155 .rbhu-search-container > div {
156 padding: 0 !important;
157 }
158
159 .rbhu-search-container .search-total-label {
160 text-align: center;
161 }
162
163 .rbhu-search-container h1 {
164 font-size: 48px !important;
165 margin: 36px 0 0 !important;
166 }
167
168 .lfr-layout-structure-item-com-liferay-portal-search-web-search-bar-portlet-searchbarportlet {
169 margin: 48px !important;
170 }
171
172 @media (max-width: 1000px) {
173 .rbhu-search-container h1 {
174 margin: 32px 0 16px !important
175 }
176
177 .search-total-label {
178 margin-top: 16px !important;
179 }
180
181 .lfr-layout-structure-item-com-liferay-portal-search-web-search-bar-portlet-searchbarportlet {
182 margin: 16px !important;
183 height: 38px !important;
184 padding: 0 20px;
185 }
186 }
187
188 @media (max-width: 480px) {
189 .rbhu-search-container {
190 padding: 0 16px;
191 }
192 }
193</style>