Frontend\Modules\Blog\Actions\Category::parse PHP Method

parse() private method

Parse the data into the template
private parse ( )
    private function parse()
    {
        // get RSS-link
        $rssTitle = $this->get('fork.settings')->get('Blog', 'rss_title_' . LANGUAGE);
        $rssLink = FrontendNavigation::getURLForBlock('Blog', 'Rss');
        // add RSS-feed
        $this->header->addRssLink($rssTitle, $rssLink);
        // add into breadcrumb
        $this->breadcrumb->addElement(\SpoonFilter::ucfirst(FL::lbl('Category')));
        $this->breadcrumb->addElement($this->category['label']);
        // set pageTitle
        $this->header->setPageTitle(\SpoonFilter::ucfirst(FL::lbl('Category')));
        $this->header->setPageTitle($this->category['label']);
        // advanced SEO-attributes
        if (isset($this->category['meta_data']['seo_index'])) {
            $this->header->addMetaData(array('name' => 'robots', 'content' => $this->category['meta_data']['seo_index']));
        }
        if (isset($this->category['meta_data']['seo_follow'])) {
            $this->header->addMetaData(array('name' => 'robots', 'content' => $this->category['meta_data']['seo_follow']));
        }
        // assign category
        $this->tpl->assign('category', $this->category);
        // assign articles
        $this->tpl->assign('items', $this->items);
        // parse the pagination
        $this->parsePagination();
    }