diff --git a/_admin.php b/_admin.php index 6667271..3cfaab3 100644 --- a/_admin.php +++ b/_admin.php @@ -22,7 +22,7 @@ require __DIR__ . '/_widgets.php'; dcCore::app()->menu[dcAdmin::MENU_PLUGINS]->addItem( __('Enhance post content'), 'plugin.php?p=enhancePostContent', - 'index.php?pf=enhancePostContent/icon.png', + urldecode(dcPage::getPF('enhancePostContent/icon.svg')), preg_match( '/plugin.php\?p=enhancePostContent(&.*)?$/', $_SERVER['REQUEST_URI'] @@ -54,8 +54,8 @@ class epcAdminBehaviors $favs->register('enhancePostContent', [ 'title' => __('Enhance post content'), 'url' => 'plugin.php?p=enhancePostContent', - 'small-icon' => 'index.php?pf=enhancePostContent/icon.png', - 'large-icon' => 'index.php?pf=enhancePostContent/icon-big.png', + 'small-icon' => urldecode(dcPage::getPF('enhancePostContent/icon.svg')), + 'large-icon' => urldecode(dcPage::getPF('enhancePostContent/icon.svg')), 'permissions' => dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([dcAuth::PERMISSION_CONTENT_ADMIN]), dcCore::app()->blog->id), 'active_cb' => [ 'epcAdminBehaviors', diff --git a/icon-big.png b/icon-big.png deleted file mode 100644 index b5ce630..0000000 Binary files a/icon-big.png and /dev/null differ diff --git a/icon.png b/icon.png deleted file mode 100644 index 42104dd..0000000 Binary files a/icon.png and /dev/null differ diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..b73bf85 --- /dev/null +++ b/icon.svg @@ -0,0 +1,59 @@ + + + +