js/extjs/packages/ext-theme-base/sass/utils.rb
# Returns a background-image property for a specified images for the theme
Returns a background-image property for a specified images for the theme
Returns a background - image property for a specified images for the theme
def theme_image(path, relative = false)
          path = path.value
          relative_path = "images/"
          if relative
            if relative.class == Sass::Script::String
              relative_path = relative.value
              relative = true
            elsif relative.class == FalseClass || relative.class == TrueClass
              relative = relative
            else
              relative = relative.value
            end
          else
            relative = false
          end
          if relative
            image_path = File.join(relative_path, path)
          else
            image_path = File.join('images', path)
          end
          Sass::Script::String.new(image_path)
        end
def theme_image ( path , relative = false ) path = path . value relative_path = "images/" if relative if relative . class == Sass :: Script :: String relative_path = relative . value relative = true elsif relative . class == FalseClass || relative . class == TrueClass relative = relative else relative = relative . value end else relative = false end if relative image_path = File . join ( relative_path , path ) else image_path = File . join ( 'images' , path ) end Sass :: Script :: String . new ( image_path ) end
Returns a background-image property for a specified images for the theme
Returns a background - image property for a specified images for the theme
path
<not_specific>
relative
<not_specific>