[F12] Empreses

#set ($layoutFriendlyURLLocalService = $serviceLocator.findService("com.liferay.portal.kernel.service.LayoutFriendlyURLLocalService")) #set ($layoutLocalService = $serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")) #set ($literalTools = $serviceLocator.findService("com.vidacaixa.services.service", "com.vidacaixa.services.service.LiteralsToolsLocalService")) #set ($scopeGroupId = $scopeGroupId) #set ($locale = $locale) #set ($layoutId = $plid) #set ($layoutIdLong = $getterUtil.getLong($layoutId)) #set ($currentLayout = $layoutLocalService.getLayout($layoutIdLong)) #set ($breadcrumbMap = []) #set ($breadcrumbMapSorted = []) #set ($siteURL = "") #set ($includeUrlPath = $currentLayout.getGroup().getExpandoBridge().getAttribute("incluir-path-url")) #if ($includeUrlPath) #set ($siteURL = "/web" + $currentLayout.getGroup().friendlyURL) #end #foreach($i in [0..100]) #if ($currentLayout.getParentLayoutId() gt 0) #set ($currentLayoutIdLong = $getterUtil.getLong($currentLayout.plid)) #set ($friendlyURL = $layoutFriendlyURLLocalService.getLayoutFriendlyURL($currentLayoutIdLong, $locale.toString()).friendlyURL) #set ($layoutName = $htmlUtil.escape($currentLayout.getTitle($locale))) #set ($layoutURL = $friendlyURL) #set($itemPair = [$layoutURL, $layoutName]) #set($itemPairInserted = $breadcrumbMap.add($itemPair)) #set ($parentLayout = $layoutLocalService.getParentLayout($currentLayout)) #set ($currentLayout = $parentLayout) #else #set ($currentLayoutIdLong = $getterUtil.getLong($currentLayout.plid)) #set ($friendlyURL = $layoutFriendlyURLLocalService.getLayoutFriendlyURL($currentLayoutIdLong, $locale.toString()).friendlyURL) #set ($layoutName = $htmlUtil.escape($currentLayout.getName($locale))) #set ($layoutURL = $friendlyURL) #if ($layoutName ne "Menu principal" && $layoutName ne "Menu secundario") #set($itemPair = [$layoutURL, $layoutName]) #set($itemPairInserted = $breadcrumbMap.add($itemPair)) #end #break #end #end #set ($breadcrumbMapSize = $breadcrumbMap.size() - 1) #foreach( $j in [0..$breadcrumbMapSize] ) #set ($index = $breadcrumbMapSize - $j) #set ($item = $breadcrumbMap.get($index)) #set ($inserted = $breadcrumbMapSorted.add($item)) #end #if($generalTitle.getChild('addBottomMargin').getData().trim() == "NO") #set($margin = "quote") #else #set($margin = "") #end #if($generalTitle.getChild('description').getData() != "") #set ($big = "big") #else #set ($big = "") #end #if($generalTitle.getData() == "" && $generalTitle.getChild('description').getData() == "") #set($cropped = "cropped") #else #set($cropped = "") #end #if (!$generalTitle.getSiblings().isEmpty()) #if($generalTitle.getChild('backgroundType').getData().trim() == "Imagen")
$generalTitle.getChild('backgroundImage').getChild('backgroundImageDescription').getData()
#elseif($generalTitle.getChild('backgroundType').getData().trim() == "Color")
#end
#if($generalTitle.getChild('breadcrumbVisible').getData().trim() == "SI") #end

$generalTitle.getData()

#if($generalTitle.getChild('description').getData() != "")
$generalTitle.getChild('description').getData()
#end
#end

[F14] Acceso Portal de Colectivos

#if ($generalTitle.getData() != "" || $image.getData() != "" || $image.getChild('imageDescription').getData() != "")

#if ($generalTitle.getData() != "") $generalTitle.getData() #end #if ($image.getData() != "" || $image.getChild('imageDescription').getData() != "") #end

#end #if ($description.getData() != "")

$description.getData()

#end #if (!$LinkTitle.getSiblings().isEmpty()) #foreach ($linkItem in $LinkTitle.getSiblings()) #if ($linkItem.getChild('LinkBlank').getData().trim() == "SI") #set( $blankText = "target='_blank'" ) #else #set( $blankText = "" ) #end #if($linkItem.getChild('LinkTooltip').getData() != "") #set($tooltip_link = "title='$linkItem.getChild('LinkTooltip').getData()'") #else #set($tooltip_link = "") #end #if ($linkItem.getChild('LinkType').getData().trim() == "Interno") #if ($linkItem.getChild('LinkInterno') && $linkItem.getChild('LinkInterno').getFriendlyUrl() != "") $linkItem.getData() #end #elseif ($linkItem.getChild('LinkType').getData().trim() == "Externo") #if ($linkItem.getChild('LinkExterno') && $linkItem.getChild('LinkExterno').getData() != "") $linkItem.getData() #end #end #end #end

[F9] Empreses - VidaCaixa Negocis i Empreses

#if (!$commercialTitle.getSiblings().isEmpty()) #foreach ($curelem in $commercialTitle.getSiblings())
$curelem.getChild('commercialImage').getChild('commercialImageDescription').getData()

$curelem.getChild('commercialPrevTitle').getData()

$curelem.getData()

$curelem.getChild('commercialDescription').getData()

#set( $link = $curelem.getChild('LinkTitle') ) #if (!$link.getSiblings().isEmpty()) #foreach ($linkItem in $link.getSiblings()) #if ($linkItem.getChild('LinkBlank').getData().trim() == "SI") #set( $blankText = "target='_blank'" ) #else #set( $blankText = "" ) #end #if($linkItem.getChild('LinkTooltip').getData() != "") #set($tooltip = "title='$linkItem.getChild('LinkTooltip').getData()'") #else #set($tooltip = "") #end #if ($linkItem.getChild('LinkType').getData().trim() == "Interno") #if ($linkItem.getChild('LinkInterno') && $linkItem.getChild('LinkInterno').getFriendlyUrl() != "") $linkItem.getData() #end #elseif ($linkItem.getChild('LinkType').getData().trim() == "Externo") #if ($linkItem.getChild('LinkExterno') && $linkItem.getChild('LinkExterno').getData() != "") $linkItem.getData() #end #end #end #end
#end #end

[F15] Empreses - Solucions adaptades

#if ($generalTitle.getData() != "" || $summary.getData() != "" || $description.getData() != "")
#if ($generalTitle.getData() != "")

$generalTitle.getData()

#end #if ($summary.getData() != "")

$summary.getData()

#end #if ($description.getData() != "") $description.getData() #end
#end #if (!$productTitle.getSiblings().isEmpty()) #foreach ($productItem in $productTitle.getSiblings())
#set( $productLink = $productItem.getChild('LinkTitle') ) #if (!$productLink.getSiblings().isEmpty()) #foreach ($linkItem in $productLink.getSiblings()) #if ($linkItem.getChild('LinkBlank').getData().trim() == "SI") #set( $blankText = "target='_blank'" ) #else #set( $blankText = "" ) #end #if($linkItem.getChild('LinkTooltip').getData() != "") #set($tooltip = "title='$linkItem.getChild('LinkTooltip').getData()'") #else #set($tooltip = "") #end #if ($linkItem.getChild('LinkType').getData().trim() == "Interno") #if ($linkItem.getChild('LinkInterno') && $linkItem.getChild('LinkInterno').getFriendlyUrl() != "")

$productItem.getData()

#end #elseif ($linkItem.getChild('LinkType').getData().trim() == "Externo") #if ($linkItem.getChild('LinkExterno') && $linkItem.getChild('LinkExterno').getData() != "")

$productItem.getData()

#end #end #end #end
$productItem.getChild('enterpriseTitle').getData()

$productItem.getChild('enterpriseTitle').getChild('enterprise').getData()

$productItem.getChild('sectorTitle').getData()

$productItem.getChild('sectorTitle').getChild('sector').getData()

#set( $link = $productItem.getChild('LinkTitle') ) #if (!$link.getSiblings().isEmpty()) #foreach ($linkItem in $link.getSiblings()) #if ($linkItem.getChild('LinkBlank').getData().trim() == "SI") #set( $blankText = "target='_blank'" ) #else #set( $blankText = "" ) #end #if($linkItem.getChild('LinkTooltip').getData() != "") #set($tooltip = "title='$linkItem.getChild('LinkTooltip').getData()'") #else #set($tooltip = "") #end #if ($linkItem.getChild('LinkType').getData().trim() == "Interno") #if ($linkItem.getChild('LinkInterno') && $linkItem.getChild('LinkInterno').getFriendlyUrl() != "") $linkItem.getData() #end #elseif ($linkItem.getChild('LinkType').getData().trim() == "Externo") #if ($linkItem.getChild('LinkExterno') && $linkItem.getChild('LinkExterno').getData() != "") $linkItem.getData() #end #end #end #end
#end #end

[F8][Destacado] Swiss Life Network

#if (!$commercialTitle.getSiblings().isEmpty()) #foreach ($curelem in $commercialTitle.getSiblings()) #if($curelem.getChild('margin').getData().trim() == "SI") #end #end

[F16] Contacta amb nosaltres - Empreses

#if (!$generalTitle.getSiblings().isEmpty()) #foreach ($curelem in $generalTitle.getSiblings())

$curelem.getData()

#end #end #if (!$phoneTitle.getSiblings().isEmpty()) #foreach ($phoneItem in $phoneTitle.getSiblings())
#if ($phoneItem.getData() != "")

$phoneItem.getData()

#end #set( $phoneSummary = $phoneTitle.getChild('phoneSummary') ) #if (!$phoneSummary.getSiblings().isEmpty()) #foreach ($phoneSummaryItem in $phoneSummary.getSiblings())

$phoneSummaryItem.getData()

#if($phoneSummary.getChild('LinkPhoneTooltip').getData() != "") #set($tooltip_phone = "title='$phoneSummary.getChild('LinkPhoneTooltip').getData()'") #else #set($tooltip_phone = "") #end $phoneSummaryItem.getChild('LinkPhoneTitle').getData() #end #end
#end #end #if (!$emailTitle.getSiblings().isEmpty()) #foreach ($emailItem in $emailTitle.getSiblings())
#if ($emailItem.getData() != "")

$emailItem.getData()

#end #set( $emailSummary = $emailTitle.getChild('emailSummary') ) #if (!$emailSummary.getSiblings().isEmpty()) #foreach ($emailSummaryItem in $emailSummary.getSiblings())

$emailSummaryItem.getData()

#if ($emailSummaryItem.getChild('LinkBlank').getData().trim() == "SI") #set( $blankText = "target='_blank'" ) #else #set( $blankText = "" ) #end #if($emailSummaryItem.getChild('LinkEmailTooltip').getData() != "") #set($tooltip_email = "title='$emailSummaryItem.getChild('LinkEmailTooltip').getData()'") #else #set($tooltip_email = "") #end #if($emailSummaryItem.getChild('LinkType').getData().trim() == "interno") #if($emailSummaryItem.getChild('LinkInterno') && $emailSummaryItem.getChild('LinkInterno').getFriendlyUrl() != "") $emailSummaryItem.getChild('LinkEmailTitle').getData() #end #else #if($emailSummaryItem.getChild('LinkType').getData().trim() == "externo") #if($emailSummaryItem.getChild('LinkExterno') && $emailSummaryItem.getChild('LinkExterno').getData() != "") $emailSummaryItem.getChild('LinkEmailTitle').getData() #end #end #end #end #end
#end #end

[F11] Per què VidaCaixa

#if ($generalTitle.getData() != "") #if($generalTitle.getChild('image').getChild('imageDescription').getData() != "") #set($image_description = "alt='$generalTitle.getChild('image').getChild('imageDescription').getData()'") #else #set($image_description = "") #end

$generalTitle.getData()

#end #if (!$columnTitle.getSiblings().isEmpty())
#foreach ($curelem in $columnTitle.getSiblings()) #if ($curelem.getChild('columnHighlighted').getData().trim() == "SI") #set( $columnHighlighted = "is-blue" ) #set( $highlights-itemTitle = "" ) #set( $linkWhite = "is-white" ) #else #set( $columnHighlighted = "" ) #set( $highlights-itemTitle = "highlights-itemTitle" ) #set( $linkWhite = "" ) #end #set( $link = $curelem.getChild('LinkTitle') ) #if ($link.getChild('LinkBlank').getData().trim() == "SI") #set( $blankText = "target='_blank'" ) #else #set( $blankText = "" ) #end #if($link.getChild('LinkTooltip').getData() != "") #set($link_tooltip = "title='$link.getChild('LinkTooltip').getData()'") #else #set($link_tooltip = "") #end

$curelem.getData()

$curelem.getChild('columnDescription').getData()

#if ($link.getChild('LinkVisible').getData().trim() == "SI") #if ($link.getChild('LinkType').getData().trim() == "Interno") #if ($link.getChild('LinkInterno') && $link.getChild('LinkInterno').getFriendlyUrl() != "") $link.getData() #end #elseif ($link.getChild('LinkType').getData().trim() == "Externo") #if ($link.getChild('LinkExterno') && $link.getChild('LinkExterno').getData() != "") $link.getData() #end #end #end
#end
#end