/** * Returns the content generated by app call */ protected final function getContent($data_only = false, $fluid = false) { if ($data_only) { return $this->page->getContent(); } return '<div id="content" class="container' . ($fluid ? '-fluid' : '') . '">' . $this->page->getContent() . '</div>'; }
/** * Intis page */ private function initPage() { $this->di->mapService('core.page', '\\Core\\Framework\\Page\\Page', ['core.html.factory']); /* @var $page \Core\Framework\Page\Page */ $this->page = $this->di->get('core.page'); $configs = ['dir.assets', 'url.vendor_tekkla', 'style.theme.name', 'style.bootstrap.version', 'style.bootstrap.local', 'js.jquery.version', 'js.general.position', 'js.jquery.local', 'js.style.fadeout_time']; foreach ($configs as $name) { $this->page->config->add($name, $this->config->get('Core', $name)); } $this->page->setTitle($this->config->get('Core', 'site.general.name')); }