PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 2.0.0
Adminify – White Label, Admin Menu Editor, Login Customizer v2.0.0
4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 4.1.17 All 164 releases
adminify / Inc / Admin / Options / Admin_Footer.php

Admin_Footer.php in Adminify – White Label, Admin Menu Editor, Login Customizer 2.0.0, at Inc/Admin/Options/Admin_Footer.php

156 lines 6.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPAdminify\Inc\Admin\Options;
4
5 use WPAdminify\Inc\Utils;
6 use WPAdminify\Inc\Admin\AdminSettingsModel;
7
8 if (!defined('ABSPATH')) {
9 die;
10 } // Cannot access directly.
11
12 class Admin_Footer extends AdminSettingsModel
13 {
14 public function __construct()
15 {
16 $this->admin_footer_settings();
17 }
18
19
20 public function get_defaults()
21 {
22 return [
23 'admin_footer_user_roles' => '',
24 'admin_footer_default_wp_version' => true,
25 'admin_footer_ip_address' => true,
26 'admin_footer_php_version' => true,
27 'admin_footer_wp_version' => true,
28 'admin_footer_memory_usage' => true,
29 'admin_footer_memory_limit' => true,
30 'admin_footer_memory_available' => true,
31 'footer_text' => ''
32 ];
33 }
34 public function admin_footer_settings()
35 {
36
37 if (!class_exists('ADMINIFY')) {
38 return;
39 }
40
41 \ADMINIFY::createSection(
42 $this->prefix,
43 array(
44 'title' => __('Admin Footer', WP_ADMINIFY_TD),
45 'icon' => 'fas fa-grip-horizontal',
46 'fields' => array(
47
48 array(
49 'type' => 'subheading',
50 'content' => Utils::adminfiy_help_urls(
51 __('Admin Footer Settings', WP_ADMINIFY_TD),
52 'https://wpadminify.com/kb/admin-footer/',
53 'https://www.youtube.com/playlist?list=PLqpMw0NsHXV-EKj9Xm1DMGa6FGniHHly8',
54 'https://www.facebook.com/groups/jeweltheme',
55 'https://wpadminify.com/support/'
56 )
57 ),
58 array(
59 'id' => 'admin_footer_user_roles',
60 'type' => 'select',
61 'title' => __('Disable for', WP_ADMINIFY_TD),
62 'placeholder' => __('Select User roles you don\'t want to show', WP_ADMINIFY_TD),
63 'options' => 'roles',
64 'multiple' => true,
65 'chosen' => true,
66 'default' => $this->get_default_field('admin_footer_user_roles'),
67 ),
68
69 array(
70 'id' => 'admin_footer_default_wp_version',
71 'type' => 'switcher',
72 'title' => __('Default WP Version', WP_ADMINIFY_TD),
73 'text_on' => 'Show',
74 'text_off' => 'Hide',
75 'text_width' => 90,
76 'default' => $this->get_default_field('admin_footer_default_wp_version'),
77 ),
78
79 // Adminify Footer Text
80 array(
81 'type' => 'subheading',
82 'content' => __('Adminify Footer', WP_ADMINIFY_TD),
83 ),
84
85 array(
86 'id' => 'admin_footer_ip_address',
87 'type' => 'switcher',
88 'title' => __('IP Address', WP_ADMINIFY_TD),
89 'text_on' => 'Show',
90 'text_off' => 'Hide',
91 'text_width' => 90,
92 'default' => $this->get_default_field('admin_footer_ip_address'),
93 ),
94
95 array(
96 'id' => 'admin_footer_php_version',
97 'type' => 'switcher',
98 'title' => __('PHP Version', WP_ADMINIFY_TD),
99 'text_on' => 'Show',
100 'text_off' => 'Hide',
101 'text_width' => 90,
102 'default' => $this->get_default_field('admin_footer_php_version'),
103 ),
104 array(
105 'id' => 'admin_footer_wp_version',
106 'type' => 'switcher',
107 'title' => __('WordPress Version', WP_ADMINIFY_TD),
108 'text_on' => 'Show',
109 'text_off' => 'Hide',
110 'text_width' => 90,
111 'default' => $this->get_default_field('admin_footer_wp_version'),
112 ),
113 array(
114 'id' => 'admin_footer_memory_usage',
115 'type' => 'switcher',
116 'title' => __('Memory Usage', WP_ADMINIFY_TD),
117 'text_on' => 'Show',
118 'text_off' => 'Hide',
119 'text_width' => 90,
120 'default' => $this->get_default_field('admin_footer_memory_usage'),
121 ),
122 array(
123 'id' => 'admin_footer_memory_limit',
124 'type' => 'switcher',
125 'title' => __('Memory Limit', WP_ADMINIFY_TD),
126 'text_on' => 'Show',
127 'text_off' => 'Hide',
128 'text_width' => 90,
129 'default' => $this->get_default_field('admin_footer_memory_limit'),
130 ),
131
132 array(
133 'id' => 'admin_footer_memory_available',
134 'type' => 'switcher',
135 'title' => __('Memory Available', WP_ADMINIFY_TD),
136 'text_on' => 'Show',
137 'text_off' => 'Hide',
138 'text_width' => 90,
139 'default' => $this->get_default_field('admin_footer_memory_available'),
140 ),
141
142 array(
143 'id' => 'footer_text',
144 'type' => 'wp_editor',
145 'title' => __('Admin Footer Text', WP_ADMINIFY_TD),
146 'height' => '100px',
147 'media_buttons' => false,
148 'default' => $this->get_default_field('footer_text'),
149 ),
150
151 )
152 )
153 );
154 }
155 }
156