<?xml version="1.0" encoding="UTF-8"?>
<ajxpdriver name="ajxp_conf" label="CONF_MESSAGE[Admin Driver]" description="CONF_MESSAGE[Access AjaXplorer configuration data.]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
    <plugin_info>
        <core_relation packaged="true" tested_version="4.2.0"/>
        <plugin_author>Charles du Jeu</plugin_author>
    </plugin_info>
	<client_settings icon="plugins/access.ajxp_conf/admin.png">
		<resources>
			<i18n namespace="ajxp_conf" path="plugins/access.ajxp_conf/i18n" />		
			<i18n namespace="ajxp_shared" path="plugins/access.ajxp_shared/i18n" />
			<js file="plugins/access.ajxp_conf/class.ConfigEditor.js" className="ConfigEditor"/>			
		</resources>
	</client_settings>
	<registry_contributions>
		<client_configs>
            <template_part theme="umbra" ajxpId="sidebar_splitter" ajxpClass="AjxpPane" ajxpOptions='{"fit":"height"}'><![CDATA[
                <div id="folderPane" ajxpClass="FoldersTree" ajxpOptions='{"display":"dz","replaceScroller":true}' ajxpPaneHeader="165" ajxpPaneIcon="view_tree.png" style="margin:20px;"></div>
                <style>
                    #sidebar_splitter{padding-bottom:20px;background-color:#EFD585;}
                    .webfx-tree-item:first-of-type{
                        display:none;
                    }
                    .webfx-tree-container>.webfx-tree-item:first-of-type{
                        display:block;
                    }
                    .webfx-tree-container.first_container{
                        margin-left: -19px;
                    }
                    .webfx-tree-container > .webfx-tree-item {
                        font-weight: bold;
                    }
                    .webfx-tree-container > .webfx-tree-container > .webfx-tree-item {
                        font-weight: normal;
                    }
                </style>
            ]]></template_part>
            <template_part ajxpClass="AjxpPane" ajxpId="info_panel" ajxpOptions='{}'><![CDATA[
                    <style>
                        .webfx-tree-item:first-of-type{
                            display:none;
                        }
                        .webfx-tree-container>.webfx-tree-item:first-of-type{
                            display:block;
                        }
                        .webfx-tree-container.first_container{
                            margin-left: -19px;
                        }
                        .action_bar a, .menu.desktop.toolbarmenu, div.editor_header a{
                            background-color: rgb(78, 154, 179) !important;
                        }
                        .dialogTitle {
                            background-color: rgb(78, 154, 179) !important;
                            border-bottom: 1px solid rgb(50, 102, 119) !important;
                        }
                        #switch_to_settings_button {
                            display: none !important;
                        }
                        .developerDoc{
                            font-size: 12px !important;
                            line-height: 18px !important;
                            padding-bottom: 5px;
                        }
                        .developerApiAccess{
                            display: inline-block;
                            margin: 5px 0;
                        }
                        .table_rows_container td{
                            vertical-align:top;
                        }
                    </style>
                    <script>
                        var splitter = $("vertical_splitter").ajxpPaneObject;
                        splitter.paneB._max = 1;
                        splitter.options.maxB = 1;
                        splitter.resizeGroup();
                        document.observe("ajaxplorer:user_logged", function(){
                            if(ajaxplorer.repositoryId == "ajxp_conf"){
                                splitter.paneB._max = 1;
                                splitter.options.maxB = 1;
                            }else{
                                splitter.paneB._max = 0;
                                splitter.options.maxB = 0;
                                if(splitter.foldedPane && splitter.foldedPane == splitter.paneB){
                                    splitter.paneB.setStyle({width:'26px'});
                                }
                            }
                            splitter.resizeGroup();
                        });
                    </script>
                    ]]></template_part>
            <template_part ajxpClass="AjxpTabulator" theme="vision" ajxpId="topPane" ajxpOptions='{"defaultTabId": "folders","tabInfos" : [{"id":"folders","label":"130","iconClass":"icon-folder-open","element":"folder_pane"},{"id":"flagged","label":"147","iconClass":"icon-star","element":"flagged_elements"}],"headerToolbarOptions":{"submenuClassName":"panelHeaderMenu","submenuPosition":"bottom right","submenuOffsetTop":12,"toolbarsList":["filter"],"skipBubbling":true, "skipCarousel":true,"submenuOffsetTop":2}}'><![CDATA[
                <div id="folder_pane" ajxpClass="FoldersTree" ajxpOptions='{"display":"dz","replaceScroller":true}' ></div>
                <div id="flagged_elements" ajxpClass="FetchedResultPane" ajxpOptions='{"nodeProviderProperties":{"get_action":"get_bookmarks", "format":"node_list"},"reloadOnServerMessage":"tree/reload_bookmarks"}'></div>
            ]]></template_part>
            <component_config className="Splitter::vertical_splitter">
                <property name="resize" value="100%"/>
            </component_config>
		</client_configs>
		<external_file filename="plugins/access.ajxp_conf/ajxp_confActions.xml" include="actions/*"/>
		<external_file filename="plugins/access.ajxp_shared/manifest.xml" include='registry_contributions/actions/action[@name="clear_expired"]'/>
		<external_file filename="plugins/access.ajxp_conf/ajxp_confActions.xml" include="client_configs/*"/>
	</registry_contributions>	
	<class_definition filename="plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php" classname="ajxp_confAccessDriver"/>
</ajxpdriver>