This commit is contained in:
Jean-Christian Paul Denis 2022-12-08 00:04:35 +01:00
parent 86475e42f8
commit fbc7a75e12
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
3 changed files with 8 additions and 9 deletions

View File

@ -45,8 +45,7 @@ dcCore::app()->url->register(
'epccss',
'epc.css',
'^epc\.css',
function($args)
{
function ($args) {
$css = [];
$filters = libEPC::getFilters();

View File

@ -23,11 +23,11 @@ if (!dcCore::app()->blog->settings->enhancePostContent->enhancePostContent_activ
}
// Add filters CSS to page header
dcCore::app()->addBehavior('publicHeadContent', function() {
dcCore::app()->addBehavior('publicHeadContent', function () {
echo dcUtils::cssLoad(dcCore::app()->blog->url . dcCore::app()->url->getURLFor('epccss'));
});
// Filter template blocks content
dcCore::app()->addBehavior('publicBeforeContentFilterV2', function($tag, $args) {
dcCore::app()->addBehavior('publicBeforeContentFilterV2', function ($tag, $args) {
$filters = libEPC::getFilters();
foreach ($filters as $id => $filter) {