Version Description
- Fix fatal error on outdated PHP versions, props dellos
Download this release
Release Info
Developer | kucrut |
Plugin | Menu Icons by ThemeIsle |
Version | 0.3.1 |
Comparing to | |
See all releases |
Code changes from version 0.3.0 to 0.3.1
- includes/settings.php +3 -1
- languages/menu-icons.pot +31 -31
- menu-icons.php +3 -3
- readme.txt +5 -4
includes/settings.php
CHANGED
@@ -54,7 +54,9 @@ final class Menu_Icons_Settings {
|
|
54 |
* @return mixed
|
55 |
*/
|
56 |
public static function get() {
|
57 |
-
|
|
|
|
|
58 |
}
|
59 |
|
60 |
|
54 |
* @return mixed
|
55 |
*/
|
56 |
public static function get() {
|
57 |
+
$args = func_get_args();
|
58 |
+
|
59 |
+
return kucrut_get_array_value_deep( self::$settings, $args );
|
60 |
}
|
61 |
|
62 |
|
languages/menu-icons.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Menu Icons package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Menu Icons 0.3.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/menu-icons\n"
|
7 |
-
"POT-Creation-Date: 2014-05-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -52,15 +52,15 @@ msgstr ""
|
|
52 |
msgid "Preview"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: includes/admin.php:460 includes/settings.php:
|
56 |
msgid "Position"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: includes/admin.php:461 includes/settings.php:
|
60 |
msgid "Before"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: includes/admin.php:462 includes/settings.php:
|
64 |
msgid "After"
|
65 |
msgstr ""
|
66 |
|
@@ -68,7 +68,7 @@ msgstr ""
|
|
68 |
msgid "Size"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: includes/admin.php:464 includes/settings.php:
|
72 |
msgid "Vertical Align"
|
73 |
msgstr ""
|
74 |
|
@@ -76,49 +76,49 @@ msgstr ""
|
|
76 |
msgid "– Select –"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: includes/admin.php:466 includes/settings.php:
|
80 |
msgid "Super"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: includes/admin.php:467 includes/settings.php:
|
84 |
#: includes/type-genericons.php:214
|
85 |
msgid "Top"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: includes/admin.php:468 includes/settings.php:
|
89 |
msgid "Text Top"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: includes/admin.php:469 includes/settings.php:
|
93 |
msgid "Middle"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: includes/admin.php:470 includes/settings.php:
|
97 |
msgid "Baseline"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: includes/admin.php:471 includes/settings.php:
|
101 |
msgid "Bottom"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: includes/admin.php:472 includes/settings.php:
|
105 |
msgid "Text Bottom"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: includes/admin.php:473 includes/settings.php:
|
109 |
msgid "Sub"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: includes/admin.php:474 includes/settings.php:
|
113 |
msgid "Hide Label"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: includes/admin.php:475 includes/settings.php:
|
117 |
#: includes/type-dashicons.php:246
|
118 |
msgid "No"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: includes/admin.php:476 includes/settings.php:
|
122 |
#: includes/type-dashicons.php:245
|
123 |
msgid "Yes"
|
124 |
msgstr ""
|
@@ -134,51 +134,51 @@ msgstr ""
|
|
134 |
msgid "%1$s: Type %2$s is not supported, reverting to text."
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: includes/settings.php:
|
138 |
msgid "<strong>Menu Icons Settings</strong> have been successfully updated."
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: includes/settings.php:
|
142 |
msgid "<strong>Menu Icons Settings</strong> have been successfully reset."
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: includes/settings.php:
|
146 |
msgid "Menu Icons Settings"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: includes/settings.php:
|
150 |
msgid "Global"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: includes/settings.php:
|
154 |
msgid "Global settings"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: includes/settings.php:
|
158 |
msgid "Icon Types"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: includes/settings.php:
|
162 |
msgid "Current Menu"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: includes/settings.php:
|
166 |
msgid "\"%s\" menu settings"
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: includes/settings.php:
|
170 |
msgid "Font Size"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: includes/settings.php:
|
174 |
msgid "Discard all changes and reset to default state"
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: includes/settings.php:
|
178 |
msgid "Reset"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: includes/settings.php:
|
182 |
msgid "Save Settings"
|
183 |
msgstr ""
|
184 |
|
@@ -2649,9 +2649,9 @@ msgstr ""
|
|
2649 |
msgid "Menu Icons"
|
2650 |
msgstr ""
|
2651 |
|
2652 |
-
#. #-#-#-#-# menu-icons.pot (Menu Icons 0.3.
|
2653 |
#. Plugin URI of the plugin/theme
|
2654 |
-
#. #-#-#-#-# menu-icons.pot (Menu Icons 0.3.
|
2655 |
#. Author URI of the plugin/theme
|
2656 |
msgid "http://kucrut.org/"
|
2657 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Menu Icons package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Menu Icons 0.3.1\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/menu-icons\n"
|
7 |
+
"POT-Creation-Date: 2014-05-30 16:21:41+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
52 |
msgid "Preview"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: includes/admin.php:460 includes/settings.php:304
|
56 |
msgid "Position"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: includes/admin.php:461 includes/settings.php:306
|
60 |
msgid "Before"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: includes/admin.php:462 includes/settings.php:307
|
64 |
msgid "After"
|
65 |
msgstr ""
|
66 |
|
68 |
msgid "Size"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: includes/admin.php:464 includes/settings.php:314
|
72 |
msgid "Vertical Align"
|
73 |
msgstr ""
|
74 |
|
76 |
msgid "– Select –"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: includes/admin.php:466 includes/settings.php:316
|
80 |
msgid "Super"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: includes/admin.php:467 includes/settings.php:317
|
84 |
#: includes/type-genericons.php:214
|
85 |
msgid "Top"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: includes/admin.php:468 includes/settings.php:318
|
89 |
msgid "Text Top"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: includes/admin.php:469 includes/settings.php:319
|
93 |
msgid "Middle"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: includes/admin.php:470 includes/settings.php:320
|
97 |
msgid "Baseline"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: includes/admin.php:471 includes/settings.php:322
|
101 |
msgid "Bottom"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: includes/admin.php:472 includes/settings.php:321
|
105 |
msgid "Text Bottom"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: includes/admin.php:473 includes/settings.php:323
|
109 |
msgid "Sub"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: includes/admin.php:474 includes/settings.php:341
|
113 |
msgid "Hide Label"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: includes/admin.php:475 includes/settings.php:343
|
117 |
#: includes/type-dashicons.php:246
|
118 |
msgid "No"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: includes/admin.php:476 includes/settings.php:344
|
122 |
#: includes/type-dashicons.php:245
|
123 |
msgid "Yes"
|
124 |
msgstr ""
|
134 |
msgid "%1$s: Type %2$s is not supported, reverting to text."
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: includes/settings.php:204
|
138 |
msgid "<strong>Menu Icons Settings</strong> have been successfully updated."
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: includes/settings.php:205
|
142 |
msgid "<strong>Menu Icons Settings</strong> have been successfully reset."
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: includes/settings.php:227
|
146 |
msgid "Menu Icons Settings"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: includes/settings.php:274
|
150 |
msgid "Global"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: includes/settings.php:275
|
154 |
msgid "Global settings"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: includes/settings.php:280
|
158 |
msgid "Icon Types"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: includes/settings.php:295
|
162 |
msgid "Current Menu"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: includes/settings.php:297
|
166 |
msgid "\"%s\" menu settings"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: includes/settings.php:330 includes/type-elusive.php:251
|
170 |
msgid "Font Size"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: includes/settings.php:431
|
174 |
msgid "Discard all changes and reset to default state"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: includes/settings.php:432
|
178 |
msgid "Reset"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: includes/settings.php:438
|
182 |
msgid "Save Settings"
|
183 |
msgstr ""
|
184 |
|
2649 |
msgid "Menu Icons"
|
2650 |
msgstr ""
|
2651 |
|
2652 |
+
#. #-#-#-#-# menu-icons.pot (Menu Icons 0.3.1) #-#-#-#-#
|
2653 |
#. Plugin URI of the plugin/theme
|
2654 |
+
#. #-#-#-#-# menu-icons.pot (Menu Icons 0.3.1) #-#-#-#-#
|
2655 |
#. Author URI of the plugin/theme
|
2656 |
msgid "http://kucrut.org/"
|
2657 |
msgstr ""
|
menu-icons.php
CHANGED
@@ -4,14 +4,14 @@
|
|
4 |
* Menu Icons
|
5 |
*
|
6 |
* @package Menu_Icons
|
7 |
-
* @version 0.3.
|
8 |
* @author Dzikri Aziz <kvcrvt@gmail.com>
|
9 |
*
|
10 |
*
|
11 |
* Plugin name: Menu Icons
|
12 |
* Plugin URI: http://kucrut.org/
|
13 |
* Description: Easily add icons to your navigation menu items
|
14 |
-
* Version: 0.3.
|
15 |
* Author: Dzikri Aziz
|
16 |
* Author URI: http://kucrut.org/
|
17 |
* License: GPLv2
|
@@ -24,7 +24,7 @@
|
|
24 |
*/
|
25 |
final class Menu_Icons {
|
26 |
|
27 |
-
const VERSION = '0.3.
|
28 |
|
29 |
/**
|
30 |
* Holds plugin data
|
4 |
* Menu Icons
|
5 |
*
|
6 |
* @package Menu_Icons
|
7 |
+
* @version 0.3.1
|
8 |
* @author Dzikri Aziz <kvcrvt@gmail.com>
|
9 |
*
|
10 |
*
|
11 |
* Plugin name: Menu Icons
|
12 |
* Plugin URI: http://kucrut.org/
|
13 |
* Description: Easily add icons to your navigation menu items
|
14 |
+
* Version: 0.3.1
|
15 |
* Author: Dzikri Aziz
|
16 |
* Author URI: http://kucrut.org/
|
17 |
* License: GPLv2
|
24 |
*/
|
25 |
final class Menu_Icons {
|
26 |
|
27 |
+
const VERSION = '0.3.1';
|
28 |
|
29 |
/**
|
30 |
* Holds plugin data
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate Link: http://kucrut.org/#coffee
|
|
4 |
Tags: menu, nav-menu, icons, navigation
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 3.9
|
7 |
-
Stable tag: 0.3.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -18,9 +18,7 @@ This plugin gives you the ability to add icons to your menu items, similar to th
|
|
18 |
1. After the plugin is activated, go to *Appearance* > *Menus* to edit your menus
|
19 |
1. Enable/Disable icon types in "Menu Icons Settings" meta box
|
20 |
1. Set default settings for current nav menu; these settings will be inherited by the newly added menu items
|
21 |
-
1.
|
22 |
-
1. Select the desired icon type
|
23 |
-
1. Select the icon from the second drop-down
|
24 |
1. Save the menu
|
25 |
|
26 |
= Supported icon types =
|
@@ -85,6 +83,9 @@ Let me know via [GitHub issues](https://github.com/kucrut/wp-menu-icons/issues)
|
|
85 |
|
86 |
|
87 |
== Changelog ==
|
|
|
|
|
|
|
88 |
= 0.3.0 =
|
89 |
* Add Settings meta box on Menu screen
|
90 |
* New feature: Settings inheritance (nav menu > menu items)
|
4 |
Tags: menu, nav-menu, icons, navigation
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 3.9
|
7 |
+
Stable tag: 0.3.1
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
18 |
1. After the plugin is activated, go to *Appearance* > *Menus* to edit your menus
|
19 |
1. Enable/Disable icon types in "Menu Icons Settings" meta box
|
20 |
1. Set default settings for current nav menu; these settings will be inherited by the newly added menu items
|
21 |
+
1. Select icon by clicking on the "Select icon" link
|
|
|
|
|
22 |
1. Save the menu
|
23 |
|
24 |
= Supported icon types =
|
83 |
|
84 |
|
85 |
== Changelog ==
|
86 |
+
= 0.3.1 =
|
87 |
+
* Fix fatal error on outdated PHP versions, props [dellos](http://profiles.wordpress.org/dellos)
|
88 |
+
|
89 |
= 0.3.0 =
|
90 |
* Add Settings meta box on Menu screen
|
91 |
* New feature: Settings inheritance (nav menu > menu items)
|