From 96cad800b7805d3c09ec3265d8c928429e78c276 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 16 Aug 2020 12:14:13 +0800 Subject: [PATCH] add mobile background --- common.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/common.php b/common.php index 5a3705c..c0c4f70 100644 --- a/common.php +++ b/common.php @@ -852,7 +852,9 @@ function message($message, $title = 'Message', $statusCode = 200)

' . $title . '

+ ' . $message . ' +

@@ -2475,9 +2477,17 @@ function render_list($path = '', $files = '') $html = $tmp[0]; $tmp = splitfirst($tmp[1], ''); if (getConfig('background')) { - $background = str_replace('', getConfig('background'), $tmp[0]); + $html .= str_replace('', getConfig('background'), $tmp[0]); } - $html .= $background . $tmp[1]; + $html .= $tmp[1]; + + $tmp = splitfirst($html, ''); + $html = $tmp[0]; + $tmp = splitfirst($tmp[1], ''); + if (getConfig('backgroundm')) { + $html .= str_replace('', getConfig('backgroundm'), $tmp[0]); + } + $html .= $tmp[1]; $tmp = splitfirst($html, ''); $html = $tmp[0];