This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfunctions.php
91 lines (77 loc) · 2.42 KB
/
functions.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
88
89
90
91
<?php
/**
* Plugin Name: Core LezWatch.TV Plugin
* Plugin URI: https://lezwatchtv.com
* Description: All the base code for LezWatch.TV - If this isn't active, the site dies. An ugly death.
* Version: 6.1.0
* Author: LezWatch.TV
* Update URI: http://lezwatchtv.com
* License: GPLv3
*
* @package LWTV
*/
/**
* Copyright 2014-24 LezWatch.TV ([email protected])
*
* This file is part of the core LWTV plugin, a plugin for WordPress.
*
* Core LezWatch.TV Plugin is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* Core LezWatch.TV Plugin is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this installation as LICENSE.
*
* If not, see <https://www.gnu.org/licenses/gpl-3.0.html>.
*/
use LWTV\_Helpers\Autoload;
use LWTV\Plugin;
require_once __DIR__ . '/php/_helpers/class-autoload.php';
// Plugin Version.
define( 'LWTV_PLUGIN_VERSION', '6.1.0' );
// Define First Year with queers:
define( 'LWTV_FIRST_YEAR', '1961' );
// Define when the site started (Sept 2013):
define( 'LWTV_CREATED_YEAR', '2013' );
// Plugin Home:
define( 'LWTV_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'LWTV_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
// Timezones:
define( 'LWTV_TIMEZONE', 'America/New_York' );
define( 'LWTV_SERVER_TIMEZONE', 'America/Los_Angeles' );
/**
* Symbolicons
*/
$upload_dir = wp_upload_dir();
if ( ! defined( 'LWTV_SYMBOLICONS_PATH' ) ) {
define( 'LWTV_SYMBOLICONS_PATH', $upload_dir['basedir'] . '/lezpress-icons/symbolicons/' );
}
if ( ! defined( 'LWTV_SYMBOLICONS_URL' ) ) {
define( 'LWTV_SYMBOLICONS_URL', $upload_dir['baseurl'] . '/lezpress-icons/symbolicons/' );
}
/**
* Autoloader serves for `LWTV` namespace and autoload all files under the php directory.
*
* To add a new component, see the file /php/class-plugin.php
*/
$autoload = new Autoload();
$autoload->add( 'LWTV', sprintf( '%s/php', __DIR__ ) );
/**
* Retrieves an instance of the Plugin.
*
* @return Plugin
*/
function lwtv_plugin() {
static $plugin = null;
if ( ! $plugin ) {
$plugin = new Plugin();
$plugin->init();
}
return $plugin;
}
lwtv_plugin();