-
Notifications
You must be signed in to change notification settings - Fork 0
/
listig.php
42 lines (37 loc) · 1.05 KB
/
listig.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
41
42
<?php
/*
Plugin Name: Listig
Plugin URI: https://github.com/ekandreas/listig/
Description: List Manager
Version: 0.2.6
Author: Andreas Ek
Author URI: https://www.elseif.se/
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: listig
Domain Path: /languages
*/
/**
* Check for PHP >= 7 and nag an error if not true!
*/
if (PHP_VERSION<7) {
add_action('admin_notices', 'listig_requires_php_version_7');
function listig_requires_php_version_7()
{
$class = 'notice notice-error';
$message = __('Plugin "listig" requires at least PHP7. Please upgrade PHP or inactivate the plugin!', 'listig');
printf('<div class="%1$s"><p>%2$s</p></div>', $class, $message);
}
return;
}
if (!defined('LISTIG_PLUGIN_FILE')) {
define('LISTING_PLUGIN_FILE', __FILE__);
}
/**
* Namespace autoload outside of Composer to reach WordPress plugin compability without Composer
*/
require_once 'listig/autoload.php';
/**
* Global registrations, functions and filters
*/
require_once 'listig/globals/required.php';