mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Admin-ui to support multiple images. (a work in progress)
This commit is contained in:
@@ -3196,6 +3196,11 @@ class e_admin_controller_ui extends e_admin_controller
|
||||
$value = implode(',', $value);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'images':
|
||||
//XXX FIXME - entities in stored result.
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@@ -3168,6 +3168,19 @@ class e_form
|
||||
$ret = $this->imagepicker($key, $value, defset($label, $label), $parms);
|
||||
break;
|
||||
|
||||
case 'images':
|
||||
|
||||
$value = str_replace(''',"'",html_entity_decode($value)); //FIXME @SecretR Horrible workaround to Line 3203 of admin_ui.php
|
||||
$ival = e107::unserialize($value);
|
||||
|
||||
for ($i=0; $i < 5; $i++)
|
||||
{
|
||||
$k = $key.'[path]['.$i.']';
|
||||
$ret .= $this->imagepicker($k, $ival['path'][$i], defset($label, $label), $parms);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'file': //TODO - thumb, image list shortcode, js tooltip...
|
||||
$label = varset($parms['label'], 'LAN_EDIT');
|
||||
unset($parms['label']);
|
||||
|
Reference in New Issue
Block a user