use SVG icon

This commit is contained in:
Jean-Christian Paul Denis 2022-11-25 23:20:27 +01:00
parent a51fc375f7
commit 862a4bff7c
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
4 changed files with 62 additions and 3 deletions

View File

@ -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',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

BIN
icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 636 B

59
icon.svg Normal file
View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <image id="image0" width="64" height="64" x="0" y="0"
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEU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