mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Made mediapicker image selector the same width as bootstrap input element. Removed some PHP notices.
This commit is contained in:
@@ -1336,12 +1336,12 @@ class e_form
|
|||||||
|
|
||||||
if(!isset($parms['w']))
|
if(!isset($parms['w']))
|
||||||
{
|
{
|
||||||
$parms['w'] = 220;
|
$parms['w'] = 206;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($parms['h']))
|
if(!isset($parms['h']))
|
||||||
{
|
{
|
||||||
$parms['h'] = 190;
|
$parms['h'] = 190; // 178
|
||||||
}
|
}
|
||||||
|
|
||||||
// $width = vartrue($parms['w'], 220);
|
// $width = vartrue($parms['w'], 220);
|
||||||
@@ -1358,7 +1358,7 @@ class e_form
|
|||||||
|
|
||||||
$class = '';
|
$class = '';
|
||||||
|
|
||||||
if($parms['icon'])
|
if(!empty($parms['icon']))
|
||||||
{
|
{
|
||||||
$class = 'icon-preview mediaselector-container-icon';
|
$class = 'icon-preview mediaselector-container-icon';
|
||||||
$parms['type'] = 'icon';
|
$parms['type'] = 'icon';
|
||||||
@@ -2910,6 +2910,11 @@ class e_form
|
|||||||
unset($options['size']); // don't include in html 'size='.
|
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);
|
$options = $this->format_options('select', $name, $options);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user