Frontend\Modules\Blog\Actions\Archive::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('Archive')));
        $this->breadcrumb->addElement($this->year);
        if ($this->month !== null) {
            $this->breadcrumb->addElement(\SpoonDate::getDate('F', $this->startDate, LANGUAGE, true));
        }
        // set pageTitle
        $this->header->setPageTitle(\SpoonFilter::ucfirst(FL::lbl('Archive')));
        $this->header->setPageTitle($this->year);
        if ($this->month !== null) {
            $this->header->setPageTitle(\SpoonDate::getDate('F', $this->startDate, LANGUAGE, true));
        }
        // assign category
        $this->tpl->assign('archive', array('start_date' => $this->startDate, 'end_date' => $this->endDate, 'year' => $this->year, 'month' => $this->month));
        // assign items
        $this->tpl->assign('items', $this->items);
        // assign allowComments
        $this->tpl->assign('allowComments', $this->get('fork.settings')->get('Blog', 'allow_comments'));
        // parse the pagination
        $this->parsePagination();
    }