function CSSListStyle() { $this->default_value = new ListStyleValue(); $this->default_value->image = CSSListStyleImage::default_value(); $this->default_value->position = CSSListStylePosition::default_value(); $this->default_value->type = CSSListStyleType::default_value(); $this->CSSPropertyHandler(true, true); }
function parse($value, &$pipeline) { global $g_config; if (!$g_config['renderimages']) { return CSSListStyleImage::default_value(); } if (preg_match('/url\\(([^)]+)\\)/', $value, $matches)) { $url = $matches[1]; $full_url = $pipeline->guess_url(css_remove_value_quotes($url)); return new ListStyleImage($full_url, Image::get($full_url, $pipeline)); } return CSSListStyleImage::default_value(); }
function parse($value, &$pipeline) { if ($value === 'inherit') { return CSS_PROPERTY_INHERIT; } global $g_config; if (!$g_config['renderimages']) { return CSSListStyleImage::default_value(); } if (preg_match('/url\\(([^)]+)\\)/', $value, $matches)) { $url = $matches[1]; $full_url = $pipeline->guess_url(css_remove_value_quotes($url)); return new ListStyleImage($full_url, ImageFactory::get($full_url, $pipeline)); } /** * 'none' value and all unrecognized values */ return CSSListStyleImage::default_value(); }