Toggle navigation
Entrar
Registrar
Home
Application Index
Global
Diretório de Divisões
Application Index
Macros
Código fonte Wiki de
Macros
Última modificação por
Admin Wiki
em 22/06/2017, 18:20
Mostrar números de linha
{{velocity output="false"}} #macro (displayAppEntry $params) #if ($params.icon.startsWith('icon:')) #set ($icon = $services.icon.renderHTML($params.icon.substring(5))) #else #set ($icon = $services.rendering.render($services.rendering.parse("image:${params.icon}", 'xwiki/2.1'), 'xhtml/1.0')) #end <li> <a href="$xwiki.getURL($params.target, 'view', $!{params.targetQueryString})" title="$escapetool.xml($params.label)"> <span class="application-img">$icon</span> <span class="application-label">$escapetool.xml($params.label)</span> </a> </li> #end #macro (maybeDisplayAppEntry $uix $configDoc) #set ($params = $uix.getParameters()) #set ($blackListObj = $configDoc.getObject('PanelsCode.ApplicationsPanelBlackListClass', 'applicationId', $uix.id)) #set ($targetReference = $services.model.resolveDocument($params.target)) #if (!$blackListObj && "$!params.icon" != '' && "$!params.label" != '' && "$!params.target" != '' && $services.security.authorization.hasAccess('view', $targetReference)) #displayAppEntry($params) #end #end #macro (displayAppEntries $extensionPointId $configDoc) #foreach ($uix in $services.uix.getExtensions($extensionPointId, {'sortByParameter': 'label'})) #maybeDisplayAppEntry($uix $configDoc) #end #end {{/velocity}}