mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
do not show class of modal box link if empty
This commit is contained in:
parent
1e85c6c5c6
commit
74b3f896ff
|
@ -1292,9 +1292,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
$attrs[] = array('href', $config['remote']);
|
$attrs[] = array('href', $config['remote']);
|
||||||
$attrs[] = array('data-toggle', 'modal');
|
$attrs[] = array('data-toggle', 'modal');
|
||||||
$attrs[] = array('role', 'button');
|
$attrs[] = array('role', 'button');
|
||||||
if(isset($config['class']))
|
if(isset($config['class'])) {
|
||||||
|
if($config['class'])
|
||||||
$attrs[] = array('class', $config['class']);
|
$attrs[] = array('class', $config['class']);
|
||||||
else
|
} else
|
||||||
$attrs[] = array('class', 'btn');
|
$attrs[] = array('class', 'btn');
|
||||||
return $attrs;
|
return $attrs;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
|
@ -1291,9 +1291,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
$attrs[] = array('href', $config['remote']);
|
$attrs[] = array('href', $config['remote']);
|
||||||
$attrs[] = array('data-toggle', 'modal');
|
$attrs[] = array('data-toggle', 'modal');
|
||||||
$attrs[] = array('role', 'button');
|
$attrs[] = array('role', 'button');
|
||||||
if(isset($config['class']))
|
if(isset($config['class'])) {
|
||||||
|
if($config['class'])
|
||||||
$attrs[] = array('class', $config['class']);
|
$attrs[] = array('class', $config['class']);
|
||||||
else
|
} else
|
||||||
$attrs[] = array('class', 'btn');
|
$attrs[] = array('class', 'btn');
|
||||||
return $attrs;
|
return $attrs;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user