<?xml version="1.0" encoding="UTF-8"?>
<guidriver name="ajxp_ios" label="CONF_MESSAGE[iOS]" description="CONF_MESSAGE[Template for redirecting to iPhone application]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
    <class_definition filename="plugins/gui.ios/class.IOSGuiPlugin.php" classname="IOSGuiPlugin"/>
    <server_settings>
        <global_param description="CONF_MESSAGE[iOS Application URL]" label="CONF_MESSAGE[iOS Application]" name="IOS_URL" type="string" default="http://pyd.io/support/stores/ios.php" expose="true"/>
        <global_param description="CONF_MESSAGE[Android Application URL]" label="CONF_MESSAGE[Android App]" name="ANDROID_URL" type="string" default="http://pyd.io/support/stores/android.php" expose="true"/>
    </server_settings>
    <client_settings>
        <resources>
            <i18n namespace="ios_gui" path="plugins/gui.ios/i18n"/>
        </resources>
    </client_settings>
	<registry_contributions>
		<client_configs uuidAttr="name">
			<template name="mobile_extensions" element="head" position="bottom"><![CDATA[
				<link type="text/css" rel="stylesheet" href="plugins/gui.mobile/ajxp-mobile.css" media="screen">
				<style type="text/css">
				    #toolbars{display:none;}
				</style>
				<script type="text/javascript">
					window.ajxpMobile = true;
					var conn = new Connexion();
					conn._libUrl = '';
					conn.loadLibrary('plugins/gui.ios/ajxp-ios.js');
				</script>
			]]></template>
			<template name="main" element="ajxp_desktop" position="top"><![CDATA[
				<div id="browser" ajxpClass="AjxpPane" ajxpOptions='{"fit":"height","fitParent":"ajxp_desktop"}' style="z-index:10000">
					<div style="width:90%;padding:10px; margin:0px auto;" id="message-id-1">Do you know that there is a dedicated iPhone/iPad application for Pydio?</div>
					<a id="ajxpserver-redir" class="m-2" href="#">Yes I have it already, add this server to my Pydio iOS remote servers</a><br>
					<a id="appstore-redir" class="m-2" href="http://pyd.io/support/stores/ios.php">No I don't have it, send me <br/>to App Store now</a><br>
					<a id="skipios-redir" class="m-2" href="#">I don't care, let me use <br/>the web version of Pydio!</a><br>
				</div>
			]]></template>
		</client_configs>
	<actions>
	<!-- Override a simple action -->
		<action name="login">
			<processing>
				<clientCallback prepareModal="true"><![CDATA[ /* BLOCK LOGIN OPENING */ ]]></clientCallback>
			</processing>
		</action>
	</actions>
	</registry_contributions>
    <dependencies>
        <activePlugin pluginName="gui.mobile"/>
    </dependencies>
</guidriver>
