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([
|
'permissions' => dcCore::app()->auth->makePermissions([
|
||||||
dcAuth::PERMISSION_CONTENT_ADMIN,
|
dcAuth::PERMISSION_CONTENT_ADMIN,
|
||||||
]),
|
]),
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'support' => 'https://github.com/JcDenis/enhancePostContent',
|
'support' => 'https://github.com/JcDenis/enhancePostContent',
|
||||||
'details' => 'https://plugins.dotaddict.org/dc2/details/enhancePostContent',
|
'details' => 'https://plugins.dotaddict.org/dc2/details/enhancePostContent',
|
||||||
'repository' => 'https://raw.githubusercontent.com/JcDenis/enhancePostContent/master/dcstore.xml',
|
'repository' => 'https://raw.githubusercontent.com/JcDenis/enhancePostContent/master/dcstore.xml',
|
||||||
'settings' => [
|
'settings' => [
|
||||||
'blog' => '#params.epc_params',
|
'blog' => '#params.epc_params',
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
@ -45,8 +45,7 @@ dcCore::app()->url->register(
|
|||||||
'epccss',
|
'epccss',
|
||||||
'epc.css',
|
'epc.css',
|
||||||
'^epc\.css',
|
'^epc\.css',
|
||||||
function($args)
|
function ($args) {
|
||||||
{
|
|
||||||
$css = [];
|
$css = [];
|
||||||
$filters = libEPC::getFilters();
|
$filters = libEPC::getFilters();
|
||||||
|
|
||||||
|
@ -23,11 +23,11 @@ if (!dcCore::app()->blog->settings->enhancePostContent->enhancePostContent_activ
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add filters CSS to page header
|
// 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'));
|
echo dcUtils::cssLoad(dcCore::app()->blog->url . dcCore::app()->url->getURLFor('epccss'));
|
||||||
});
|
});
|
||||||
// Filter template blocks content
|
// Filter template blocks content
|
||||||
dcCore::app()->addBehavior('publicBeforeContentFilterV2', function($tag, $args) {
|
dcCore::app()->addBehavior('publicBeforeContentFilterV2', function ($tag, $args) {
|
||||||
$filters = libEPC::getFilters();
|
$filters = libEPC::getFilters();
|
||||||
|
|
||||||
foreach ($filters as $id => $filter) {
|
foreach ($filters as $id => $filter) {
|
||||||
|
Loading…
Reference in New Issue
Block a user