Jake Vanderwerf
2025-10-20 e729f920139f0c65902be2d6b2c32466b08375e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?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'),
        ]
    );
}