public function help() { if ($this->suggestion and !$this->readonly) { $this->help = $this->suggestion(); } return parent::help(); }
public function help() { if ($this->page and !$this->page->isSite()) { if (!empty($this->help)) { $this->help .= '<br />'; } $this->help .= '→ <a style="color: #777; border:none" data-modal title="' . $this->page->previewUrl() . '" href="' . $this->page->url('url') . '">' . ltrim($this->page->parent()->slug() . '/', '/') . $this->page->slug() . '</a>'; } return parent::help(); }
public function help() { if ($this->page and !$this->page->isSite()) { if (!empty($this->help)) { $this->help = $this->i18n($this->help); $this->help .= '<br />'; } // build a readable version of the page slug $slug = ltrim($this->page->parent()->slug() . '/', '/') . $this->page->slug(); // TODO: move this to the css file $style = 'padding-left: .5rem; color: #777; border:none'; if ($this->page->canChangeUrl()) { $this->help .= '→<a style="' . $style . '" data-modal title="' . $this->page->url('preview') . '" href="' . $this->page->url('url') . '">' . $slug . '</a>'; } else { $this->help .= '→<span style="' . $style . '" title="' . $this->page->url('preview') . '">' . $slug . '</span>'; } } return parent::help(); }