From fbc7a75e1201e618bbbf5b80897811653a5781e9 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 8 Dec 2022 00:04:35 +0100 Subject: [PATCH] cosmetic --- _define.php | 10 +++++----- _prepend.php | 3 +-- _public.php | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/_define.php b/_define.php index 683322c..9505c9b 100644 --- a/_define.php +++ b/_define.php @@ -24,11 +24,11 @@ $this->registerModule( 'permissions' => dcCore::app()->auth->makePermissions([ dcAuth::PERMISSION_CONTENT_ADMIN, ]), - 'type' => 'plugin', - 'support' => 'https://github.com/JcDenis/enhancePostContent', - 'details' => 'https://plugins.dotaddict.org/dc2/details/enhancePostContent', - 'repository' => 'https://raw.githubusercontent.com/JcDenis/enhancePostContent/master/dcstore.xml', - 'settings' => [ + 'type' => 'plugin', + 'support' => 'https://github.com/JcDenis/enhancePostContent', + 'details' => 'https://plugins.dotaddict.org/dc2/details/enhancePostContent', + 'repository' => 'https://raw.githubusercontent.com/JcDenis/enhancePostContent/master/dcstore.xml', + 'settings' => [ 'blog' => '#params.epc_params', ], ] diff --git a/_prepend.php b/_prepend.php index 74aeb29..0323231 100644 --- a/_prepend.php +++ b/_prepend.php @@ -45,8 +45,7 @@ dcCore::app()->url->register( 'epccss', 'epc.css', '^epc\.css', - function($args) - { + function ($args) { $css = []; $filters = libEPC::getFilters(); diff --git a/_public.php b/_public.php index fd4420d..5dca60d 100644 --- a/_public.php +++ b/_public.php @@ -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) {