#set ($layoutFriendlyURLLocalService = $serviceLocator.findService("com.liferay.portal.kernel.service.LayoutFriendlyURLLocalService"))
#set ($layoutService = $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 = $layoutService.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.getName($locale)))
#set ($layoutURL = $friendlyURL)
#set($itemPair = [$layoutURL, $layoutName])
#set($itemPairInserted = $breadcrumbMap.add($itemPair))
#set ($parentLayout = $layoutService.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.getData() == "" && $generalTitle.getChild('description').getData() == "")
#set($slider = "soloBreadcrumb")
#else
#set($slider = "")
#end
#if($generalTitle.getChild('color').getData() != "")
#set($style = "style='background-color : $generalTitle.getChild('color').getData();'")
#else
#set($style = "")
#end
#if(!$generalTitle.getSiblings().isEmpty())
#end
#set ($dlFileEntryService = $serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService"))
#set ($groupId = $scopeGroupId)
#if($title.getData() != "")
#end
#elseif($cur_document_title.getChild('document_type').getData().trim() == "documento interno")
#if($cur_document_title.getChild('DocumentIntDes').getData() != "")
#end
#elseif($cur_document_title.getChild('document_type').getData().trim() == "Externo")
#if($cur_document_title.getChild('linkExterno').getData() != "")
#end
#end
#end
$title.getData()
#end #foreach ($cur_document_title in $document_title.getSiblings()) #set ($documentUrl = $cur_document_title.getChild('DocumentIntDes').getData()) #set ($lastIndex = $documentUrl.lastIndexOf('/') + 1) #if ($lastIndex >= 0) #set ($uuid = $documentUrl.substring($lastIndex)) #set ($paramIndex = $uuid.lastIndexOf('?')) #if ($paramIndex >= 0) #set ($uuid = $uuid.substring(0, $paramIndex)) #end #end #set ($fileEntry = $dlFileEntryService.getDLFileEntryByUuidAndGroupId($uuid, $groupId)) #if($cur_document_title.getChild('title_link').getData() != "") #set($tooltip = "title='$cur_document_title.getChild('title_link').getData()'") #else #set($tooltip = "") #end #if($cur_document_title.getChild('open_window').getData().trim() == "SI") #set($target = "target='_blank'") #else #set($target = "") #end #if($cur_document_title.getChild('document_type').getData().trim() == "Pagina interna") #if($cur_document_title.getChild('linkInterno').getFriendlyUrl() != "")
#if($cur_document_title.getChild('date').getData() != "")
#set ($Date_DateObj = $dateUtil.parseDate("yyyy-MM-dd", $cur_document_title.getChild('date').getData(), $locale))
#end
$cur_document_title.getData()
#if($cur_document_title.getChild('date').getData() != "")
#set ($Date_DateObj = $dateUtil.parseDate("yyyy-MM-dd", $cur_document_title.getChild('date').getData(), $locale))
#end
#if($cur_document_title.getChild('DocumentIntDes').getChild('show_info').getData().trim() == "SI")
#if($fileEntry.getSize() < 1024)
#set($size = "($fileEntry.getExtension().toUpperCase() " + $fileEntry.getSize() + " Bytes)")
#elseif($fileEntry.getSize() < 1048576)
#set($size = "($fileEntry.getExtension().toUpperCase() " + $fileEntry.getSize()/1024 + " KB)")
#elseif($fileEntry.getSize() < 1073741824)
#set($size = "($fileEntry.getExtension().toUpperCase() " + ($fileEntry.getSize()/1024)/1024 + " MB)")
#elseif($fileEntry.getSize() < 1099511627776)
#set($size = "($fileEntry.getExtension().toUpperCase() " + (($fileEntry.getSize()/1024)/1024)/1024 + " GB)")
#else
#set ($size = "")
#end
#else
#set ($size = "")
#end
$cur_document_title.getData() $size
#if($cur_document_title.getChild('date').getData() != "")
#set ($Date_DateObj = $dateUtil.parseDate("yyyy-MM-dd", $cur_document_title.getChild('date').getData(), $locale))
#end
#if($cur_document_title.getChild('linkExterno').getChild('documentSize').getData != "")
#set ($documentSize = "$cur_document_title.getChild('linkExterno').getChild('documentSize').getData() ")
#else
#set ($documentSize = "")
#end
#if($cur_document_title.getChild('linkExterno').getChild('documentExtension').getData() != "")
#set ($documentExtension = " $cur_document_title.getChild('linkExterno').getChild('documentExtension').getData()")
#else
#set ($documentExtension = "")
#end
#if($documentExtension != "" || $documentSize != "")
#set ($documentinf = "($documentExtension $documentSize)")
#else
#end
$cur_document_title.getData() $documentinf