. * */ namespace Vvveb\Controller\Content; use Vvveb\Controller\Base; use function Vvveb\getLanguage; class Archive extends Base { function index() { if (isset($this->request->get['month'])) { $month = $this->request->get['month']; $this->view->month = $month; $month_name = $month; if (class_exists('\IntlDateFormatter')) { $dt = new \DateTime(); $dt->setDate(0, $month, 0); $df = new \IntlDateFormatter(getLanguage(), \IntlDateFormatter::NONE, \IntlDateFormatter::NONE, NULL, NULL, 'MMMM'); $month_name = ucfirst(datefmt_format($df, $dt)); } $this->view->month_name = $month_name; } if (isset($this->request->get['year'])) { $this->view->year = $this->request->get['year']; } } }