From a898a9baee91cd6bbb0b50a47977eb38a7df9e34 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 1 Feb 2022 21:44:08 +0100 Subject: [PATCH] use dc2.21 new svg icon (thx @franckpaul for them) --- _admin.php | 6 +++--- _define.php | 4 ++-- icon-big.png | Bin 867 -> 0 bytes icon-dark.svg | 1 + icon.png | Bin 258 -> 0 bytes icon.svg | 1 + 6 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 icon-big.png create mode 100644 icon-dark.svg delete mode 100644 icon.png create mode 100644 icon.svg diff --git a/_admin.php b/_admin.php index bf170c4..ca8e2df 100644 --- a/_admin.php +++ b/_admin.php @@ -21,7 +21,7 @@ $core->addBehavior('adminDashboardFavorites', ['packmanBehaviors', 'adminDashboa $_menu['Plugins']->addItem( __('Packages repository'), 'plugin.php?p=pacKman#packman-repository-repository', - 'index.php?pf=pacKman/icon.png', + [dcPage::getPF('pacKman/icon.svg'), dcPage::getPF('pacKman/icon-dark.svg')], preg_match( '/plugin.php\?p=pacKman(&.*)?$/', $_SERVER['REQUEST_URI'] @@ -36,8 +36,8 @@ class packmanBehaviors $favs->register('pacKman', [ 'title' => __('Packages repository'), 'url' => 'plugin.php?p=pacKman#packman-repository-repository', - 'small-icon' => 'index.php?pf=pacKman/icon.png', - 'large-icon' => 'index.php?pf=pacKman/icon-big.png', + 'small-icon' => [dcPage::getPF('pacKman/icon.svg'), dcPage::getPF('pacKman/icon-dark.svg')], + 'large-icon' => [dcPage::getPF('pacKman/icon.svg'), dcPage::getPF('pacKman/icon-dark.svg')], 'permissions' => $core->auth->isSuperAdmin(), 'active_cb' => [ 'packmanBehaviors', diff --git a/_define.php b/_define.php index d5f36ac..605cfa0 100644 --- a/_define.php +++ b/_define.php @@ -18,9 +18,9 @@ $this->registerModule( 'pacKman', 'Manage your Dotclear packages', 'Jean-Christian Denis', - '2021.11.06', + '2022.02.01', [ - 'requires' => [['core', '2.19']], + 'requires' => [['core', '2.21']], 'permissions' => null, 'type' => 'plugin', 'support' => 'https://github.com/JcDenis/pacKman', diff --git a/icon-big.png b/icon-big.png deleted file mode 100644 index 9b7014df7f50fc050cf1d79ac053ad5ce156c771..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 867 zcmV-p1DyPcP)%km6 z*hKIm5#n8}p(hX31U%G(+JI0GQe5y*5Nj1GITS*AvQTKL2lXJ074)P@r3b--1wjPC z-BRcwf{kDVp-|t`32t_io!QQAwGb)-}}EeGdr848uOr)!J%PzIS=g&wB8n{ zRG=+GE1i1&c$N7mh@FC$477e8->w>u{|sW!%U)OW5PS|=%0td3w7XuCae;mZTHM2* zA^e<75j2Seu+m1GipwUWLoyYQ#<9u;kI?NSA^~x0ZYS-NxKKgCJmUt+UgzY``-hM1E{D@$ z4ce6!LmEd)k7s#_R(ATm!HNcMO0J|INm6 zG||UW#k>&xuj*I!x%j{h#Eyi@Yfv9w%$;sQS`f9mR z31#zG@x;~3^0`Lka*eok+7}S4==!6l(uQIK{VaKZT-iJt_hKHwZ!EoNEQHE;fw^{b zvgd?&C~p0z|5+bYgi}vu^x+z0E6zL=QF#%>#p=D{ogfTh^-lr-)31%tqQ}ihm_pN8 zUp7K*w!)b`YP=N4R#>oG3te7!nIsaac?}pD9n0_shrn0)ONQ%Ri9Jm0%8dq-&}XLe zC5@Y3+%4jJ1VBUC2(Ns%su1~)Ha9^i?syuU9KRW8#80{FuKhvBzjbd){%NoqL;wf? z0U!Vbpqu5`2h1)!3HI4t&>wVsAppZ%4;4Vr@o5SW0Ou4)+kRKJ9jAScSr+u`?C6ZxSvfB+Bx0zd!=00AHX1b_e# z00KY&2mk>f00e*l5C8%|00;m9AOHlQTO|CiG5beL$`X847F33qp^gBvg9~oT0MI)a tfGz}pUm=H=Y=?~m^pfS?n)F+M0RUu}?>_6XD^LIc002ovPDHLkV1hEVg$Dot diff --git a/icon-dark.svg b/icon-dark.svg new file mode 100644 index 0000000..6538ed4 --- /dev/null +++ b/icon-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon.png b/icon.png deleted file mode 100644 index 252e978154d478cc3397d6302525290a9185acd1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 258 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5XmUy~2hE&{2N@-|P-Y59GaSHR4-wYkxjX#*C#&C5 zsr-hUdkzU6NodRpbGUSdA#}$)M)QW%sZ4?nmmSRH5)|YnEE2O%@HxM_f`19?2G3*n z>KT@aYim8Y^q*0LjcIMEYD8+j%Cm;dm`_)IZJB(od^l7eGs&fbk*PqEspsB*1)eG8 z2bQ)c>Gw!Eurfy^cnW2QI9+BGc*A}wStVJ3Q6Pcggpu)lFPW3lK=(3uy85}Sb4q9e E0L?~Q8vp \ No newline at end of file