Foto meramente ilustrativa de forma quadrada, que contém, na parte superior esquerda, ondas em marrom e branco e, na parte superior central troncos de madeira em tons de marrom escuro. A parte inferior é toda branca. Fim da descrição.

Curso de Extensão

Fiscalização Ambiental

Saiba Mais
Imagem meramente ilustrativa, de forma quadrada, que contém, na parte superior esquerda, linhas em forma de onda em tons de verde, branco e azul escuro. A parte inferior da ilustração é toda cinza. Fim da descrição.

Evento Presencial

Emergências ambientais e suas transversalidades

Saiba Mais
Imagem com uma faixa em forma de onda em tons azuis-neon, representando um livro aberto, que delimita um cabeçalho azul marinho. No cabeçalho, há uma figura de uma digital humana iluminada em azul à direita. A parte de baixo tem fundo cinza e, nela, está escrito “Ferramentas de Investigação”, na cor preta. Fim da descrição.

curso

on-line e on-demand

Saiba Mais

Curso de Extensão on-line

Improbidade e Controle Responsivo: os Desafios da Accountability

Saiba Mais
imagem com uma faixa em forma de onda em tons de amarelo, vermelho e azul, representando um livro aberto, na parte central em diagonal, que divide a imagem em duas partes: a de cima com fundo amarelo claro, a de baixo com fundo cinza. À direita, estão o nome do curso na cor preta e uma ilustração colorida com duas mulheres e dois homens em um ambiente de escritório. Fim da descrição.

curso

on-line e on-demand

Saiba Mais
01 / 05
Ícones de cursos do portal escola

Cursos abertos ao público

Curta duração, pós-graduação e palestras

Ícones de cursos do portal escola

Cursos para integrantes do MPSP

Membros, servidores e estagiários

Agenda de eventos

An error occurred while processing the template.
Failed to "?eval" string with this error:

---begin-message---
Syntax error in ?eval-ed string in line 1, column 62:
Lexical error: encountered "u" (117), after "\"Palestra \\".
---end-message---

The failing expression:
==> _imageFieldValue?eval  [in template "20098#20124#37527931" at line 16, column 44]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign _imageFieldValueMap = _imageF...  [in template "20098#20124#37527931" in macro "setImageVariables" at line 16, column 13]
	- Reached through: @setImageVariables imageField="image"  [in template "20098#20124#37527931" in macro "getDinamicValues" at line 88, column 9]
	- Reached through: @getDinamicValues entry=entry  [in template "20098#20124#37527931" at line 155, column 13]
----
1<#assign FriendlyURLNormalizer = serviceLocator.findService("com.liferay.portal.kernel.util.FriendlyURLNormalizer") /> 
2<#assign prefix = "mpsp"/> 
3<#setting url_escaping_charset='ISO-8859-1'> 
4<#setting date_format="dd-MMMM-yyyy"> 
5<#setting time_zone="GMT-3"> 
6<#setting locale="pt_BR"> 
7 
8<#macro setImageVariables imageField> 
9    <#assign imageUrl = "" /> 
10    <#assign hasImage = false /> 
11    <#assign _imageFieldList = DDMFormFieldValuesMap[imageField]!"" /> 
12    <#if _imageFieldList?has_content> 
13        <#assign _imageField = DDMFormFieldValuesMap[imageField][0] /> 
14        <#assign _imageFieldValue = _imageField.getValue().getString(locale)/> 
15        <#if _imageFieldValue?has_content> 
16            <#assign _imageFieldValueMap = _imageFieldValue?eval /> 
17            <#assign _imageFileName = _imageFieldValueMap.name /> 
18            <#assign _imageAltText = _imageFieldValueMap.alt /> 
19            <#assign _imageFileEntryID = _imageFieldValueMap.fileEntryId /> 
20            <#assign imageUrl = _imageFileName?has_content?string("${themeDisplay.getPortalURL()}/o/adaptive-media/image/${_imageFileEntryID}/Thumbnail-300x300/${_imageFileName?url}", "") /> 
21            <#assign hasImage = true /> 
22        </#if> 
23    </#if> 
24</#macro> 
25 
26<#macro getDinamicValues entry> 
27    <#assign assetRenderer = entry.getAssetRenderer() /> 
28    <#assign urlCurrent = themeDisplay.getURLCurrent() /> 
29    <#assign viewURL = urlCurrent + (urlCurrent?ends_with("/")?then("", "/")) + "w/" + assetRenderer.getUrlTitle()/> 
30    <#assign categories = entry.getCategories() /> 
31    <#assign tags = entry.getTags() /> 
32    <#assign isOnlineOrHibrid = false /> 
33 
34    <#assign categoryName = ""> 
35    <#assign categoryTargetPublic = "" /> 
36    <#list categories as category> 
37        <#assign categoryName = category.getName() /> 
38        <#assign categoryKey = categoryName?lower_case /> 
39 
40        <#if category.getName()?lower_case == 'aberto ao público' || category.getName()?lower_case == 'integrantes do mpsp'> 
41            <#assign categoryTargetPublic = category.getName() /> 
42        </#if> 
43    </#list> 
44    <#assign hasCategories = categoryName?length gt 0 /> 
45    <#assign DDMFormFieldValuesMap = assetRenderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValuesMap() /> 
46 
47    <#assign _titleField = DDMFormFieldValuesMap.title[0] /> 
48    <#assign _titleFieldValue = _titleField.getValue().getString(locale)/> 
49    <#assign title = _titleFieldValue!entry.getTitle(locale) /> 
50 
51    <#assign _addressField = DDMFormFieldValuesMap.address[0] /> 
52    <#assign address = _addressField.getValue().getString(locale) /> 
53 
54    <#assign _dateFieldInitial = DDMFormFieldValuesMap.event_separator[0].getNestedDDMFormFieldValuesMap().event_initial_date[0] /> 
55    <#assign date = _dateFieldInitial.getValue().getString(locale)/> 
56    <#assign dateMonthExtendedInitial = date?datetime("yyyy-MM-dd")?date?split("-")[1] /> 
57    <#assign dateInitial = date?datetime("yyyy-MM-dd")?date /> 
58    <#assign dateYearInitial = date?split("-")[0] /> 
59    <#assign dateMonthInitial = date?split("-")[1] /> 
60    <#assign dateDayInitial = date?split("-")[2] /> 
61 
62    <#assign _dateFieldEnd = DDMFormFieldValuesMap.event_separator[0].getNestedDDMFormFieldValuesMap().event_end_date[0] /> 
63    <#assign date = _dateFieldEnd.getValue().getString(locale)/> 
64    <#assign dateEnd = date?datetime("yyyy-MM-dd")?date /> 
65 
66    <#assign _dateFieldInitial = DDMFormFieldValuesMap.event_separator[0].getNestedDDMFormFieldValuesMap().event_initial_time[0].getValue().getString(locale)?replace(":","") /> 
67    <#assign eventTimeInitial = _dateFieldInitial?is_number?then(_dateFieldInitial, "0000")?number /> 
68 
69    <#assign _dateFieldEnd = DDMFormFieldValuesMap.event_separator[0].getNestedDDMFormFieldValuesMap().event_end_time[0].getValue().getString(locale)?replace(":","") /> 
70    <#assign eventTimeEnd = _dateFieldEnd?is_number?then(_dateFieldEnd, "0000")?number /> 
71 
72    <#assign _dateSubscriptionFieldInitial = DDMFormFieldValuesMap.subscription_separator[0].getNestedDDMFormFieldValuesMap().subscription_initial_date[0] /> 
73    <#assign date = _dateSubscriptionFieldInitial.getValue().getString(locale)/> 
74    <#assign dateSubscriptionInitial = date?datetime("yyyy-MM-dd")?date /> 
75 
76    <#assign _dateSubscriptionFieldEnd = DDMFormFieldValuesMap.subscription_separator[0].getNestedDDMFormFieldValuesMap().subscription_end_date[0] /> 
77    <#assign date = _dateSubscriptionFieldEnd.getValue().getString(locale)/> 
78    <#assign dateSubscriptionEnd = date?has_content?then(date, "2099-12-30")?datetime("yyyy-MM-dd")?date /> 
79 
80    <#assign _timeSubscriptionFieldInitial = DDMFormFieldValuesMap.subscription_separator[0].getNestedDDMFormFieldValuesMap().subscription_initial_time[0].getValue().getString(locale)?replace(":","") /> 
81    <#assign timeSubscriptionInitial = _timeSubscriptionFieldInitial?is_number?then(_timeSubscriptionFieldInitial, "0000")?number /> 
82 
83    <#assign _timeSubscriptionFieldEnd = DDMFormFieldValuesMap.subscription_separator[0].getNestedDDMFormFieldValuesMap().subscription_end_time[0].getValue().getString(locale)?replace(":","") /> 
84    <#assign timeSubscriptionEnd = _timeSubscriptionFieldEnd?is_number?then(_timeSubscriptionFieldEnd, "0000")?number /> 
85 
86    <@setImageVariables imageField="cardImage"/> 
87    <#if !hasImage> 
88        <@setImageVariables imageField="image"/> 
89    </#if> 
90</#macro> 
91 
92<#function trimText text> 
93    <#if text?length gt 60> 
94        <#return text?substring(0,60) + '[...]' /> 
95    </#if> 
96    <#return text> 
97</#function> 
98 
99<#function renderTargetPublic publicTarget> 
100    <#if publicTarget?lower_case == "integrantes do mpsp"> 
101        <#return renderSVG('type_target_public_private') + '<span class="ml-1 text-truncate">'+ publicTarget + '</span>' /> 
102    <#elseif publicTarget?lower_case == "aberto ao público"> 
103        <#return renderSVG('type_target_public_public') + '<span class="ml-1 text-truncate">'+ publicTarget + '</span>' /> 
104    </#if> 
105 
106    <#return "" /> 
107</#function> 
108 
109<#function checkDateInRange dateEventInitial dateEventEnd timeEventInitial timeEventEnd> 
110    <#assign currentDate = .now?string["dd-MMMM-yyyy"]?date /> 
111    <#assign currentTime = .now?time?split(":")> 
112    <#assign currentTime = (currentTime[0] + currentTime[1])?number /> 
113 
114    <#if (currentDate lt dateEventInitial || currentDate gt dateEventEnd) || (currentDate == dateEventInitial && currentTime lt timeEventInitial) || (currentDate == dateEventEnd && currentTime gt timeEventEnd)> 
115        <#return false /> 
116    </#if> 
117 
118    <#return true /> 
119</#function> 
120 
121<#function renderTag tag> 
122    <#assign classColorTag = "red" /> 
123 
124    <#if tag == "evento gratuito"> 
125        <#assign classColorTag = "green" /> 
126    <#elseif tag == "online"?lower_case || tag == "híbrido"?lower_case > 
127        <#assign isOnlineOrHibrid = true /> 
128    </#if> 
129 
130    <#return '<span class="' + classColorTag + '">' + tag + '</span>'> 
131</#function> 
132 
133 
134<#function renderSVG type> 
135    <#switch type> 
136        <#case "calendar"> 
137            <#return '<svg style="min-width:10px;" class="mr-1" width="12" height="13" viewBox="0 0 12 13" fill="none" xmlns="http://www.w3.org/2000/svg" alt="Ícone de calendario"><path d="M9.75 2.25006H2.25C1.55964 2.25006 1 2.80971 1 3.50006V11.0001C1 11.6904 1.55964 12.2501 2.25 12.2501H9.75C10.4404 12.2501 11 11.6904 11 11.0001V3.50006C11 2.80971 10.4404 2.25006 9.75 2.25006Z" stroke="#1F2227" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.5 1V3.5" stroke="#1F2227" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.50024 1V3.5" stroke="#1F2227" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/><path d="M1 6.00012H11" stroke="#1F2227" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/><path d="M5.375 8.5H6" stroke="#1F2227" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 8.5V10.375" stroke="#1F2227" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/></svg>'> 
138        <#break> 
139        <#case "location"> 
140            <#return '<svg style="min-width:10px;" width="10" height="12" viewBox="0 0 10 12" fill="none" xmlns="http://www.w3.org/2000/svg" alt="Ícone de localizacao"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.3734 5.12175C7.3734 6.34204 6.37848 7.33128 5.15118 7.33128C3.92389 7.33128 2.92896 6.34204 2.92896 5.12175C2.92896 3.90146 3.92389 2.91222 5.15118 2.91222C6.37848 2.91222 7.3734 3.90146 7.3734 5.12175ZM6.26229 5.12175C6.26229 5.73189 5.76483 6.22651 5.15118 6.22651C4.53753 6.22651 4.04007 5.73189 4.04007 5.12175C4.04007 4.51161 4.53753 4.01699 5.15118 4.01699C5.76483 4.01699 6.26229 4.51161 6.26229 5.12175Z" fill="#1F2227"/><path fill-rule="evenodd" clip-rule="evenodd" d="M1.55231 8.572C-0.447642 6.67877 -0.525342 3.53198 1.37876 1.54345C3.28287 -0.445085 6.44773 -0.522342 8.44769 1.37089C10.4476 3.26412 10.5253 6.41091 8.62124 8.39944L5.17355 12L1.55231 8.572ZM7.81652 7.63767L5.13498 10.4381L2.31846 7.77188C0.762945 6.29936 0.702512 3.85186 2.18348 2.30522C3.66445 0.758588 6.12602 0.6985 7.68154 2.17101C9.23705 3.64353 9.29749 6.09103 7.81652 7.63767Z" fill="#1F2227"/></svg>'> 
141        <#break> 
142        <#case 'type_target_public_private'> 
143            <#return '<svg width="15" height="15" viewBox="0 0 51 43" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M36.3999 16.65C37.1593 16.65 37.7749 17.2656 37.7749 18.025V19.6102L44.876 20.7937C45.3099 20.8661 45.683 21.1416 45.8797 21.5351L50.0047 29.7851C50.1002 29.976 50.1499 30.1866 50.1499 30.4C50.1499 31.8587 49.5704 33.2577 48.539 34.2891C47.5075 35.3206 46.1086 35.9 44.6499 35.9C43.1912 35.9 41.7923 35.3206 40.7608 34.2891C39.7294 33.2577 39.1499 31.8587 39.1499 30.4C39.1499 30.1866 39.1996 29.976 39.2951 29.7851L42.5875 23.2003L37.7749 22.3982V40.025H43.2749C44.0343 40.025 44.6499 40.6406 44.6499 41.4C44.6499 42.1594 44.0343 42.775 43.2749 42.775L36.3999 42.775L29.5249 42.775C28.7655 42.775 28.1499 42.1594 28.1499 41.4C28.1499 40.6406 28.7655 40.025 29.5249 40.025H35.0249V22.3982L30.2123 23.2003L33.5047 29.7851C33.6002 29.976 33.6499 30.1866 33.6499 30.4C33.6499 31.8587 33.0704 33.2577 32.039 34.2891C31.0075 35.3206 29.6086 35.9 28.1499 35.9C26.6912 35.9 25.2923 35.3206 24.2608 34.2891C23.2294 33.2577 22.6499 31.8587 22.6499 30.4C22.6499 30.1866 22.6996 29.976 22.7951 29.7851L26.9201 21.5351C27.1168 21.1416 27.4899 20.8661 27.9239 20.7937L35.0249 19.6102V18.025C35.0249 17.2656 35.6405 16.65 36.3999 16.65ZM28.1499 25.2246L30.8842 30.6933C30.8176 31.3148 30.5406 31.8984 30.0944 32.3446C29.5787 32.8603 28.8792 33.15 28.1499 33.15C27.4206 33.15 26.7211 32.8603 26.2054 32.3446C25.7592 31.8984 25.4822 31.3148 25.4156 30.6933L28.1499 25.2246ZM44.6499 25.2246L41.9156 30.6933C41.9822 31.3148 42.2592 31.8984 42.7054 32.3446C43.2211 32.8603 43.9206 33.15 44.6499 33.15C45.3792 33.15 46.0787 32.8603 46.5944 32.3446C47.0406 31.8984 47.3176 31.3148 47.3842 30.6933L44.6499 25.2246Z" fill="#212125"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.6498 3.3C9.51102 3.3 6.9665 5.84451 6.9665 8.98333C6.9665 12.1222 9.51102 14.6667 12.6498 14.6667C15.7887 14.6667 18.3332 12.1222 18.3332 8.98333C18.3332 5.84451 15.7887 3.3 12.6498 3.3ZM3.6665 8.98333C3.6665 4.02198 7.68848 0 12.6498 0C17.6112 0 21.6332 4.02198 21.6332 8.98333C21.6332 13.9447 17.6112 17.9667 12.6498 17.9667C7.68848 17.9667 3.6665 13.9447 3.6665 8.98333ZM8.98333 25.3C7.47602 25.3 6.03044 25.8988 4.96461 26.9646C3.89878 28.0304 3.3 29.476 3.3 30.9833V34.65C3.3 35.5613 2.56127 36.3 1.65 36.3C0.73873 36.3 0 35.5613 0 34.65V30.9833C0 28.6008 0.946455 26.3159 2.63116 24.6312C4.31586 22.9465 6.6008 22 8.98333 22H16.3167C18.5349 22 20.6685 22.8204 22.3119 24.2932L20.7469 27.4233C20.6187 27.2638 20.4814 27.1107 20.3354 26.9646C19.2696 25.8988 17.824 25.3 16.3167 25.3H8.98333ZM25.8928 0.289844C25.01 0.0638131 24.1111 0.596224 23.8851 1.47902C23.659 2.36181 24.1914 3.26069 25.0742 3.48672C26.2967 3.79973 27.3803 4.51071 28.1541 5.50759C28.9279 6.50446 29.3479 7.73051 29.3479 8.99245C29.3479 10.2544 28.9279 11.4804 28.1541 12.4773C27.3803 13.4742 26.2967 14.1852 25.0742 14.4982C24.1914 14.7242 23.659 15.6231 23.8851 16.5059C24.1111 17.3887 25.01 17.9211 25.8928 17.6951C27.8251 17.2003 29.5378 16.0765 30.7609 14.5008C31.984 12.9251 32.6479 10.9871 32.6479 8.99245C32.6479 6.99777 31.984 5.05981 30.7609 3.48412C29.5378 1.90842 27.8251 0.784603 25.8928 0.289844Z" fill="#212125"/></svg>' /> 
144            <#break> 
145        <#case 'type_target_public_public'> 
146            <#return '<svg width="15" height="15" viewBox="0 0 50 43" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M46.022 30C46.022 35.259 41.7588 39.5223 36.4998 39.5223C31.2408 39.5223 26.9776 35.259 26.9776 30C26.9776 24.7411 31.2408 20.4778 36.4998 20.4778C41.7588 20.4778 46.022 24.7411 46.022 30ZM36.4998 42.7001C43.5138 42.7001 49.1998 37.0141 49.1998 30C49.1998 22.986 43.5138 17.3 36.4998 17.3C29.4858 17.3 23.7998 22.986 23.7998 30C23.7998 37.0141 29.4858 42.7001 36.4998 42.7001ZM38.9078 39.4218C43.1125 38.3504 46.222 34.5383 46.222 30C46.222 24.6306 41.8692 20.2778 36.4998 20.2778C35.6845 20.2778 34.8926 20.3782 34.1358 20.5672C34.8926 20.3782 35.6846 20.2778 36.5 20.2778C41.8694 20.2778 46.2222 24.6306 46.2222 30C46.2222 34.5384 43.1126 38.3504 38.9078 39.4218ZM39.5958 42.1137C38.6058 42.3659 37.5685 42.5 36.5 42.5C29.5964 42.5 24 36.9036 24 30C24 24.1448 28.0257 19.2299 33.4603 17.8722C28.0256 19.2298 23.9998 24.1448 23.9998 30C23.9998 36.9036 29.5962 42.5 36.4998 42.5C37.5684 42.5 38.6057 42.366 39.5958 42.1137Z" fill="#212125"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.9999 3.64998C9.86112 3.64998 7.3166 6.19449 7.3166 9.33331C7.3166 12.4721 9.86112 15.0166 12.9999 15.0166C16.1388 15.0166 18.6833 12.4721 18.6833 9.33331C18.6833 6.19449 16.1388 3.64998 12.9999 3.64998ZM4.0166 9.33331C4.0166 4.37195 8.03858 0.349976 12.9999 0.349976C17.9613 0.349976 21.9833 4.37195 21.9833 9.33331C21.9833 14.2947 17.9613 18.3166 12.9999 18.3166C8.03858 18.3166 4.0166 14.2947 4.0166 9.33331ZM9.33343 25.65C7.82612 25.65 6.38054 26.2488 5.31471 27.3146C4.24888 28.3804 3.6501 29.826 3.6501 31.3333V35C3.6501 35.9112 2.91137 36.65 2.0001 36.65C1.08883 36.65 0.350098 35.9112 0.350098 35V31.3333C0.350098 28.9508 1.29655 26.6658 2.98125 24.9811C4.66596 23.2964 6.9509 22.35 9.33343 22.35H16.6668C18.5799 22.35 20.4301 22.9602 21.9571 24.0729C21.4977 25.1991 21.1652 26.3906 20.9776 27.6296C20.8845 27.5213 20.7871 27.4162 20.6855 27.3146C19.6197 26.2488 18.1741 25.65 16.6668 25.65H9.33343ZM24.273 26.5536C23.9647 27.6495 23.7998 28.8055 23.7998 30V30C23.7998 32.173 24.3455 34.2184 25.3074 36.0069C25.3535 35.947 25.3957 35.8839 25.4334 35.8179C24.518 34.0802 23.9998 32.1006 23.9998 30V30C23.9998 28.89 24.1445 27.8138 24.416 26.7892C24.3696 26.71 24.3219 26.6314 24.273 26.5536ZM24.4162 26.7894C24.1447 27.8139 24 28.8901 24 30V30C24 32.1006 24.5181 34.0801 25.4335 35.8177C25.5713 35.5767 25.6501 35.2975 25.6501 35V31.3333C25.6501 29.7222 25.2173 28.1558 24.4162 26.7894ZM30.6092 15.4425C30.7843 15.2532 30.9518 15.0558 31.1109 14.8508C32.334 13.2751 32.9979 11.3371 32.9979 9.34245C32.9979 7.34777 32.334 5.40982 31.1109 3.83412C29.8878 2.25843 28.1751 1.13461 26.2428 0.63985C25.36 0.41382 24.4611 0.946231 24.2351 1.82902C24.009 2.71182 24.5414 3.61069 25.4242 3.83673C26.6467 4.14974 27.7303 4.86072 28.5041 5.85759C29.2779 6.85446 29.6979 8.08051 29.6979 9.34245C29.6979 10.6044 29.2779 11.8304 28.5041 12.8273C27.7303 13.8242 26.6467 14.5352 25.4242 14.8482C24.5414 15.0742 24.009 15.9731 24.2351 16.8559C24.4611 17.7387 25.36 18.2711 26.2428 18.0451C26.2814 18.0352 26.3198 18.0251 26.3583 18.0147C27.6199 16.9461 29.0525 16.0731 30.6092 15.4425ZM27.9024 23.8626C28.1302 22.9802 29.0301 22.4496 29.9125 22.6774C30.0385 22.71 30.1636 22.7452 30.2877 22.783C29.4595 23.4965 28.7555 24.3501 28.2125 25.307C27.8989 24.9153 27.7673 24.3858 27.9024 23.8626Z" fill="#212125"/><path fill-rule="evenodd" clip-rule="evenodd" d="M42.0472 26.426C42.6403 27.0043 42.6523 27.954 42.074 28.5472L36.224 34.5472C35.9417 34.8367 35.5544 35 35.15 35C34.7456 35 34.3583 34.8367 34.076 34.5472L30.926 31.3164C30.3477 30.7232 30.3597 29.7736 30.9529 29.1952C31.546 28.6169 32.4957 28.6289 33.074 29.2221L35.15 31.3513L39.926 26.4529C40.5043 25.8597 41.454 25.8477 42.0472 26.426Z" fill="#212125"/></svg>' /> 
147            <#break> 
148    </#switch> 
149</#function> 
150 
151 
152<div class="mpsp__school_events_card_home_container"> 
153    <div class="mpsp__school_events_card_home"> 
154        <#list entries as entry> 
155            <@getDinamicValues entry=entry /> 
156 
157            <div class="mpsp__school_events_card_home_card"> 
158                <#if tags?size gt 0> 
159                    <div class="mpsp__school_events_card_home_card_tags flex-wrap justify-content-end"> 
160                        <#list tags as tag> 
161                            ${renderTag(tag.name)} 
162                        </#list> 
163 
164                        <#if checkDateInRange(dateInitial,dateEnd,eventTimeInitial, eventTimeEnd) && isOnlineOrHibrid> 
165                            <span class="blue"><svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 10V10.0092" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/><path d="M12.8567 7.64331C13.4816 8.2684 13.8326 9.1161 13.8326 9.99998C13.8326 10.8839 13.4816 11.7316 12.8567 12.3566" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/><path d="M15.2141 5.28589C15.8332 5.90495 16.3243 6.63989 16.6594 7.44875C16.9944 8.25761 17.1669 9.12455 17.1669 10.0001C17.1669 10.8756 16.9944 11.7425 16.6594 12.5514C16.3243 13.3602 15.8332 14.0952 15.2141 14.7142" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.14002 12.3566C7.51511 11.7316 7.16406 10.8839 7.16406 9.99998C7.16406 9.1161 7.51511 8.2684 8.14002 7.64331" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/><path d="M5.78087 14.7142C5.16177 14.0952 4.67068 13.3602 4.33563 12.5514C4.00057 11.7425 3.82812 10.8756 3.82812 10.0001C3.82812 9.12455 4.00057 8.25761 4.33563 7.44875C4.67068 6.63989 5.16177 5.90495 5.78087 5.28589" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>ao vivo</span> 
166                        </#if> 
167                    </div> 
168                </#if> 
169                <img alt="${_imageAltText}" src="${imageUrl}"/> 
170                <div class="mpsp__school_events_card_home_card_date"> 
171                    <h2> 
172                        ${dateDayInitial} 
173                    </h2> 
174                    <span>${dateMonthExtendedInitial}</span> 
175                    <span>${dateYearInitial}</span> 
176                </div> 
177                <div> 
178                    <span>${categoryName}</span> 
179                    <h1>${trimText(title)}</h1> 
180                    <div class="d-flex flex-column"> 
181                        <span class="d-flex"> 
182                            ${renderSVG("calendar")} 
183                            <span class="ml-1">${dateDayInitial}/${dateMonthInitial}/${dateYearInitial}</span> 
184                        </span> 
185                        <span class="d-flex mt-2"> 
186                            ${renderSVG("location")} 
187                            <span class="ml-1 text-truncate">${address}</span> 
188                        </span> 
189                    </div> 
190                    <div class="d-flex align-items-center mt-2"> 
191                        ${renderTargetPublic(categoryTargetPublic)} 
192                    </div> 
193                    <a href="${viewURL}" class="mt-5"> 
194                        Inscreva-se 
195                    </a> 
196                </div> 
197            </div> 
198        </#list> 
199    </div> 
200</div> 
201 
202<script> 
203    let slider = document.querySelector('.mpsp__school_events_card_home'); 
204    let container = document.querySelector('.mpsp__school_events_card_home_container'); 
205    let sectToFollow = document.querySelector('.school-section-title'); 
206    let isDown = false; 
207    let startX; 
208    let scrollLeft; 
209 
210    slider.addEventListener('mousedown', (e) => { 
211        isDown = true; 
212        slider.classList.add('active'); 
213        startX = e.pageX - slider.offsetLeft; 
214        scrollLeft = slider.scrollLeft; 
215    }); 
216    slider.addEventListener('mouseleave', () => { 
217        isDown = false; 
218        slider.classList.remove('active'); 
219    }); 
220    slider.addEventListener('mouseup', () => { 
221        isDown = false; 
222        slider.classList.remove('active'); 
223    }); 
224    slider.addEventListener('mousemove', (e) => { 
225        if (!isDown) return; 
226        e.preventDefault(); 
227        const x = e.pageX - slider.offsetLeft; 
228        const walk = (x - startX) * 3; //scroll-fast 
229        slider.scrollLeft = scrollLeft - walk; 
230    }); 
231 
232    function spaceLeftContainer() { 
233        container.style.paddingLeft = sectToFollow.getBoundingClientRect().left + "px"; 
234
235 
236    window.addEventListener('resize', spaceLeftContainer); 
237 
238    spaceLeftContainer(); 
239</script> 
240 
241<!-- TODO: move this styles to the theme --> 
242<style> 
243    .mpsp__school_events_card_home_card > div:last-child { 
244        height: 305px; 
245
246</style> 

Revista Jurídica

Publicação destinada à divulgação de artigos científicos dentro das mais variadas abordagens teóricas e metodológicas

Acesse os artigos

Podcast

Informação dinâmica e de qualidade a qualquer hora e em qualquer lugar

Últimos episódios

Ouça todos os episódios

Notícias