Lines Matching refs:i

302             for ( $i = 0; $i < count($color_tmp); $i++ )
304 $color_tmp[$i] = trim ($color_tmp[$i]);
305 if(substr($color_tmp[$i],-1) == '%')
307 $color_tmp[$i] = round((255*$color_tmp[$i])/100);
309 if($color_tmp[$i]>255) $color_tmp[$i] = 255;
312 for ($i = 0; $i < 3; $i++ )
314 if($color_tmp[$i]<16) {
315 $color .= '0' . dechex($color_tmp[$i]);
317 $color .= dechex($color_tmp[$i]);
506 for($i=0;$i<4;$i++)
508 $return[$shorthands[$property][$i]] = $values[$i].$important;
520 for($i=0;$i<4;$i++)
522 …$return[$shorthands[$property][$i]] = (($i % 2 != 0)) ? $values[1].$important : $values[0].$import…
527 for($i=0;$i<4;$i++)
529 $return[$shorthands[$property][$i]] = $values[0].$important;
550 for($i = 0, $len = strlen($string);$i < $len; $i++)
555 if($string{$i} == $sep && !csstidy::escaped($string,$i))
559 …elseif($string{$i} == '"' || $string{$i} == '\'' || $string{$i} == '(' && !csstidy::escaped($strin…
562 $to = ($string{$i} == '(') ? ')' : $string{$i};
563 … (isset($output[$num])) ? $output[$num] .= $string{$i} : $output[$num] = $string{$i};
567 … (isset($output[$num])) ? $output[$num] .= $string{$i} : $output[$num] = $string{$i};
572 if($string{$i} == $to && !csstidy::escaped($string,$i))
576 (isset($output[$num])) ? $output[$num] .= $string{$i} : $output[$num] = $string{$i};
611 for($i = 0; $i < 4; $i++)
613 $val = $array[$value[$i]];
623 unset($return[$value[$i]]);
657 for($i = 0; $i < count($str_value); $i++)
662 $str_value[$i] = csstidy_optimise::explode_ws(' ',trim($str_value[$i]));
664 for($j = 0; $j < count($str_value[$i]); $j++)
666 …if($have['bg'] === FALSE && (substr($str_value[$i][$j],0,4) == 'url(' || $str_value[$i][$j] === 'n…
668 $return['background-image'] .= $str_value[$i][$j].',';
671 elseif(in_array($str_value[$i][$j],$repeat,TRUE))
673 $return['background-repeat'] .= $str_value[$i][$j].',';
675 elseif(in_array($str_value[$i][$j],$attachment,TRUE))
677 $return['background-attachment'] .= $str_value[$i][$j].',';
679 elseif(in_array($str_value[$i][$j],$clip,TRUE) && !$have['clip'])
681 $return['background-clip'] .= $str_value[$i][$j].',';
684 elseif(in_array($str_value[$i][$j],$origin,TRUE))
686 $return['background-origin'] .= $str_value[$i][$j].',';
688 elseif($str_value[$i][$j]{0} == '(')
690 $return['background-size'] .= substr($str_value[$i][$j],1,-1).',';
692 …elseif(in_array($str_value[$i][$j],$pos,TRUE) || is_numeric($str_value[$i][$j]{0}) || $str_value[$
694 $return['background-position'] .= $str_value[$i][$j];
700 $return['background-color'] .= $str_value[$i][$j].',';
735 for($i = 0; $i < $number_of_values; $i++)
748 if((!isset($bg_img_array[$i]) || $bg_img_array[$i] === 'none')
770 if(isset($temp[$i]))
774 $new_bg_value .= '('.$temp[$i].') ';
778 $new_bg_value .= $temp[$i].' ';
784 if($i != $number_of_values-1) $new_bg_value .= ',';