public function parse($value) { $content = ""; if (is_array($value)) { foreach ($value as $path) { $content .= "<img class=\"person\" src=\"{$path}\">"; } } return parent::parse($content); }
public function parse($value) { $content = ""; for ($i = 1; $i <= 10; $i++) { if ((int) $value >= $i) { $content .= "<div class=\"barSegment value{$i}\"></div>"; } } return parent::parse($content); }
public function parse($value) { $content = "<img src=\"{$value}\">"; return parent::parse($content); }