1
0
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:
Cameron
2014-05-28 22:36:53 -07:00
parent 084b5b4127
commit b69f770317
2 changed files with 18 additions and 0 deletions

View File

@@ -3197,6 +3197,11 @@ class e_admin_controller_ui extends e_admin_controller
}
break;
case 'images':
//XXX FIXME - entities in stored result.
break;
}
if(vartrue($attributes['dataPath']))

View File

@@ -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']);