PluginProbe
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) / 1.3.2
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) v1.3.2
2.1.3 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 All 57 releases
← All changes | darkify.php +24 -37 1.5.21.3.2 View file →
@@ -13,11 +13,11 @@
13 13 * @package Darkify
14 14 *
15 15 * @wordpress-plugin
16 16 * Plugin Name: Darkify
17 - * Plugin URI: https://darkifywp.com/
17 + * Plugin URI: https://themeatelier.net/downloads/darkify/
18 18 * Description: Darkify is for a stylish, modern darkmode look that people love.
19 - * Version: 1.5.2
19 + * Version: 1.3.2
20 20 * Author: ThemeAtelier
21 21 * Author URI: https://themeatelier.net/
22 22 * License: GPL-2.0+
23 23 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -31,9 +31,9 @@
31 31 }
32 32
33 33 require_once __DIR__ . '/vendor/autoload.php';
34 34
35 -use ThemeAtelier\Darkify\Includes\Darkify;
35 +use ThemeAtelier\Darkify\Darkify;
36 36
37 37 /**
38 38 * Currently plugin version.
39 39 * Start at version 1.0.0 and use SemVer - https://semver.org
@@ -38,34 +38,17 @@
38 38 * Currently plugin version.
39 39 * Start at version 1.0.0 and use SemVer - https://semver.org
40 40 * Rename this for your plugin and update it as you release new versions.
41 41 */
42 -if (!defined('DARKIFY_VERSION')) {
43 - define('DARKIFY_VERSION', '1.5.2');
44 -}
45 -if (!defined('DARKIFY_FILE')) {
46 - define('DARKIFY_FILE', __FILE__);
47 -}
48 -if (!defined('DARKIFY_DIR_URL')) {
49 - define('DARKIFY_DIR_URL', plugin_dir_url(__FILE__));
50 -}
51 -if (!defined('DARKIFY_BASENAME')) {
52 - define('DARKIFY_BASENAME', plugin_basename(__FILE__));
53 -}
54 -if (!defined('DARKIFY_PATH')) {
55 - define('DARKIFY_PATH', plugin_dir_path(__FILE__));
56 -}
57 -if (!defined('DARKIFY_DIR_NAME')) {
58 - define('DARKIFY_DIR_NAME', dirname(__FILE__));
59 -}
60 -if (!defined('DARKIFY_DEMO_URL')) {
61 - define('DARKIFY_DEMO_URL', 'https://darkifywp.com/');
62 -}
63 -if (!defined('DARKIFY_DOCS_URL')) {
64 - define('DARKIFY_DOCS_URL', 'https://darkifywp.com/docs/');
65 -}
42 +define('DARKIFY_VERSION', '1.3.2');
43 +define('DARKIFY_FILE', __FILE__);
44 +define('DARKIFY_DIR_URL', plugin_dir_url(__FILE__));
45 +define('DARKIFY_BASENAME', plugin_basename(__FILE__));
46 +define('DARKIFY_PATH', plugin_dir_path(__FILE__));
47 +define('DARKIFY_DIR_NAME', dirname(__FILE__));
66 48
67 -function darkify_run()
49 +
50 +function darkify()
68 51 {
69 52 // Launch the plugin.
70 53 $darkify = new Darkify();
71 54 $darkify->run();
@@ -70,17 +53,20 @@
70 53 $darkify = new Darkify();
71 54 $darkify->run();
72 55 }
73 56
57 +include_once ABSPATH . 'wp-admin/includes/plugin.php';
58 +$pro_plugin_slug = 'darkify-pro/darkify-pro.php';
59 +// kick-off the plugin
60 +if (!is_plugin_active($pro_plugin_slug)) {
61 + darkify();
62 +}
63 +
64 +
74 65 /**
75 - * Pro version check.
76 - *
77 - * @return boolean
66 + * Options page callback
78 67 */
79 -include_once ABSPATH . 'wp-admin/includes/plugin.php';
80 -if (! (is_plugin_active('darkify-pro/darkify-pro.php') || is_plugin_active_for_network('darkify-pro/darkify-pro.php'))) {
81 - darkify_run();
82 -}
68 +function darkify_settings() {}
83 69
84 70
85 71 /**
86 72 * Initialize the plugin tracker
@@ -88,14 +74,15 @@
88 74 * @return void
89 75 */
90 76 function darkify_appsero_init()
91 77 {
78 +
92 79 if (!class_exists('DarkifyAppSero\Insights')) {
93 80 require_once DARKIFY_PATH . 'src/Admin/appsero/Client.php';
94 81 }
95 82
96 - $client = new DarkifyAppSero\Client('16b2d91f-fd42-42d1-b199-5ae98213496a', 'Darkify Dark Mode', __FILE__);
83 + $client = new DarkifyAppSero\Client('d1635433-15b4-474b-98f8-0c0809dec2c1', 'Darkify', __FILE__);
97 84 // Active insights
98 85 $client->insights()->init();
99 86 }
100 87
101 -add_action('plugins_loaded', 'darkify_appsero_init');
88 +darkify_appsero_init();