Menu Icons by ThemeIsle - Version 0.9.2

Version Description

  • Update Icon Picker to 0.1.1.
Download this release

Release Info

Developer kucrut
Plugin Icon 128x128 Menu Icons by ThemeIsle
Version 0.9.2
Comparing to
See all releases

Code changes from version 0.9.0 to 0.9.2

includes/library/icon-picker/icon-picker.php CHANGED
@@ -4,14 +4,14 @@
4
  * Icon Picker
5
  *
6
  * @package Icon_Picker
7
- * @version 0.1.0
8
  * @author Dzikri Aziz <kvcrvt@gmail.com>
9
  *
10
  *
11
  * Plugin Name: Icon Picker
12
  * Plugin URI: http://kucrut.org/
13
  * Description: Pick an icon of your choice.
14
- * Version: 0.1.0
15
  * Author: Dzikri Aziz
16
  * Author URI: http://kucrut.org/
17
  * License: GPLv2
@@ -21,7 +21,7 @@
21
 
22
  final class Icon_Picker {
23
 
24
- const VERSION = '0.1.0';
25
 
26
  /**
27
  * Icon_Picker singleton
@@ -173,6 +173,8 @@ final class Icon_Picker {
173
  }
174
  }
175
 
 
 
176
  add_action( 'wp_loaded', array( $this, 'init' ) );
177
  }
178
 
4
  * Icon Picker
5
  *
6
  * @package Icon_Picker
7
+ * @version 0.1.1
8
  * @author Dzikri Aziz <kvcrvt@gmail.com>
9
  *
10
  *
11
  * Plugin Name: Icon Picker
12
  * Plugin URI: http://kucrut.org/
13
  * Description: Pick an icon of your choice.
14
+ * Version: 0.1.1
15
  * Author: Dzikri Aziz
16
  * Author URI: http://kucrut.org/
17
  * License: GPLv2
21
 
22
  final class Icon_Picker {
23
 
24
+ const VERSION = '0.1.1';
25
 
26
  /**
27
  * Icon_Picker singleton
173
  }
174
  }
175
 
176
+ load_plugin_textdomain( 'icon-picker', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
177
+
178
  add_action( 'wp_loaded', array( $this, 'init' ) );
179
  }
180
 
includes/library/icon-picker/readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: kucrut
3
  Donate Link: http://kucrut.org/#coffee
4
  Tags: icons, image, svg
5
  Requires at least: 4.3
6
- Tested up to: 4.3.1
7
- Stable tag: 0.1.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -15,5 +15,8 @@ Pick an icon of your choice.
15
  An icon picker library plugin.
16
 
17
  == Changelog ==
 
 
 
18
  = 0.1.0 =
19
  * Initial
3
  Donate Link: http://kucrut.org/#coffee
4
  Tags: icons, image, svg
5
  Requires at least: 4.3
6
+ Tested up to: 4.4
7
+ Stable tag: 0.1.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
15
  An icon picker library plugin.
16
 
17
  == Changelog ==
18
+ = 0.1.1 =
19
+ * Load translation, props [Eduardo Larequi](https://wordpress.org/support/profile/elarequi).
20
+
21
  = 0.1.0 =
22
  * Initial
languages/menu-icons.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPLv2.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Menu Icons 0.9.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/menu-icons\n"
7
- "POT-Creation-Date: 2015-11-16 13:41:56+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -176,10 +176,16 @@ msgid ""
176
  "override it."
177
  msgstr ""
178
 
179
- #: menu-icons.php:125
180
  msgid "Menu Icons: No registered icon types found."
181
  msgstr ""
182
 
 
 
 
 
 
 
183
  #. Plugin Name of the plugin/theme
184
  msgid "Menu Icons"
185
  msgstr ""
2
  # This file is distributed under the GPLv2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Menu Icons 0.9.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/menu-icons\n"
7
+ "POT-Creation-Date: 2015-11-17 09:41:28+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
176
  "override it."
177
  msgstr ""
178
 
179
+ #: menu-icons.php:132
180
  msgid "Menu Icons: No registered icon types found."
181
  msgstr ""
182
 
183
+ #: menu-icons.php:177
184
+ msgid ""
185
+ "Looks like Menu Icons was installed via Composer. Please activate Icon "
186
+ "Picker first."
187
+ msgstr ""
188
+
189
  #. Plugin Name of the plugin/theme
190
  msgid "Menu Icons"
191
  msgstr ""
menu-icons.php CHANGED
@@ -4,14 +4,14 @@
4
  * Menu Icons
5
  *
6
  * @package Menu_Icons
7
- * @version 0.9.0
8
  * @author Dzikri Aziz <kvcrvt@gmail.com>
9
  *
10
  *
11
  * Plugin name: Menu Icons
12
  * Plugin URI: http://kucrut.org/
13
  * Description: Spice up your navigation menus with pretty icons, easily.
14
- * Version: 0.9.0
15
  * Author: Dzikri Aziz
16
  * Author URI: http://kucrut.org/
17
  * License: GPLv2
@@ -25,7 +25,7 @@
25
  */
26
  final class Menu_Icons {
27
 
28
- const VERSION = '0.9.0';
29
 
30
  /**
31
  * Holds plugin data
@@ -81,7 +81,14 @@ final class Menu_Icons {
81
 
82
  // Load Icon Picker.
83
  if ( ! class_exists( 'Icon_Picker' ) ) {
84
- require_once self::$data['dir'] . 'includes/library/icon-picker/icon-picker.php';
 
 
 
 
 
 
 
85
  }
86
  Icon_Picker::instance();
87
 
@@ -156,5 +163,20 @@ final class Menu_Icons {
156
 
157
  return kucrut_get_script_suffix();
158
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  }
160
  add_action( 'plugins_loaded', array( 'Menu_Icons', '_load' ) );
4
  * Menu Icons
5
  *
6
  * @package Menu_Icons
7
+ * @version 0.9.2
8
  * @author Dzikri Aziz <kvcrvt@gmail.com>
9
  *
10
  *
11
  * Plugin name: Menu Icons
12
  * Plugin URI: http://kucrut.org/
13
  * Description: Spice up your navigation menus with pretty icons, easily.
14
+ * Version: 0.9.2
15
  * Author: Dzikri Aziz
16
  * Author URI: http://kucrut.org/
17
  * License: GPLv2
25
  */
26
  final class Menu_Icons {
27
 
28
+ const VERSION = '0.9.2';
29
 
30
  /**
31
  * Holds plugin data
81
 
82
  // Load Icon Picker.
83
  if ( ! class_exists( 'Icon_Picker' ) ) {
84
+ $ip_file = self::$data['dir'] . 'includes/library/icon-picker/icon-picker.php';
85
+
86
+ if ( file_exists( $ip_file ) ) {
87
+ require_once $ip_file;
88
+ } else {
89
+ add_action( 'admin_notices', array( __CLASS__, '_notice_missing_icon_picker' ) );
90
+ return;
91
+ }
92
  }
93
  Icon_Picker::instance();
94
 
163
 
164
  return kucrut_get_script_suffix();
165
  }
166
+
167
+
168
+ /**
169
+ * Display notice about missing Icon Picker
170
+ *
171
+ * @since 0.9.1
172
+ * @wp_hook action admin_notice
173
+ */
174
+ public static function _notice_missing_icon_picker() {
175
+ ?>
176
+ <div class="error">
177
+ <p><?php esc_html_e( 'Looks like Menu Icons was installed via Composer. Please activate Icon Picker first.', 'menu-icons' ); ?></p>
178
+ </div>
179
+ <?php
180
+ }
181
  }
182
  add_action( 'plugins_loaded', array( 'Menu_Icons', '_load' ) );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate Link: http://kucrut.org/#coffee
4
  Tags: menu, nav-menu, icons, navigation
5
  Requires at least: 4.3
6
  Tested up to: 4.4
7
- Stable tag: 0.9.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,6 +12,10 @@ Spice up your navigation menus with pretty icons, easily.
12
 
13
 
14
  == Description ==
 
 
 
 
15
  This plugin gives you the ability to add icons to your menu items, similar to the look of the latest dashboard menu.
16
 
17
  = Usage =
@@ -186,6 +190,12 @@ https://www.youtube.com/watch?v=B-5AVwgPaiw
186
  Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/).
187
 
188
  == Changelog ==
 
 
 
 
 
 
189
  = 0.9.0 =
190
  * Performance optimization.
191
  * Modularisation. Developers: Take a look at the [Icon Picker](https://github.com/kucrut/wp-icon-picker) library.
4
  Tags: menu, nav-menu, icons, navigation
5
  Requires at least: 4.3
6
  Tested up to: 4.4
7
+ Stable tag: 0.9.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
 
14
  == Description ==
15
+
16
+ = Upgrade Note =
17
+ Before updating to `0.9.x`, please save the settings by clicking on the *Save* button on the *Menu Icons Settings* meta box. See [screenshot](https://ps.w.org/menu-icons/assets/screenshot-7.png?rev=979807).
18
+
19
  This plugin gives you the ability to add icons to your menu items, similar to the look of the latest dashboard menu.
20
 
21
  = Usage =
190
  Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/).
191
 
192
  == Changelog ==
193
+ = 0.9.2 =
194
+ * Update Icon Picker to [0.1.1](https://github.com/kucrut/wp-icon-picker/releases/tag/v0.1.1).
195
+
196
+ = 0.9.1 =
197
+ * Fix support for Composer.
198
+
199
  = 0.9.0 =
200
  * Performance optimization.
201
  * Modularisation. Developers: Take a look at the [Icon Picker](https://github.com/kucrut/wp-icon-picker) library.