<?php
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
|
use JVBase\JVBIcons;
|
function jvbIcon(string $icon, array $options = []):string
|
{
|
$get = new JVBIcons();
|
return $get->getIcon($icon, $options);
|
}
|
|
function jvbCSSIcon(string $icon, array $options = []):string
|
{
|
$get = new JVBIcons();
|
return $get->getCSSIcon($icon, $options);
|
}
|
function jvbGetCSSIcons(array $iconSlugs, array $options = []):array
|
{
|
$get = new JVBIcons();
|
$return = [];
|
foreach($iconSlugs as $slug) {
|
$icon = $get->getCSSIcon($slug, $options);
|
if ($icon !== '') {
|
$return[$slug] = $icon;
|
}
|
}
|
return $return;
|
}
|
function jvbFeedBlockIcons():array
|
{
|
$icon = new JVBIcons();
|
return array_merge(
|
$icon->getIconsByGroup('content'),
|
[
|
'heart' => $icon->getIcon('heart',['title'=>'Favourite']),
|
'heart-filled' => $icon->getIcon('heart',['style' => 'fill','title'=>'Un-Favourite']),
|
'artist' => $icon->getIcon('artist'),
|
'shop' => $icon->getIcon('shop'),
|
'tattoo' => $icon->getIcon('tattoo'),
|
'piercing' => $icon->getIcon('piercing'),
|
'artwork' => $icon->getIcon('artwork'),
|
'location' => $icon->getIcon('location'),
|
'hours' => $icon->getIcon('hours'),
|
'random' => $icon->getIcon('random'),
|
'alphabetical' => $icon->getIcon('alphabetical'),
|
'calendar' => $icon->getIcon('calendar'),
|
'asc' => $icon->getIcon('asc'),
|
'desc' => $icon->getIcon('desc'),
|
'all' => $icon->getIcon('all'),
|
]
|
);
|
}
|