public function GetCompiledContent(&$obj) { $config = cmsms()->GetConfig(); $img = ac_utils::CleanURL($config['uploads_url'] . '/' . $this->GetProperty('dir')) . $this->GetContent(); # ToDo: base64 support # get width height automatically from file? if (!$this->GetProperty('urlonly')) { $img = '<img src="' . $img . '" alt="' . $this->GetProperty('alt') . '"' . ($this->GetProperty('title') ? ' title="' . $this->GetProperty('title') . '"' : '') . ($this->GetProperty('class') ? ' class="' . $this->GetProperty('class') . '"' : '') . ($this->GetProperty('css_id') ? ' id="' . $this->GetProperty('id') . '"' : '') . ($this->GetProperty('width') ? ' width="' . $this->GetProperty('width') . '"' : '') . ($this->GetProperty('height') ? ' height="' . $this->GetProperty('height') . '"' : '') . '>'; } $this->SetContent($img); return parent::GetCompiledContent($obj); }