-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.php
34 lines (27 loc) · 1003 Bytes
/
plugin.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
<?php
declare(strict_types=1);
/**
* @link https://flextype.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flextype\Plugin\Tagify;
/**
* Add Blueprint block `Tagify`
*/
registry()->set('plugins.blueprints.settings.blocks.Tagify',
registry()->get('plugins.tagify.settings.blocks.Tagify'));
/**
* Add Tagify assets
*/
$tagifyCSS[] = 'project/plugins/tagify/blocks/Tagify/dist/css/tagify.min.css';
$tagifyJS[] = 'project/plugins/tagify/blocks/Tagify/dist/js/tagify.min.js';
if (registry()->get('plugins.tagify.settings.assetsLoadOnAdmin')) {
registry()->set('assets.admin.js.tagify', $tagifyJS);
registry()->set('assets.admin.css.tagify', $tagifyCSS);
}
if (registry()->get('plugins.tagify.settings.assetsLoadOnSite')) {
registry()->set('assets.site.js.tagify', $tagifyJS);
registry()->set('assets.site.css.tagify', $tagifyCSS);
}