PluginProbe
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) / 1.2.0
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) v1.2.0
2.1.2 2.1.1 2.1.0 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 trunk 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 All 56 releases
darkify / darkify.php

darkify.php in Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) 1.2.0, at darkify.php

75 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The plugin bootstrap file
5 *
6 * This file is read by WordPress to generate the plugin information in the plugin
7 * admin area. This file also includes all of the dependencies used by the plugin,
8 * registers the activation and deactivation functions, and defines a function
9 * that starts the plugin.
10 *
11 * @link https://themeatelier.net/
12 * @since 1.0.0
13 * @package Darkify
14 *
15 * @wordpress-plugin
16 * Plugin Name: Darkify
17 * Plugin URI: https://wp-plugins.themeatelier.net/
18 * Description: Darkify is for a stylish, modern darkmode look that people love.
19 * Version: 1.2.0
20 * Author: ThemeAtelier
21 * Author URI: https://themeatelier.net/
22 * License: GPL-2.0+
23 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
24 * Text Domain: darkify
25 * Domain Path: /languages
26 */
27
28 // If this file is called directly, abort.
29 if (!defined('WPINC')) {
30 die;
31 }
32
33 /**
34 * Currently plugin version.
35 * Start at version 1.0.0 and use SemVer - https://semver.org
36 * Rename this for your plugin and update it as you release new versions.
37 */
38 define('DRK_LITE_VERSION', '1.2.0');
39 define('DRK_LITE_DIR_URL', plugin_dir_url(__FILE__));
40 define('DRK_LITE_BASENAME', plugin_basename(__FILE__));
41 define('DRK_LITE_PATH', plugin_dir_path(__FILE__));
42
43 /**
44 * The code that runs during plugin activation.
45 * This action is documented in includes/class-darkify-activator.php
46 */
47 function darkify_activate()
48 {
49 require_once DRK_LITE_PATH . 'includes/class-darkify-activator.php';
50 Darkify_Activator::activate();
51 }
52
53 /**
54 * The code that runs during plugin deactivation.
55 * This action is documented in includes/class-darkify-deactivator.php
56 */
57 function darkify_deactivate()
58 {
59 require_once DRK_LITE_PATH . 'includes/class-darkify-deactivator.php';
60 Darkify_Deactivator::deactivate();
61 }
62
63 register_activation_hook(__FILE__, 'darkify_activate');
64 register_deactivation_hook(__FILE__, 'darkify_deactivate');
65
66 require DRK_LITE_PATH . 'includes/class-darkify.php';
67
68
69 function darkify_run()
70 {
71 $plugin = new Darkify();
72 $plugin->run();
73 }
74 darkify_run();
75