Exemple #1
0
$componentParams = array('INPUT_NAME' => 'FILE_NEW', 'INPUT_NAME_UNSAVED' => 'FILE_NEW_TMP', 'MAX_FILE_SIZE' => 0, 'MODULE_ID' => 'mobileapp', 'ALLOW_UPLOAD' => "F", 'CONTROL_ID' => "designer", 'ALLOW_UPLOAD_EXT' => "jpg,png,jpeg");
$GLOBALS['APPLICATION']->IncludeComponent('bitrix:mobileapp.designer.file.input', 'drag_n_drop', $componentParams, false);
$initData = __DSGetInitData();
$initDataJS = CUtil::PhpToJSObject($initData);
?>


<script>
	BX.ready(function ()
	{
		if (BX.browser.IsIE() && BX.browser.DetectIeVersion() < 9)
		{
			return false;
		}

		window.designer = new BX.Mobile.Designer({
			containerId: "designer-wrapper",
			platforms:<?php 
echo CUtil::PhpToJSObject(\Bitrix\MobileApp\Designer\ConfigTable::getSupportedPlatforms());
?>
		});
		window.designer.init();
	});
</script>

<?php 
require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_admin.php";
?>