article 2 - Catnat
Une erreur s'est produite lors du traitement du gabarit.
The string doesn't match the expected date/time/date-time format. The string to parse was: "jeu., 06 févr. 2020 17:39:00 +0000". The expected format was: "EEE, d MMM yyyy HH:mm:ss Z". The nested reason given follows: Unparseable date: "jeu., 06 févr. 2020 17:39:00 +0000" ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign publishDateToDisplay = publis... [in template "20101#20128#34686" at line 25, column 1] ----
1<#-- --# -- general -->
2<#assign PortalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"] />
3<#assign rootUrl = PortalUtil.getGroupFriendlyURL(themeDisplay.getLayoutSet(), themeDisplay)>
4
5
6<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService" ) >
7
8<#assign youtubeUtil = utilLocator.findUtil('catnat-services-hook', 'fr.catnat.services.YoutubeUtil')>
9
10<#-- --# -- parameter -->
11 <#assign isVideo = false>
12 <#assign isImage = false>
13 <#assign typeVideo = "video">
14 <#assign typeImage = "image">
15 <#assign publishDate = .vars['reserved-article-display-date'].getData()>
16
17 <#setting time_zone = "Europe/Paris">
18 <#setting time_zone = languageUtil.get(locale, "template-timezone")>
19
20 <#assign originalLocale = locale>
21
22
23<#-- --# -- main -->
24
25<#assign publishDateToDisplay = publishDate?datetime("EEE, d MMM yyyy HH:mm:ss Z")?date?string("dd/MM/yyyy")>
26
27
28<#-- --# -- we define the way to display -->
29 <#if (type_media_actu.getData() == typeImage && image_medium_actu.getData() != "")>
30 <#assign isImage = true>
31 <#elseif type_media_actu.getData() == typeVideo && video_actu.getData() != "">
32 <#assign isVideo = true>
33 </#if>
34
35<#-- --# -- display -->
36 <a href="${rootUrl}/-/${.vars['reserved-article-url-title'].data}" class="actuality
37 <#if isImage>
38 image
39 <#elseif isVideo>
40 video
41 <#else >
42 no-img
43 </#if>
44 ">
45 <span class="txt-date-mine-shaft">
46 ${publishDateToDisplay}
47 </span>
48 <div class="borderflag"></div>
49
50 <#if (isImage) >
51 <div class="img-container">
52 <div class="img-timeline" style="background-image: url('${image_medium_actu.getData()}');">
53 </div>
54 </div>
55 <#elseif (isVideo)>
56 <#assign urlMediumThumbnail = youtubeUtil.createLargeThumbnailsUrl(video_actu.getData())>
57 <#-- <#if (urlMediumThumbnail)>-->
58 <div class="img-container video">
59 <div class="img-timeline" style="background-image: url('${urlMediumThumbnail}');">
60 </div>
61 </div>
62 <#-- </#if> -->
63 </#if>
64
65 <div class="publication-txt">
66 <span class="txt-date-mine-shaft mobile">
67 ${publishDateToDisplay}
68
69 </span>
70 <#if titre_actu.getData() != "">
71 <h3 class="display-5 primary">
72 ${titre_actu.getData()}
73 </h3>
74 </#if>
75 <#if (description_push_actu.getData() != "")>
76 <span class="txt-content">
77 ${description_push_actu.getData()}
78 </span>
79 </#if>
80 </div>
81 </a>
Une erreur s'est produite lors du traitement du gabarit.
The string doesn't match the expected date/time/date-time format. The string to parse was: "mer., 05 févr. 2020 17:22:00 +0000". The expected format was: "EEE, d MMM yyyy HH:mm:ss Z". The nested reason given follows: Unparseable date: "mer., 05 févr. 2020 17:22:00 +0000" ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign publishDateToDisplay = publis... [in template "20101#20128#34686" at line 25, column 1] ----
1<#-- --# -- general -->
2<#assign PortalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"] />
3<#assign rootUrl = PortalUtil.getGroupFriendlyURL(themeDisplay.getLayoutSet(), themeDisplay)>
4
5
6<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService" ) >
7
8<#assign youtubeUtil = utilLocator.findUtil('catnat-services-hook', 'fr.catnat.services.YoutubeUtil')>
9
10<#-- --# -- parameter -->
11 <#assign isVideo = false>
12 <#assign isImage = false>
13 <#assign typeVideo = "video">
14 <#assign typeImage = "image">
15 <#assign publishDate = .vars['reserved-article-display-date'].getData()>
16
17 <#setting time_zone = "Europe/Paris">
18 <#setting time_zone = languageUtil.get(locale, "template-timezone")>
19
20 <#assign originalLocale = locale>
21
22
23<#-- --# -- main -->
24
25<#assign publishDateToDisplay = publishDate?datetime("EEE, d MMM yyyy HH:mm:ss Z")?date?string("dd/MM/yyyy")>
26
27
28<#-- --# -- we define the way to display -->
29 <#if (type_media_actu.getData() == typeImage && image_medium_actu.getData() != "")>
30 <#assign isImage = true>
31 <#elseif type_media_actu.getData() == typeVideo && video_actu.getData() != "">
32 <#assign isVideo = true>
33 </#if>
34
35<#-- --# -- display -->
36 <a href="${rootUrl}/-/${.vars['reserved-article-url-title'].data}" class="actuality
37 <#if isImage>
38 image
39 <#elseif isVideo>
40 video
41 <#else >
42 no-img
43 </#if>
44 ">
45 <span class="txt-date-mine-shaft">
46 ${publishDateToDisplay}
47 </span>
48 <div class="borderflag"></div>
49
50 <#if (isImage) >
51 <div class="img-container">
52 <div class="img-timeline" style="background-image: url('${image_medium_actu.getData()}');">
53 </div>
54 </div>
55 <#elseif (isVideo)>
56 <#assign urlMediumThumbnail = youtubeUtil.createLargeThumbnailsUrl(video_actu.getData())>
57 <#-- <#if (urlMediumThumbnail)>-->
58 <div class="img-container video">
59 <div class="img-timeline" style="background-image: url('${urlMediumThumbnail}');">
60 </div>
61 </div>
62 <#-- </#if> -->
63 </#if>
64
65 <div class="publication-txt">
66 <span class="txt-date-mine-shaft mobile">
67 ${publishDateToDisplay}
68
69 </span>
70 <#if titre_actu.getData() != "">
71 <h3 class="display-5 primary">
72 ${titre_actu.getData()}
73 </h3>
74 </#if>
75 <#if (description_push_actu.getData() != "")>
76 <span class="txt-content">
77 ${description_push_actu.getData()}
78 </span>
79 </#if>
80 </div>
81 </a>
Une erreur s'est produite lors du traitement du gabarit.
The string doesn't match the expected date/time/date-time format. The string to parse was: "ven., 14 août 2020 12:11:00 +0000". The expected format was: "EEE, d MMM yyyy HH:mm:ss Z". The nested reason given follows: Unparseable date: "ven., 14 août 2020 12:11:00 +0000" ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign publishDateToDisplay = publis... [in template "20101#20128#34686" at line 25, column 1] ----
1<#-- --# -- general -->
2<#assign PortalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"] />
3<#assign rootUrl = PortalUtil.getGroupFriendlyURL(themeDisplay.getLayoutSet(), themeDisplay)>
4
5
6<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService" ) >
7
8<#assign youtubeUtil = utilLocator.findUtil('catnat-services-hook', 'fr.catnat.services.YoutubeUtil')>
9
10<#-- --# -- parameter -->
11 <#assign isVideo = false>
12 <#assign isImage = false>
13 <#assign typeVideo = "video">
14 <#assign typeImage = "image">
15 <#assign publishDate = .vars['reserved-article-display-date'].getData()>
16
17 <#setting time_zone = "Europe/Paris">
18 <#setting time_zone = languageUtil.get(locale, "template-timezone")>
19
20 <#assign originalLocale = locale>
21
22
23<#-- --# -- main -->
24
25<#assign publishDateToDisplay = publishDate?datetime("EEE, d MMM yyyy HH:mm:ss Z")?date?string("dd/MM/yyyy")>
26
27
28<#-- --# -- we define the way to display -->
29 <#if (type_media_actu.getData() == typeImage && image_medium_actu.getData() != "")>
30 <#assign isImage = true>
31 <#elseif type_media_actu.getData() == typeVideo && video_actu.getData() != "">
32 <#assign isVideo = true>
33 </#if>
34
35<#-- --# -- display -->
36 <a href="${rootUrl}/-/${.vars['reserved-article-url-title'].data}" class="actuality
37 <#if isImage>
38 image
39 <#elseif isVideo>
40 video
41 <#else >
42 no-img
43 </#if>
44 ">
45 <span class="txt-date-mine-shaft">
46 ${publishDateToDisplay}
47 </span>
48 <div class="borderflag"></div>
49
50 <#if (isImage) >
51 <div class="img-container">
52 <div class="img-timeline" style="background-image: url('${image_medium_actu.getData()}');">
53 </div>
54 </div>
55 <#elseif (isVideo)>
56 <#assign urlMediumThumbnail = youtubeUtil.createLargeThumbnailsUrl(video_actu.getData())>
57 <#-- <#if (urlMediumThumbnail)>-->
58 <div class="img-container video">
59 <div class="img-timeline" style="background-image: url('${urlMediumThumbnail}');">
60 </div>
61 </div>
62 <#-- </#if> -->
63 </#if>
64
65 <div class="publication-txt">
66 <span class="txt-date-mine-shaft mobile">
67 ${publishDateToDisplay}
68
69 </span>
70 <#if titre_actu.getData() != "">
71 <h3 class="display-5 primary">
72 ${titre_actu.getData()}
73 </h3>
74 </#if>
75 <#if (description_push_actu.getData() != "")>
76 <span class="txt-content">
77 ${description_push_actu.getData()}
78 </span>
79 </#if>
80 </div>
81 </a>
Cookies I
© - CCR 2024 Tous droits réservés