News
News
News
Manual Submenu Topics
SearchResultsFilters
खोज परिणाम
14 जून
13 जून
Media advisory: IFAD President Alvaro Lario visits India to advocate for small-scale farmers and rural communities at G20 meeting
13 जून
IFAD reaffirms commitment to help Pacific Islands cope with climate change impacts and boost rural livelihoods
12 जून
09 जून
IFAD President visit to China reinforces longstanding partnership to transform rural lives
09 जून
Harnessing the potential of remittance flows and diaspora investments for international development: more than $600 billion is sent home annually
08 जून
01 जून
टेम्पलेट के प्रोसेसिंग के समय त्रुटि हुई है.
Range end index 2 is out of bounds, because the sliced string has only 2 character(s). (Note that indices are 0-based). The blamed expression: ==> 0..2 [in template "10154#10192#NEWS_ROW" at line 32, column 49] ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign monthAbbr = date_month[0..2]?... [in template "10154#10192#NEWS_ROW" at line 32, column 17] ----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
3
4<#assign classNameLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.ClassNameLocalService")>
5<#assign groupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")>
6<#assign globalGroup = groupLocalService.getFriendlyURLGroup(companyId, "/global")>
7<#assign destMacroClassId = classNameLocalService.getClassNameId("com.liferay.asset.kernel.model.AssetEntry")>
8<#include "_TEMPLATE_CONTEXT_/${companyId}/${globalGroup.groupId}/${destMacroClassId}/ASSET_ENTRY_MACROS" />
9
10<#assign article = journalArticleLocalService.getArticle(getterUtil.getLong(articleGroupId), .vars['reserved-article-id'].data)>
11<#assign asset = assetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', article.resourcePrimKey)>
12
13<#assign assetGroup = groupLocalService.getGroup(asset.getGroupId())>
14
15<#assign publicationDate = article.getExpandoBridge().getAttribute("publicationDate")>
16
17<#if publicationDate??>
18 <#assign date_day = dateUtil.getDate(publicationDate, "dd", locale)>
19 <#assign date_month = dateUtil.getDate(publicationDate, "MMM", locale)>
20</#if>
21
22<div class="col-lg-12 col-xs-12 row border-bottom row pb-5 mb-5 event-row news-row">
23 <div class="col-lg-1 col-xs-3 date-circle">
24 <div>
25 <span class="event-date-day">${date_day!"0"}</span>
26 <#if locale.getLanguage() == "ar">
27 <#assign monthAbbr = date_month?upperCase>
28 <#elseIf locale.getLanguage() == "fr" && date_month == "juil.">
29 <#-- Special case requested by Frederic -->
30 <#assign monthAbbr = "JLT">
31 <#else>
32 <#assign monthAbbr = date_month[0..2]?upperCase>
33 </#if>
34 <span class="event-date-month">${monthAbbr}</span>
35 </div>
36 </div>
37
38 <div class="col-lg-11 col-xs-9 event-content">
39 <p class="event-title">
40 ${news_title.getData()}
41 </p>
42
43 <@getAdminMenu asset />
44
45 <small class="event-row-categories d-block text-uppercase languages">
46 <#assign langList = {}>
47 <#assign displayLangList = false>
48
49 <#list article.getAvailableLanguageIds() as articleLangCode>
50 <#assign articleLocale = localeUtil.fromLanguageId(articleLangCode)>
51
52 <#assign localizedUrl =
53 "/" + articleLocale.getLanguage()?lowerCase + ifadAssetEntryUtil.getURLViewInContext(asset.getAssetRenderer(), assetGroup, article, articleLocale)>
54
55 <#assign langList = langList + {"${articleLocale.getDisplayLanguage()}": "${localizedUrl}"}>
56 </#list>
57
58 <span><@liferay.language key="languages" /></span>:
59
60 <#list langList as langName, localizedUrl>
61 <a href="${localizedUrl}">${langName}${langName?hasNext?then(', ','')}</a>
62 </#list>
63 </small>
64 </div>
65</div>