improved Plan / Allocation items
This commit is contained in:
1 parent
f6684f3b2e
commit
8c8d7a6f95
12 files changed
+49
-30
No files matched your search
@@ -104,7 +104,7 @@ class ItemTypeProvider
|
||||
|
||||
/**
|
||||
* Pictogram of a type (a Remix Icon class such as "ri-lightbulb-line"), or null when it has none or
|
||||
* the key isn't a configured type. Only description item types have pictograms.
|
||||
* the key isn't a configured type.
|
||||
*/
|
||||
public function getIcon(string $kind, ?string $key): ?string
|
||||
{
|
||||
@@ -154,7 +154,7 @@ class ItemTypeProvider
|
||||
'descriptions' => self::texts($type['descriptions'] ?? []),
|
||||
];
|
||||
|
||||
// Pictogram (description item types only); kept only when it's one of the offered icons.
|
||||
// Pictogram; kept only when it's one of the offered icons.
|
||||
if (isset($type['icon']) && is_string($type['icon']) && Pictograms::isValid($type['icon'])) {
|
||||
$entry['icon'] = $type['icon'];
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@ declare(strict_types=1);
|
||||
namespace MauticPlugin\PlanBundle\Service;
|
||||
|
||||
/**
|
||||
* Pictograms an administrator can give to a description item type (Settings > Configuration > Plan
|
||||
* Settings). They are icons of the Remix Icon set that Mautic ships ("ri-*" classes); each one was
|
||||
* checked against Mautic 7's icon stylesheet.
|
||||
* Pictograms an administrator can give to an item type — description or allocation (Settings >
|
||||
* Configuration > Plan Settings). They are icons of the Remix Icon set that Mautic ships ("ri-*"
|
||||
* classes); each one was checked against Mautic 7's icon stylesheet.
|
||||
*/
|
||||
final class Pictograms
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user