Version Description
Download this release
Release Info
Developer | tinkerpriest |
Plugin | Add Logo to Admin |
Version | 1.3.3 |
Comparing to | |
See all releases |
Code changes from version 1.3.2 to 1.3.3
- add-logo.php +4 -4
- index.html +105 -0
- readme.txt +7 -2
add-logo.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Add Logo to Admin
|
|
4 |
Plugin URI: http://bavotasan.com/tidbits/add-your-logo-to-the-wordpress-admin-and-login-page/
|
5 |
Description: Adds a custom logo to your site's Admin header and your login page.
|
6 |
Author: c.bavota
|
7 |
-
Version: 1.3.
|
8 |
Author URI: http://bavotasan.com
|
9 |
*/
|
10 |
|
@@ -64,14 +64,14 @@ if(stristr($_SERVER['REQUEST_URI'],'?page=add-logo-to-admin/add-logo.php')) {
|
|
64 |
add_options_page('Add Logo to Admin', 'Add Logo to Admin', 10, __FILE__, 'my_plugin_options');
|
65 |
}
|
66 |
|
67 |
-
function
|
68 |
$settings_link = '<a href="options-general.php?page=add-logo-to-admin/add-logo.php">Settings</a>';
|
69 |
array_unshift( $links, $settings_link );
|
70 |
return $links;
|
71 |
}
|
72 |
|
73 |
$plugin = plugin_basename(__FILE__);
|
74 |
-
add_filter("plugin_action_links_$plugin", '
|
75 |
|
76 |
//set default options
|
77 |
function set_add_logo_options() {
|
@@ -111,7 +111,7 @@ if(get_option('add_logo_on_login') == "yes") {
|
|
111 |
add_action('login_head', 'wp_admin_login_css');
|
112 |
function wp_admin_login_css() {
|
113 |
echo '<link rel="stylesheet" type="text/css" href="' . get_option('siteurl') . '/wp-content/plugins/add-logo-to-admin/css/login.css" />'."\n";
|
114 |
-
echo '<script type="text/javascript">' . "\n" . '/* <![CDATA[ */' . "\n" . ' newLogo = {' . "\n" . ' logo: "' . get_option('add_logo_logo') . '"
|
115 |
echo '<script type="text/javascript" src="' . get_option('siteurl') . '/wp-content/plugins/add-logo-to-admin/js/login.js"></script>'."\n";
|
116 |
}
|
117 |
}
|
4 |
Plugin URI: http://bavotasan.com/tidbits/add-your-logo-to-the-wordpress-admin-and-login-page/
|
5 |
Description: Adds a custom logo to your site's Admin header and your login page.
|
6 |
Author: c.bavota
|
7 |
+
Version: 1.3.3
|
8 |
Author URI: http://bavotasan.com
|
9 |
*/
|
10 |
|
64 |
add_options_page('Add Logo to Admin', 'Add Logo to Admin', 10, __FILE__, 'my_plugin_options');
|
65 |
}
|
66 |
|
67 |
+
function add_logo_settings_link( $links ) {
|
68 |
$settings_link = '<a href="options-general.php?page=add-logo-to-admin/add-logo.php">Settings</a>';
|
69 |
array_unshift( $links, $settings_link );
|
70 |
return $links;
|
71 |
}
|
72 |
|
73 |
$plugin = plugin_basename(__FILE__);
|
74 |
+
add_filter("plugin_action_links_$plugin", 'add_logo_settings_link' );
|
75 |
|
76 |
//set default options
|
77 |
function set_add_logo_options() {
|
111 |
add_action('login_head', 'wp_admin_login_css');
|
112 |
function wp_admin_login_css() {
|
113 |
echo '<link rel="stylesheet" type="text/css" href="' . get_option('siteurl') . '/wp-content/plugins/add-logo-to-admin/css/login.css" />'."\n";
|
114 |
+
echo '<script type="text/javascript">' . "\n" . '/* <![CDATA[ */' . "\n" . ' newLogo = {' . "\n" . ' logo: "' . get_option('add_logo_logo') . '"' . "\n" . ' }' . "\n" . '/* ]]> */' . "\n" . '</script>' . "\n";
|
115 |
echo '<script type="text/javascript" src="' . get_option('siteurl') . '/wp-content/plugins/add-logo-to-admin/js/login.js"></script>'."\n";
|
116 |
}
|
117 |
}
|
index.html
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2 |
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3 |
+
<head>
|
4 |
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
5 |
+
<title>Add Logo to Admin WordPress plugin | Version 1.3.3</title>
|
6 |
+
<style type="text/css">
|
7 |
+
code {
|
8 |
+
background: #ddd;
|
9 |
+
}
|
10 |
+
|
11 |
+
h1 {
|
12 |
+
margin-bottom: 0;
|
13 |
+
}
|
14 |
+
|
15 |
+
</style>
|
16 |
+
</head>
|
17 |
+
|
18 |
+
<body>
|
19 |
+
<h1>Add Logo to Admin</h1>
|
20 |
+
Version 1.3.3<br />
|
21 |
+
WordPress plugin<br />
|
22 |
+
<br />
|
23 |
+
<strong>== Installation ==</strong><br />
|
24 |
+
<br />
|
25 |
+
1. Unzip the add-logo-to-admin.zip file.<br />
|
26 |
+
2. Upload the <code>add-logo-to-admin</code> folder to the <code>/wp-content/plugins/</code> directory.<br />
|
27 |
+
3. Activate the plugin through the 'Plugins' menu in WordPress.<br />
|
28 |
+
4. Go to Settings => Add Logo to Admin and set your options and add your logo.<br />
|
29 |
+
<br />
|
30 |
+
<strong>== Frequently Asked Questions ==</strong> <br />
|
31 |
+
<br />
|
32 |
+
1) How do I add my own logo?
|
33 |
+
<br />
|
34 |
+
Just go to Settings => Add Logo to Admin and upload the logo you would like to use.
|
35 |
+
<br /><br />
|
36 |
+
2) How big does my logo need to be?
|
37 |
+
<br />
|
38 |
+
You can make it any width or height, as well as any file format.
|
39 |
+
<br />
|
40 |
+
<br />
|
41 |
+
<strong>== Change Log ==</strong><br />
|
42 |
+
<br />
|
43 |
+
1.3.3 (2009-03-10)
|
44 |
+
<ul>
|
45 |
+
<li>Fixed issue with IE7 and logo not displaying</li>
|
46 |
+
</ul>
|
47 |
+
|
48 |
+
1.3.2 (2009-03-01)
|
49 |
+
<ul>
|
50 |
+
<li>Fixed issue with invading other admin pages save function</li>
|
51 |
+
</ul>
|
52 |
+
|
53 |
+
1.3.1 (2009-02-26)
|
54 |
+
<ul>
|
55 |
+
<li>Fixed issue with spaces in filename</li>
|
56 |
+
</ul>
|
57 |
+
|
58 |
+
1.3 (2009-02-25)
|
59 |
+
<ul>
|
60 |
+
<li>Created uploader for logos</li>
|
61 |
+
<li>Added "Settings" link on plugins page</li>
|
62 |
+
<li>Added option to delete logo</li>
|
63 |
+
<li>Added logo select option</li>
|
64 |
+
<li>Updated CSS</li>
|
65 |
+
</ul>
|
66 |
+
|
67 |
+
1.2 (2009-02-23)
|
68 |
+
<ul>
|
69 |
+
<li>Fixed issue with WP installs in subdirectories</li>
|
70 |
+
<li>Removed old code</li>
|
71 |
+
<li>Tested on WP version 2.7.1</li>
|
72 |
+
</ul>
|
73 |
+
|
74 |
+
1.1 (2008-12-24)
|
75 |
+
<ul>
|
76 |
+
<li>Added admin page with options</li>
|
77 |
+
<li>Fixed window.onload JavaScript issue</li>
|
78 |
+
<li>Fixed issue with blogs not located in the root directory</li>
|
79 |
+
<li>Removed extraneous code</li>
|
80 |
+
</ul>
|
81 |
+
|
82 |
+
1.0.2 (2008-12-16)
|
83 |
+
<ul>
|
84 |
+
<li>Fixed weirdness with extra folder</li>
|
85 |
+
</ul>
|
86 |
+
|
87 |
+
1.0.1 (2008-12-16)
|
88 |
+
<ul>
|
89 |
+
<li>
|
90 |
+
Fixed the code to direct to the proper plugin folder</li>
|
91 |
+
</ul>
|
92 |
+
|
93 |
+
1.0 (2008-12-15)
|
94 |
+
<ul>
|
95 |
+
<li>
|
96 |
+
Initial Public Release</li>
|
97 |
+
</ul>
|
98 |
+
|
99 |
+
<br />
|
100 |
+
<small>Add Logo to Admin plugin created by <a href="http://bavotasan.com">c.bavota</a>.<br />
|
101 |
+
<br />
|
102 |
+
Copyright © c.bavota. All Rights Reserved.</small><br /><br />
|
103 |
+
<a href="http://bavotasan.com"><img src="http://bavotasan.com/wp-content/themes/bavotasan/images/bavota.png" alt="Bavota San" border="0" width="40px" /></a>
|
104 |
+
</body>
|
105 |
+
</html>
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: c.bavota
|
|
3 |
Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=1929921
|
4 |
Tags: custom logo, admin, login
|
5 |
Requires at least: 2.7
|
6 |
-
Tested up to: 2.
|
7 |
-
Stable tag: 1.3.
|
8 |
|
9 |
Add a custom logo to your Admin header and to your login page.
|
10 |
|
@@ -36,6 +36,11 @@ You can make it any width or height, as well as any file format.
|
|
36 |
|
37 |
== Change Log ==
|
38 |
|
|
|
|
|
|
|
|
|
|
|
39 |
1.3.2 (2009-03-01)
|
40 |
<ul>
|
41 |
<li>Fixed issue with invading other admin pages save function</li>
|
3 |
Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=1929921
|
4 |
Tags: custom logo, admin, login
|
5 |
Requires at least: 2.7
|
6 |
+
Tested up to: 2.8
|
7 |
+
Stable tag: 1.3.3
|
8 |
|
9 |
Add a custom logo to your Admin header and to your login page.
|
10 |
|
36 |
|
37 |
== Change Log ==
|
38 |
|
39 |
+
1.3.3 (2009-03-10)
|
40 |
+
<ul>
|
41 |
+
<li>Fixed issue with IE7 and logo not displaying</li>
|
42 |
+
</ul>
|
43 |
+
|
44 |
1.3.2 (2009-03-01)
|
45 |
<ul>
|
46 |
<li>Fixed issue with invading other admin pages save function</li>
|