use svg icon

This commit is contained in:
Jean-Christian Denis 2022-11-26 15:18:27 +01:00
parent a325b8718a
commit 5dd6448085
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
6 changed files with 58 additions and 4 deletions

View file

@ -21,7 +21,7 @@ require_once __DIR__ . '/_widgets.php';
dcCore::app()->menu[dcAdmin::MENU_PLUGINS]->addItem(
__('Feeds server'),
dcCore::app()->adminurl->get('admin.plugin.zoneclearFeedServer'),
dcPage::getPF('zoneclearFeedServer/icon.png'),
dcPage::getPF('zoneclearFeedServer/icon.svg'),
preg_match(
'/' . preg_quote(dcCore::app()->adminurl->get('admin.plugin.zoneclearFeedServer')) . '(&.*)?$/',
$_SERVER['REQUEST_URI']
@ -87,8 +87,8 @@ class zcfsAdminBehaviors
$favs->register('zcfs', [
'title' => __('Feeds server'),
'url' => dcCore::app()->adminurl->get('admin.plugin.zoneclearFeedServer'),
'small-icon' => dcPage::getPF('zoneclearFeedServer/icon.png'),
'large-icon' => dcPage::getPF('zoneclearFeedServer/icon-big.png'),
'small-icon' => dcPage::getPF('zoneclearFeedServer/icon.svg'),
'large-icon' => dcPage::getPF('zoneclearFeedServer/icon.svg'),
'permissions' => 'usage,contentadmin',
'active_cb' => ['zcfsAdminBehaviors', 'adminDashboardFavoritesActive'],
'dashboard_cb' => ['zcfsAdminBehaviors', 'adminDashboardFavoritesCallback'],
@ -123,7 +123,7 @@ class zcfsAdminBehaviors
}
$fav['title'] .= '<br />' . sprintf(__('%s feed disabled', '%s feeds disabled', $count), $count);
$fav['large-icon'] = dcPage::getPF('zoneclearFeedServer/icon-big-update.png');
$fav['large-icon'] = dcPage::getPF('zoneclearFeedServer/icon-pdate.svg');
$fav['url'] = dcCore::app()->adminurl->get(
'admin.plugin.zoneclearFeedServer',
['part' => 'feeds', 'sortby' => 'feed_status', 'order' => 'asc']

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

29
icon-update.svg Normal file
View file

@ -0,0 +1,29 @@
<?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,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAABGdBTUEAALGPC/xhBQAAACBjSFJN
AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElN
RQfmCxoQDjGXxloRAAAETklEQVRo3u2YQUwbRxRAHwQadwN2Cw6lKM4hCq5SFbEiSMSJIiRo1Asc
kgMVJ5Sqh0TKqWmVQ3uoUHqoqqri0jYneuMWDtBIVQ2qRVPXktsuSqMqjpQoIBFKjNEam0CApIdd
7y72rr2219BI/IO1s3/n/zf/z/wZT9ULSpVPb3JefRz/4kKpVqpL9u+Q7APsOUBNWb3HyweoKn0V
7HIEYh3T78uH7X3reXJmou1XhwHGr3ARPIAMgAs3S6quiSTrimtARubW4da/XGlHARTzl4DvkYFB
mpgiCnTSyxKjWXq7UtQqOJjza62xN/4iI6CMUwn8GB7mAIiypI7ZqLcrRS5D3bhsCPScid6uvFSF
aLQSAP/3QjQ1GD1XnoPOn3vHygCInuNieQBRygIAcNHJOlG11cobxNTZ7qITiKpVsAk//3I/M3Jc
mqZMgB7aAFk1fQE4yQgA73AGNLhBXMCXKmYv4OZWQes2luEGgLbq17U3Zt+t7+izQWGxEYHbyMha
ifmBNu6oz1E2QGuNGTRz3MTD384A6PlXImHcZ+9Yau5jT16qSpglWyTYAmpoKMNMiT3jPCeltVLU
UY13dwBSbJJkO+ctpHFTS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llPAAAAABJRU5ErkJggg==" />
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 411 B

25
icon.svg Normal file
View file

@ -0,0 +1,25 @@
<?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,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAACBjSFJN
AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA/1BMVEX///9+fXfsx8vLY23E
TVjpvMD79PXem6Hh7vaXxeEpda7w9/umzeVdpNATe7rE3u5srdQig76JvdwxjMNOnMvT5vJ7tdg/
lMe11unc6/fW6PWiy+ni7/i52O/Q5fS/2/CozurC3fB+fXfETVjLY23IWGLPbnf////03uDem6H4
6erTeoLipqzWhYzpvMD79PXlsbbakJe5UF53YYM0cqiNW3dKbZsTe7qjVmpgZ48eeLSuU2SCXn1d
pNC11uk/lMdVapUxjMOYxeHw9/sig75srdTT5vKnzuXi7/aJvd3E3u56tdhOnMtJmcxSns+iy+lA
lMl+t91bo9J1stqZxuawZyn7AAAAInRSTlMAiTids0QMZB5o1xBao+08k912z7EshcFKJCpeHkYw
QFg+V/ayxwAAAAFiS0dEAIgFHUgAAAAHdElNRQfmCxoQDh48F2dIAAACRklEQVRYw+1Ua1eiUBSl
iZk0E1JoZoqymoucUOyliVlWmlbTi17//7fMvVwQVJB7YdZ8mNX+4FqHdfZ2n81WQZiHhV8YC0J6
fApgARcZBNLiy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