/** * @see Document_Tag_Interface::frontend * @return string */ public function frontend() { if ($this->getView() instanceof Zend_View) { try { if ($this->snippet instanceof Document_Snippet) { $params = $this->options; $params["document"] = $this->snippet; if ($this->snippet->isPublished()) { return $this->getView()->action($this->snippet->getAction(), $this->snippet->getController(), null, $params); } return ""; } } catch (Exception $e) { Logger::warning($e); } } else { return null; } }