Visual Console Refactor: fixed the visual console background on the meta
Former-commit-id: 2c5ba2451691558502c0aab4f5bb91259afb2ef8
This commit is contained in:
parent
7608eb86c7
commit
a03245a277
|
@ -224,7 +224,10 @@ final class Container extends Model
|
||||||
|
|
||||||
if ($backgroundUrl === null && $backgroundImage !== null) {
|
if ($backgroundUrl === null && $backgroundImage !== null) {
|
||||||
$backgroundUrl = ui_get_full_url(
|
$backgroundUrl = ui_get_full_url(
|
||||||
'images/console/background/'.$backgroundImage
|
'images/console/background/'.$backgroundImage,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
$width = (int) $row['width'];
|
$width = (int) $row['width'];
|
||||||
|
@ -238,7 +241,10 @@ final class Container extends Model
|
||||||
'file' => $backgroundUrl,
|
'file' => $backgroundUrl,
|
||||||
];
|
];
|
||||||
$row['backgroundURL'] = ui_get_full_url(
|
$row['backgroundURL'] = ui_get_full_url(
|
||||||
'include/Image/image_functions.php?'.http_build_query($q)
|
'include/Image/image_functions.php?'.http_build_query($q),
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$row['backgroundURL'] = $backgroundUrl;
|
$row['backgroundURL'] = $backgroundUrl;
|
||||||
|
|
|
@ -135,7 +135,7 @@ $visualConsoleItems = VisualConsole::getItemsFromDB(
|
||||||
var container = document.getElementById("visual-console-container");
|
var container = document.getElementById("visual-console-container");
|
||||||
var props = <?php echo (string) $visualConsole; ?>;
|
var props = <?php echo (string) $visualConsole; ?>;
|
||||||
var items = <?php echo '['.implode($visualConsoleItems, ',').']'; ?>;
|
var items = <?php echo '['.implode($visualConsoleItems, ',').']'; ?>;
|
||||||
var baseUrl = "<?php echo $config['homeurl']; ?>";
|
var baseUrl = "<?php echo ui_get_full_url('/', false, false, false); ?>";
|
||||||
var handleUpdate = function (prevProps, newProps) {
|
var handleUpdate = function (prevProps, newProps) {
|
||||||
if (!newProps) return;
|
if (!newProps) return;
|
||||||
|
|
||||||
|
|
|
@ -222,7 +222,7 @@ $visualConsoleItems = VisualConsole::getItemsFromDB(
|
||||||
var container = document.getElementById("visual-console-container");
|
var container = document.getElementById("visual-console-container");
|
||||||
var props = <?php echo (string) $visualConsole; ?>;
|
var props = <?php echo (string) $visualConsole; ?>;
|
||||||
var items = <?php echo '['.implode($visualConsoleItems, ',').']'; ?>;
|
var items = <?php echo '['.implode($visualConsoleItems, ',').']'; ?>;
|
||||||
var baseUrl = "<?php echo $config['homeurl']; ?>";
|
var baseUrl = "<?php echo ui_get_full_url('/', false, false, false); ?>";
|
||||||
var handleUpdate = function (prevProps, newProps) {
|
var handleUpdate = function (prevProps, newProps) {
|
||||||
if (!newProps) return;
|
if (!newProps) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue