<configure
     xmlns="http://namespaces.zope.org/zope"
     xmlns:i18n="http://namespaces.zope.org/i18n"
     xmlns:five="http://namespaces.zope.org/five"
     xmlns:browser="http://namespaces.zope.org/browser"
     xmlns:plone="http://namespaces.plone.org/plone"
     i18n_domain="ploneintranet">


  <include package="ploneintranet.layout" file="permissions.zcml" />

  <browser:page
      name="search"
      for="plone.app.layout.navigation.interfaces.INavigationRoot"
      permission="ploneintranet.viewsite"
      class=".searchresults.SearchResultsView"
      template="templates/all_results.pt"
      layer="..interfaces.IPloneintranetSearchLayer"
      />

  <browser:page
      name="search"
      for="ploneintranet.userprofile.content.userprofile.IUserProfile"
      permission="zope2.View"
      class=".searchresults.UserSearchResultsView"
      template="templates/all_results.pt"
      layer="..interfaces.IPloneintranetSearchLayer"
      />

   <browser:page
       name="search_images"
       for="plone.app.layout.navigation.interfaces.INavigationRoot"
       permission="ploneintranet.viewsite"
       class=".searchresults.SearchResultsView"
       template="templates/image_results.pt"
       layer="..interfaces.IPloneintranetSearchLayer"
       />

    <browser:page
       name="search_files"
       for="plone.app.layout.navigation.interfaces.INavigationRoot"
       permission="ploneintranet.viewsite"
       class=".searchresults.SearchResultsView"
       template="templates/file_results.pt"
       layer="..interfaces.IPloneintranetSearchLayer"
       />

    <browser:page
       name="search_people"
       for="plone.app.layout.navigation.interfaces.INavigationRoot"
       permission="ploneintranet.viewsite"
       class=".searchresults.SearchResultsView"
       template="templates/people_results.pt"
       layer="..interfaces.IPloneintranetSearchLayer"
       />

    <browser:viewlet
       name="plone.searchbox"
       manager="plone.app.layout.viewlets.interfaces.IPortalHeader"
       template="templates/plone.searchbox.pt"
       permission="zope2.View"
       layer="..interfaces.IPloneintranetSearchLayer"
       />

</configure>
