Toggle navigation
Entrar
Registrar
BNMP2
Índice de Documentos
Diretório de Usuários
Application Index
Global
Diretório de Divisões
You need to login to start the chat system
Application Index
Macros
Código fonte Wiki de
Macros
Última modificação por superadmin em 18/01/2018, 13:51
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}}