<?xml version="1.0" encoding="utf-8" ?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  The ASF licenses this file to You
  under the Apache License, Version 2.0 (the "License"); you may not
  use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.  For additional information regarding
  copyright in this work, please see the NOTICE file in the top level
  directory of this distribution.
-->
<!DOCTYPE tiles-definitions PUBLIC 
   "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" 
   "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
<tiles-definitions>
    
    <definition name=".tiles-mainmenupage" template="/WEB-INF/jsps/tiles/tiles-mainmenupage.jsp">
        <put-attribute name="banner"       value="/WEB-INF/jsps/tiles/bannerStatus.jsp" />
        <put-attribute name="head"         value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="styles"       value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="messages"     value="/WEB-INF/jsps/tiles/messages.jsp" />
        <put-attribute name="content"      value="${content}" />
        <put-attribute name="sidebar"      value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="footer"       value="/WEB-INF/jsps/tiles/footer.jsp" />
    </definition>
    
    <definition name=".tiles-tabbedpage" template="/WEB-INF/jsps/tiles/tiles-tabbedpage.jsp">
        <put-attribute name="banner"       value="/WEB-INF/jsps/tiles/bannerStatus.jsp" />
        <put-attribute name="userStatus"   value="/WEB-INF/jsps/tiles/userStatus.jsp" />
        <put-attribute name="head"         value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="styles"       value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="menu"         value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="sidemenu"     value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="messages"     value="/WEB-INF/jsps/tiles/messages.jsp" />
        <put-attribute name="content"      value="${content}" />
        <put-attribute name="sidebar"      value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="footer"       value="/WEB-INF/jsps/tiles/footer.jsp" />
    </definition>

    <definition name=".tiles-simplepage" template="/WEB-INF/jsps/tiles/tiles-simplepage.jsp">
        <put-attribute name="banner"       value="/WEB-INF/jsps/tiles/bannerStatus.jsp" />
        <put-attribute name="head"         value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="styles"       value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="messages"     value="/WEB-INF/jsps/tiles/messages.jsp" />
        <put-attribute name="content"      value="${content}" />
        <put-attribute name="footer"       value="/WEB-INF/jsps/tiles/footer.jsp" />
    </definition>

    <definition name=".tiles-loginpage" template="/WEB-INF/jsps/tiles/tiles-loginpage.jsp">
        <put-attribute name="banner"       value="/WEB-INF/jsps/tiles/bannerStatus.jsp" />
        <put-attribute name="head"         value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="styles"       value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="messages"     value="/WEB-INF/jsps/tiles/messages.jsp" />
        <put-attribute name="content"      value="${content}" />
        <put-attribute name="footer"       value="/WEB-INF/jsps/tiles/footer.jsp" />
    </definition>

    <definition name=".tiles-installpage" template="/WEB-INF/jsps/tiles/tiles-installpage.jsp">
        <put-attribute name="banner"       value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="head"         value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="styles"       value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="messages"     value="/WEB-INF/jsps/tiles/messages.jsp" />
        <put-attribute name="content"      value="${content}" />
        <put-attribute name="footer"       value="/WEB-INF/jsps/tiles/footer.jsp" />
    </definition>
    
    <definition name=".tiles-errorpage" template="/WEB-INF/jsps/tiles/tiles-errorpage.jsp">
        <put-attribute name="banner"       value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="head"         value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="styles"       value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="messages"     value="/WEB-INF/jsps/tiles/messages.jsp" />
        <put-attribute name="content"      value="${content}" />
        <put-attribute name="footer"       value="/WEB-INF/jsps/tiles/footer.jsp" />
    </definition>
    
    <definition name=".tiles-popuppage" template="/WEB-INF/jsps/tiles/tiles-popuppage.jsp">
        <put-attribute name="banner"       value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="messages"     value="/WEB-INF/jsps/tiles/messages.jsp" />
        <put-attribute name="styles"       value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="content"      value="${content}" />
    </definition>

    <definition name=".tiles-popuppage-only-content" extends=".tiles-popuppage">
        <put-attribute name="content"      value="${content}" />
    </definition>
    
    <!-- error pages -->
    <definition name=".denied" extends=".tiles-errorpage" >
        <put-attribute name="content" value="/roller-ui/errors/denied.jsp" />
    </definition>
    
        
    <!-- core pages (and associates) -->
    <definition name=".Login" extends=".tiles-loginpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/Login.jsp" />
        <put-attribute name="styles"  value="/WEB-INF/jsps/core/Login-css.jsp" />
    </definition>
    
    <definition name=".Register" extends=".tiles-simplepage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/Register.jsp" />
    </definition>
    
    <definition name=".Welcome" extends=".tiles-simplepage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/Welcome.jsp" />
    </definition>
    
    <definition name=".Profile" extends=".tiles-simplepage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/Profile.jsp" />
    </definition>

    <definition name=".OAuthKeys" extends=".tiles-simplepage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/OAuthKeys.jsp" />
    </definition>

    <definition name=".OAuthAuthorize" extends=".tiles-simplepage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/OAuthAuthorize.jsp" />
    </definition>

    <definition name=".CreateWeblog" extends=".tiles-simplepage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/CreateWeblog.jsp" />
    </definition>

    <definition name=".GenericError" extends=".tiles-simplepage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/GenericError.jsp" />
    </definition>

    <definition name=".MainMenu" extends=".tiles-mainmenupage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/MainMenu.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/core/MainMenuSidebar.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>
    
    
        <!-- setup pages -->
    <definition name=".Setup" extends=".tiles-simplepage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/Setup.jsp" />
    </definition>
    
    <definition name=".CreateDatabase" extends=".tiles-installpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/CreateDatabase.jsp" />
        <put-attribute name="footer" value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="banner" value="/WEB-INF/jsps/tiles/bannerInstallation.jsp" />
    </definition>

    <definition name=".UpgradeDatabase" extends=".tiles-installpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/UpgradeDatabase.jsp" />
        <put-attribute name="footer" value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="banner" value="/WEB-INF/jsps/tiles/bannerInstallation.jsp" />
    </definition>
    
    <definition name=".DatabaseError" extends=".tiles-installpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/DatabaseError.jsp" />
        <put-attribute name="footer" value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="banner" value="/WEB-INF/jsps/tiles/bannerInstallation.jsp" />
    </definition>
    
    <definition name=".Bootstrap" extends=".tiles-installpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/core/UnknownError.jsp" />
        <put-attribute name="footer" value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="banner" value="/WEB-INF/jsps/tiles/bannerInstallation.jsp" />
    </definition>
    

    <!-- global admin pages (and associates) -->
    <definition name=".GlobalConfig" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/admin/GlobalConfig.jsp" />
    </definition>
    
    <definition name=".UserAdmin" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/admin/UserAdmin.jsp" />
    </definition>
    
    <definition name=".UserEdit" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/admin/UserEdit.jsp" />
    </definition>
    
    <definition name=".GlobalCommentManagement" extends=".tiles-tabbedpage" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/Comments.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/editor/CommentsSidebar.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>
    
    <definition name=".PingTargets" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/admin/PingTargets.jsp" />
    </definition>

    <definition name=".PingTargetEdit" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>
    
    <definition name=".CacheInfo" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/admin/CacheInfo.jsp" />
    </definition>
    
    <definition name=".PlanetConfig" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/admin/PlanetConfig.jsp" />
    </definition>
    
    <definition name=".PlanetGroupSubs" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/admin/PlanetGroupSubs.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/admin/PlanetGroupSubsSidebar.jsp" />
    </definition>
    
    <definition name=".PlanetGroups" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/admin/PlanetGroups.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/admin/PlanetGroupSidebar.jsp" />
    </definition>

    <!-- weblog editor pages (and associates) -->
    <definition name=".MediaFileAdd" extends=".tiles-tabbedpage" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/MediaFileAdd.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".MediaFileEdit" extends=".tiles-popuppage" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/MediaFileEdit.jsp" />
    </definition>

    <definition name=".MediaFileAddExternalInclude" extends=".tiles-popuppage-only-content" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/MediaFileAddExternalInclude.jsp" />
    </definition>

    <definition name=".MediaFileImageChooser" extends=".tiles-popuppage-only-content" >
        <put-attribute name="head"     value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content"  value="/WEB-INF/jsps/editor/MediaFileImageChooser.jsp" />
        <put-attribute name="messages" value="/WEB-INF/jsps/tiles/messages.jsp" />
    </definition>

    <definition name=".MediaFileImageDimension" extends=".tiles-popuppage-only-content" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/MediaFileImageDimension.jsp" />
    </definition>

    <definition name=".MediaFileAddInclude" extends=".tiles-popuppage" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/MediaFileAdd.jsp" />
    </definition>

    <definition name=".MediaFileAddSuccessInclude" extends=".tiles-popuppage" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/MediaFileAddSuccessInclude.jsp" />
    </definition>
    
    <definition name=".MediaFileEditSuccess" extends=".tiles-popuppage" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/MediaFileEditSuccess.jsp" />
    </definition>

    <definition name=".MediaFileView" extends=".tiles-tabbedpage" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/MediaFileView.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/editor/MediaFileSidebar.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".MediaFileAddSuccess" extends=".tiles-tabbedpage" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/MediaFileAddSuccess.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".EntryEdit" extends=".tiles-tabbedpage" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/EntryEdit.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/editor/EntrySidebar.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".Entries" extends=".tiles-tabbedpage" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/Entries.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/editor/EntriesSidebar.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".Comments" extends=".tiles-tabbedpage" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/Comments.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/editor/CommentsSidebar.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>
    
    <definition name=".Categories" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/Categories.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/editor/CategoriesSidebar.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".CategoryEdit" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".CategoryRemove" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".Bookmarks" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/Bookmarks.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/editor/BookmarksSidebar.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".BookmarksImport" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/BookmarksImport.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".BookmarkEdit" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".FolderEdit" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/tiles/empty.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <!-- weblog admin pages (and associates) -->
    <definition name=".WeblogConfig" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/WeblogConfig.jsp" />
    </definition>
    
    <definition name=".WeblogRemoveConfirm" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/WeblogRemoveConfirm.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>
    
    <definition name=".ThemeEdit" extends=".tiles-tabbedpage" >
        <put-attribute name="head" value="/WEB-INF/jsps/tiles/head.jsp" />
        <put-attribute name="content" value="/WEB-INF/jsps/editor/ThemeEdit.jsp" />
    </definition>
    
    <definition name=".StylesheetEdit" extends=".tiles-tabbedpage"  >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/StylesheetEdit.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".Templates" extends=".tiles-tabbedpage"  >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/Templates.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/editor/TemplatesSidebar.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>
    
    <definition name=".TemplateEdit" extends=".tiles-tabbedpage"  >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/TemplateEdit.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".Members" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/Members.jsp" />
        <put-attribute name="sidebar" value="/WEB-INF/jsps/editor/MembersSidebar.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>
    
    <definition name=".MembersInvite" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/MembersInvite.jsp" />
        <put-attribute name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" />
    </definition>

    <definition name=".MemberResign" extends=".tiles-simplepage" >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/MemberResign.jsp" />
    </definition>

    <definition name=".Pings" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/Pings.jsp" />
    </definition>

    <definition name=".Maintenance" extends=".tiles-tabbedpage" >
        <put-attribute name="content" value="/WEB-INF/jsps/editor/Maintenance.jsp" />
    </definition>
    
</tiles-definitions>
