-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnlingual.php
87 lines (76 loc) · 1.85 KB
/
nlingual.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/*
Plugin Name: nLingual
Plugin URI: https://github.com/dougwollison/nlingual
Description: Easy to manage Multilingual system, with theme development utilities and post data synchronization.
Version: 2.10.0.1
Author: Doug Wollison
Author URI: https://dougw.me
Tags: multilingual, multi, language, admin, bilingual, switcher, translation, nlingual
License: GPL2
Text Domain: nlingual
Domain Path: /languages
*/
// =========================
// ! Constants
// =========================
/**
* Reference to the plugin file.
*
* @since 2.0.0
*
* @var string
*/
define( 'NL_PLUGIN_FILE', __FILE__ );
/**
* Reference to the plugin directory.
*
* @since 2.0.0
*
* @var string
*/
define( 'NL_PLUGIN_DIR', dirname( NL_PLUGIN_FILE ) );
/**
* Reference to the plugin slug.
*
* @since 2.8.0
*
* @var string
*/
define( 'NL_PLUGIN_SLUG', basename( NL_PLUGIN_DIR ) . '/' . basename( NL_PLUGIN_FILE ) );
/**
* Identifies the current plugin version.
*
* @since 2.6.0
*
* @var string
*/
define( 'NL_PLUGIN_VERSION', '2.10.0.1' );
/**
* Identifies the current database version.
*
* @since 2.0.0
*
* @var string
*/
define( 'NL_DB_VERSION', '2.0.0' );
/**
* Stores the (assumed) undoctored URL requested.
*
* @since 2.10.0 Handle possibly undefined REQUEST_URI.
* @since 2.6.0 Won't generate if HTTP_HOST isn't present.
* @since 2.0.0
*
* @var string
*/
define( 'NL_ORIGINAL_URL', isset( $_SERVER['HTTP_HOST'] ) ? ( ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . ( $_SERVER['REQUEST_URI'] ?? '' ) ) : '' );
// =========================
// ! Includes
// =========================
require NL_PLUGIN_DIR . '/includes/autoloader.php';
require NL_PLUGIN_DIR . '/includes/functions-nlingual.php';
require NL_PLUGIN_DIR . '/includes/functions-gettext.php';
// =========================
// ! Setup
// =========================
nLingual\System::setup();