forked from felixarntz/options-definitely
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options-definitely.php
50 lines (47 loc) · 2.1 KB
/
options-definitely.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
43
44
45
46
47
48
49
50
<?php
/*
Plugin Name: Options Definitely
Plugin URI: https://wordpress.org/plugins/options-definitely/
Description: This framework plugin makes adding options screens with sections and fields to WordPress very simple, yet flexible.
Version: 0.6.1
Author: Felix Arntz
Author URI: http://leaves-and-love.net
License: GNU General Public License v3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: options-definitely
Tags: wordpress, plugin, definitely, framework, library, developer, admin, backend, structured data, ui, api, cms, options, settings, settings screen, tabs, sections, metaboxes, fields, help tabs
*/
/**
* @package WPOD
* @version 0.6.1
* @author Felix Arntz <[email protected]>
*/
if ( ! defined( 'ABSPATH' ) ) {
die();
}
if ( version_compare( phpversion(), '5.3.0' ) >= 0 && ! class_exists( 'WPOD\App' ) ) {
if ( file_exists( dirname( __FILE__ ) . '/options-definitely/vendor/autoload.php' ) ) {
require_once dirname( __FILE__ ) . '/options-definitely/vendor/autoload.php';
} elseif ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
}
} elseif ( ! class_exists( 'LaL_WP_Plugin_Loader' ) ) {
if ( file_exists( dirname( __FILE__ ) . '/options-definitely/vendor/felixarntz/leavesandlove-wp-plugin-util/leavesandlove-wp-plugin-loader.php' ) ) {
require_once dirname( __FILE__ ) . '/options-definitely/vendor/felixarntz/leavesandlove-wp-plugin-util/leavesandlove-wp-plugin-loader.php';
} elseif ( file_exists( dirname( __FILE__ ) . '/vendor/felixarntz/leavesandlove-wp-plugin-util/leavesandlove-wp-plugin-loader.php' ) ) {
require_once dirname( __FILE__ ) . '/vendor/felixarntz/leavesandlove-wp-plugin-util/leavesandlove-wp-plugin-loader.php';
}
}
LaL_WP_Plugin_Loader::load_plugin( array(
'slug' => 'options-definitely',
'name' => 'Options Definitely',
'version' => '0.6.1',
'main_file' => __FILE__,
'namespace' => 'WPOD',
'textdomain' => 'options-definitely',
'use_language_packs' => true,
'is_library' => true,
), array(
'phpversion' => '5.3.0',
'wpversion' => '4.0',
) );