1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 01:30:32 +02:00

Hero cleanup for Bootstrap5. Switched to placeholder images. Admin-ui type 'image' now loads remote URLs correctly.

This commit is contained in:
Cameron
2021-02-26 10:13:07 -08:00
parent d5a4ef57d1
commit cb95b4b243
16 changed files with 80 additions and 53 deletions

View File

@@ -110,12 +110,19 @@ class hero_ui extends e_admin_ui
public function init()
{
// Set drop-down values (if any).
$tp = e107::getParser();
$r = range(1000,10000,1000);
$opts = array();
$opts = array(
'false' => LAN_DISABLED
);
foreach($r as $v)
{
$opts[$v] = str_replace('000', '', $v).' '.LAN_HERO_ADMIN_016;
$x = str_replace('000', '', $v);
$opts[$v] = $tp->lanVars(LAN_HERO_ADMIN_016, $x);
}
$this->prefs['slide_interval']['writeParms']['optArray'] = $opts;