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; } }
public function getText() { return LIVE_EDIT ? API::liveEdit($this->model->text, $this->editLink, 'div') : $this->model->text; }
public function getAnswer() { return LIVE_EDIT ? API::liveEdit($this->model->answer, $this->editLink, 'div') : $this->model->answer; }
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; }
public function getTitle() { return LIVE_EDIT ? API::liveEdit($this->model->title, $this->editLink) : $this->model->title; }