Example #1
0
 public function getText()
 {
     if ($this->model->isNewRecord) {
         return $this->createLink;
     } else {
         return LIVE_EDIT ? API::liveEdit($this->model->text, $this->editLink, 'div') : $this->model->text;
     }
 }
Example #2
0
 public function getText()
 {
     return LIVE_EDIT ? API::liveEdit($this->model->text, $this->editLink, 'div') : $this->model->text;
 }
Example #3
0
 public function getAnswer()
 {
     return LIVE_EDIT ? API::liveEdit($this->model->answer, $this->editLink, 'div') : $this->model->answer;
 }
Example #4
0
 public function box($width, $height)
 {
     $img = Html::img($this->thumb($width, $height));
     $a = Html::a($img, '/admin' . $this->image, ['class' => 'easyii-box', 'rel' => 'album-' . ($this->rel ? $this->rel : $this->model->item_id), 'title' => $this->description]);
     return LIVE_EDIT ? API::liveEdit($a, $this->editLink) : $a;
 }
Example #5
0
 public function getTitle()
 {
     return LIVE_EDIT ? API::liveEdit($this->model->title, $this->editLink) : $this->model->title;
 }