-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-distraction-free-view.php
45 lines (40 loc) · 1.53 KB
/
wp-distraction-free-view.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
<?php
/**
* Plugin Name: WP Distraction Free View
* Plugin URI: https://wordpress.org/plugins/wp-distraction-free-view/
* Description: "WP Distraction Free View" plugin provides distraction free viewing mode to the users of the website/blog.
* Version: 1.6.0
* Author: Mehul Gohil
* Author URI: https://mehulgohil.com/
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: wpdfv
*
* WP Distraction Free View 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 2 of the License, or any later version.
*
* WP Distraction Free View 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
* WP Distraction Free View. If not, see https://www.gnu.org/licenses/gpl-2.0.html.
*
* @package WordPress
* @subpackage WP Distraction Free View
* @author Mehul Gohil <[email protected]>
*/
namespace WPDFV;
// Bailout, if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Load Constants.
require_once __DIR__ . '/config/constants.php';
// Automatically loads files used throughout the plugin.
require_once WPDFV_PLUGIN_DIR . 'vendor/autoload.php';
// Initialize the plugin.
$plugin = new Plugin();
$plugin->register();