public function getSmarty()
    {
        if (empty($this->smarty)) {
            $this->smarty = StMarksSmarty::getSmarty();
            $this->smarty->prependTemplateDir(realpath(__DIR__ . '/../templates'), __CLASS__);
            $this->smarty->setFramed(true);
        }
        return $this->smarty;
    }