Vaga para assistente de negócios e crédito - Nacional
null Vaga para assistente de negócios e crédito
Um erro ocorreu enquanto processava o modelo.
?substring(...) argument #2 had invalid value: The index mustn't be greater than the length of the string, 124, but it was 150. ---- FTL stack trace ("~" means nesting-related): - Failed at: ${content.getData()?replace("\r", "")... [in template "20102#20128#1144056" at line 41, column 32] ----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2<#assign vocabularyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")>
3<#assign currentArticle = JournalArticleLocalService.getArticle(getterUtil.getLong(groupId),.vars['reserved-article-id'].data)>
4<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey()>
5<#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() />
6<#assign displaydate = .vars['reserved-article-display-date'].data>
7
8<#-- Save the original page locale for later -->
9<#assign originalLocale = .locale>
10
11<#-- Set the page locale to the portals default locale -->
12<#setting locale = localeUtil.getDefault()>
13
14<#-- Parse the date to a date object -->
15<#assign displaydate = displaydate?datetime("EEE, d MMM yyyy HH:mm:ss Z")>
16
17
18<div class="news view">
19 <span class="date">
20 ${displaydate?string("dd/MM/yyyy HH:mm")}
21 </span>
22
23 <#setting locale="pt_BR">
24 <div class="featured-image">
25 <#if image?has_content >
26 <#if image.getData()?? && image.getData() != "">
27 <img alt="${image.getAttribute('alt')}" data-fileentryid="${image.getAttribute('fileEntryId')}" src="${image.getData()}" />
28 <script>
29 let metaOgImage = document.createElement('meta');
30 metaOgImage.setAttribute('property', 'og:image');
31 metaOgImage.setAttribute('content', '${image.getData()}');
32 document.head.append(metaOgImage);
33 </script>
34 </#if>
35 </#if>
36 </div>
37
38 <div class="text text-justify">
39 ${content.getData()}
40 <script>
41 let textContent = '${content.getData()?replace('\r', '')?replace('\n', '')?replace("'", '"')?substring(0, 150) + "..."}';
42 textContent = textContent.replace(/<\/?[^>]+(>|$)/g, "");
43
44 (document.querySelector('meta[property*="og:description"]')).setAttribute('content', textContent);
45 (document.querySelector('meta[name*="twitter:description"]')).setAttribute('content', textContent);
46 (document.querySelector('meta[name="description"]')).setAttribute('content', textContent);
47 </script>
48 </div>
49 <#if photo?has_content>
50 <#if photo.getSiblings()?has_content>
51 <div id="galeria_${randomNamespace}" class="galeria-noticia carousel slide fullscreen" data-ride="carousel">
52 <div class="carousel-inner">
53 <#list photo.getSiblings() as cur_photo>
54 <#if cur_photo.getData()?? && cur_photo.getData() != "">
55 <div class="carousel-item ${(cur_photo?counter == 1)?then('active','')}">
56 <img class="d-block w-100" src="${cur_photo.getData()}">
57 <div class="texto-galeria">
58 <h4 style="color:#ffffff">${(cur_photo.photo_title.getData()?length < 65)?then(cur_photo.photo_title.getData(), cur_photo.photo_title.getData()?substring(0, 65) + '...')}</h4>
59 <p>${(cur_photo.photo_description.getData()?length < 195)?then(cur_photo.photo_description.getData(), cur_photo.photo_description.getData()?substring(0, 195) + '...')}</p>
60 </div>
61 </div>
62 </#if>
63 </#list>
64 </div>
65 <a class="carousel-control-prev" href="#galeria_${randomNamespace}" role="button" data-slide="prev">
66 <span class="carousel-control-prev-icon" aria-hidden="true"></span>
67 <span class="sr-only">Previous</span>
68 </a>
69 <a class="carousel-control-next" href="#galeria_${randomNamespace}" role="button" data-slide="next">
70 <span class="carousel-control-next-icon" aria-hidden="true"></span>
71 <span class="sr-only">Next</span>
72 </a>
73 </div>
74 </#if>
75 <#if photo.getSiblings()?has_content && (photo.getSiblings())[0].getData()??>
76 <div class="pics-row container d-flex flex-row justify-content-center align-items-center flex-wrap">
77 <ol class="carousel-indicators flex-wrap">
78 <#list photo.getSiblings() as cur_photo_min>
79 <li data-target="#galeria_${randomNamespace}" data-slide-to="${(cur_photo_min?counter) - (1)}" class="">
80 <img class="d-block" src="${cur_photo_min.getData()}">
81 </li>
82 </#list>
83 </ol>
84 </div>
85 </#if>
86 </#if>
87</div>
88<style>
89 .metadata-author {
90 display: none ;
91 }
92
93* {
94 font-family: 'Asap', sans-serif;
95}
96.galeria-noticia {
97 margin-bottom: 30px;
98}
99.carousel.slide.fullscreen {
100 transition: all 1.8s;
101
102}
103
104.galeria-noticia .carousel-control-next span, .galeria-noticia .carousel-control-prev span{
105 box-sizing:content-box;
106 border-radius: 0px;
107 transform: scale(1.2);
108 box-shadow:0px 0px 0px 0px #ffffff;
109
110 transition: all .3s;
111
112}
113.galeria-noticia .carousel-control-next span:hover, .galeria-noticia .carousel-control-prev span:hover{
114 color:#c9d200;
115 box-shadow:3px 3px 0px 0px #ffffff, -3px -3px 0px 0px #ffffff;
116
117}
118.galeria-noticia .texto-galeria {
119 position: absolute;
120 color: #ffffff;
121 left:32px;
122 bottom:80px;
123 width: 80%;
124 text-shadow: 1px 1px 0px #49479d;
125}
126@media (max-width: 790px) {
127 .galeria-noticia .texto-galeria {
128 transform:scale(.6);
129 bottom:10px;
130 left:-70px;
131 width:120%;
132 }
133}
134.pics-row {
135 max-width: 750px;
136 margin-top: 20px;
137}
138.news.view .pics-row img {
139 max-height: 90px!important;
140 max-width: unset!important;
141 width: unset!important;
142 margin: 5px 5px;
143}
144.news.view .pics-row .carousel-indicators {
145 position: unset;
146}
147.news.view .pics-row .carousel-indicators li {
148 width: unset;
149 height: unset;
150}
151</style>