add mobile background

pull/128/head
qkqpttgf 2020-08-16 12:14:13 +08:00 committed by GitHub
parent 55f267092d
commit 96cad800b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -852,7 +852,9 @@ function message($message, $title = 'Message', $statusCode = 200)
<body> <body>
<h1>' . $title . '</h1> <h1>' . $title . '</h1>
<p> <p>
' . $message . ' ' . $message . '
</p> </p>
</body> </body>
</html> </html>
@ -2475,9 +2477,17 @@ function render_list($path = '', $files = '')
$html = $tmp[0]; $html = $tmp[0];
$tmp = splitfirst($tmp[1], '<!--BackgroundEnd-->'); $tmp = splitfirst($tmp[1], '<!--BackgroundEnd-->');
if (getConfig('background')) { if (getConfig('background')) {
$background = str_replace('<!--BackgroundUrl-->', getConfig('background'), $tmp[0]); $html .= str_replace('<!--BackgroundUrl-->', getConfig('background'), $tmp[0]);
} }
$html .= $background . $tmp[1]; $html .= $tmp[1];
$tmp = splitfirst($html, '<!--BackgroundMStart-->');
$html = $tmp[0];
$tmp = splitfirst($tmp[1], '<!--BackgroundMEnd-->');
if (getConfig('backgroundm')) {
$html .= str_replace('<!--BackgroundMUrl-->', getConfig('backgroundm'), $tmp[0]);
}
$html .= $tmp[1];
$tmp = splitfirst($html, '<!--PathArrayStart-->'); $tmp = splitfirst($html, '<!--PathArrayStart-->');
$html = $tmp[0]; $html = $tmp[0];