You are here

function sassy_compass__url in Sassy 7.3

Same name and namespace in other branches
  1. 7.2 extensions/compass/functions/urls.inc \sassy_compass__url()
3 calls to sassy_compass__url()
sassy_compass__font_url in sassy_compass/functions/urls.inc
sassy_compass__image_url in sassy_compass/functions/urls.inc
sassy_compass__stylesheet_url in sassy_compass/functions/urls.inc

File

sassy_compass/functions/urls.inc, line 17

Code

function sassy_compass__url($path, $only_path = FALSE) {
  if (!($path = sassy_compass__resolve_path($path))) {
    return new SassBoolean(FALSE);
  }
  if ($only_path) {
    return new SassString($path);
  }
  return new SassString("url('{$path}')");
}