add mobile background
parent
55f267092d
commit
96cad800b7
14
common.php
14
common.php
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue