#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