ImageId = $this->GetAttributeValue('id'); $this->URL = $this->GetAttributeValue('url'); $this->Width = Sanitizer::SanitizeHTMLSize($this->GetAttributeValue('width')); $this->Height = Sanitizer::SanitizeHTMLSize($this->GetAttributeValue('height')); return ParserUtilities::MaybeApplyMarks($this); } public function GetImageURL() { return wp_get_attachment_url($this->ImageId); } public function GetStyles() { $style = ''; if($this->Width != '') $style .= 'width:' . $this->Width . ';'; if($this->Height != '') $style .= 'height:' . $this->Height . ';'; return $style; } protected function GetTemplateName() { return 'core/Managers/HTMLGenerator/HTMLParsers/ImageParser.twig'; } }