cosmetic
This commit is contained in:
parent
86475e42f8
commit
fbc7a75e12
10
_define.php
10
_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',
|
||||
],
|
||||
]
|
||||
|
@ -45,8 +45,7 @@ dcCore::app()->url->register(
|
||||
'epccss',
|
||||
'epc.css',
|
||||
'^epc\.css',
|
||||
function($args)
|
||||
{
|
||||
function ($args) {
|
||||
$css = [];
|
||||
$filters = libEPC::getFilters();
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user