PluginProbe
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) / 1.4.23
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) v1.4.23
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
darkify / src / Admin / Views / DarkifyOptions.php

DarkifyOptions.php in Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) 1.4.23, at src/Admin/Views/DarkifyOptions.php

69 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace ThemeAtelier\Darkify\Admin\Views;
4
5 use ThemeAtelier\Darkify\Admin\Framework\Classes\Darkify;
6 use ThemeAtelier\Darkify\Admin\Views\SwitcherStyle;
7 use ThemeAtelier\Darkify\Admin\Views\Control;
8 use ThemeAtelier\Darkify\Admin\Views\AdvancedSettings;
9
10 if (!defined('ABSPATH')) {
11 die;
12 } // Cannot access directly.
13
14 class DarkifyOptions
15 {
16 /**
17 * Create Option fields for the setting options.
18 *
19 * @param string $prefix Option setting key prefix.
20 * @return void
21 */
22 public static function options($prefix)
23 {
24 //
25 // Create options
26 //
27 Darkify::createOptions($prefix, array(
28 'menu_title' => esc_html__('Darkify', 'darkify'),
29 'menu_slug' => 'darkify',
30 'menu_position' => 25,
31 'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode('<svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.5 1.5C23.5 0.671573 22.8284 0 22 0C21.1716 0 20.5 0.671573 20.5 1.5V4.5C20.5 5.32843 21.1716 6 22 6C22.8284 6 23.5 5.32843 23.5 4.5V1.5Z" fill="white"/><path d="M34 22C34 28.6274 28.6274 34 22 34C15.3726 34 10 28.6274 10 22C10 15.3726 15.3726 10 22 10C28.6274 10 34 15.3726 34 22Z" fill="white"/><path d="M22 38C22.8284 38 23.5 38.6716 23.5 39.5V42.5C23.5 43.3284 22.8284 44 22 44C21.1716 44 20.5 43.3284 20.5 42.5V39.5C20.5 38.6716 21.1716 38 22 38Z" fill="white"/><path d="M10.6863 10.6863C10.1005 11.2721 9.15074 11.2721 8.56495 10.6863L6.44363 8.56498C5.85784 7.97919 5.85784 7.02945 6.44363 6.44366C7.02942 5.85787 7.97916 5.85787 8.56495 6.44366L10.6863 8.56498C11.2721 9.15077 11.2721 10.1005 10.6863 10.6863Z" fill="white"/><path d="M35.435 37.5564C36.0208 38.1421 36.9705 38.1421 37.5563 37.5564C38.1421 36.9706 38.1421 36.0208 37.5563 35.435L35.435 33.3137C34.8492 32.7279 33.8995 32.7279 33.3137 33.3137C32.7279 33.8995 32.7279 34.8493 33.3137 35.435L35.435 37.5564Z" fill="white"/><path d="M10.6863 33.3137C11.2721 33.8995 11.2721 34.8492 10.6863 35.435L8.56495 37.5563C7.97916 38.1421 7.02942 38.1421 6.44363 37.5563C5.85784 36.9706 5.85784 36.0208 6.44363 35.435L8.56495 33.3137C9.15074 32.7279 10.1005 32.7279 10.6863 33.3137Z" fill="white"/><path d="M37.5563 8.56496C38.1421 7.97918 38.1421 7.02943 37.5563 6.44364C36.9705 5.85786 36.0208 5.85786 35.435 6.44364L33.3137 8.56496C32.7279 9.15075 32.7279 10.1005 33.3137 10.6863C33.8995 11.2721 34.8492 11.2721 35.435 10.6863L37.5563 8.56496Z" fill="white"/><path d="M6 22C6 22.8284 5.32843 23.5 4.5 23.5H1.5C0.671573 23.5 0 22.8284 0 22C0 21.1716 0.671573 20.5 1.5 20.5H4.5C5.32843 20.5 6 21.1716 6 22Z" fill="white"/><path d="M42.5 23.5C43.3284 23.5 44 22.8284 44 22C44 21.1716 43.3284 20.5 42.5 20.5H39.5C38.6716 20.5 38 21.1716 38 22C38 22.8284 38.6716 23.5 39.5 23.5H42.5Z" fill="white"/></svg>'),
32 'framework_title' => esc_html__('Darkify', 'darkify'),
33 'footer_text' => esc_html__('Thank you for using our plugin', 'darkify'),
34 'theme' => 'light',
35 'nav' => 'inline',
36 'show_search' => false,
37 'show_reset_all' => false,
38 'show_sub_menu' => false,
39 'show_bar_menu' => false,
40 'sticky_header' => false,
41 'show_footer' => false,
42 'show_all_options' => false,
43 'framework_class' => 'darkify-setting-admin',
44 'class' => 'darkify-preloader',
45 'menu_type' => 'submenu',
46 ));
47
48 //
49 // control section
50 //
51 Control::options($prefix);
52 SwitcherStyle::options($prefix);
53 ColorControl::options($prefix);
54 Media::options($prefix);
55 AdvancedSettings::options($prefix);
56 License::options($prefix);
57 Darkify::createSection($prefix, array(
58 'title' => esc_html__('HELP', 'darkify'),
59 'icon' => 'icofont-life-buoy',
60 'fields' => array(
61 array(
62 'id' => 'ta_help',
63 'type' => 'ta_help',
64 ),
65 )
66 ));
67 }
68 }
69