Version Description
- Fixed the issue of conflicting with other plugins on admin pages.
Download this release
Release Info
Developer | libinvbabu |
Plugin | Erident Custom Login and Dashboard |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
- er-custom-login.php +27 -9
- readme.txt +7 -4
er-custom-login.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Erident Custom Login and Dashboard
|
4 |
Plugin URI: http://www.eridenttech.com/wp-plugins/erident-custom-login-and-dashboard
|
5 |
Description: Customize completly your WordPress Login Screen and Dashboard. Add your company logo to login screen, change background colors, styles etc. Customize your Dashboard footer text also for complete branding.
|
6 |
-
Version: 1.
|
7 |
Author: Erident Technologies
|
8 |
Author URI: http://www.eridenttech.com/
|
9 |
License: GPL
|
@@ -29,8 +29,6 @@ License: GPL
|
|
29 |
function my_admin_head() {
|
30 |
echo '<link rel="stylesheet" type="text/css" media="all" href="' .plugins_url('er-admin.css', __FILE__). '">';
|
31 |
echo '<link rel="stylesheet" type="text/css" media="all" href="' .plugins_url('farbtastic/farbtastic.css', __FILE__). '">';
|
32 |
-
echo '<script type="text/javascript" src="' .plugins_url('farbtastic/jquery.js', __FILE__). '"></script>';
|
33 |
-
echo '<script type="text/javascript" src="' .plugins_url('farbtastic/farbtastic.js', __FILE__). '"></script>';
|
34 |
}
|
35 |
|
36 |
add_action('admin_head', 'my_admin_head');
|
@@ -212,15 +210,35 @@ delete_option('wp_erident_dashboard_delete_db');
|
|
212 |
|
213 |
if ( is_admin() ){
|
214 |
|
215 |
-
/* Call the html code */
|
216 |
-
add_action('admin_menu', 'wp_erident_dashboard_admin_menu');
|
217 |
|
218 |
-
|
219 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
'erident-custom-login-and-dashboard', 'wp_erident_dashboard_html_page');
|
221 |
-
}
|
222 |
-
}
|
223 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
function wp_erident_dashboard_html_page() {
|
225 |
?>
|
226 |
|
3 |
Plugin Name: Erident Custom Login and Dashboard
|
4 |
Plugin URI: http://www.eridenttech.com/wp-plugins/erident-custom-login-and-dashboard
|
5 |
Description: Customize completly your WordPress Login Screen and Dashboard. Add your company logo to login screen, change background colors, styles etc. Customize your Dashboard footer text also for complete branding.
|
6 |
+
Version: 1.2
|
7 |
Author: Erident Technologies
|
8 |
Author URI: http://www.eridenttech.com/
|
9 |
License: GPL
|
29 |
function my_admin_head() {
|
30 |
echo '<link rel="stylesheet" type="text/css" media="all" href="' .plugins_url('er-admin.css', __FILE__). '">';
|
31 |
echo '<link rel="stylesheet" type="text/css" media="all" href="' .plugins_url('farbtastic/farbtastic.css', __FILE__). '">';
|
|
|
|
|
32 |
}
|
33 |
|
34 |
add_action('admin_head', 'my_admin_head');
|
210 |
|
211 |
if ( is_admin() ){
|
212 |
|
|
|
|
|
213 |
|
214 |
+
add_action( 'admin_init', 'wp_erident_dashboard_admin_init' );
|
215 |
+
add_action( 'admin_menu', 'wp_erident_dashboard_admin_menu' );
|
216 |
+
|
217 |
+
function wp_erident_dashboard_admin_init() {
|
218 |
+
/* Register our script. */
|
219 |
+
wp_register_script('wp_erident_dashboard-script', plugins_url('/farbtastic/farbtastic.js', __FILE__));
|
220 |
+
wp_register_script('wp_erident_dashboard-script2', plugins_url('/farbtastic/jquery.js', __FILE__));
|
221 |
+
}
|
222 |
+
|
223 |
+
function wp_erident_dashboard_admin_menu() {
|
224 |
+
/* Register our plugin page */
|
225 |
+
$page = add_options_page('Custom Login and Dashboard', 'Custom Login and Dashboard', 'administrator',
|
226 |
'erident-custom-login-and-dashboard', 'wp_erident_dashboard_html_page');
|
|
|
|
|
227 |
|
228 |
+
/* Using registered $page handle to hook script load */
|
229 |
+
add_action('admin_print_styles-' . $page, 'wp_erident_dashboard_admin_styles');
|
230 |
+
}
|
231 |
+
|
232 |
+
function wp_erident_dashboard_admin_styles() {
|
233 |
+
/*
|
234 |
+
* It will be called only on your plugin admin page, enqueue our script here
|
235 |
+
*/
|
236 |
+
wp_enqueue_script( 'wp_erident_dashboard-script2' );
|
237 |
+
wp_enqueue_script( 'wp_erident_dashboard-script' );
|
238 |
+
}
|
239 |
+
/* Call the html code */
|
240 |
+
|
241 |
+
}
|
242 |
function wp_erident_dashboard_html_page() {
|
243 |
?>
|
244 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.eridenttech.com/wp-plugins/erident-custom-login-and-dash
|
|
4 |
Tags: login, customisation, admin, dashboard, customise, erident, custom, form, logo, branding
|
5 |
Requires at least: 3.0.0
|
6 |
Tested up to: 3.4.1
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -74,7 +74,7 @@ This section describes how to install the plugin and get it working.
|
|
74 |
|
75 |
== Frequently Asked Questions ==
|
76 |
|
77 |
-
= Is it
|
78 |
|
79 |
Yes. WordPress gives you the permission to change whole login screen and dashboard to yours by using WordPress hooks.
|
80 |
|
@@ -92,6 +92,9 @@ By default you will not lose any of your previous settings. Check the Plugin Un-
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
95 |
= 1.1 =
|
96 |
* Added "background-position" option for the screen & login form background images.
|
97 |
* Added a link on Settings tab for directly open the login.php page on a new tab.
|
@@ -104,5 +107,5 @@ By default you will not lose any of your previous settings. Check the Plugin Un-
|
|
104 |
|
105 |
== Upgrade Notice ==
|
106 |
|
107 |
-
= 1.
|
108 |
-
This version
|
4 |
Tags: login, customisation, admin, dashboard, customise, erident, custom, form, logo, branding
|
5 |
Requires at least: 3.0.0
|
6 |
Tested up to: 3.4.1
|
7 |
+
Stable tag: 1.2
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
74 |
|
75 |
== Frequently Asked Questions ==
|
76 |
|
77 |
+
= Is it legal to change WordPress Logo and texts? =
|
78 |
|
79 |
Yes. WordPress gives you the permission to change whole login screen and dashboard to yours by using WordPress hooks.
|
80 |
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 1.2 =
|
96 |
+
* Fixed the issue of conflicting with other plugins on admin pages.
|
97 |
+
|
98 |
= 1.1 =
|
99 |
* Added "background-position" option for the screen & login form background images.
|
100 |
* Added a link on Settings tab for directly open the login.php page on a new tab.
|
107 |
|
108 |
== Upgrade Notice ==
|
109 |
|
110 |
+
= 1.2 =
|
111 |
+
This version fixed the issue of conflicting with other plugins on admin pages. Upgrade now.
|