Wystąpił błąd podczas przetwarzania szablonu.
    The following has evaluated to null or missing:
    ==> By_pass_Cloudflare_optimization  [in template "20302#20342#PERSPECTIVE-THOUGHTLEADERSHIP-ITEM" at line 30, column 33]
    
    ----
    Tip: If the failing expression is known to 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 !getterUtil.getBoolean(By_pass_Cl...  [in template "20302#20342#PERSPECTIVE-THOUGHTLEADERSHIP-ITEM" at line 30, column 5]
    ----
    1<#assign _dlfels = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
    2 
    3<#-- A common display date snippet that retrieves the display date meta data field 
    4 of the web content, saves the original page locale for later, then sets the page 
    5 locale to the portals default locale. Finally it parses the date to a date object 
    6 and sets the page locale back to the original page locale --> 
    7 
    8<#assign displayDate = .vars['reserved-article-display-date'].data> 
    9<#setting time_zone = languageUtil.get(locale, "template-timezone")> 
    10<#assign originalLocale = locale> 
    11<#setting locale = localeUtil.getDefault()> 
    12<#assign displayDate = displayDate?date("EEE, d MMM yyyy HH:mm:ss Z")> 
    13<#setting locale = originalLocale> 
    14<#assign displayDate = displayDate?string("long")> 
    15 
    16<#-- end of common display date snippet --> 
    17 
    18 
    19<#-- set the default image and alt text --> 
    20<#assign imgSrc = Image.getData() > 
    21<#assign imgAltText = Content.getData() > 
    22 
    23<#-- try to set more advanced options of image display --> 
    24<#-- set the base hostname url for environment (local/qa/stg/prod) --> 
    25<#assign imageBaseUri = ui_config.getCdnCgiUri() > 
    26<#-- determine if we want to use CDN Image Optimizations or not --> 
    27<#if ui_config.getUseCdnImageOptimizations() > 
    28<#-- set the instructions to use for optimizing the image(s) in this item --> 
    29    <#assign instructionPath = "/cdn-cgi/image/q=50" > 
    30    <#if !getterUtil.getBoolean(By_pass_Cloudflare_optimization.getData())> 
    31        <#assign imageBaseUri = imageBaseUri + instructionPath > 
    32    </#if> 
    33</#if> 
    34 
    35 
    36<#assign image_attributes = jsonFactoryUtil.createJSONObject(Image.getAttributes()) > 
    37<#if (image_attributes.fileEntryId??) > 
    38    <#assign fileEntryId = image_attributes.fileEntryId?number > 
    39    <#if fileEntryId??> 
    40        <#assign fe = _dlfels.getFileEntry(fileEntryId)> 
    41        <#if fe??> 
    42            <#assign imgSrc = imageBaseUri + "/documents/" + fe.repositoryId +"/"  + fe.fileEntryId + "/" + fe.fileName + "/" + fe.uuid + "?t=" + fe.modifiedDate?long > 
    43            <#assign imgAltText = image_attributes.alt!imgAltText > 
    44        </#if> 
    45    </#if> 
    46</#if> 
    47 
    48<#if (Link?? && Link.getData()?has_content )> 
    49    <#assign linkTarget = "target='_blank'" 
    50    linkToken = Link.getData() /> 
    51<#elseif Custom_Url?? && Custom_Url.getData()?has_content > 
    52    <#assign linkTarget = "target='_blank'" /> 
    53    <#assign linkToken = Custom_Url.getData()> 
    54<#elseif ( (PDF?? && PDF.getData()?has_content) && !(Link?? && Link?has_content) )> 
    55    <#assign linkTarget = "target='_blank'" 
    56    linkToken = PDF.getData() /> 
    57<#else> 
    58    <#assign linkTarget = "" 
    59    linkToken = "https://www.avisonyoung.pl/pl/web/warsaw/news-item/-/article/2021/08/11/property-investment-market-in-poland-h1-2021" /> 
    60</#if> 
    61 
    62 
    63<li> 
    64    <a href="${linkToken}" ${linkTarget}> 
    65        <figure> 
    66            <div> 
    67                <img src="${imgSrc}" alt="${imgAltText}"> 
    68            </div> 
    69            <figcaption> 
    70                <div class="ay-blog-tile-title">${Content.getData()}</div> 
    71            </figcaption> 
    72        </figure> 
    73        <div class="ay-blog-post-td">${displayDate}</div> 
    74    </a> 
    75     
    76</li> 
    Wystąpił błąd podczas przetwarzania szablonu.
    The following has evaluated to null or missing:
    ==> By_pass_Cloudflare_optimization  [in template "20302#20342#PERSPECTIVE-THOUGHTLEADERSHIP-ITEM" at line 30, column 33]
    
    ----
    Tip: If the failing expression is known to 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 !getterUtil.getBoolean(By_pass_Cl...  [in template "20302#20342#PERSPECTIVE-THOUGHTLEADERSHIP-ITEM" at line 30, column 5]
    ----
    1<#assign _dlfels = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
    2 
    3<#-- A common display date snippet that retrieves the display date meta data field 
    4 of the web content, saves the original page locale for later, then sets the page 
    5 locale to the portals default locale. Finally it parses the date to a date object 
    6 and sets the page locale back to the original page locale --> 
    7 
    8<#assign displayDate = .vars['reserved-article-display-date'].data> 
    9<#setting time_zone = languageUtil.get(locale, "template-timezone")> 
    10<#assign originalLocale = locale> 
    11<#setting locale = localeUtil.getDefault()> 
    12<#assign displayDate = displayDate?date("EEE, d MMM yyyy HH:mm:ss Z")> 
    13<#setting locale = originalLocale> 
    14<#assign displayDate = displayDate?string("long")> 
    15 
    16<#-- end of common display date snippet --> 
    17 
    18 
    19<#-- set the default image and alt text --> 
    20<#assign imgSrc = Image.getData() > 
    21<#assign imgAltText = Content.getData() > 
    22 
    23<#-- try to set more advanced options of image display --> 
    24<#-- set the base hostname url for environment (local/qa/stg/prod) --> 
    25<#assign imageBaseUri = ui_config.getCdnCgiUri() > 
    26<#-- determine if we want to use CDN Image Optimizations or not --> 
    27<#if ui_config.getUseCdnImageOptimizations() > 
    28<#-- set the instructions to use for optimizing the image(s) in this item --> 
    29    <#assign instructionPath = "/cdn-cgi/image/q=50" > 
    30    <#if !getterUtil.getBoolean(By_pass_Cloudflare_optimization.getData())> 
    31        <#assign imageBaseUri = imageBaseUri + instructionPath > 
    32    </#if> 
    33</#if> 
    34 
    35 
    36<#assign image_attributes = jsonFactoryUtil.createJSONObject(Image.getAttributes()) > 
    37<#if (image_attributes.fileEntryId??) > 
    38    <#assign fileEntryId = image_attributes.fileEntryId?number > 
    39    <#if fileEntryId??> 
    40        <#assign fe = _dlfels.getFileEntry(fileEntryId)> 
    41        <#if fe??> 
    42            <#assign imgSrc = imageBaseUri + "/documents/" + fe.repositoryId +"/"  + fe.fileEntryId + "/" + fe.fileName + "/" + fe.uuid + "?t=" + fe.modifiedDate?long > 
    43            <#assign imgAltText = image_attributes.alt!imgAltText > 
    44        </#if> 
    45    </#if> 
    46</#if> 
    47 
    48<#if (Link?? && Link.getData()?has_content )> 
    49    <#assign linkTarget = "target='_blank'" 
    50    linkToken = Link.getData() /> 
    51<#elseif Custom_Url?? && Custom_Url.getData()?has_content > 
    52    <#assign linkTarget = "target='_blank'" /> 
    53    <#assign linkToken = Custom_Url.getData()> 
    54<#elseif ( (PDF?? && PDF.getData()?has_content) && !(Link?? && Link?has_content) )> 
    55    <#assign linkTarget = "target='_blank'" 
    56    linkToken = PDF.getData() /> 
    57<#else> 
    58    <#assign linkTarget = "" 
    59    linkToken = "https://www.avisonyoung.pl/pl/web/warsaw/news-item/-/article/2021/08/11/property-investment-market-in-poland-q1-2021" /> 
    60</#if> 
    61 
    62 
    63<li> 
    64    <a href="${linkToken}" ${linkTarget}> 
    65        <figure> 
    66            <div> 
    67                <img src="${imgSrc}" alt="${imgAltText}"> 
    68            </div> 
    69            <figcaption> 
    70                <div class="ay-blog-tile-title">${Content.getData()}</div> 
    71            </figcaption> 
    72        </figure> 
    73        <div class="ay-blog-post-td">${displayDate}</div> 
    74    </a> 
    75     
    76</li> 
    Wystąpił błąd podczas przetwarzania szablonu.
    The following has evaluated to null or missing:
    ==> By_pass_Cloudflare_optimization  [in template "20302#20342#PERSPECTIVE-THOUGHTLEADERSHIP-ITEM" at line 30, column 33]
    
    ----
    Tip: If the failing expression is known to 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 !getterUtil.getBoolean(By_pass_Cl...  [in template "20302#20342#PERSPECTIVE-THOUGHTLEADERSHIP-ITEM" at line 30, column 5]
    ----
    1<#assign _dlfels = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
    2 
    3<#-- A common display date snippet that retrieves the display date meta data field 
    4 of the web content, saves the original page locale for later, then sets the page 
    5 locale to the portals default locale. Finally it parses the date to a date object 
    6 and sets the page locale back to the original page locale --> 
    7 
    8<#assign displayDate = .vars['reserved-article-display-date'].data> 
    9<#setting time_zone = languageUtil.get(locale, "template-timezone")> 
    10<#assign originalLocale = locale> 
    11<#setting locale = localeUtil.getDefault()> 
    12<#assign displayDate = displayDate?date("EEE, d MMM yyyy HH:mm:ss Z")> 
    13<#setting locale = originalLocale> 
    14<#assign displayDate = displayDate?string("long")> 
    15 
    16<#-- end of common display date snippet --> 
    17 
    18 
    19<#-- set the default image and alt text --> 
    20<#assign imgSrc = Image.getData() > 
    21<#assign imgAltText = Content.getData() > 
    22 
    23<#-- try to set more advanced options of image display --> 
    24<#-- set the base hostname url for environment (local/qa/stg/prod) --> 
    25<#assign imageBaseUri = ui_config.getCdnCgiUri() > 
    26<#-- determine if we want to use CDN Image Optimizations or not --> 
    27<#if ui_config.getUseCdnImageOptimizations() > 
    28<#-- set the instructions to use for optimizing the image(s) in this item --> 
    29    <#assign instructionPath = "/cdn-cgi/image/q=50" > 
    30    <#if !getterUtil.getBoolean(By_pass_Cloudflare_optimization.getData())> 
    31        <#assign imageBaseUri = imageBaseUri + instructionPath > 
    32    </#if> 
    33</#if> 
    34 
    35 
    36<#assign image_attributes = jsonFactoryUtil.createJSONObject(Image.getAttributes()) > 
    37<#if (image_attributes.fileEntryId??) > 
    38    <#assign fileEntryId = image_attributes.fileEntryId?number > 
    39    <#if fileEntryId??> 
    40        <#assign fe = _dlfels.getFileEntry(fileEntryId)> 
    41        <#if fe??> 
    42            <#assign imgSrc = imageBaseUri + "/documents/" + fe.repositoryId +"/"  + fe.fileEntryId + "/" + fe.fileName + "/" + fe.uuid + "?t=" + fe.modifiedDate?long > 
    43            <#assign imgAltText = image_attributes.alt!imgAltText > 
    44        </#if> 
    45    </#if> 
    46</#if> 
    47 
    48<#if (Link?? && Link.getData()?has_content )> 
    49    <#assign linkTarget = "target='_blank'" 
    50    linkToken = Link.getData() /> 
    51<#elseif Custom_Url?? && Custom_Url.getData()?has_content > 
    52    <#assign linkTarget = "target='_blank'" /> 
    53    <#assign linkToken = Custom_Url.getData()> 
    54<#elseif ( (PDF?? && PDF.getData()?has_content) && !(Link?? && Link?has_content) )> 
    55    <#assign linkTarget = "target='_blank'" 
    56    linkToken = PDF.getData() /> 
    57<#else> 
    58    <#assign linkTarget = "" 
    59    linkToken = "https://www.avisonyoung.pl/pl/web/warsaw/news-item/-/article/2020/10/12/q3-2020-in-poland-property-investment-market-report" /> 
    60</#if> 
    61 
    62 
    63<li> 
    64    <a href="${linkToken}" ${linkTarget}> 
    65        <figure> 
    66            <div> 
    67                <img src="${imgSrc}" alt="${imgAltText}"> 
    68            </div> 
    69            <figcaption> 
    70                <div class="ay-blog-tile-title">${Content.getData()}</div> 
    71            </figcaption> 
    72        </figure> 
    73        <div class="ay-blog-post-td">${displayDate}</div> 
    74    </a> 
    75     
    76</li> 
    Wystąpił błąd podczas przetwarzania szablonu.
    The following has evaluated to null or missing:
    ==> By_pass_Cloudflare_optimization  [in template "20302#20342#PERSPECTIVE-THOUGHTLEADERSHIP-ITEM" at line 30, column 33]
    
    ----
    Tip: If the failing expression is known to 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 !getterUtil.getBoolean(By_pass_Cl...  [in template "20302#20342#PERSPECTIVE-THOUGHTLEADERSHIP-ITEM" at line 30, column 5]
    ----
    1<#assign _dlfels = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
    2 
    3<#-- A common display date snippet that retrieves the display date meta data field 
    4 of the web content, saves the original page locale for later, then sets the page 
    5 locale to the portals default locale. Finally it parses the date to a date object 
    6 and sets the page locale back to the original page locale --> 
    7 
    8<#assign displayDate = .vars['reserved-article-display-date'].data> 
    9<#setting time_zone = languageUtil.get(locale, "template-timezone")> 
    10<#assign originalLocale = locale> 
    11<#setting locale = localeUtil.getDefault()> 
    12<#assign displayDate = displayDate?date("EEE, d MMM yyyy HH:mm:ss Z")> 
    13<#setting locale = originalLocale> 
    14<#assign displayDate = displayDate?string("long")> 
    15 
    16<#-- end of common display date snippet --> 
    17 
    18 
    19<#-- set the default image and alt text --> 
    20<#assign imgSrc = Image.getData() > 
    21<#assign imgAltText = Content.getData() > 
    22 
    23<#-- try to set more advanced options of image display --> 
    24<#-- set the base hostname url for environment (local/qa/stg/prod) --> 
    25<#assign imageBaseUri = ui_config.getCdnCgiUri() > 
    26<#-- determine if we want to use CDN Image Optimizations or not --> 
    27<#if ui_config.getUseCdnImageOptimizations() > 
    28<#-- set the instructions to use for optimizing the image(s) in this item --> 
    29    <#assign instructionPath = "/cdn-cgi/image/q=50" > 
    30    <#if !getterUtil.getBoolean(By_pass_Cloudflare_optimization.getData())> 
    31        <#assign imageBaseUri = imageBaseUri + instructionPath > 
    32    </#if> 
    33</#if> 
    34 
    35 
    36<#assign image_attributes = jsonFactoryUtil.createJSONObject(Image.getAttributes()) > 
    37<#if (image_attributes.fileEntryId??) > 
    38    <#assign fileEntryId = image_attributes.fileEntryId?number > 
    39    <#if fileEntryId??> 
    40        <#assign fe = _dlfels.getFileEntry(fileEntryId)> 
    41        <#if fe??> 
    42            <#assign imgSrc = imageBaseUri + "/documents/" + fe.repositoryId +"/"  + fe.fileEntryId + "/" + fe.fileName + "/" + fe.uuid + "?t=" + fe.modifiedDate?long > 
    43            <#assign imgAltText = image_attributes.alt!imgAltText > 
    44        </#if> 
    45    </#if> 
    46</#if> 
    47 
    48<#if (Link?? && Link.getData()?has_content )> 
    49    <#assign linkTarget = "target='_blank'" 
    50    linkToken = Link.getData() /> 
    51<#elseif Custom_Url?? && Custom_Url.getData()?has_content > 
    52    <#assign linkTarget = "target='_blank'" /> 
    53    <#assign linkToken = Custom_Url.getData()> 
    54<#elseif ( (PDF?? && PDF.getData()?has_content) && !(Link?? && Link?has_content) )> 
    55    <#assign linkTarget = "target='_blank'" 
    56    linkToken = PDF.getData() /> 
    57<#else> 
    58    <#assign linkTarget = "" 
    59    linkToken = "https://www.avisonyoung.pl/pl/web/warsaw/news-item/-/article/2020/01/31/poland-investment-summary-2019-" /> 
    60</#if> 
    61 
    62 
    63<li> 
    64    <a href="${linkToken}" ${linkTarget}> 
    65        <figure> 
    66            <div> 
    67                <img src="${imgSrc}" alt="${imgAltText}"> 
    68            </div> 
    69            <figcaption> 
    70                <div class="ay-blog-tile-title">${Content.getData()}</div> 
    71            </figcaption> 
    72        </figure> 
    73        <div class="ay-blog-post-td">${displayDate}</div> 
    74    </a> 
    75     
    76</li> 
    Wystąpił błąd podczas przetwarzania szablonu.
    The following has evaluated to null or missing:
    ==> By_pass_Cloudflare_optimization  [in template "20302#20342#PERSPECTIVE-THOUGHTLEADERSHIP-ITEM" at line 30, column 33]
    
    ----
    Tip: If the failing expression is known to 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 !getterUtil.getBoolean(By_pass_Cl...  [in template "20302#20342#PERSPECTIVE-THOUGHTLEADERSHIP-ITEM" at line 30, column 5]
    ----
    1<#assign _dlfels = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
    2 
    3<#-- A common display date snippet that retrieves the display date meta data field 
    4 of the web content, saves the original page locale for later, then sets the page 
    5 locale to the portals default locale. Finally it parses the date to a date object 
    6 and sets the page locale back to the original page locale --> 
    7 
    8<#assign displayDate = .vars['reserved-article-display-date'].data> 
    9<#setting time_zone = languageUtil.get(locale, "template-timezone")> 
    10<#assign originalLocale = locale> 
    11<#setting locale = localeUtil.getDefault()> 
    12<#assign displayDate = displayDate?date("EEE, d MMM yyyy HH:mm:ss Z")> 
    13<#setting locale = originalLocale> 
    14<#assign displayDate = displayDate?string("long")> 
    15 
    16<#-- end of common display date snippet --> 
    17 
    18 
    19<#-- set the default image and alt text --> 
    20<#assign imgSrc = Image.getData() > 
    21<#assign imgAltText = Content.getData() > 
    22 
    23<#-- try to set more advanced options of image display --> 
    24<#-- set the base hostname url for environment (local/qa/stg/prod) --> 
    25<#assign imageBaseUri = ui_config.getCdnCgiUri() > 
    26<#-- determine if we want to use CDN Image Optimizations or not --> 
    27<#if ui_config.getUseCdnImageOptimizations() > 
    28<#-- set the instructions to use for optimizing the image(s) in this item --> 
    29    <#assign instructionPath = "/cdn-cgi/image/q=50" > 
    30    <#if !getterUtil.getBoolean(By_pass_Cloudflare_optimization.getData())> 
    31        <#assign imageBaseUri = imageBaseUri + instructionPath > 
    32    </#if> 
    33</#if> 
    34 
    35 
    36<#assign image_attributes = jsonFactoryUtil.createJSONObject(Image.getAttributes()) > 
    37<#if (image_attributes.fileEntryId??) > 
    38    <#assign fileEntryId = image_attributes.fileEntryId?number > 
    39    <#if fileEntryId??> 
    40        <#assign fe = _dlfels.getFileEntry(fileEntryId)> 
    41        <#if fe??> 
    42            <#assign imgSrc = imageBaseUri + "/documents/" + fe.repositoryId +"/"  + fe.fileEntryId + "/" + fe.fileName + "/" + fe.uuid + "?t=" + fe.modifiedDate?long > 
    43            <#assign imgAltText = image_attributes.alt!imgAltText > 
    44        </#if> 
    45    </#if> 
    46</#if> 
    47 
    48<#if (Link?? && Link.getData()?has_content )> 
    49    <#assign linkTarget = "target='_blank'" 
    50    linkToken = Link.getData() /> 
    51<#elseif Custom_Url?? && Custom_Url.getData()?has_content > 
    52    <#assign linkTarget = "target='_blank'" /> 
    53    <#assign linkToken = Custom_Url.getData()> 
    54<#elseif ( (PDF?? && PDF.getData()?has_content) && !(Link?? && Link?has_content) )> 
    55    <#assign linkTarget = "target='_blank'" 
    56    linkToken = PDF.getData() /> 
    57<#else> 
    58    <#assign linkTarget = "" 
    59    linkToken = "https://www.avisonyoung.pl/pl/web/warsaw/news-item/-/article/2019/10/03/commercial-property-investment-market-in-poland-summary-2019-trends-forecasts" /> 
    60</#if> 
    61 
    62 
    63<li> 
    64    <a href="${linkToken}" ${linkTarget}> 
    65        <figure> 
    66            <div> 
    67                <img src="${imgSrc}" alt="${imgAltText}"> 
    68            </div> 
    69            <figcaption> 
    70                <div class="ay-blog-tile-title">${Content.getData()}</div> 
    71            </figcaption> 
    72        </figure> 
    73        <div class="ay-blog-post-td">${displayDate}</div> 
    74    </a> 
    75     
    76</li> 
    Wystąpił błąd podczas przetwarzania szablonu.
    The following has evaluated to null or missing:
    ==> By_pass_Cloudflare_optimization  [in template "20302#20342#PERSPECTIVE-THOUGHTLEADERSHIP-ITEM" at line 30, column 33]
    
    ----
    Tip: If the failing expression is known to 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 !getterUtil.getBoolean(By_pass_Cl...  [in template "20302#20342#PERSPECTIVE-THOUGHTLEADERSHIP-ITEM" at line 30, column 5]
    ----
    1<#assign _dlfels = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
    2 
    3<#-- A common display date snippet that retrieves the display date meta data field 
    4 of the web content, saves the original page locale for later, then sets the page 
    5 locale to the portals default locale. Finally it parses the date to a date object 
    6 and sets the page locale back to the original page locale --> 
    7 
    8<#assign displayDate = .vars['reserved-article-display-date'].data> 
    9<#setting time_zone = languageUtil.get(locale, "template-timezone")> 
    10<#assign originalLocale = locale> 
    11<#setting locale = localeUtil.getDefault()> 
    12<#assign displayDate = displayDate?date("EEE, d MMM yyyy HH:mm:ss Z")> 
    13<#setting locale = originalLocale> 
    14<#assign displayDate = displayDate?string("long")> 
    15 
    16<#-- end of common display date snippet --> 
    17 
    18 
    19<#-- set the default image and alt text --> 
    20<#assign imgSrc = Image.getData() > 
    21<#assign imgAltText = Content.getData() > 
    22 
    23<#-- try to set more advanced options of image display --> 
    24<#-- set the base hostname url for environment (local/qa/stg/prod) --> 
    25<#assign imageBaseUri = ui_config.getCdnCgiUri() > 
    26<#-- determine if we want to use CDN Image Optimizations or not --> 
    27<#if ui_config.getUseCdnImageOptimizations() > 
    28<#-- set the instructions to use for optimizing the image(s) in this item --> 
    29    <#assign instructionPath = "/cdn-cgi/image/q=50" > 
    30    <#if !getterUtil.getBoolean(By_pass_Cloudflare_optimization.getData())> 
    31        <#assign imageBaseUri = imageBaseUri + instructionPath > 
    32    </#if> 
    33</#if> 
    34 
    35 
    36<#assign image_attributes = jsonFactoryUtil.createJSONObject(Image.getAttributes()) > 
    37<#if (image_attributes.fileEntryId??) > 
    38    <#assign fileEntryId = image_attributes.fileEntryId?number > 
    39    <#if fileEntryId??> 
    40        <#assign fe = _dlfels.getFileEntry(fileEntryId)> 
    41        <#if fe??> 
    42            <#assign imgSrc = imageBaseUri + "/documents/" + fe.repositoryId +"/"  + fe.fileEntryId + "/" + fe.fileName + "/" + fe.uuid + "?t=" + fe.modifiedDate?long > 
    43            <#assign imgAltText = image_attributes.alt!imgAltText > 
    44        </#if> 
    45    </#if> 
    46</#if> 
    47 
    48<#if (Link?? && Link.getData()?has_content )> 
    49    <#assign linkTarget = "target='_blank'" 
    50    linkToken = Link.getData() /> 
    51<#elseif Custom_Url?? && Custom_Url.getData()?has_content > 
    52    <#assign linkTarget = "target='_blank'" /> 
    53    <#assign linkToken = Custom_Url.getData()> 
    54<#elseif ( (PDF?? && PDF.getData()?has_content) && !(Link?? && Link?has_content) )> 
    55    <#assign linkTarget = "target='_blank'" 
    56    linkToken = PDF.getData() /> 
    57<#else> 
    58    <#assign linkTarget = "" 
    59    linkToken = "https://www.avisonyoung.pl/pl/web/warsaw/news-item/-/article/2019/04/03/mokotow-is-back-investment-market-report-" /> 
    60</#if> 
    61 
    62 
    63<li> 
    64    <a href="${linkToken}" ${linkTarget}> 
    65        <figure> 
    66            <div> 
    67                <img src="${imgSrc}" alt="${imgAltText}"> 
    68            </div> 
    69            <figcaption> 
    70                <div class="ay-blog-tile-title">${Content.getData()}</div> 
    71            </figcaption> 
    72        </figure> 
    73        <div class="ay-blog-post-td">${displayDate}</div> 
    74    </a> 
    75     
    76</li>