generated from helsingborg-stad/Wordpress-Plugin-Boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
component-library.php
37 lines (30 loc) · 1.11 KB
/
component-library.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: component-library
* Plugin URI: (#plugin_url#)
* Description: A library of blade components
* Version: 4.27.3
* Author: Eric Rosenborg
* Author URI: (#plugin_author_url#)
* License: MIT
* License URI: https://opensource.org/licenses/MIT
* Text Domain: component-library
* Domain Path: /languages
*/
use ComponentLibrary\Init as ComponentLibraryInit;
// Protect agains direct file access
if (! defined('WPINC')) {
//die;
}
if(function_exists('plugin_dir_path') && function_exists('plugin_url')) {
define('COMPONENTLIBRARY_PATH', plugin_dir_path(__FILE__));
define('COMPONENTLIBRARY_URL', plugins_url('', __FILE__));
} else {
define('COMPONENTLIBRARY_PATH', dirname(__FILE__) . '/');
}
define('COMPONENTLIBRARY_TEMPLATE_PATH', COMPONENTLIBRARY_PATH . 'templates/');
if(function_exists('plugin_basename')) {
load_plugin_textdomain('component-library', false, plugin_basename(dirname(__FILE__)) . '/languages');
}
require_once COMPONENTLIBRARY_PATH . 'load.php';
require_once COMPONENTLIBRARY_PATH . 'Public.php';