/** * Uses for after render * All code in this function will be worked after * render page. * * @return none */ protected function _afterRender() { // Cron if (Config::read('auto_sitemap')) { fpsCron('createSitemap', 86400); } /* * counter ( if active ) * and if we not in admin panel (see _beforeRender()) */ if ($this->counter === false) { return; } include_once ROOT . '/modules/statistics/index.php'; if (Config::read('active', 'statistics') == 1) { StatisticsModule::index(); } else { StatisticsModule::viewOffCounter(); } }