Lines Matching refs:param
55 foreach ($params as $param) {
56 if (!$data['background_color'] && $this->_is_valid_color($param)) {
57 $data['background_color'] = $param;
59 elseif (!$data['background_image'] && $this->_is_valid_image($param)) {
60 $data['background_image'] = $param;
62 elseif (!$data['background_size'] && $this->_is_valid_size($param)) {
63 $data['background_size'] = $param;
65 elseif ($position_count == 0 && $this->_is_valid_position($param)) {
67 $data['background_position'] = $param;
69 … elseif ($position_count < 2 && in_array($param, array('top','bottom','left','right','center'))) {
71 if (!$data['background_position']) $data['background_position'] = $param;
72 else $data['background_position'] .= ' '.$param;
74 elseif (!$data['background_repeat'] && in_array($param, array('repeat','no-repeat'))) {
75 $data['background_repeat'] = $param;
77 elseif (!$data['background_transition'] && $this->_is_valid_bg_transition($param)) {
78 $data['background_transition'] = $param;
80 elseif ($transition_count < 2 && $this->_is_valid_transition($param)) {
82 if (!$data['transition']) $data['transition'] = $param;
83 else $data['transition'] .= ' '.$param;
85 … elseif (!$data['transition_speed'] && in_array($param, array('default','fast','slow'))) {
86 $data['transition_speed'] = $param;
88 elseif (!$data['no_footer'] && $param == 'no-footer') {