-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiconography.php
37 lines (32 loc) · 1.26 KB
/
iconography.php
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
<?php
/**
* Plugin Name: Iconography
* Description: Provides iconography for the block editor.
* Version: 1.0.0
* Author: BoxUK
* Author URI: https://www.boxuk.com
* Requires at least: 6.4
*
* @package Boxuk\Iconography
*/
declare ( strict_types = 1 );
namespace Boxuk\Iconography;
add_action(
'plugins_loaded',
function () {
add_filter(
'boxuk_iconography_files',
function ( array $config_files ): array {
$plugin_dir = __DIR__;
$config_files['material-symbols-outlined'] = $plugin_dir . '/config/material-symbols-outlined.config.json';
$config_files['material-symbols-outlined-filled'] = $plugin_dir . '/config/material-symbols-outlined-filled.config.json';
$config_files['material-symbols-sharp'] = $plugin_dir . '/config/material-symbols-sharp.config.json';
$config_files['material-symbols-sharp-filled'] = $plugin_dir . '/config/material-symbols-sharp-filled.config.json';
$config_files['material-symbols-rounded'] = $plugin_dir . '/config/material-symbols-rounded.config.json';
$config_files['material-symbols-rounded-filled'] = $plugin_dir . '/config/material-symbols-rounded-filled.config.json';
return $config_files;
}
);
( new IconographyService( new ConfigurationParser() ) )->init();
}
);