private function SassExtentionsCompassFunctionsImageSize::real_path in Sassy 7
2 calls to SassExtentionsCompassFunctionsImageSize::real_path()
- SassExtentionsCompassFunctionsImageSize::image_height in phamlp/
sass/ extensions/ compass/ functions/ imageSize.php - SassExtentionsCompassFunctionsImageSize::image_width in phamlp/
sass/ extensions/ compass/ functions/ imageSize.php
File
- phamlp/
sass/ extensions/ compass/ functions/ imageSize.php, line 31
Class
- SassExtentionsCompassFunctionsImageSize
- Compass extension SassScript image size functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.extensions.compass.functions
Code
private function real_path($image_file) {
$path = $image_file->value;
# Compute the real path to the image on the file stystem if the images_dir is set.
if (SassExtentionsCompassConfig::config('images_path')) {
return SassExtentionsCompassConfig::config('images_path') . DIRECTORY_SEPARATOR . $path;
}
else {
return SassExtentionsCompassConfig::config('project_path') . DIRECTORY_SEPARATOR . $path;
}
}