Add Logo to Admin - Version 1.6.2

Version Description

(2015-09-30) =

  • Changed text domain to add-logo-to-admin
  • Updated language files
  • Updated version and stable tag
Download this release

Release Info

Developer tinkerpriest
Plugin Icon wp plugin Add Logo to Admin
Version 1.6.2
Comparing to
See all releases

Code changes from version 1.6.1 to 1.6.2

add-logo-to-admin.php CHANGED
@@ -4,14 +4,14 @@ Plugin Name: Add Logo to Admin
4
  Plugin URI: http://bavotasan.com/2011/add-your-logo-to-the-wordpress-admin-and-login-page/
5
  Description: Adds a custom logo to your wp-admin and login page.
6
  Author: c.bavota
7
- Version: 1.6.1
8
  Author URI: http://bavotasan.com
9
- Text Domain: add-logo
10
  Domain Path: /languages
11
  License: GPL2
12
  */
13
 
14
- /* Copyright 2014 c.bavota (email : cbavota@gmail.com)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as
@@ -29,7 +29,7 @@ License: GPL2
29
 
30
  // Plugin version
31
  if ( ! defined( 'ADD_LOGO_VERSION' ) ) {
32
- define( 'ADD_LOGO_VERSION', '1.6' );
33
  }
34
 
35
  if ( ! class_exists( 'WP_Add_Logo_To_Admin' ) ) {
@@ -55,7 +55,7 @@ if ( ! class_exists( 'WP_Add_Logo_To_Admin' ) ) {
55
  public function admin_init() {
56
  register_setting( 'wp_add_logo_to_admin', 'wp_add_logo_to_admin', array( $this, 'wp_add_logo_to_admin_validation' ) );
57
 
58
- load_plugin_textdomain( 'add-logo', null, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
59
  }
60
 
61
  /**
@@ -72,7 +72,7 @@ if ( ! class_exists( 'WP_Add_Logo_To_Admin' ) ) {
72
  }
73
 
74
  public function admin_menu() {
75
- add_options_page( __( 'Add Logo to Admin', 'add-logo' ), __( 'Add Logo to Admin', 'add-logo' ), 'manage_options', __FILE__, array( $this, 'add_logo_options_page' ) );
76
  }
77
 
78
  /**
@@ -127,41 +127,41 @@ body.login div#login h1 a {
127
  */
128
  public function add_logo_options_page() {
129
  if ( ! current_user_can( 'manage_options' ) )
130
- wp_die( __( 'You do not have sufficient permissions to access this page.', 'add-logo' ) );
131
 
132
  $plugin_options = get_option( 'wp_add_logo_to_admin' );
133
  $image = ( $plugin_options['image'] ) ? '<img src="' . esc_url( $plugin_options['image'] ) . '" alt="" style="max-width: 100%;" />' : '';
134
  $display = ( $plugin_options['image'] ) ? '' : 'style="display: none;"';
135
  ?>
136
  <div class="wrap">
137
- <h2><?php _e( 'Add Logo to Admin', 'add-logo' ); ?></h2>
138
  <!-- Add Logo to Admin box begin-->
139
  <form method="post" action="options.php">
140
  <?php settings_fields( 'wp_add_logo_to_admin' ); ?>
141
 
142
  <table id="add-logo-table" class="form-table">
143
  <tr valign="top">
144
- <th scope="row"><?php _e( 'Logo Options', 'add-logo' ); ?></th>
145
  <td>
146
  <fieldset>
147
  <label for="add-logo-on-login">
148
  <input name="wp_add_logo_to_admin[login]" id="add-logo-on-login" type="checkbox" <?php checked( esc_attr( $plugin_options['login'] ), 'on' ); ?>>
149
- <?php _e( 'Display logo on the login page', 'add-logo' ); ?></label>
150
  <br />
151
  <label for="add-logo-on-admin">
152
  <input name="wp_add_logo_to_admin[admin]" id="add-logo-on-admin" type="checkbox" <?php checked( esc_attr( $plugin_options['admin'] ), 'on' ); ?>>
153
- <?php _e( 'Display logo on all admin pages', 'add-logo' ); ?></label>
154
  </fieldset>
155
  </td>
156
  </tr>
157
  <tr valign="top">
158
- <th scope="row"><?php _e( 'Upload Logo', 'add-logo' ); ?></th>
159
  <td>
160
  <input type="hidden" id="add-logo-image" name="wp_add_logo_to_admin[image]" value="<?php echo esc_url( $plugin_options['image'] ); ?>" />
161
  <div id="add-logo-image-container"><?php echo $image; ?></div>
162
- <a href="#" class="select-image"><?php _e( 'Select image', 'add-logo' ); ?></a>&nbsp;&nbsp;&nbsp;<a href="#" class="delete-image" <?php echo $display; ?>><?php _e( 'Delete image', 'add-logo' ); ?></a>
163
  <br />
164
- <p class="description"><?php _e( 'Your logo should be no larger than 320px by 80px or else it will be resized on the login screen.', 'add-logo' ); ?></p>
165
  </td>
166
  </tr>
167
  </table>
@@ -245,7 +245,7 @@ if ( class_exists( 'WP_Add_Logo_To_Admin' ) ) {
245
  */
246
  if ( isset( $wp_add_logo_to_admin ) ) {
247
  function add_logo_plugin_settings_link( $links ) {
248
- $settings_link = '<a href="options-general.php?page=add-logo-to-admin/add-logo-to-admin.php">' . __( 'Settings', 'add-logo' ) . '</a>';
249
  array_unshift( $links, $settings_link );
250
  return $links;
251
  }
4
  Plugin URI: http://bavotasan.com/2011/add-your-logo-to-the-wordpress-admin-and-login-page/
5
  Description: Adds a custom logo to your wp-admin and login page.
6
  Author: c.bavota
7
+ Version: 1.6.2
8
  Author URI: http://bavotasan.com
9
+ Text Domain: add-logo-to-admin
10
  Domain Path: /languages
11
  License: GPL2
12
  */
13
 
14
+ /* Copyright 2015 c.bavota (email : cbavota@gmail.com)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as
29
 
30
  // Plugin version
31
  if ( ! defined( 'ADD_LOGO_VERSION' ) ) {
32
+ define( 'ADD_LOGO_VERSION', '1.6.2' );
33
  }
34
 
35
  if ( ! class_exists( 'WP_Add_Logo_To_Admin' ) ) {
55
  public function admin_init() {
56
  register_setting( 'wp_add_logo_to_admin', 'wp_add_logo_to_admin', array( $this, 'wp_add_logo_to_admin_validation' ) );
57
 
58
+ load_plugin_textdomain( 'add-logo-to-admin', null, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
59
  }
60
 
61
  /**
72
  }
73
 
74
  public function admin_menu() {
75
+ add_options_page( __( 'Add Logo to Admin', 'add-logo-to-admin' ), __( 'Add Logo to Admin', 'add-logo-to-admin' ), 'manage_options', __FILE__, array( $this, 'add_logo_options_page' ) );
76
  }
77
 
78
  /**
127
  */
128
  public function add_logo_options_page() {
129
  if ( ! current_user_can( 'manage_options' ) )
130
+ wp_die( __( 'You do not have sufficient permissions to access this page.', 'add-logo-to-admin' ) );
131
 
132
  $plugin_options = get_option( 'wp_add_logo_to_admin' );
133
  $image = ( $plugin_options['image'] ) ? '<img src="' . esc_url( $plugin_options['image'] ) . '" alt="" style="max-width: 100%;" />' : '';
134
  $display = ( $plugin_options['image'] ) ? '' : 'style="display: none;"';
135
  ?>
136
  <div class="wrap">
137
+ <h2><?php _e( 'Add Logo to Admin', 'add-logo-to-admin' ); ?></h2>
138
  <!-- Add Logo to Admin box begin-->
139
  <form method="post" action="options.php">
140
  <?php settings_fields( 'wp_add_logo_to_admin' ); ?>
141
 
142
  <table id="add-logo-table" class="form-table">
143
  <tr valign="top">
144
+ <th scope="row"><?php _e( 'Logo Options', 'add-logo-to-admin' ); ?></th>
145
  <td>
146
  <fieldset>
147
  <label for="add-logo-on-login">
148
  <input name="wp_add_logo_to_admin[login]" id="add-logo-on-login" type="checkbox" <?php checked( esc_attr( $plugin_options['login'] ), 'on' ); ?>>
149
+ <?php _e( 'Display logo on the login page', 'add-logo-to-admin' ); ?></label>
150
  <br />
151
  <label for="add-logo-on-admin">
152
  <input name="wp_add_logo_to_admin[admin]" id="add-logo-on-admin" type="checkbox" <?php checked( esc_attr( $plugin_options['admin'] ), 'on' ); ?>>
153
+ <?php _e( 'Display logo on all admin pages', 'add-logo-to-admin' ); ?></label>
154
  </fieldset>
155
  </td>
156
  </tr>
157
  <tr valign="top">
158
+ <th scope="row"><?php _e( 'Upload Logo', 'add-logo-to-admin' ); ?></th>
159
  <td>
160
  <input type="hidden" id="add-logo-image" name="wp_add_logo_to_admin[image]" value="<?php echo esc_url( $plugin_options['image'] ); ?>" />
161
  <div id="add-logo-image-container"><?php echo $image; ?></div>
162
+ <a href="#" class="select-image"><?php _e( 'Select image', 'add-logo-to-admin' ); ?></a>&nbsp;&nbsp;&nbsp;<a href="#" class="delete-image" <?php echo $display; ?>><?php _e( 'Delete image', 'add-logo-to-admin' ); ?></a>
163
  <br />
164
+ <p class="description"><?php _e( 'Your logo should be no larger than 320px by 80px or else it will be resized on the login screen.', 'add-logo-to-admin' ); ?></p>
165
  </td>
166
  </tr>
167
  </table>
245
  */
246
  if ( isset( $wp_add_logo_to_admin ) ) {
247
  function add_logo_plugin_settings_link( $links ) {
248
+ $settings_link = '<a href="options-general.php?page=add-logo-to-admin/add-logo-to-admin.php">' . __( 'Settings', 'add-logo-to-admin' ) . '</a>';
249
  array_unshift( $links, $settings_link );
250
  return $links;
251
  }
languages/add-logo-to-admin.pot ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
4
+ "Project-Id-Version: Add Logo to Admin\n"
5
+ "POT-Creation-Date: 2015-09-30 09:20-0400\n"
6
+ "PO-Revision-Date: 2015-09-30 09:20-0400\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+
11
+ #. Plugin Name of the plugin/theme
12
+ #: add-logo-to-admin.php:75 add-logo-to-admin.php:137
13
+ msgid "Add Logo to Admin"
14
+ msgstr ""
15
+
16
+ #: add-logo-to-admin.php:130
17
+ msgid "You do not have sufficient permissions to access this page."
18
+ msgstr ""
19
+
20
+ #: add-logo-to-admin.php:144
21
+ msgid "Logo Options"
22
+ msgstr ""
23
+
24
+ #: add-logo-to-admin.php:149
25
+ msgid "Display logo on the login page"
26
+ msgstr ""
27
+
28
+ #: add-logo-to-admin.php:153
29
+ msgid "Display logo on all admin pages"
30
+ msgstr ""
31
+
32
+ #: add-logo-to-admin.php:158
33
+ msgid "Upload Logo"
34
+ msgstr ""
35
+
36
+ #: add-logo-to-admin.php:162
37
+ msgid "Select image"
38
+ msgstr ""
39
+
40
+ #: add-logo-to-admin.php:162
41
+ msgid "Delete image"
42
+ msgstr ""
43
+
44
+ #: add-logo-to-admin.php:164
45
+ msgid ""
46
+ "Your logo should be no larger than 320px by 80px or else it will be resized "
47
+ "on the login screen."
48
+ msgstr ""
49
+
50
+ #: add-logo-to-admin.php:248
51
+ msgid "Settings"
52
+ msgstr ""
53
+
54
+ #. Plugin URI of the plugin/theme
55
+ msgid ""
56
+ "http://bavotasan.com/2011/add-your-logo-to-the-wordpress-admin-and-login-"
57
+ "page/"
58
+ msgstr ""
59
+
60
+ #. Description of the plugin/theme
61
+ msgid "Adds a custom logo to your wp-admin and login page."
62
+ msgstr ""
63
+
64
+ #. Author of the plugin/theme
65
+ msgid "c.bavota"
66
+ msgstr ""
67
+
68
+ #. Author URI of the plugin/theme
69
+ msgid "http://bavotasan.com"
70
+ msgstr ""
languages/add-logo.pot DELETED
@@ -1,50 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Content-Type: text/plain; charset=utf-8\n"
4
- "Content-Transfer-Encoding: 8bit\n"
5
-
6
- #. Text in function
7
- #: add-logo-to-admin/add-logo-to-admin.php:1
8
- #: add-logo-to-admin/add-logo-to-admin.php:137
9
- msgid "Add Logo to Admin"
10
- msgstr ""
11
-
12
- #. Text in echo
13
- #: add-logo-to-admin/add-logo-to-admin.php:162
14
- msgid "Delete image"
15
- msgstr ""
16
-
17
- #. Text in echo
18
- #: add-logo-to-admin/add-logo-to-admin.php:153
19
- msgid "Display logo on all admin pages"
20
- msgstr ""
21
-
22
- #. Text in echo
23
- #: add-logo-to-admin/add-logo-to-admin.php:149
24
- msgid "Display logo on the login page"
25
- msgstr ""
26
-
27
- #. Text in echo
28
- #: add-logo-to-admin/add-logo-to-admin.php:144
29
- msgid "Logo Options"
30
- msgstr ""
31
-
32
- #. Text in echo
33
- #: add-logo-to-admin/add-logo-to-admin.php:162
34
- msgid "Select image"
35
- msgstr ""
36
-
37
- #. Text in echo
38
- #: add-logo-to-admin/add-logo-to-admin.php:158
39
- msgid "Upload Logo"
40
- msgstr ""
41
-
42
- #. Text in function
43
- #: add-logo-to-admin/add-logo-to-admin.php:117
44
- msgid "You do not have sufficient permissions to access this page."
45
- msgstr ""
46
-
47
- #. Text in echo
48
- #: add-logo-to-admin/add-logo-to-admin.php:164
49
- msgid "Your logo should be no larger than 320px by 80px or else it will be resized on the login screen."
50
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -5,8 +5,8 @@ Tags: custom logo, admin, login, wp-admin, admin logo
5
  Text Domain: add-logo
6
  Domain Path: /languages
7
  Requires at least: 3.5
8
- Tested up to: 4.3
9
- Stable tag: 1.6.1
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -40,6 +40,12 @@ Your logo shouldn't exceed 320px by 80px or it will be resized on the login scre
40
 
41
  == Change Log ==
42
 
 
 
 
 
 
 
43
  = 1.6.1 (2015-08-18) =
44
 
45
  * Small CSS update
5
  Text Domain: add-logo
6
  Domain Path: /languages
7
  Requires at least: 3.5
8
+ Tested up to: 4.3.1
9
+ Stable tag: 1.6.2
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
40
 
41
  == Change Log ==
42
 
43
+ = 1.6.2 (2015-09-30) =
44
+
45
+ * Changed text domain to add-logo-to-admin
46
+ * Updated language files
47
+ * Updated version and stable tag
48
+
49
  = 1.6.1 (2015-08-18) =
50
 
51
  * Small CSS update