-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfront-desk.php
68 lines (54 loc) · 2.27 KB
/
front-desk.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
<?php
/*
Plugin Name: Front Desk
Plugin URI: https://alekhin.llemos.com/front-desk
Description: A WP plugin that enables front-end functionality including login, register, password recovery and profile editor.
Version: 1.0.1
Author: Alekhin
Author URI: https://alekhin.llemos.com
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: front-desk
Domain Path: /languages
Front Desk 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, either version 3 of the License, or any later version.
Front Desk 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
Front Desk.
If not, see https://www.gnu.org/licenses/gpl-3.0.html.
*/
namespace Alekhin\FrontDesk;
if (!defined('ABSPATH')) {
echo 'really?';
exit;
}
define(__NAMESPACE__ . '\version', '1.0.1' . (WP_DEBUG ? '.' . time() : ''));
define(__NAMESPACE__ . '\dir', plugin_dir_path(__FILE__));
define(__NAMESPACE__ . '\url', plugin_dir_url(__FILE__));
require_once dir . 'classes/vendor/autoload.php';
$symfony_loader = new \Symfony\Component\ClassLoader\Psr4ClassLoader();
$symfony_loader->addPrefix('Alekhin\FrontDesk\\', dir . str_replace('/', DIRECTORY_SEPARATOR, 'classes/Alekhin/FrontDesk'));
$symfony_loader->register();
FrontDesk::initialize();
Admin\Admin::initialize();
Admin\Theme::initialize();
Admin\Pages::initialize();
Admin\Menu::initialize();
Admin\Settings::initialize();
Menu::initialize();
Theme::initialize();
Login::initialize();
Register::initialize();
Reset::initialize();
Recover::initialize();
//TwoStep::initialize();
Profile::initialize();
// TODO: additional fields in profile and registration (filter)
// TODO: action to save additional fields
// TODO: add auto page setup for pages (single and multi)
// TODO: delete account in profile page
// TODO: add default user role on admin/settings
// TODO: add 2-step authentication