| | |
| | | 'project' => 'code', |
| | | 'map' => 'map-trifold', |
| | | 'offer' => 'gift', |
| | | 'referrals' => 'hand-heart' |
| | | ]; |
| | | |
| | | |
| | |
| | | |
| | | public function __construct() |
| | | { |
| | | $this->cache = new CacheManager('icons', 604800); //1 week in seconds |
| | | $this->cache = CacheManager::for('icons', WEEK_IN_SECONDS); |
| | | // $this->cache->invalidateGroup('icons'); |
| | | $this->style = JVB_SITE['icons']??'regular'; |
| | | |
| | |
| | | 'color' => 'currentColor' |
| | | ], $options); |
| | | |
| | | $icon = $this->cache->remember( |
| | | return $this->cache->remember( |
| | | array_merge($options, ['name' => $name]), |
| | | function () use ($name, $options) { |
| | | return $this->buildIcon($name, $options); |
| | | } |
| | | ); |
| | | return $icon; |
| | | } |
| | | |
| | | public function getIconsByGroup(string $group):array |