Joint Statement between Myanmar-China issued on the occasion of the State Visit of H.E. Mr. Xi Jinping, President of the People’s Republic of China to the Republic of the Union of Myanmar
An error occurred while processing the template.
The following has evaluated to null or missing: ==> image [in template "20116#20152#47530" at line 28, column 6] ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #if image.getData()?? && image.getDat... [in template "20116#20152#47530" at line 28, column 1] ----
1<#-- Retrieve the published date meta data field of the web content -->
2<#assign
3 displaydate = .vars['reserved-article-display-date'].data
4 displaydate = displaydate?datetime("EEE, d MMM yyyy HH:mm:ss Z")
5 articleId = .vars['reserved-article-id'].data
6 assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
7 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
8 journalArticle = journalArticleLocalService.getArticle(20143,articleId)
9 resourcePrimKey = journalArticle.getResourcePrimKey()
10 listCategories = assetCategoryLocalService.getCategories("com.liferay.journal.model.JournalArticle",resourcePrimKey)
11 ministry = ""
12/>
13<#list listCategories as category>
14 <#if category.getVocabularyId() == 80291>
15 <#assign ministry = category.getTitle(locale)>
16 <#break>
17 </#if>
18</#list>
19<h2 class="title bigheight">${.vars['reserved-article-title'].data}</h2>
20<br>
21<#assign locationMy = location.getData()>
22<#if locationMy == "">
23 <#assign locationMy = "location">
24</#if>
25<span class="redcolor uppercasetext">${ministry}/ ${locationMy} / ${displaydate?string["MMMM dd, yyyy"]}</span>
26
27<div class="l2news_detail_imgWrapper">
28<#if image.getData()?? && image.getData() != "" && image.getData()?contains("http://www.moi.gov.mm/") >
29 <img class="topmargin20" data-fileentryid="${image.getAttribute("fileEntryId")}" alt="${image.getAttribute("alt")}" src="${"" + image.getData()?replace("http://www.moi.gov.mm/http://www.moi.gov.mm/", "http://www.moi.gov.mm/")?replace("https://www.moi.gov.mm/http://www.moi.gov.mm/", "https://www.moi.gov.mm/")}" />
30<#elseif image.getData()?? && image.getData() != "" >
31 <img class="topmargin20" data-fileentryid="${image.getAttribute("fileEntryId")}" alt="${image.getAttribute("alt")}" src="${image.getData()}" />
32</#if>
33</div>
34 <div class="clearifx"></div><br/><br/>
35 <p>${Content.getData()}</p>
36
37<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
38<#if imageslide?has_content>
39 <div class="carosel" id="carosel1">
40 <div class="carosel-inner">
41 <#if imageslide.getSiblings()?size gt 2>
42 <a class="carosel-control carosel-control-left"><i class="fa fa-angle-left"></i></a>
43 </#if>
44 <div>
45 <#if imageslide.getSiblings()?has_content>
46 <#list imageslide.getSiblings() as image>
47 <#if image.getData()?? && image.getData() != "">
48 <img class="carosel-item" src="${image.getData()}" />
49 </#if>
50 </#list>
51 </#if>
52 </div>
53 <#if imageslide.getSiblings()?size gt 2>
54 <a class="carosel-control carosel-control-right"><i class="fa fa-angle-right"></i></a>
55 </#if>
56 </div>
57 </div>
58</#if>
59<script>
60
61$('.carosel-control-right').click(function() {
62 $(this).blur();
63 $(this).parent().find('.carosel-item').first().insertAfter($(this).parent().find('.carosel-item').last());
64});
65$('.carosel-control-left').click(function() {
66 $(this).blur();
67 $(this).parent().find('.carosel-item').last().insertBefore($(this).parent().find('.carosel-item').first());
68});
69</script>
70
71<style>
72.carosel-item {
73 width: 50% !important;
74 height:100% !important;
75}
76
77@media (max-width: 300px) {
78 .carosel-item {
79 width: 100%;
80 }
81
82}
83@media (min-width: 300px) {
84 .carosel-item {
85 width: 50%;
86 }
87}
88@media (min-width: 500px) {
89 .carosel-item {
90 width: 50%;
91 }
92
93}
94@media (min-width: 768px) {
95 .carosel-item {
96 width: 50%;
97 margin-right: 20px !important;
98 }
99}
100@media (max-width: 768px) {
101 .mnp_body .portlet-asset-publisher .asset-full-content .l2news_detail_imgWrapper img{
102 width: 100% !important;
103 max-width :100% !important;
104 }
105}
106.portlet-asset-publisher .asset-full-content img{
107 max-width: 100% !important;
108}
109.mnp_body .portlet-asset-publisher .asset-full-content .l2news_detail_imgWrapper img{
110 width: 60%;
111}
112.carosel {
113 position: relative;
114 text-align: center;
115}
116.carosel-inner {
117 white-space: nowrap;
118 overflow: hidden;
119 font-size: 0;
120}
121.carosel-item {
122 display: inline-block;
123}
124.carosel-inner img{
125 height: 240px;
126}
127.carosel-control {
128 position: absolute;
129 top: 50%;
130 padding: 15px;
131 box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.5);
132 transform: translateY(-50%);
133 border-radius: 50%;
134 color: rgba(0, 0, 0, 0.5);
135 font-size: 30px;
136 display: inline-block;
137}
138.carosel-control-left {
139 left: 15px;
140}
141.carosel-control-right {
142 right: 15px;
143}
144.carosel-control:active,
145.carosel-control:hover {
146 text-decoration: none;
147 color: rgba(0, 0, 0, 0.8);
148}
149.carosel-inner i{
150 width: 30px;
151 height: 30px;
152 padding: 3px 0px;
153 border-radius: 15px;
154 text-align: center;
155 background: #fff;
156}
157.carosel-control-left{
158 left : -40px;
159}
160.carosel-control-right{
161 right : -40px;
162}
163.mnp_body .fa{
164 font-size : 22px !important;
165 font-weight: bold !important;
166 color: #000000ad;
167}
168#column-3,#column-4,#column-5,#layout-column_column-1,.nav-pills,#form_wrapper,.home-layout-v2 #hometab1,#column-8,#column-7 {
169 display : none !important;
170}
171.mnp_body h2.title{
172 margin: 0 !important;
173}
174.mnp_body p {
175 color: #000000;
176 font-size: 17px !important;
177 line-height: 28px !important;
178}
179.bodypadding p span {
180 font-size: 17px !important;
181 line-height: 28px !important;
182}
183</style>