| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Falcon |
| 4 |
* Plugin URI: https://wpfalcon.pro |
| 5 |
* Description: WordPress optimizations & tweaks |
| 6 |
* Version: 2.11.0 |
| 7 |
* Author: eLightUp |
| 8 |
* Author URI: https://elightup.com |
| 9 |
* License: GPL2+ |
| 10 |
* Text Domain: falcon |
| 11 |
* Domain Path: /languages/ |
| 12 |
* |
| 13 |
* Copyright (C) 2010-2025 Tran Ngoc Tuan Anh. All rights reserved. |
| 14 |
* |
| 15 |
* This program is free software: you can redistribute it and/or modify |
| 16 |
* it under the terms of the GNU General Public License as published by |
| 17 |
* the Free Software Foundation, either version 2 of the License, or |
| 18 |
* (at your option) any later version. |
| 19 |
* |
| 20 |
* This program is distributed in the hope that it will be useful, |
| 21 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 |
* GNU General Public License for more details. |
| 24 |
* |
| 25 |
* You should have received a copy of the GNU General Public License |
| 26 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 27 |
*/ |
| 28 |
|
| 29 |
namespace Falcon; |
| 30 |
|
| 31 |
define( 'FALCON_URL', plugin_dir_url( __FILE__ ) ); |
| 32 |
define( 'FALCON_DIR', __DIR__ ); |
| 33 |
|
| 34 |
require __DIR__ . '/vendor/autoload.php'; |
| 35 |
|
| 36 |
new Settings; |
| 37 |
|
| 38 |
new General; |
| 39 |
new Admin; |
| 40 |
new Security; |
| 41 |
new Email; |
| 42 |
new Components\Cache\Manager; |
| 43 |
|
| 44 |
if ( is_admin() ) { |
| 45 |
new Core; |
| 46 |
new Components\Cleanup; |
| 47 |
} else { |
| 48 |
new Header; |
| 49 |
new Media; |
| 50 |
new LazyLoadCSS; |
| 51 |
} |
| 52 |
|