Upload new version
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
$mode = strtolower($_GET['mode'] ?? 'templates');
|
||||
$id = (int)($_GET['id'] ?? 0);
|
||||
$sectionId = (int)($_GET['section_id'] ?? 0);
|
||||
$assetVersion = defined('ASSET_VERSION') ? ASSET_VERSION : time();
|
||||
$scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
|
||||
$host = $_SERVER['HTTP_HOST'] ?? 'localhost';
|
||||
@@ -48,6 +49,7 @@ if ($fontSources) {
|
||||
<script>
|
||||
window.__editorMode = "<?=htmlspecialchars($mode, ENT_QUOTES)?>";
|
||||
window.__editorId = <?= $id ?>;
|
||||
window.__editorSectionId = <?= $sectionId ?>;
|
||||
window.BridgeParts = window.BridgeParts || {};
|
||||
window.BridgeParts.ENABLE_EDITOR_EXTENSIONS = true;
|
||||
window.BridgeParts.ENABLE_EDITOR_BEHAVIOR = false;
|
||||
@@ -57,7 +59,9 @@ if ($fontSources) {
|
||||
window.BridgeParts.LOG_CONFIG = window.BridgeParts.LOG_CONFIG || {};
|
||||
window.BridgeParts.LOG_CONFIG.INFO_ENABLED = false;
|
||||
window.BridgeParts.LOG_CONFIG.DATA_ENABLED = false;
|
||||
window.BridgeParts.USE_DYNAMIC_SECTIONS = true;
|
||||
window.BridgeParts.CURRENT_ENTITY_ID = window.BridgeParts.CURRENT_ENTITY_ID || <?= $id ?>;
|
||||
window.BridgeParts.CURRENT_SECTION_ID = window.BridgeParts.CURRENT_SECTION_ID || <?= $sectionId ?>;
|
||||
window.BridgeParts.API_KERNEL_URL = window.BridgeParts.API_KERNEL_URL || '/api.php';
|
||||
window.BridgeParts.API_BASE = window.BridgeParts.API_BASE || window.BridgeParts.API_KERNEL_URL;
|
||||
window.BridgeParts.STORAGE_URL_BASE = window.BridgeParts.STORAGE_URL_BASE || window.BridgeParts.API_BASE;
|
||||
|
||||
Reference in New Issue
Block a user