-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
40 lines (36 loc) · 1.99 KB
/
index.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
/**
* @wordpress-plugin
* Plugin Name: WP/LR Sync Folders with Real Media Library
* Plugin URI: https://wordpress.org/plugins/wplr-sync-folders/
* Description: Synchronize your folders and collections in Real Media Library (Media Library Folders for WordPress) with Lightroom (with the help of WP/LR Sync).
* Author: devowl.io GmbH
* Author URI: https://devowl.io/
* Version: 1.1.2
* Text Domain: wplr-rml
* Domain Path: /languages
*/
defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); // Avoid direct file request
/**
* Plugin constants. This file is procedural coding style for initialization of
* the plugin core and definition of plugin configuration.
*/
if (defined('WPLR_RML_PATH')) return;
define('WPLR_RML_FILE', __FILE__);
define('WPLR_RML_PATH', dirname(WPLR_RML_FILE));
define('WPLR_RML_INC', trailingslashit(path_join(WPLR_RML_PATH, 'inc')));
define('WPLR_RML_MIN_PHP', '5.4.0'); // Minimum of PHP 5.3 required for autoloading and namespacing
define('WPLR_RML_MIN_WP', '4.4.0'); // Minimum of WordPress 4.4 required
define('WPLR_RML_MIN_RML', '4.0.10'); // Minimum version of Real Media Library
define('WPLR_RML_NS', 'MatthiasWeb\\RealMediaLibrary\\WPLR');
define('WPLR_RML_DB_PREFIX', 'wplr_rml'); // The table name prefix wp_{prefix}
define('WPLR_RML_OPT_PREFIX', 'wplr_rml'); // The option name prefix in wp_options
//define('WPLR_RML_TD', ''); This constant is defined in the core class. Use this constant in all your __() methods
//define('WPLR_RML_VERSION', ''); This constant is defined in the core class
//define('WPLR_RML_DEBUG', true); This constant should be defined in wp-config.php to enable the Base::debug() method
// Folder types
define('WPLR_RML_TYPE_ROOT', 10);
define('WPLR_RML_TYPE_COLLECTION', 11);
define('WPLR_RML_TYPE_FOLDER', 12);
// Check PHP Version and print notice if minimum not reached, otherwise start the plugin core
require_once(WPLR_RML_INC . "others/" . (version_compare(phpversion(), WPLR_RML_MIN_PHP, ">=") ? "start.php" : "phpfallback.php"));