예제 #1
0
 public function parse($value)
 {
     $content = "";
     if (is_array($value)) {
         foreach ($value as $path) {
             $content .= "<img class=\"person\" src=\"{$path}\">";
         }
     }
     return parent::parse($content);
 }
예제 #2
0
 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);
 }
예제 #3
0
 public function parse($value)
 {
     $content = "<img src=\"{$value}\">";
     return parent::parse($content);
 }