News Detail - Kuwait Fund
An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy725.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy725 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@5cf83450"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign article = journalArticleLocal... [in template "37401#37443#78085" at line 19, column 1] ----
1<script>
2console.log('news');
3</script>
4<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() />
5<#assign themeDisplay = serviceContext.getThemeDisplay() />
6<#assign portalUrl = themeDisplay.getPortalURL() />
7<#assign friendlyURL = themeDisplay.getLayout().getFriendlyURL() />
8<#assign httpServletRequest = serviceContext.getRequest()/>
9<#assign url = themeDisplay.getURLCurrent()/>
10
11<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
12
13 <#assign getterUtil = staticUtil["com.liferay.portal.kernel.util.GetterUtil"] />
14 <#assign paramUtil = staticUtil["com.liferay.portal.kernel.util.ParamUtil"] />
15
16<#assign newsId= paramUtil.getString(httpServletRequest, 'nid') />
17
18<#if newsId?length > 0>
19<#assign article= journalArticleLocalService.getArticle(getterUtil.getLong(groupId),newsId) />
20<#assign artContent= journalArticleLocalService.getArticleContent(article, article.getDDMTemplateKey(), "VIEW", locale,null, themeDisplay)/>
21
22
23
24<style>
25
26
27.mt-100 {
28 margin-top: 100px
29}
30
31
32
33.modal-title {
34 font-weight: 900
35}
36
37.modal-content {
38 border-radius: 13px
39}
40
41.modal-body {
42 color: #3b3b3b
43}
44
45.img-thumbnail {
46 border-radius: 33px;
47 width: 61px;
48 height: 61px
49}
50
51.fab:before {
52 position: relative;
53 top: 13px
54}
55
56.smd {
57 width: 200px;
58 font-size: small;
59 text-align: center
60}
61
62.modal-footer {
63 display: block
64}
65
66.ur {
67 border: none;
68 background-color: #e6e2e2;
69 border-bottom-left-radius: 4px;
70 border-top-left-radius: 4px
71}
72
73.cpy {
74 border: none;
75 background-color: #e6e2e2;
76 border-bottom-right-radius: 4px;
77 border-top-right-radius: 4px;
78 cursor: pointer
79}
80
81button.focus,
82button:focus {
83 outline: 0;
84 box-shadow: none !important
85}
86
87.ur.focus,
88.ur:focus {
89 outline: 0;
90 box-shadow: none !important
91}
92
93.message {
94 font-size: 11px;
95 color: #ee5535
96}
97@media (min-width: 576px){
98.modal-dialog {
99 max-width: 500px !important;
100 margin: 1.75rem auto;
101}
102}
103</style>
104
105
106
107<section class="p-3 p-md-5 mt-2 printableArea" id="printableArea">
108 <div class="container ">
109 <div class="row ">
110 <div class="col-12 col-md-12 col-lg-4 pb-4">
111 <p>| ${article.getDisplayDate()?string('EEEE, MMM dd,yyyy')} |</p>
112 <h3>${article.getTitle(locale)}</h3>
113 <#if article.getSmallImageId()!=0>
114 <!-- <img class="card-img-top" src="/image/journal/article?img_id=${article.getSmallImageId()}" alt="${article.getTitle(locale)}">-->
115 </#if>
116
117 <p class="pt-3"> <a href="#" target="_blank" data-toggle="modal" data-target="#exampleModal"><span class="icons icon-share x" alt="share"></span></a>
118
119 <a href="#"><span class="icons icon-printer x1" alt="print" onclick="printDiv()"></span></a></p>
120
121 </div>
122 <div class="col-12 col-md-12 col-lg-8">
123
124 ${artContent}
125 </div>
126 </div>
127
128</div>
129
130</section>
131
132<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
133 <div class="modal-dialog" role="document">
134 <div class="modal-content col-12">
135 <div class="modal-header">
136 <h5 class="modal-title">Share</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button>
137 </div>
138 <div class="modal-body">
139 <div class="icon-container1 d-flex">
140
141 <div class="smd"> <a href="http://www.facebook.com/sharer.php?u=${portalUrl}${url}" target="_blank"><i class="img-thumbnail fab fa-facebook fa-2x" style="color: #3b5998;background-color: #eceff5;"></i></a>
142 <p>Facebook</p>
143 </div>
144 <div class="smd"><a href="https://www.linkedin.com/sharing/share-offsite/?url=${portalUrl}${url}" target="_blank"> <i class="img-thumbnail fab fa-linkedin fa-2x" style="color:rgb(10, 102, 194);background-color: #eceff5 ;"></i></a>
145 <p>Linkedin</p>
146 </div>
147 <div class="smd"> <a href="http://twitter.com/share?url=${portalUrl}${url}" target="_blank"><i class=" img-thumbnail fab fa-twitter fa-2x" style="color:#4c6ef5;background-color: aliceblue"></i></a>
148 <p>Twitter</p>
149 </div>
150 </div>
151
152 </div>
153 <div class="modal-footer"> <label style="font-weight: 600">Page Link <span class="message"></span></label><br />
154 <div class="row"> <input class="col-10 ur" type="url" value="${portalUrl}${url}" id="myInput" aria-describedby="inputGroup-sizing-default" style="height: 40px;"> <button class="cpy" onclick="myFunction()"><i class="far fa-clone"></i></button> </div>
155 </div>
156 </div>
157 </div>
158</div>
159<#else>
160
161</#if>
162<script>
163
164function myFunction() {
165 /* Get the text field */
166 var copyText = document.getElementById("myInput");
167let copyTextarea = document.querySelector('#myInput');
168 copyTextarea.focus();
169 copyTextarea.select();
170 try {
171 let successful = document.execCommand('copy');
172 let msg = successful ? 'successful' : 'unsuccessful';
173 $(".message").text("link copied");
174 } catch(err) {
175
176 $(".message").text("Unable to copy");
177 }
178}
179
180
181 function printDiv() {
182 var params = [
183 'height='+screen.height,
184 'width='+screen.width,
185 'fullscreen=yes' // only works in IE, but here for completeness
186].join(',');
187 var divContents = document.getElementById("printableArea").innerHTML;
188 var a = window.open('', '', params);
189 a.document.write('<html>');
190 a.document.write('<body > <img src="/o/kwfund-kw-theme/images/logo.svg"></img> <br>');
191 a.document.write(divContents);
192 a.document.write('</body></html>');
193 a.document.close();
194 a.print();
195 }
196
197
198</script>
More News & Events

Call For Tender in the Islamic Republic of Mauritania
Documents and Media Link /documents/66721/156152/link%20tender.pdf/6f51de13-c515-39f0-3950-c8b10105d6cc?t=1742118757817 width 10%

Kuwait Fund Reiterates Commitment To Support Kuwaiti Youth [...]
FAED) reiterated commitment to support Kuwaiti youngsters through the “Be Among High Achievers” initiative for high school students and the “Rehabilitating Newly Graduate Kuwaiti Engineers and Architects” training program out of its faith in the [...]

Signing of A Grant Agreement in the Amount of USD 2,100,000 In [...]
ement today with the United Nations High Commissioner for Refugees (UNHCR) whereby the Fund will provide a grant amounting to USD 2.1 Million in Support of the Housing Rehabilitation and Maintenance for Internally Displaced Returnees Project in the [...]