-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.php
40 lines (34 loc) · 1.12 KB
/
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
35
36
37
38
39
40
<?php
/**
* Plugin Name: Block effects
* Plugin URI: https://horttcore.de
* Description: Add aos.js animations to gutenberg blocks
* Version: 1.0.0
* Author: Ralf Hortt
* Author URI: https://horttcore.de
* Text Domain: block-effects
* Domain Path: /languages/
* License: GPL3 or later
*/
namespace Horttcore\BlockEffects;
use RalfHortt\Plugin\PluginFactory;
use RalfHortt\TranslatorService\Translator;
# ------------------------------------------------------------------------------
# Autoloader
# ------------------------------------------------------------------------------
#
# Load composer autoloader file
$autoloader = dirname(__FILE__) . '/vendor/autoload.php';
if (is_readable($autoloader)):
require_once $autoloader;
endif;
if (!defined('WPINC')):
die;
endif;
# ------------------------------------------------------------------------------
# Bootstrap
# ------------------------------------------------------------------------------
PluginFactory::create()
->addService(Translator::class, 'block-effects', dirname(plugin_basename(__FILE__)).'/languages/')
->addService(BlockEffects::class)
->boot();