From 862a4bff7c74db96361b1d8a3c1b5dfd2382d306 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 25 Nov 2022 23:20:27 +0100 Subject: [PATCH] use SVG icon --- _admin.php | 6 +++--- icon-big.png | Bin 2863 -> 0 bytes icon.png | Bin 636 -> 0 bytes icon.svg | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 3 deletions(-) delete mode 100644 icon-big.png delete mode 100644 icon.png create mode 100644 icon.svg 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 b5ce630a7c0702035ba7d0742c57d918b5e1a249..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2863 zcmV+~3()k5P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02*{fSaefwW^{L9 za%BKeVQFr3E>1;MAa*k@H7+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eq-l=$R#y+L5 zP@6X=)gWw!0Sp7q-P$GCx5obejQvVKCTvkSJ@bI_A7E%dPO24>gepS;7zSK^v|C}; zZkw+q9X=mY^D|CP-mdnmZ@t#Hw7jB2AbBhpk(odOXRhz&X`X9o8koVy+qG715y%A{ zt7WG-26Hk&m4N|J?SCi}0YIifP2FGCoO6E8wy577b0dGI=q6H diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..b73bf85 --- /dev/null +++ b/icon.svg @@ -0,0 +1,59 @@ + + + +