You are here

public function SassExtentionsCompassFunctionsFontFiles::font_files in Sassy 7

File

phamlp/sass/extensions/compass/functions/fontFiles.php, line 19

Class

SassExtentionsCompassFunctionsFontFiles
Compass extension SassScript font files functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.extensions.compass.functions

Code

public function font_files() {
  if (func_num_args() % 2) {
    throw new SassScriptFunctionException('An even number of arguments must be passed to font_files()', array(), SassScriptParser::$context->node);
  }
  $args = func_get_args();
  $files = array();
  while ($args) {
    $files[] = '#{font_url(' . array_shift($args) . ")} format('" . trim(array_shift($args), '\'"') . "')";
  }
  return new SassString(join(", ", $files));
}