public function getField() { $this->map['[[__img]]'] = ''; if ($this->value != '') { $imgMap = $this->map; $imgMap['[[__value]]'] = $this->getString(); // load image thumbnail $img = $this->render('input-img.html', $imgMap); $this->map['[[__img]]'] = $img; } return parent::getField(); }
public function getField() { $this->map['[[__help]]'] = 'Paste in your video ID or embed code from YouTube.'; return parent::getField(); }