All Downloads are FREE. Search and download functionalities are using the official Maven repository.

langs.html5ftl.image.vm Maven / Gradle / Ivy

The newest version!
#set ($altParam = ${language.getParam("alt", $item.altText)})
#set ($titleParam = ${language.getParam("title", $item.altText)})
<#assign value="">
<\#if $locale??>
  <#assign $localeData=[
  #foreach ($entry in ${item.getI18n().entrySet()})
    "${entry.getKey()}" => "${entry.getValue()}",
  #end
    "LAST_ELEMENT_KEY", "LAST_ELEMENT_VALUE"
  ] >
  #set($i18nval = '$localeData[$locale]')
  <\#if ${i18nval}??>
    <#assign $value = $i18nval >
  

#set ($idParam = ${language.getParam("id", $item.id)})
#set ($heightParam = ${language.getParam("height", $item.height)})
#set ($widthParam = ${language.getParam("width", $item.width)})
#set ($srcParam = ${language.getParam("src", $item.url)})
<\#macro printi18nimg text>
    #set($conditionStart = '$text?? && $text?contains')
    #set($conditionEnd = '!($value??)')
    #set($variableRef = '${value}')
    <\#if ${conditionStart}("alt=") && $conditionEnd>
    <\#else> alt="${variableRef}" 
    <\#if ${conditionStart}("title=") && $conditionEnd>
    <\#else> title="${variableRef}" 

#set ($oneventxParam = ${language.getOnEventParams($item)})
#if($idParam)$idParam#end#if($heightParam)$heightParam#end#if($widthParam)$widthParam#end#if($srcParam)$srcParam#end />




© 2015 - 2024 Weber Informatics LLC | Privacy Policy