<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    xmlns:zcml="http://namespaces.zope.org/zcml"
    >

  <browser:viewlet
      name="plone.globalstatusmessage"
      manager="plone.app.layout.viewlets.interfaces.IGlobalStatusMessage"
      class=".globalstatusmessage.GlobalStatusMessage"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:viewlet
      name="plone.global_sections"
      manager="plone.app.layout.viewlets.interfaces.IMainNavigation"
      class=".common.GlobalSectionsViewlet"
      template="sections.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:viewlet
      name="ploneintranet.htmlhead.metadata"
      manager="plone.app.layout.viewlets.interfaces.IHtmlHead"
      class=".metadata.Viewlet"
      template="templates/metadata.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:viewlet
      name="plone.logo"
      manager="plone.app.layout.viewlets.interfaces.IPortalHeader"
      class=".common.LogoViewlet"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:viewlet
      name="plone.personal_bar"
      manager="plone.app.layout.viewlets.interfaces.IPortalTop"
      class=".personalbar.PersonalBarViewlet"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />


  <browser:viewlet
      name="plone.path_bar"
      manager="plone.app.layout.viewlets.interfaces.IAboveContent"
      class=".common.PIPathBarViewlet"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <!--
         zope.Public because this viewlet is for the anonymous
    -->
  <browser:viewlet
      name="plone.anontools"
      manager="plone.app.layout.viewlets.interfaces.IPortalTop"
      template="templates/anontools.pt"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:viewlet
      name="ploneintranet.osh_toggle"
      manager="plone.app.layout.viewlets.interfaces.IPortalTop"
      class=".on_screen_help.Viewlet"
      template="templates/on-screen-help.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:viewlet
      name="ploneintranet.zopeuser_warning"
      manager="plone.app.layout.viewlets.interfaces.IPortalTop"
      class=".zopeuser.WarningViewlet"
      template="zopeuser_warning.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <!--
         zope.Public with attribute protection taken from upstream
         Products/CMFPlone/browser/configure.zcml
    -->
  <browser:page
      name="breadcrumbs_view"
      for="*"
      class=".navigation.OneLevelBreadcrumbs"
      allowed_attributes="breadcrumbs"
      permission="zope.Public"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <!-- Show site actions with theme switcher also in header -->
  <browser:viewlet
      name="ploneintranet.site_actions"
      manager="plone.app.layout.viewlets.interfaces.IPortalTop"
      class="plone.app.layout.viewlets.common.SiteActionsViewlet"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.IPloneintranetLayoutLayer"
      />

  <browser:viewlet
      name="ploneintranet.push"
      manager="plone.app.layout.viewlets.interfaces.IHtmlHeadLinks"
      class=".push.Headers"
      template="templates/push.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.IPloneintranetLayoutLayer"
      />

  <!-- viewlets that are only active in Barceloneta -->

  <browser:viewlet
      name="plone.manage_portlets_fallback"
      for="plone.portlets.interfaces.ILocalPortletAssignable"
      view="plone.app.layout.globals.interfaces.IViewView"
      manager="plone.app.layout.viewlets.interfaces.IBelowContent"
      class=".disabled.DisabledViewlet"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:viewlet
      name="plone.documentbyline"
      manager="plone.app.layout.viewlets.interfaces.IBelowContentTitle"
      class=".disabled.DisabledViewlet"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:viewlet
      name="ploneintranet.testsitemarker"
      manager="plone.app.layout.viewlets.interfaces.IScripts"
      class=".resources.TestSiteMarkerViewlet"
      template="testsitemarker.pt"
      permission="zope2.Public"
      layer="ploneintranet.layout.interfaces.IPloneintranetLayoutLayer"
      zcml:condition="envvar TEST_SITE_MARKER"
      />

</configure>
