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

Made mediapicker image selector the same width as bootstrap input element. Removed some PHP notices.

This commit is contained in:
Cameron
2020-06-11 10:26:37 -07:00
parent 560f290ae4
commit 07c4cb7a5d

View File

@@ -1336,12 +1336,12 @@ class e_form
if(!isset($parms['w']))
{
$parms['w'] = 220;
$parms['w'] = 206;
}
if(!isset($parms['h']))
{
$parms['h'] = 190;
$parms['h'] = 190; // 178
}
// $width = vartrue($parms['w'], 220);
@@ -1358,7 +1358,7 @@ class e_form
$class = '';
if($parms['icon'])
if(!empty($parms['icon']))
{
$class = 'icon-preview mediaselector-container-icon';
$parms['type'] = 'icon';
@@ -2910,6 +2910,11 @@ class e_form
unset($options['size']); // don't include in html 'size='.
}
if(!empty($options['title']) && is_array($options['title']))
{
unset($options['title']);
}
$options = $this->format_options('select', $name, $options);