cosmetic
parent
222000a5fe
commit
16684555a0
14
_define.php
14
_define.php
|
@ -25,12 +25,12 @@ $this->registerModule(
|
|||
dcAuth::PERMISSION_USAGE,
|
||||
dcAuth::PERMISSION_CONTENT_ADMIN,
|
||||
]),
|
||||
'type' => 'plugin',
|
||||
'support' => 'https://github.com/JcDenis/postWidgetText',
|
||||
'details' => 'https://plugins.dotaddict.org/dc2/details/postWidgetText',
|
||||
'repository' => 'https://raw.githubusercontent.com/JcDenis/postWidgetText/master/dcstore.xml',
|
||||
'settings' => [
|
||||
'blog' => '#params.pwt_params'
|
||||
]
|
||||
'type' => 'plugin',
|
||||
'support' => 'https://github.com/JcDenis/postWidgetText',
|
||||
'details' => 'https://plugins.dotaddict.org/dc2/details/postWidgetText',
|
||||
'repository' => 'https://raw.githubusercontent.com/JcDenis/postWidgetText/master/dcstore.xml',
|
||||
'settings' => [
|
||||
'blog' => '#params.pwt_params',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
|
|
@ -248,7 +248,7 @@ class postWidgetText
|
|||
'excerpt' => &$excerpt,
|
||||
'content' => &$content,
|
||||
'excerpt_xhtml' => &$excerpt_xhtml,
|
||||
'content_xhtml' => &$content_xhtml
|
||||
'content_xhtml' => &$content_xhtml,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ class adminPostWidgetText
|
|||
self::sortbyCombo(),
|
||||
'post_dt',
|
||||
'desc',
|
||||
[__('entries per page'), 20]
|
||||
[__('entries per page'), 20],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ class adminPostWidgetText
|
|||
'small-icon' => dcPage::getPF('postWidgetText/icon.png'),
|
||||
'large-icon' => dcPage::getPF('postWidgetText/icon-big.png'),
|
||||
'permissions' => dcCore::app()->auth->check('usage,contentadmin', dcCore::app()->blog->id),
|
||||
'active_cb' => ['adminPostWidgetText', 'adminDashboardFavoritesActive']
|
||||
'active_cb' => ['adminPostWidgetText', 'adminDashboardFavoritesActive'],
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -234,7 +234,7 @@ class adminPostWidgetText
|
|||
$line->post_id = $bk->old_ids['post'][(int) $line->post_id];
|
||||
|
||||
$exists = $bk->postwidgettext->getWidgets([
|
||||
'post_id' => $line->post_id
|
||||
'post_id' => $line->post_id,
|
||||
]);
|
||||
|
||||
if ($exists->isEmpty()) {
|
||||
|
@ -258,7 +258,7 @@ class adminPostWidgetText
|
|||
{
|
||||
if ($line->__name == 'postwidgettext') {
|
||||
$exists = $bk->postwidgettext->getWidgets([
|
||||
'post_id' => $line->post_id
|
||||
'post_id' => $line->post_id,
|
||||
]);
|
||||
|
||||
if ($exists->isEmpty()) {
|
||||
|
|
|
@ -15,9 +15,9 @@ if (!defined('DC_CONTEXT_ADMIN')) {
|
|||
}
|
||||
|
||||
dcPage::check(dcCore::app()->auth->makePermissions([
|
||||
dcAuth::PERMISSION_USAGE,
|
||||
dcAuth::PERMISSION_CONTENT_ADMIN,
|
||||
]));
|
||||
dcAuth::PERMISSION_USAGE,
|
||||
dcAuth::PERMISSION_CONTENT_ADMIN,
|
||||
]));
|
||||
|
||||
$pwt = new postWidgetText();
|
||||
|
||||
|
@ -66,7 +66,7 @@ $filter->js(dcCore::app()->adminurl->get('admin.plugin.postWidgetText')) . '
|
|||
|
||||
dcPage::breadcrumb([
|
||||
__('Plugins') => '',
|
||||
__('Posts widgets') => ''
|
||||
__('Posts widgets') => '',
|
||||
]) .
|
||||
dcPage::notices();
|
||||
|
||||
|
|
Loading…
Reference in New Issue