ispa/icons

dev-master / 0.1.x-dev 2019-03-27 10:41 UTC

This package is auto-updated.

Last update: 2024-10-27 22:55:59 UTC


README

Take a look at icons folder for all of them

Standalone usage

use Ispa\Icons\Icons;

$baseuri = 'https://raw.githack.com/ispalliance/icons/master/icons';
$icons = new Icons();

$url = $baseuri . '/128/' . $icons->getFilename('ČT 1 HD');

Usage with latte

services:
    ispa.icons.filter: Ispa\Icons\Bridges\Latte\IconUrlFilter()
    
    latte.latteFactory:
        setup:
            - addFilter(icon, @Ispa\Icons\Bridges\Latte\IconUrlFilter)
{var icon = 'ČT 1 HD'}
<img src="{$icon|icon:128}" alt="{$icon}">

<img src="https://raw.githack.com/ispalliance/icons/master/icons/128/ct1-hd.png" alt="ČT 1 HD">