You are here

function sassy_compass__font_files in Sassy 7.3

Same name and namespace in other branches
  1. 7.2 extensions/compass/functions/font_files.inc \sassy_compass__font_files()

File

sassy_compass/functions/font_files.inc, line 3

Code

function sassy_compass__font_files() {
  $args = func_get_args();
  foreach ($args as $k => $v) {
    if (is_object($v)) {
      $args->{$k} = $v->value;
    }
  }
  $output = array();
  while (count($args)) {
    $url = array_shift($args);
    $format = array_shift($args);
    $output[] = "font_url({$url}) format({$format})";
  }
  return new SassString(implode(', ', $output));
}