Ansel_Block_RecentComments::_title PHP Метод

_title() защищенный Метод

protected _title ( )
    protected function _title()
    {
        if ($this->_params['gallery'] != 'all') {
            try {
                $gallery = $this->_getGallery();
            } catch (Ansel_Exception $e) {
                return Ansel::getUrlFor('view', array('view' => 'List'), true)->link() . _("Gallery") . '</a>';
            }
            // Build the gallery name.
            if (isset($this->_params['gallery'])) {
                $name = htmlspecialchars($gallery->get('name'));
            }
            $viewurl = Ansel::getUrlFor('view', array('gallery' => $gallery->id, 'view' => 'Gallery', 'slug' => $gallery->get('slug')), true);
        } else {
            $viewurl = Ansel::getUrlFor('view', array('view' => 'List'), true);
            $name = _("All Galleries");
        }
        return sprintf(_("Recent Comments In %s"), $viewurl->link() . $name . '</a>');
    }