<?xml version="1.0" encoding="UTF-8"?>
<ajxpdriver id="access.ajxp_home" enabled="always" label="CONF_MESSAGE[Welcome Page]" description="CONF_MESSAGE[Welcome Page displaying a list of workspaces]"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
	<client_settings icon="plugins/access.ajxp_home/share.png">
		<resources>
			<i18n namespace="user_home" path="plugins/access.ajxp_home/res/i18n" />
            <js className="WelcomeComponents" file="plugins/access.ajxp_home/res/build/WelcomeComponents.js" depends="React,ReactPydio,LeftNavigation"/>
            <css file="plugins/access.ajxp_home/res/home.css" autoload="true"/>
		</resources>
        <node_provider ajxpClass="EmptyNodeProvider" ajxpOptions="{}"/>
	</client_settings>
    <server_settings>
        <global_param name="SIMPLE_CLICK_WS_OPEN" type="boolean" label="CONF_MESSAGE[Open workspace by simple click]"
                      description="CONF_MESSAGE[Open workspace by simple click instead of double click.]" default="true" expose="true"/>
        <global_param name="ENABLE_GETTING_STARTED" type="boolean"
                      label="CONF_MESSAGE[Enable Getting Started]" description="CONF_MESSAGE[Enable addition tabulation to access getting started videos]" default="true" expose="true"/>
        <global_param name="URL_APP_IOSAPPSTORE" type="string" expose="true"
                      label="CONF_MESSAGE[iOS App URL]" description="CONF_MESSAGE[URL of the iOS application]" default="https://itunes.apple.com/us/app/pydio/id709275884?mt=8"/>
        <global_param name="URL_APP_ANDROID" type="string" expose="true"
                      label="CONF_MESSAGE[Android App URL]" description="CONF_MESSAGE[URL of the Android application]" default="https://play.google.com/store/apps/details?id=com.pydio.android.Client"/>
        <global_param name="URL_APP_SYNC_WIN" type="string" expose="true"
                      label="CONF_MESSAGE[Windows PydioSync URL]" description="CONF_MESSAGE[URL of the windows sync application]" default="https://pydio.com/en/features/downloads/pydiosync-desktop-app/"/>
        <global_param name="URL_APP_SYNC_MAC" type="string" expose="true"
                      label="CONF_MESSAGE[Mac PydioSync URL]" description="CONF_MESSAGE[URL of the mac sync application]" default="https://pydio.com/en/features/downloads/pydiosync-desktop-app/"/>
        <global_param name="DISPLAY_SERVER_QRCODE_ACTION" type="boolean" label="CONF_MESSAGE[Display Server QRCode]"
                      description="CONF_MESSAGE[Let users connect easily to the latest mobile applications by displaying a QRCode]" default="false"/>
    </server_settings>
	<registry_contributions>
        <actions>
            <action name="display-server-qrcode">
                <gui src="folder.png" iconClass="mdi mdi-qrcode-scan" text="user_home.72" title="user_home.73">
                    <context actionBarGroup="utils" actionBar="true" dir="true" recycle="true" selection="false" ajxpWidgets="UserWidget::logging_string"/>
                </gui>
                <processing>
                    <clientCallback prepareModal="false"><![CDATA[
                        var dialog = new AjxpReactDialogLoader('WelcomeComponents', 'QRCodeDialogLoader', {});
                        dialog.openDialog('qrcode_dialog_form', true);
                    ]]></clientCallback>
                    <clientForm id="qrcode_dialog_form"><![CDATA[
                        <div id="qrcode_dialog_form" box_width="296" box_padding="0" class="react-mui-context SF_material"></div>
                    ]]></clientForm>
                </processing>
            </action>
        </actions>
		<client_configs>
            <template_part theme="umbra" ajxpId="sidebar_splitter" ajxpClass="AjxpPane" ajxpOptions='{"fit":"height","fake":"option"}'><![CDATA[
                <div id="folderPane" ajxpClass="FoldersTree" ajxpOptions='{"display":"dz","replaceScroller":true}' ajxpPaneHeader="363" ajxpPaneIcon="view_tree.png" style="margin:20px;"></div>
                <style>#sidebar_splitter{padding-bottom:20px;background-color:#A0C0A4;}</style>
            ]]></template_part>
            <template_part ajxpClass="AjxpPane" ajxpId="workspace_toolbar" ajxpOptions='{"fit":"none"}' theme="vision"><![CDATA[
                <div id="search_container_settings" class="settings_search_container" style="display:none;" ajxpClass="SearchEngine" ajxpOptions='{"toggleResultsVisibility":"search_results_cont", "fitMarginBottom":20}'></div>
                <style>
                #workspace_toolbar{
                    display:none;
                }
                #browser{
                    padding:0;
                    background-color: #ACB2B9;
                }
                div.flat_tabulator span.toggleHeader{
                    background-color: #e35d52;
                }
                .largeButton, .SF_input.SF_inlineButton{
                    background-color: #e35d52;
                }
                .action_bar{
                    background-color: #ebedf0;
                    padding: 4px;
                    border-left:1px solid #5C5C5C;
                }
                #user_profile_form, div.class-FetchedResultPane{
                    border-left:1px solid #5C5C5C;
                }
                #account_pane .action_bar{
                    text-align: right;
                }
                .action_bar a{
                    background-color: #e35d52;
                    margin-top:3px;
                    cursor: pointer;
                }
                div.class-FetchedResultPane{
                    background-color: #f8f8f8;
                }
                #buttons_bar{
                    padding-bottom: 2px;
                    text-align: right;
                }
                #buttons_bar a {
                    padding-bottom: 0;
                    height: 26px;
                }
                .action_bar span.actionbar_button_label{
                    font-size: 11px;
                }
                .flat_tabulator div.panelHeader.tabulatorContainer{
                    background-color: #30383A;
                    padding-top: 10px;
                }
                .flat_tabulator span.toggleHeader:first-of-type {
                    background-color: #e35d52 !important;
                }
                .flat_tabulator span.toggleHeader.toggleInactive {
                    background-color: rgba(119, 119, 119, 0.35) !important;
                }
                </style>
            ]]></template_part>
            <template_part ajxpClass="AjxpPane" ajxpId="browser" ajxpOptions='{"fit":"height"}' theme="vision"><![CDATA[
                <div id="home_account_pane" ajxpClass="UserDashboardHome" class="vertical_fit horizontal_layout">
                    <div id="home_left_bar" ajxpClass="AjxpPane" ajxpOptions='{"fit":"height"}'>
                        <div id="welcome"></div>
                        <div id="workspaces_center" ajxpClass="AjxpPane"  ajxpOptions='{"fit":"height"}'>
                            <div id="list_cont" ajxpClass="AjxpPane" ajxpOptions='{"fit":"height","fitMarginBottom":100}'>
                                <ul id="workspaces_list"></ul>
                            </div>
                            <div id="workspaces_button">
                                <input type="checkbox" name="save_ws_choice" id="save_ws_choice" class="disabled" disabled><label for="save_ws_choice">AJXP_MESSAGE[user_home.41]</label>
                                <input type="button" name="go_to_ws" id="go_to_ws" value="AJXP_MESSAGE[user_home.42]" class="disabled">
                            </div>
                        </div>
                    </div>
                    <div id="home_center_panel" ajxpClass="AjxpPane" ajxpOptions='{"fit":"height","flexTo":"browser"}'>
                        <div id="logo_div"><img src=""></div>
                        <div id="ws_legend"></div>
                    </div>
                </div>
            ]]></template_part>
            <template_part ajxpId="orbit_content" ajxpClass="AjxpPane" ajxpOptions='{"fit":"height","fitParent":"ajxp_desktop", "imageBackgroundFromConfigs":"access.ajxp_home/WELCOME_PAGE_BACKGROUND_","messageBoxReference":true}' theme="orbit"><![CDATA[
                <div id="home_account_pane" style="opacity:0;" ajxpClass="AjxpReactComponent" ajxpOptions='{"fit":"height", "componentNamespace":"WelcomeComponents", "componentName":"UserDashboard"}' class="horizontal_layout"></div>
			]]></template_part>
        </client_configs>
	</registry_contributions>
    <class_definition filename="plugins/access.ajxp_home/class.HomePagePlugin.php" classname="HomePagePlugin"/>
</ajxpdriver>
