mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +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('data-toggle', 'modal');
|
||||
$attrs[] = array('role', 'button');
|
||||
if(isset($config['class']))
|
||||
$attrs[] = array('class', $config['class']);
|
||||
else
|
||||
if(isset($config['class'])) {
|
||||
if($config['class'])
|
||||
$attrs[] = array('class', $config['class']);
|
||||
} else
|
||||
$attrs[] = array('class', 'btn');
|
||||
return $attrs;
|
||||
} /* }}} */
|
||||
|
|
|
@ -1291,9 +1291,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$attrs[] = array('href', $config['remote']);
|
||||
$attrs[] = array('data-toggle', 'modal');
|
||||
$attrs[] = array('role', 'button');
|
||||
if(isset($config['class']))
|
||||
$attrs[] = array('class', $config['class']);
|
||||
else
|
||||
if(isset($config['class'])) {
|
||||
if($config['class'])
|
||||
$attrs[] = array('class', $config['class']);
|
||||
} else
|
||||
$attrs[] = array('class', 'btn');
|
||||
return $attrs;
|
||||
} /* }}} */
|
||||
|
|
Loading…
Reference in New Issue
Block a user