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:
@@ -3197,6 +3197,11 @@ class e_admin_controller_ui extends e_admin_controller
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'images':
|
||||||
|
//XXX FIXME - entities in stored result.
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(vartrue($attributes['dataPath']))
|
if(vartrue($attributes['dataPath']))
|
||||||
|
@@ -3168,6 +3168,19 @@ class e_form
|
|||||||
$ret = $this->imagepicker($key, $value, defset($label, $label), $parms);
|
$ret = $this->imagepicker($key, $value, defset($label, $label), $parms);
|
||||||
break;
|
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...
|
case 'file': //TODO - thumb, image list shortcode, js tooltip...
|
||||||
$label = varset($parms['label'], 'LAN_EDIT');
|
$label = varset($parms['label'], 'LAN_EDIT');
|
||||||
unset($parms['label']);
|
unset($parms['label']);
|
||||||
|
Reference in New Issue
Block a user