blog->settings->get(My::id())->get('active')) { return null; } dcCore::app()->addBehaviors([ // add CSS URL to header 'publicHeadContent' => function (): void { echo dcUtils::cssLoad(dcCore::app()->blog->url . dcCore::app()->url->getURLFor('epccss')); }, // Filter template blocks content 'publicBeforeContentFilterV2' => function (string $tag, array $args): void { $filters = Epc::getFilters(); foreach ($filters as $id => $filter) { if (!Epc::testContext($tag, $args, $filter)) { continue; } $filter->publicContent($tag, $args); } }, // Widgets 'initWidgets' => [Widgets::class, 'initWidgets'], ]); return true; } }