function sassy_compass__is_position_list in Sassy 7.2
Same name and namespace in other branches
- 7.3 sassy_compass/functions/constants.inc \sassy_compass__is_position_list()
File
- extensions/
compass/ functions/ constants.inc, line 10
Code
function sassy_compass__is_position_list($position) {
$list = array();
foreach (func_get_args() as $pos) {
$list = array_merge($list, sassy_compass__list($pos, ' '));
}
foreach ($list as $el) {
if (!in_array($el, array(
'top',
'left',
'bottom',
'right',
))) {
return new SassBoolean(FALSE);
}
}
return new SassBoolean(TRUE);
}