PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 3.1.7
Adminify – White Label, Admin Menu Editor, Login Customizer v3.1.7
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 3.1.7, at Inc/Admin/Options/Admin_Footer.php

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