Version Description
- Update Dashicons
- Fix annoying browser popup when navigating away from Nav Menus screen
- Work-around settings update with ajax
Download this release
Release Info
Developer | kucrut |
Plugin | Menu Icons by ThemeIsle |
Version | 0.7.0 |
Comparing to | |
See all releases |
Code changes from version 0.6.0 to 0.7.0
- css/admin.css +9 -0
- css/admin.min.css +1 -1
- includes/admin.php +8 -17
- includes/settings.php +72 -23
- includes/type-dashicons.php +31 -15
- includes/type-fonts.php +4 -0
- js/admin.js +35 -5
- js/admin.min.js +1 -1
- languages/menu-icons.pot +184 -144
- menu-icons.php +4 -3
- readme.txt +8 -3
css/admin.css
CHANGED
@@ -44,6 +44,10 @@
|
|
44 |
width: 126px;
|
45 |
height: 141px;
|
46 |
}
|
|
|
|
|
|
|
|
|
47 |
.mi-item .attachment-preview {
|
48 |
width: 110px;
|
49 |
height: 125px;
|
@@ -134,3 +138,8 @@
|
|
134 |
.menu-icons-settings ._extensions ul a {
|
135 |
text-decoration: none;
|
136 |
}
|
|
|
|
|
|
|
|
|
|
44 |
width: 126px;
|
45 |
height: 141px;
|
46 |
}
|
47 |
+
.media-frame .mi-items-wrap select.attachment-filters {
|
48 |
+
max-width: 95%;
|
49 |
+
}
|
50 |
+
|
51 |
.mi-item .attachment-preview {
|
52 |
width: 110px;
|
53 |
height: 125px;
|
138 |
.menu-icons-settings ._extensions ul a {
|
139 |
text-decoration: none;
|
140 |
}
|
141 |
+
.menu-icons-settings .spinner {
|
142 |
+
float: none;
|
143 |
+
margin: 0 5px 0 0;
|
144 |
+
vertical-align: middle;
|
145 |
+
}
|
css/admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.menu-icons-wrap{margin-top:5px;margin-bottom:5px}.menu-icons-wrap .original label{display:inline-block;min-width:7em}.menu-icons-wrap .easy p{min-height:2.2em;margin-bottom:0}.menu-icons-wrap .easy p>*{display:inline-block;vertical-align:middle}.menu-icons-wrap .easy a{cursor:pointer;text-decoration:none}.menu-icons-wrap .easy .submitdelete{float:none;display:none}.menu-icons-wrap .easy img{max-width:32px;height:auto!important;vertical-align:baseline}.menu-icons-wrap ._icon{color:#666;font-size:1.9em;width:auto;height:auto;vertical-align:bottom;margin:-.1em .2em 0 .2em}.mi-items-wrap .mi-items{padding-top:10px}.media-frame-content .mi-items .attachment,.media-frame-content[data-columns] .mi-items .attachment{width:126px;height:141px}.mi-item .attachment-preview{width:110px;height:125px;text-align:center}.mi-item ._icon{display:inline-block;margin-top:8px;color:#666;height:110px}.mi-item ._icon i{font-size:80px;width:100%;height:100%;vertical-align:middle}.menu-icons-wrap a._select:focus ._icon,.menu-icons-wrap a._select:hover ._icon,.mi-item.selected ._icon,.mi-item:hover ._icon{color:#101010}.mi-item .filename div{line-height:1.1;padding:8px 10px}.mi-preview.menu-item{font-size:1.2em;min-height:0}.mi-preview.menu-item a{text-decoration:none}.mi-preview.menu-item a>*{display:inline-block;vertical-align:middle;line-height:100%;height:100%}.mi-preview.menu-item ._icon{margin-right:.25em}.media-sidebar .mi-settings .setting input[type=number],.menu-icons-settings input[type=number]{width:auto;max-width:5em;float:none}.media-sidebar .mi-settings .setting input,.media-sidebar .mi-settings span.description{float:none}.menu-icons-settings ._field{padding:.5em 0}.menu-icons-settings ._field ._main{display:block;font-weight:700;margin-bottom:.25em}#menu-settings-column .menu-icons-settings .inside{margin-top:0}.menu-icons-settings .taxonomydiv .tabs-panel{max-height:none;padding-top:.3em;padding-bottom:.4em;margin-bottom:.75em}.js .menu-icons-settings .taxonomydiv .tabs-panel{margin-bottom:0}.menu-icons-settings h4{margin:0}.menu-icons-settings ._menu span.description{margin-left:.5em}.menu-icons-settings ._extensions ul{margin-top:.75em;padding-left:1.5em;list-style:disc}.menu-icons-settings ._extensions ul a{text-decoration:none}
|
1 |
+
.menu-icons-wrap{margin-top:5px;margin-bottom:5px}.menu-icons-wrap .original label{display:inline-block;min-width:7em}.menu-icons-wrap .easy p{min-height:2.2em;margin-bottom:0}.menu-icons-wrap .easy p>*{display:inline-block;vertical-align:middle}.menu-icons-wrap .easy a{cursor:pointer;text-decoration:none}.menu-icons-wrap .easy .submitdelete{float:none;display:none}.menu-icons-wrap .easy img{max-width:32px;height:auto!important;vertical-align:baseline}.menu-icons-wrap ._icon{color:#666;font-size:1.9em;width:auto;height:auto;vertical-align:bottom;margin:-.1em .2em 0 .2em}.mi-items-wrap .mi-items{padding-top:10px}.media-frame-content .mi-items .attachment,.media-frame-content[data-columns] .mi-items .attachment{width:126px;height:141px}.media-frame .mi-items-wrap select.attachment-filters{max-width:95%}.mi-item .attachment-preview{width:110px;height:125px;text-align:center}.mi-item ._icon{display:inline-block;margin-top:8px;color:#666;height:110px}.mi-item ._icon i{font-size:80px;width:100%;height:100%;vertical-align:middle}.menu-icons-wrap a._select:focus ._icon,.menu-icons-wrap a._select:hover ._icon,.mi-item.selected ._icon,.mi-item:hover ._icon{color:#101010}.mi-item .filename div{line-height:1.1;padding:8px 10px}.mi-preview.menu-item{font-size:1.2em;min-height:0}.mi-preview.menu-item a{text-decoration:none}.mi-preview.menu-item a>*{display:inline-block;vertical-align:middle;line-height:100%;height:100%}.mi-preview.menu-item ._icon{margin-right:.25em}.media-sidebar .mi-settings .setting input[type=number],.menu-icons-settings input[type=number]{width:auto;max-width:5em;float:none}.media-sidebar .mi-settings .setting input,.media-sidebar .mi-settings span.description{float:none}.menu-icons-settings ._field{padding:.5em 0}.menu-icons-settings ._field ._main{display:block;font-weight:700;margin-bottom:.25em}#menu-settings-column .menu-icons-settings .inside{margin-top:0}.menu-icons-settings .taxonomydiv .tabs-panel{max-height:none;padding-top:.3em;padding-bottom:.4em;margin-bottom:.75em}.js .menu-icons-settings .taxonomydiv .tabs-panel{margin-bottom:0}.menu-icons-settings h4{margin:0}.menu-icons-settings ._menu span.description{margin-left:.5em}.menu-icons-settings ._extensions ul{margin-top:.75em;padding-left:1.5em;list-style:disc}.menu-icons-settings ._extensions ul a{text-decoration:none}.menu-icons-settings .spinner{float:none;margin:0 5px 0 0;vertical-align:middle}
|
includes/admin.php
CHANGED
@@ -110,7 +110,8 @@ final class Menu_Icons_Admin_Nav_Menus {
|
|
110 |
* @wp_hook admin_enqueue_scripts
|
111 |
*/
|
112 |
public static function _enqueue_assets() {
|
113 |
-
$
|
|
|
114 |
'text' => array(
|
115 |
'title' => __( 'Select Icon', 'menu-icons' ),
|
116 |
'select' => __( 'Select', 'menu-icons' ),
|
@@ -121,9 +122,10 @@ final class Menu_Icons_Admin_Nav_Menus {
|
|
121 |
'<a target="_blank" href="http://wordpress.org/plugins/simple-custom-css/">Simple Custom CSS</a>'
|
122 |
),
|
123 |
),
|
124 |
-
'base_url' => untrailingslashit( Menu_Icons::get( 'url' ) ),
|
125 |
-
'admin_url' => untrailingslashit( admin_url() ),
|
126 |
'settingsFields' => Menu_Icons_Settings::get_settings_fields(),
|
|
|
|
|
|
|
127 |
);
|
128 |
|
129 |
foreach ( self::$_icon_types as $id => $props ) {
|
@@ -138,22 +140,9 @@ final class Menu_Icons_Admin_Nav_Menus {
|
|
138 |
}
|
139 |
}
|
140 |
|
141 |
-
/**
|
142 |
-
* WP 3.8 bug, fixed in 3.9
|
143 |
-
*
|
144 |
-
* We need to dequeue and re-enqueue this one later,
|
145 |
-
* otherwise we won't get the dashboard's colors
|
146 |
-
*
|
147 |
-
* @todo Remove in 4.0.1
|
148 |
-
*/
|
149 |
-
wp_dequeue_style( 'colors' );
|
150 |
-
|
151 |
$data['iconTypes'] = $icon_types;
|
152 |
$data['typeNames'] = array_keys( self::$_icon_types );
|
153 |
|
154 |
-
// re-enqueue color style
|
155 |
-
wp_enqueue_style( 'colors' );
|
156 |
-
|
157 |
wp_localize_script( 'menu-icons', 'menuIcons', $data );
|
158 |
}
|
159 |
|
@@ -244,7 +233,9 @@ final class Menu_Icons_Admin_Nav_Menus {
|
|
244 |
* @return string Form fields
|
245 |
*/
|
246 |
public static function _fields( $id, $item, $depth, $args ) {
|
247 |
-
|
|
|
|
|
248 |
|
249 |
$type_ids = array_values( array_filter( array_keys( self::_get_types() ) ) );
|
250 |
$input_id = sprintf( 'menu-icons-%d', $item->ID );
|
110 |
* @wp_hook admin_enqueue_scripts
|
111 |
*/
|
112 |
public static function _enqueue_assets() {
|
113 |
+
$ajax_url = admin_url( '/admin-ajax.php' );
|
114 |
+
$data = array(
|
115 |
'text' => array(
|
116 |
'title' => __( 'Select Icon', 'menu-icons' ),
|
117 |
'select' => __( 'Select', 'menu-icons' ),
|
122 |
'<a target="_blank" href="http://wordpress.org/plugins/simple-custom-css/">Simple Custom CSS</a>'
|
123 |
),
|
124 |
),
|
|
|
|
|
125 |
'settingsFields' => Menu_Icons_Settings::get_settings_fields(),
|
126 |
+
'ajaxUrls' => array(
|
127 |
+
'update' => add_query_arg( 'action', 'menu_icons_update_settings', $ajax_url ),
|
128 |
+
)
|
129 |
);
|
130 |
|
131 |
foreach ( self::$_icon_types as $id => $props ) {
|
140 |
}
|
141 |
}
|
142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
$data['iconTypes'] = $icon_types;
|
144 |
$data['typeNames'] = array_keys( self::$_icon_types );
|
145 |
|
|
|
|
|
|
|
146 |
wp_localize_script( 'menu-icons', 'menuIcons', $data );
|
147 |
}
|
148 |
|
233 |
* @return string Form fields
|
234 |
*/
|
235 |
public static function _fields( $id, $item, $depth, $args ) {
|
236 |
+
if ( ! class_exists( 'Kucrut_Form_Field' ) ) {
|
237 |
+
require_once Menu_Icons::get( 'dir' ) . 'includes/library/form-fields.php';
|
238 |
+
}
|
239 |
|
240 |
$type_ids = array_values( array_filter( array_keys( self::_get_types() ) ) );
|
241 |
$input_id = sprintf( 'menu-icons-%d', $item->ID );
|
includes/settings.php
CHANGED
@@ -125,6 +125,7 @@ final class Menu_Icons_Settings {
|
|
125 |
Menu_Icons_Admin_Nav_Menus::init();
|
126 |
|
127 |
add_action( 'load-nav-menus.php', array( __CLASS__, '_load_nav_menus' ), 1 );
|
|
|
128 |
}
|
129 |
|
130 |
|
@@ -166,33 +167,78 @@ final class Menu_Icons_Settings {
|
|
166 |
if ( ! empty( $_POST['menu-icons']['settings'] ) ) {
|
167 |
check_admin_referer( self::UPDATE_KEY, self::UPDATE_KEY );
|
168 |
|
169 |
-
|
170 |
-
|
171 |
-
wp_parse_args(
|
172 |
-
kucrut_validate( $_POST['menu-icons']['settings'] ),
|
173 |
-
self::$settings
|
174 |
-
)
|
175 |
-
);
|
176 |
-
set_transient( self::TRANSIENT_KEY, 'updated', 30 );
|
177 |
-
wp_redirect(
|
178 |
-
remove_query_arg(
|
179 |
-
array( 'menu-icons-reset' ),
|
180 |
-
wp_get_referer()
|
181 |
-
)
|
182 |
-
);
|
183 |
}
|
184 |
elseif ( ! empty( $_REQUEST[ self::RESET_KEY ] ) ) {
|
185 |
check_admin_referer( self::RESET_KEY, self::RESET_KEY );
|
|
|
|
|
|
|
186 |
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
}
|
|
|
|
|
|
|
196 |
}
|
197 |
|
198 |
|
@@ -380,7 +426,9 @@ final class Menu_Icons_Settings {
|
|
380 |
* @return array
|
381 |
*/
|
382 |
private static function _get_fields() {
|
383 |
-
|
|
|
|
|
384 |
|
385 |
$keys = array( 'menu-icons', 'settings' );
|
386 |
$sections = self::get_fields();
|
@@ -464,6 +512,7 @@ final class Menu_Icons_Settings {
|
|
464 |
</span>
|
465 |
|
466 |
<span class="add-to-menu">
|
|
|
467 |
<?php submit_button(
|
468 |
__( 'Save Settings', 'menu-icons' ),
|
469 |
'secondary',
|
125 |
Menu_Icons_Admin_Nav_Menus::init();
|
126 |
|
127 |
add_action( 'load-nav-menus.php', array( __CLASS__, '_load_nav_menus' ), 1 );
|
128 |
+
add_action( 'wp_ajax_menu_icons_update_settings', array( __CLASS__, '_ajax_menu_icons_update_settings' ) );
|
129 |
}
|
130 |
|
131 |
|
167 |
if ( ! empty( $_POST['menu-icons']['settings'] ) ) {
|
168 |
check_admin_referer( self::UPDATE_KEY, self::UPDATE_KEY );
|
169 |
|
170 |
+
$redirect_url = self::_update_settings( $_POST['menu-icons']['settings'] );
|
171 |
+
wp_redirect( $redirect );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
}
|
173 |
elseif ( ! empty( $_REQUEST[ self::RESET_KEY ] ) ) {
|
174 |
check_admin_referer( self::RESET_KEY, self::RESET_KEY );
|
175 |
+
wp_redirect( self::_reset_settings() );
|
176 |
+
}
|
177 |
+
}
|
178 |
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Update settings
|
182 |
+
*
|
183 |
+
* @since 0.7.0
|
184 |
+
* @access protected
|
185 |
+
* @param array $values Settings values
|
186 |
+
* @return string Redirect URL
|
187 |
+
*/
|
188 |
+
protected static function _update_settings( $values ) {
|
189 |
+
update_option(
|
190 |
+
'menu-icons',
|
191 |
+
wp_parse_args(
|
192 |
+
kucrut_validate( $values ),
|
193 |
+
self::$settings
|
194 |
+
)
|
195 |
+
);
|
196 |
+
set_transient( self::TRANSIENT_KEY, 'updated', 30 );
|
197 |
+
|
198 |
+
$redirect_url = remove_query_arg(
|
199 |
+
array( 'menu-icons-reset' ),
|
200 |
+
wp_get_referer()
|
201 |
+
);
|
202 |
+
|
203 |
+
return $redirect_url;
|
204 |
+
}
|
205 |
+
|
206 |
+
|
207 |
+
/**
|
208 |
+
* Reset settings
|
209 |
+
*
|
210 |
+
* @since 0.7.0
|
211 |
+
* @access protected
|
212 |
+
* @return string Redirect URL
|
213 |
+
*/
|
214 |
+
protected static function _reset_settings() {
|
215 |
+
delete_option( 'menu-icons' );
|
216 |
+
set_transient( self::TRANSIENT_KEY, 'reset', 30 );
|
217 |
+
|
218 |
+
$redirect_url = remove_query_arg(
|
219 |
+
array( self::RESET_KEY, 'menu-icons-updated' ),
|
220 |
+
wp_get_referer()
|
221 |
+
);
|
222 |
+
|
223 |
+
return $redirect_url;
|
224 |
+
}
|
225 |
+
|
226 |
+
|
227 |
+
/**
|
228 |
+
* Update settings via ajax
|
229 |
+
*
|
230 |
+
* @since 0.7.0
|
231 |
+
* @wp_hook action _ajax_menu_icons_update_settings
|
232 |
+
*/
|
233 |
+
public static function _ajax_menu_icons_update_settings() {
|
234 |
+
check_ajax_referer( self::UPDATE_KEY, self::UPDATE_KEY );
|
235 |
+
|
236 |
+
if ( empty( $_POST['menu-icons']['settings'] ) ) {
|
237 |
+
wp_send_json_error();
|
238 |
}
|
239 |
+
|
240 |
+
$redirect_url = self::_update_settings( $_POST['menu-icons']['settings'] );
|
241 |
+
wp_send_json_success( array( 'redirectUrl' => $redirect_url ) );
|
242 |
}
|
243 |
|
244 |
|
426 |
* @return array
|
427 |
*/
|
428 |
private static function _get_fields() {
|
429 |
+
if ( ! class_exists( 'Kucrut_Form_Field' ) ) {
|
430 |
+
require_once Menu_Icons::get( 'dir' ) . 'includes/library/form-fields.php';
|
431 |
+
}
|
432 |
|
433 |
$keys = array( 'menu-icons', 'settings' );
|
434 |
$sections = self::get_fields();
|
512 |
</span>
|
513 |
|
514 |
<span class="add-to-menu">
|
515 |
+
<span class="spinner"></span>
|
516 |
<?php submit_button(
|
517 |
__( 'Save Settings', 'menu-icons' ),
|
518 |
'secondary',
|
includes/type-dashicons.php
CHANGED
@@ -103,8 +103,8 @@ class Menu_Icons_Type_Dashicons extends Menu_Icons_Type_Fonts {
|
|
103 |
),
|
104 |
),
|
105 |
array(
|
106 |
-
'key' => '
|
107 |
-
'label' => __( '
|
108 |
'items' => array(
|
109 |
'dashicons-image-crop' => __( 'Crop', 'menu-icons' ),
|
110 |
'dashicons-image-rotate-left' => __( 'Rotate Left', 'menu-icons' ),
|
@@ -116,8 +116,8 @@ class Menu_Icons_Type_Dashicons extends Menu_Icons_Type_Fonts {
|
|
116 |
),
|
117 |
),
|
118 |
array(
|
119 |
-
'key' => 'editor',
|
120 |
-
'label' => __( 'Editor', 'menu-icons' ),
|
121 |
'items' => array(
|
122 |
'dashicons-editor-bold' => __( 'Bold', 'menu-icons' ),
|
123 |
'dashicons-editor-italic' => __( 'Italic', 'menu-icons' ),
|
@@ -260,23 +260,34 @@ class Menu_Icons_Type_Dashicons extends Menu_Icons_Type_Fonts {
|
|
260 |
'key' => 'media',
|
261 |
'label' => __( 'Media', 'menu-icons' ),
|
262 |
'items' => array(
|
263 |
-
'dashicons-
|
264 |
-
'dashicons-
|
265 |
-
'dashicons-
|
266 |
-
'dashicons-
|
267 |
-
'dashicons-
|
268 |
-
'dashicons-
|
269 |
-
'dashicons-
|
270 |
-
'dashicons-
|
271 |
-
'dashicons-
|
272 |
-
'dashicons-
|
273 |
-
'dashicons-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
274 |
),
|
275 |
),
|
276 |
array(
|
277 |
'key' => 'misc',
|
278 |
'label' => __( 'Misc./Post Types', 'menu-icons' ),
|
279 |
'items' => array(
|
|
|
|
|
280 |
'dashicons-location' => __( 'Location', 'menu-icons' ),
|
281 |
'dashicons-location-alt' => __( 'Location', 'menu-icons' ),
|
282 |
'dashicons-camera' => __( 'Camera', 'menu-icons' ),
|
@@ -318,6 +329,11 @@ class Menu_Icons_Type_Dashicons extends Menu_Icons_Type_Fonts {
|
|
318 |
'dashicons-tablet' => __( 'Tablet', 'menu-icons' ),
|
319 |
'dashicons-smartphone' => __( 'Smartphone', 'menu-icons' ),
|
320 |
'dashicons-smiley' => __( 'Smiley', 'menu-icons' ),
|
|
|
|
|
|
|
|
|
|
|
321 |
),
|
322 |
),
|
323 |
);
|
103 |
),
|
104 |
),
|
105 |
array(
|
106 |
+
'key' => 'image-editor',
|
107 |
+
'label' => __( 'Image Editor', 'menu-icons' ),
|
108 |
'items' => array(
|
109 |
'dashicons-image-crop' => __( 'Crop', 'menu-icons' ),
|
110 |
'dashicons-image-rotate-left' => __( 'Rotate Left', 'menu-icons' ),
|
116 |
),
|
117 |
),
|
118 |
array(
|
119 |
+
'key' => 'text-editor',
|
120 |
+
'label' => __( 'Text Editor', 'menu-icons' ),
|
121 |
'items' => array(
|
122 |
'dashicons-editor-bold' => __( 'Bold', 'menu-icons' ),
|
123 |
'dashicons-editor-italic' => __( 'Italic', 'menu-icons' ),
|
260 |
'key' => 'media',
|
261 |
'label' => __( 'Media', 'menu-icons' ),
|
262 |
'items' => array(
|
263 |
+
'dashicons-controls-skipback' => __( 'Skip Back', 'menu-icons' ),
|
264 |
+
'dashicons-controls-back' => __( 'Back', 'menu-icons' ),
|
265 |
+
'dashicons-controls-play' => __( 'Play', 'menu-icons' ),
|
266 |
+
'dashicons-controls-pause' => __( 'Pause', 'menu-icons' ),
|
267 |
+
'dashicons-controls-forward' => __( 'Forward', 'menu-icons' ),
|
268 |
+
'dashicons-controls-skipforward' => __( 'Skip Forward', 'menu-icons' ),
|
269 |
+
'dashicons-controls-repeat' => __( 'Repeat', 'menu-icons' ),
|
270 |
+
'dashicons-controls-volumeon' => __( 'Volume: On', 'menu-icons' ),
|
271 |
+
'dashicons-controls-volumeoff' => __( 'Volume: Off', 'menu-icons' ),
|
272 |
+
'dashicons-media-archive' => __( 'Archive', 'menu-icons' ),
|
273 |
+
'dashicons-media-audio' => __( 'Audio', 'menu-icons' ),
|
274 |
+
'dashicons-media-code' => __( 'Code', 'menu-icons' ),
|
275 |
+
'dashicons-media-default' => __( 'Default', 'menu-icons' ),
|
276 |
+
'dashicons-media-document' => __( 'Document', 'menu-icons' ),
|
277 |
+
'dashicons-media-interactive' => __( 'Interactive', 'menu-icons' ),
|
278 |
+
'dashicons-media-spreadsheet' => __( 'Spreadsheet', 'menu-icons' ),
|
279 |
+
'dashicons-media-text' => __( 'Text', 'menu-icons' ),
|
280 |
+
'dashicons-media-video' => __( 'Video', 'menu-icons' ),
|
281 |
+
'dashicons-playlist-audio' => __( 'Audio Playlist', 'menu-icons' ),
|
282 |
+
'dashicons-playlist-video' => __( 'Video Playlist', 'menu-icons' ),
|
283 |
),
|
284 |
),
|
285 |
array(
|
286 |
'key' => 'misc',
|
287 |
'label' => __( 'Misc./Post Types', 'menu-icons' ),
|
288 |
'items' => array(
|
289 |
+
'dashicons-album' => __( 'Album', 'menu-icons' ),
|
290 |
+
'dashicons-building' => __( 'Building', 'menu-icons' ),
|
291 |
'dashicons-location' => __( 'Location', 'menu-icons' ),
|
292 |
'dashicons-location-alt' => __( 'Location', 'menu-icons' ),
|
293 |
'dashicons-camera' => __( 'Camera', 'menu-icons' ),
|
329 |
'dashicons-tablet' => __( 'Tablet', 'menu-icons' ),
|
330 |
'dashicons-smartphone' => __( 'Smartphone', 'menu-icons' ),
|
331 |
'dashicons-smiley' => __( 'Smiley', 'menu-icons' ),
|
332 |
+
'dashicons-phone' => __( 'Phone', 'menu-icons' ),
|
333 |
+
'dashicons-store' => __( 'Store', 'menu-icons' ),
|
334 |
+
'dashicons-palmtree' => __( 'Palm Tree', 'menu-icons' ),
|
335 |
+
'dashicons-tickets-alt' => __( 'Tickets', 'menu-icons' ),
|
336 |
+
'dashicons-money' => __( 'Money', 'menu-icons' ),
|
337 |
),
|
338 |
),
|
339 |
);
|
includes/type-fonts.php
CHANGED
@@ -227,6 +227,10 @@ abstract class Menu_Icons_Type_Fonts extends Menu_Icons_Type {
|
|
227 |
* @return string
|
228 |
*/
|
229 |
protected function add_icon( $title, $values ) {
|
|
|
|
|
|
|
|
|
230 |
$class = ! empty( $values['hide_label'] ) ? 'visuallyhidden' : '';
|
231 |
$title = sprintf(
|
232 |
'<span%s>%s</span>',
|
227 |
* @return string
|
228 |
*/
|
229 |
protected function add_icon( $title, $values ) {
|
230 |
+
if ( empty( $values['position'] ) ) {
|
231 |
+
$values['position'] = 'before';
|
232 |
+
}
|
233 |
+
|
234 |
$class = ! empty( $values['hide_label'] ) ? 'visuallyhidden' : '';
|
235 |
$title = sprintf(
|
236 |
'<span%s>%s</span>',
|
js/admin.js
CHANGED
@@ -99,7 +99,7 @@
|
|
99 |
|
100 |
var id = $(this).data('id');
|
101 |
|
102 |
-
$('#menu-icons-'+ id +'-type').val('').trigger('
|
103 |
}
|
104 |
}, window.menuIcons);
|
105 |
|
@@ -206,7 +206,7 @@
|
|
206 |
|
207 |
this.model.set( 'value', value );
|
208 |
item.set( this.model.id, value );
|
209 |
-
$field.val( value ).trigger('
|
210 |
}
|
211 |
});
|
212 |
|
@@ -1007,7 +1007,7 @@
|
|
1007 |
_.each( attrs, function( value, key ) {
|
1008 |
$el = $('#menu-icons-'+ id +'-'+ key).not('._setting');
|
1009 |
if ( $el.length ) {
|
1010 |
-
$el.val( value ).trigger('
|
1011 |
}
|
1012 |
});
|
1013 |
|
@@ -1019,7 +1019,37 @@
|
|
1019 |
$('body')
|
1020 |
.on( 'click', 'div.menu-icons-wrap a._select', window.menuIcons.selectIcon )
|
1021 |
.on( 'click', 'div.menu-icons-wrap a._remove', window.menuIcons.removeIcon )
|
1022 |
-
.on( '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1023 |
|
1024 |
-
$('div.menu-icons-wrap select._type').trigger('change-mi');
|
1025 |
}(jQuery));
|
99 |
|
100 |
var id = $(this).data('id');
|
101 |
|
102 |
+
$('#menu-icons-'+ id +'-type').val('').trigger('mi:update');
|
103 |
}
|
104 |
}, window.menuIcons);
|
105 |
|
206 |
|
207 |
this.model.set( 'value', value );
|
208 |
item.set( this.model.id, value );
|
209 |
+
$field.val( value ).trigger('mi:update');
|
210 |
}
|
211 |
});
|
212 |
|
1007 |
_.each( attrs, function( value, key ) {
|
1008 |
$el = $('#menu-icons-'+ id +'-'+ key).not('._setting');
|
1009 |
if ( $el.length ) {
|
1010 |
+
$el.val( value ).trigger('mi:update');
|
1011 |
}
|
1012 |
});
|
1013 |
|
1019 |
$('body')
|
1020 |
.on( 'click', 'div.menu-icons-wrap a._select', window.menuIcons.selectIcon )
|
1021 |
.on( 'click', 'div.menu-icons-wrap a._remove', window.menuIcons.removeIcon )
|
1022 |
+
.on( 'mi:update', 'div.menu-icons-wrap select._type', window.menuIcons.toggleSelect );
|
1023 |
+
|
1024 |
+
$('div.menu-icons-wrap select._type').trigger('mi:update');
|
1025 |
+
|
1026 |
+
|
1027 |
+
// Settings meta box
|
1028 |
+
$('#menu-item-settings-save').on('click', function(e) {
|
1029 |
+
var $button = $(this).prop( 'disabled', true );
|
1030 |
+
var $spinner = $button.siblings('span.spinner');
|
1031 |
+
|
1032 |
+
e.preventDefault();
|
1033 |
+
|
1034 |
+
$spinner.css( 'display', 'inline-block' );
|
1035 |
+
|
1036 |
+
$.ajax({
|
1037 |
+
type : 'POST',
|
1038 |
+
url : window.menuIcons.ajaxUrls.update,
|
1039 |
+
data : $('#menu-icons-settings :input').serialize(),
|
1040 |
+
success : function( response, xhr ) {
|
1041 |
+
if ( true === response.success && response.data.redirectUrl ) {
|
1042 |
+
window.location = response.data.redirectUrl;
|
1043 |
+
}
|
1044 |
+
else {
|
1045 |
+
$button.prop( 'disabled', false );
|
1046 |
+
}
|
1047 |
+
},
|
1048 |
+
always : function() {
|
1049 |
+
$spinner.hide();
|
1050 |
+
}
|
1051 |
+
});
|
1052 |
+
});
|
1053 |
+
|
1054 |
|
|
|
1055 |
}(jQuery));
|
js/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a){"use strict";if(a.inputDependencies({selector:"select.hasdep",disable:!1}),a("#menu-icons-settings-tabs").on("click","a.mi-settings-nav-tab",function(b){b.preventDefault(),b.stopPropagation();var c=a(this).blur(),d=a("#"+c.data("type"));c.parent().addClass("tabs").siblings().removeClass("tabs"),d.removeClass("tabs-panel-inactive").addClass("tabs-panel-active").show().siblings("div.tabs-panel").hide().addClass("tabs-panel-inactive").removeClass("tabs-panel-active")}).find("a.mi-settings-nav-tab").first().click(),"undefined"!=typeof window.menuIcons&&void 0!==window.menuIcons.iconTypes){window.menuIcons=_.defaults({frame:"",currentItem:{},toggleSelect:function(b){var c=a(b.currentTarget),d=c.closest("div.menu-icons-wrap"),e=d.find("a._select"),f=d.find("a._remove");""!==c.val()?f.show():(e.text(e.data("text")),f.hide())},selectIcon:function(c){c.preventDefault(),c.stopPropagation();var d=a(this),e=b.view.settings.post.id=d.data("id"),f={id:e,title:a("#edit-menu-item-title-"+e).val()};d.closest("div.menu-icons-wrap").find(":input").each(function(b,c){var d=a(c).data("key");f[d]=c.value}),window.menuIcons.currentItem=f,window.menuIcons.frame instanceof b.view.MediaFrame.menuIcons||(window.menuIcons.frame=new b.view.MediaFrame.menuIcons),window.menuIcons.frame.open()},removeIcon:function(b){b.preventDefault(),b.stopPropagation();var c=a(this).data("id");a("#menu-icons-"+c+"-type").val("").trigger("change-mi")}},window.menuIcons);var b=wp.media,c=b.model.Attachment;b.model.mi={},b.model.mi.MenuItems=Backbone.Collection.extend({props:new Backbone.Model({item:""}),model:Backbone.Model.extend({defaults:{type:"",group:"all",icon:""}})}),b.model.mi.MenuItems.Settings=Backbone.Collection.extend({model:Backbone.Model.extend({defaults:{id:"",label:"",value:"",type:"text"}})}),b.view.miSidebar=b.view.Sidebar.extend({initialize:function(){var a=new b.View({tagName:"h3",priority:-10}),c=new b.View({tagName:"p",className:"_info",priority:1e3});b.view.Sidebar.prototype.initialize.apply(this,arguments),a.$el.text(window.menuIcons.text.preview),this.set("title",a),c.$el.html(window.menuIcons.text.settingsInfo),this.set("info",c)}}),b.view.miSidebar.Settings=b.view.PriorityList.extend({className:"mi-settings attachment-info",prepare:function(){_.each(this.collection.map(this.createField,this),function(a){this.set(a.model.id,a)},this)},createField:function(a){var c=new b.view.miSidebar.Settings.Field({item:this.model,model:a,collection:this.collection});return c}}),b.view.miSidebar.Settings.Field=b.View.extend({tagName:"label",className:"setting",events:{"change :input":"_update"},initialize:function(){b.View.prototype.initialize.apply(this,arguments),this.template=b.template("menu-icons-settings-field-"+this.model.get("type")),this.model.on("change",this.render,this)},prepare:function(){return this.model.toJSON()},_update:function(b){var c=this.options.item,d=a(b.currentTarget),e=d.val(),f=a("#menu-icons-"+c.id+"-"+this.model.id+"._setting");this.model.set("value",e),c.set(this.model.id,e),f.val(e).trigger("change-mi")}}),b.view.miPreview=b.View.extend({tagName:"p",className:"mi-preview menu-item attachment-info",events:{"click a":"preventDefault"},initialize:function(){b.View.prototype.initialize.apply(this,arguments),this.model.on("change",this.render,this)},render:function(){var a=_.extend(this.model.toJSON(),this.options.data),c="menu-icons-"+a.type+"-preview-";return c+=a.hide_label?"hide_label":a.position,this.template=b.template(c),this.$el.html(this.template(a)),this},preventDefault:function(a){a.preventDefault()}}),b.view.miBrowser={createSidebar:function(){var a=this.options,c=a.selection,d=this.sidebar=new b.view.miSidebar({controller:this.controller,type:a.type});this.views.add(d),c.on("selection:single",this.createSingle,this),c.on("selection:unsingle",this.disposeSingle,this),c.single()&&this.createSingle()},createSingle:function(){this.createPreview()},createSettings:function(){var a=this.controller.miGetCurrentItem(),c=this.model.get("settings");c.length&&(_.each(c,function(b){b.value=a.get(b.id)}),this.sidebar.set("settings",new b.view.miSidebar.Settings({controller:this.controller,collection:new b.model.mi.MenuItems.Settings(c),model:a,type:this.options.type,priority:120})))}},b.view.miFont=b.View.extend({className:"attachments-browser mi-items-wrap",initialize:function(){this.createToolbar(),this.createLibrary(),this.createSidebar()},createLibrary:function(){this.items=new b.view.miFont.Library({controller:this.controller,collection:this.collection,selection:this.options.selection,type:this.options.type,data:this.options.data}),this.views.add(this.items)},createToolbar:function(){{var a=this.collection;a.props.get("group")}this.toolbar=new b.view.Toolbar({controller:this.controller}),this.views.add(this.toolbar),this.toolbar.set("filters",new b.view.miFont.Filters({controller:this.controller,model:this.collection.props,priority:-80}).render()),this.toolbar.set("search",new b.view.Search({controller:this.controller,model:this.collection.props,priority:60}).render())},createPreview:function(){var a=this.controller,c=a.miGetCurrentItem(),d=this.model.get("selection").single();this.createSettings(),this.sidebar.set("preview",new b.view.miPreview({controller:a,model:c,data:{type:d.get("type"),icon:d.id},priority:80}))},disposeSingle:function(){var a=this.sidebar;a.unset("preview"),a.unset("settings")}}),_.extend(b.view.miFont.prototype,b.view.miBrowser),b.view.miFont.Library=b.View.extend({tagName:"ul",className:"attachments mi-items clearfix",initialize:function(){this._viewsByCid={},this.collection.on("reset",this.refresh,this),this.controller.on("open",this.scrollToSelected,this)},render:function(){return this.collection.each(function(a){this.views.add(this.renderItem(a),{at:this.collection.indexOf(a)})},this),this},renderItem:function(a){var c=new b.view.miFont.Icon({controller:this.controller,model:a,collection:this.collection,selection:this.options.selection,type:this.options.type,data:this.options.data});return this._viewsByCid[c.cid]=c},clearItems:function(){_.each(this._viewsByCid,function(a){delete this._viewsByCid[a.cid],a.remove()},this)},refresh:function(){this.clearItems(),this.render()},ready:function(){this.scrollToSelected()},scrollToSelected:function(){var a,b=this.options.selection.single();b&&(a=this.getView(b),a&&!this.isInView(a.$el)&&this.$el.scrollTop(a.$el.offset().top-this.$el.offset().top+this.$el.scrollTop()-parseInt(this.$el.css("paddingTop"))))},getView:function(a){return _.findWhere(this._viewsByCid,{model:a})},isInView:function(b){var c=a(window),d=c.scrollTop(),e=d+c.height(),f=b.offset().top,g=f+b.height();return e>=g&&f>=d}}),b.view.miFont.Filters=b.view.AttachmentFilters.extend({createFilters:function(){this.filters={all:{text:window.menuIcons.text.all,props:{group:"all"}}};var a=this.controller.state().get("data").groups;_.each(a,function(a,b){this.filters[b]={text:a,props:{group:b}}},this)},change:function(){var a=this.filters[this.el.value];a&&this.model.set("group",a.props.group)}}),b.view.miFont.Icon=b.view.Attachment.extend({className:"attachment mi-item",events:{"click .attachment-preview":"toggleSelectionHandler","click a":"preventDefault"},initialize:function(){this.template=b.template("menu-icons-"+this.options.type+"-item"),b.view.Attachment.prototype.initialize.apply(this,arguments)},render:function(){return this.$el.html(this.template(this.model.toJSON())),this.updateSelect(),this}}),b.controller.miFont=b.controller.State.extend({defaults:{id:"mi-font",menu:"default",toolbar:"mi-select",type:"",settings:["hide_label","position","font_size","vertical_align"]},initialize:function(){var c,d=this.get("data").items,e=this.get("library"),f=this.get("selection"),g=this.get("settings");e instanceof b.controller.miFont.Library||(e=new b.controller.miFont.Library(d),e.props.on("change",this.miResetLibrary,this),this.set("library",e)),f instanceof b.model.Selection||this.set("selection",new b.model.Selection(f,{multiple:!1})),c=_.filter(window.menuIcons.settingsFields,function(b){return-1!==a.inArray(b.id,g)}),this.set("settings",c)},activate:function(){this.frame.on("open",this.refresh,this),this.miUpdateSelection()},deactivate:function(){b.controller.State.prototype.deactivate.apply(this,arguments),this.frame.off("open",this.refresh,this)},refresh:function(){this.miResetFilter(),this.miUpdateSelection()},miGetContent:function(){return this.miResetFilter(),new b.view.miFont({controller:this.frame,model:this,collection:this.get("library"),selection:this.get("selection"),type:this.get("type")})},miResetLibrary:function(){var a=this.get("library"),b=a.props.get("group"),c=this.frame.miGetCurrentItem();c.set("group",b),a.reInitialize(),this.set("library",a),this.miUpdateSelection()},miResetFilter:function(){var a=this.get("library"),b=this.frame.miGetCurrentItem(),c=this.get("data").groups,d=b.get("group");_.isUndefined(c[d])&&(d="all"),a.props.set("group",d)},miUpdateSelection:function(){var a,b=this.get("selection"),c=this.get("type"),d=c+"-icon",e=this.frame.miGetCurrentItem(),f=e.get(d);c===e.get("type")&&f&&(a=this.get("library").findWhere({id:f})),b.reset(a?a:[])}}),b.controller.miFont.Library=Backbone.Collection.extend({props:new Backbone.Model({group:"all",search:""}),initialize:function(a){this.icons=new Backbone.Collection(a)},reInitialize:function(){var a=this,b=this.icons.toJSON(),c=this.props.toJSON();_.each(c,function(c,d){a.filters[d]&&(b=_.filter(b,a.filters[d],c))},this),this.reset(b)},filters:{group:function(a){var b=this;return"all"===b||a.group===b||""===a.group},search:function(a){var b,c=this;return b=""===c?!0:_.any(["id","label"],function(b){var c=a[b];return c&&-1!==c.search(this)},c)}}}),b.controller.miImage=b.controller.Library.extend({defaults:_.defaults({id:"browse",menu:"default",router:"browse",toolbar:"mi-select",filterable:"uploaded",settings:["hide_label","position","image_size","vertical_align"],syncSelection:!1},b.controller.Library.prototype.defaults),initialize:function(){var c,d=this.get("selection"),e=this.get("settings");this.set("library",b.query({type:"image"})),this.routers={upload:{text:b.view.l10n.uploadFilesTitle,priority:20},browse:{text:b.view.l10n.mediaLibraryTitle,priority:40}},d instanceof b.model.Selection||this.set("selection",new b.model.Selection(d,{multiple:!1})),c=_.filter(window.menuIcons.settingsFields,function(b){return-1!==a.inArray(b.id,e)}),this.set("settings",c),b.controller.Library.prototype.initialize.apply(this,arguments)},activate:function(){b.controller.Library.prototype.activate.apply(this,arguments),this.frame.on("open",this.miUpdateSelection,this),this.miUpdateSelection()},deactivate:function(){b.controller.Library.prototype.deactivate.apply(this,arguments),this.frame.off("open",this.miUpdateSelection,this)},miUpdateSelection:function(){var a,b=this.get("selection"),d=this.get("type"),e=d+"-icon",f=this.frame.miGetCurrentItem(),g=f.get(e);d===f.get("type")&&g&&(a=c.get(g),this.dfd=a.fetch()),b.reset(a?a:[])},miGetContent:function(a){var b="upload"===a?this.uploadContent():this.browseContent();return this.frame.$el.removeClass("hide-toolbar"),b},browseContent:function(){var a=this;return new b.view.AttachmentsBrowser.miImage({type:a.get("type"),controller:a.frame,collection:a.get("library"),selection:a.get("selection"),model:a,sortable:a.get("sortable"),search:a.get("searchable"),filters:a.get("filterable"),display:a.get("displaySettings"),dragInfo:a.get("dragInfo")})},uploadContent:function(){return new b.view.UploaderInline({controller:this.frame})}}),b.view.AttachmentsBrowser.miImage=b.view.AttachmentsBrowser.extend({disposeSingle:function(){b.view.AttachmentsBrowser.prototype.disposeSingle.apply(this,arguments),this.sidebar.unset("preview"),this.sidebar.unset("settings")},createPreview:function(){var a,c,d,e=this,f=this.model;return f.dfd&&"pending"===f.dfd.state()?void f.dfd.done(function(){e.createPreview()}):(a=f.get("selection").single(),"image"!==a.get("type")?void f.get("selection").reset():a.get("uploading")?void a.on("change:uploading",e.createPreview,this):(c=this.controller,d=c.miGetCurrentItem(),this.createSettings(),void this.sidebar.set("preview",new b.view.miPreview.miImage({controller:c,settings:this.sidebar.get("settings"),model:d,data:{type:f.get("type"),alt:a.get("alt"),sizes:a.get("sizes")},priority:80}))))}}),_.extend(b.view.AttachmentsBrowser.miImage.prototype,b.view.miBrowser),b.view.miPreview.miImage=b.view.miPreview.extend({render:function(){var a=this.options.model.get("image_size"),c=this.options.data.sizes,d=this.options.settings.get("image_size"),e=[];return c.hasOwnProperty(a)||(a="full"),_.each(d.model.get("choices"),function(a){c.hasOwnProperty(a.value)&&e.push(a)}),d.model.set("choices",e),this.options.model.set("image_size",a,{silent:!0}),this.options.data.url=c[a].url,b.view.miPreview.prototype.render.apply(this,arguments)}}),b.view.MediaFrame.menuIcons=b.view.MediaFrame.extend({initialize:function(){b.view.MediaFrame.prototype.initialize.apply(this,arguments),_.defaults(this.options,{selection:[],multiple:!1,editing:!1,toolbar:"mi-select"}),this.miMenuItems=new b.model.mi.MenuItems,this.createStates(),this.bindHandlers()},createStates:function(){var a,c=this.options;c.states||_.each(window.menuIcons.iconTypes,function(d,e){return b.controller.hasOwnProperty(d.data.controller)?(a=b.controller[d.data.controller],_.defaults(d,{content:d.id,selection:c.selection}),void this.states.add(new a(d))):void delete window.menuIcons.iconTypes[e]},this)},bindHandlers:function(){this.on("router:create:browse",this.createRouter,this),this.on("router:render:browse",this.browseRouter,this),this.on("content:render",this.miRenderContent,this),this.on("toolbar:create:mi-select",this.createToolbar,this),this.on("toolbar:render:mi-select",this.miSelectToolbar,this),this.on("open",this.miInitialize,this)},browseRouter:function(a){var b=this.state().routers;b&&a.set(b)},miRenderContent:function(){var a=this.state(),b=this.content.mode(),c=a.miGetContent(b);this.content.set(c)},miSelectToolbar:function(a){{var b=this,c=b.state();c.get("type")}a.set(c.id,{style:"primary",priority:80,text:window.menuIcons.text.select,requires:{selection:!0},click:function(){b.close(),b.miUpdateItemProps(),b.miUpdateItem()}})},miContentRender:function(){var a=this.state(),b=a.miGetContent();this.content.set(b)},miGetState:function(){var a,b=window.menuIcons.currentItem;return a=!_.isUndefined(b.type)&&""!==b.type&&window.menuIcons.iconTypes.hasOwnProperty(b.type)?b.type:window.menuIcons.typeNames[0],"mi-"+a},miGetCurrentItem:function(){return this.miMenuItems.get(window.menuIcons.currentItem.id)},miUpdateMenuItems:function(){var a=this.miGetCurrentItem();_.isUndefined(a)?this.miMenuItems.add(window.menuIcons.currentItem):a.set(window.menuIcons.currentItem),this.miMenuItems.props.set("item",window.menuIcons.currentItem.id)},miInitialize:function(){this.miUpdateMenuItems(),this.setState(this.miGetState())},miUpdateItemProps:function(){var a=this.state(),b=a.get("type"),c=a.get("selection"),d=c.single(),e=d?d.id:"",f=this.miGetCurrentItem();f.set("type",b),f.set(b+"-icon",e),f.set("icon",e)},miUpdateItem:function(){var c,d=this.miGetCurrentItem().toJSON(),e=d.id,f=this.state(),g=f.get("selection").single(),h=b.template("menu-icons-"+d.type+"-field"),i=g.toJSON();i._settings=d,delete d.id,delete d.title,_.each(d,function(b,d){c=a("#menu-icons-"+e+"-"+d).not("._setting"),c.length&&c.val(b).trigger("change-mi")}),a("#menu-icons-"+e+"-select").html(h(i))}}),a("body").on("click","div.menu-icons-wrap a._select",window.menuIcons.selectIcon).on("click","div.menu-icons-wrap a._remove",window.menuIcons.removeIcon).on("change-mi","div.menu-icons-wrap select._type",window.menuIcons.toggleSelect),a("div.menu-icons-wrap select._type").trigger("change-mi")}}(jQuery);
|
1 |
+
!function(a){"use strict";if(a.inputDependencies({selector:"select.hasdep",disable:!1}),a("#menu-icons-settings-tabs").on("click","a.mi-settings-nav-tab",function(b){b.preventDefault(),b.stopPropagation();var c=a(this).blur(),d=a("#"+c.data("type"));c.parent().addClass("tabs").siblings().removeClass("tabs"),d.removeClass("tabs-panel-inactive").addClass("tabs-panel-active").show().siblings("div.tabs-panel").hide().addClass("tabs-panel-inactive").removeClass("tabs-panel-active")}).find("a.mi-settings-nav-tab").first().click(),"undefined"!=typeof window.menuIcons&&void 0!==window.menuIcons.iconTypes){window.menuIcons=_.defaults({frame:"",currentItem:{},toggleSelect:function(b){var c=a(b.currentTarget),d=c.closest("div.menu-icons-wrap"),e=d.find("a._select"),f=d.find("a._remove");""!==c.val()?f.show():(e.text(e.data("text")),f.hide())},selectIcon:function(c){c.preventDefault(),c.stopPropagation();var d=a(this),e=b.view.settings.post.id=d.data("id"),f={id:e,title:a("#edit-menu-item-title-"+e).val()};d.closest("div.menu-icons-wrap").find(":input").each(function(b,c){var d=a(c).data("key");f[d]=c.value}),window.menuIcons.currentItem=f,window.menuIcons.frame instanceof b.view.MediaFrame.menuIcons||(window.menuIcons.frame=new b.view.MediaFrame.menuIcons),window.menuIcons.frame.open()},removeIcon:function(b){b.preventDefault(),b.stopPropagation();var c=a(this).data("id");a("#menu-icons-"+c+"-type").val("").trigger("mi:update")}},window.menuIcons);var b=wp.media,c=b.model.Attachment;b.model.mi={},b.model.mi.MenuItems=Backbone.Collection.extend({props:new Backbone.Model({item:""}),model:Backbone.Model.extend({defaults:{type:"",group:"all",icon:""}})}),b.model.mi.MenuItems.Settings=Backbone.Collection.extend({model:Backbone.Model.extend({defaults:{id:"",label:"",value:"",type:"text"}})}),b.view.miSidebar=b.view.Sidebar.extend({initialize:function(){var a=new b.View({tagName:"h3",priority:-10}),c=new b.View({tagName:"p",className:"_info",priority:1e3});b.view.Sidebar.prototype.initialize.apply(this,arguments),a.$el.text(window.menuIcons.text.preview),this.set("title",a),c.$el.html(window.menuIcons.text.settingsInfo),this.set("info",c)}}),b.view.miSidebar.Settings=b.view.PriorityList.extend({className:"mi-settings attachment-info",prepare:function(){_.each(this.collection.map(this.createField,this),function(a){this.set(a.model.id,a)},this)},createField:function(a){var c=new b.view.miSidebar.Settings.Field({item:this.model,model:a,collection:this.collection});return c}}),b.view.miSidebar.Settings.Field=b.View.extend({tagName:"label",className:"setting",events:{"change :input":"_update"},initialize:function(){b.View.prototype.initialize.apply(this,arguments),this.template=b.template("menu-icons-settings-field-"+this.model.get("type")),this.model.on("change",this.render,this)},prepare:function(){return this.model.toJSON()},_update:function(b){var c=this.options.item,d=a(b.currentTarget),e=d.val(),f=a("#menu-icons-"+c.id+"-"+this.model.id+"._setting");this.model.set("value",e),c.set(this.model.id,e),f.val(e).trigger("mi:update")}}),b.view.miPreview=b.View.extend({tagName:"p",className:"mi-preview menu-item attachment-info",events:{"click a":"preventDefault"},initialize:function(){b.View.prototype.initialize.apply(this,arguments),this.model.on("change",this.render,this)},render:function(){var a=_.extend(this.model.toJSON(),this.options.data),c="menu-icons-"+a.type+"-preview-";return c+=a.hide_label?"hide_label":a.position,this.template=b.template(c),this.$el.html(this.template(a)),this},preventDefault:function(a){a.preventDefault()}}),b.view.miBrowser={createSidebar:function(){var a=this.options,c=a.selection,d=this.sidebar=new b.view.miSidebar({controller:this.controller,type:a.type});this.views.add(d),c.on("selection:single",this.createSingle,this),c.on("selection:unsingle",this.disposeSingle,this),c.single()&&this.createSingle()},createSingle:function(){this.createPreview()},createSettings:function(){var a=this.controller.miGetCurrentItem(),c=this.model.get("settings");c.length&&(_.each(c,function(b){b.value=a.get(b.id)}),this.sidebar.set("settings",new b.view.miSidebar.Settings({controller:this.controller,collection:new b.model.mi.MenuItems.Settings(c),model:a,type:this.options.type,priority:120})))}},b.view.miFont=b.View.extend({className:"attachments-browser mi-items-wrap",initialize:function(){this.createToolbar(),this.createLibrary(),this.createSidebar()},createLibrary:function(){this.items=new b.view.miFont.Library({controller:this.controller,collection:this.collection,selection:this.options.selection,type:this.options.type,data:this.options.data}),this.views.add(this.items)},createToolbar:function(){{var a=this.collection;a.props.get("group")}this.toolbar=new b.view.Toolbar({controller:this.controller}),this.views.add(this.toolbar),this.toolbar.set("filters",new b.view.miFont.Filters({controller:this.controller,model:this.collection.props,priority:-80}).render()),this.toolbar.set("search",new b.view.Search({controller:this.controller,model:this.collection.props,priority:60}).render())},createPreview:function(){var a=this.controller,c=a.miGetCurrentItem(),d=this.model.get("selection").single();this.createSettings(),this.sidebar.set("preview",new b.view.miPreview({controller:a,model:c,data:{type:d.get("type"),icon:d.id},priority:80}))},disposeSingle:function(){var a=this.sidebar;a.unset("preview"),a.unset("settings")}}),_.extend(b.view.miFont.prototype,b.view.miBrowser),b.view.miFont.Library=b.View.extend({tagName:"ul",className:"attachments mi-items clearfix",initialize:function(){this._viewsByCid={},this.collection.on("reset",this.refresh,this),this.controller.on("open",this.scrollToSelected,this)},render:function(){return this.collection.each(function(a){this.views.add(this.renderItem(a),{at:this.collection.indexOf(a)})},this),this},renderItem:function(a){var c=new b.view.miFont.Icon({controller:this.controller,model:a,collection:this.collection,selection:this.options.selection,type:this.options.type,data:this.options.data});return this._viewsByCid[c.cid]=c},clearItems:function(){_.each(this._viewsByCid,function(a){delete this._viewsByCid[a.cid],a.remove()},this)},refresh:function(){this.clearItems(),this.render()},ready:function(){this.scrollToSelected()},scrollToSelected:function(){var a,b=this.options.selection.single();b&&(a=this.getView(b),a&&!this.isInView(a.$el)&&this.$el.scrollTop(a.$el.offset().top-this.$el.offset().top+this.$el.scrollTop()-parseInt(this.$el.css("paddingTop"))))},getView:function(a){return _.findWhere(this._viewsByCid,{model:a})},isInView:function(b){var c=a(window),d=c.scrollTop(),e=d+c.height(),f=b.offset().top,g=f+b.height();return e>=g&&f>=d}}),b.view.miFont.Filters=b.view.AttachmentFilters.extend({createFilters:function(){this.filters={all:{text:window.menuIcons.text.all,props:{group:"all"}}};var a=this.controller.state().get("data").groups;_.each(a,function(a,b){this.filters[b]={text:a,props:{group:b}}},this)},change:function(){var a=this.filters[this.el.value];a&&this.model.set("group",a.props.group)}}),b.view.miFont.Icon=b.view.Attachment.extend({className:"attachment mi-item",events:{"click .attachment-preview":"toggleSelectionHandler","click a":"preventDefault"},initialize:function(){this.template=b.template("menu-icons-"+this.options.type+"-item"),b.view.Attachment.prototype.initialize.apply(this,arguments)},render:function(){return this.$el.html(this.template(this.model.toJSON())),this.updateSelect(),this}}),b.controller.miFont=b.controller.State.extend({defaults:{id:"mi-font",menu:"default",toolbar:"mi-select",type:"",settings:["hide_label","position","font_size","vertical_align"]},initialize:function(){var c,d=this.get("data").items,e=this.get("library"),f=this.get("selection"),g=this.get("settings");e instanceof b.controller.miFont.Library||(e=new b.controller.miFont.Library(d),e.props.on("change",this.miResetLibrary,this),this.set("library",e)),f instanceof b.model.Selection||this.set("selection",new b.model.Selection(f,{multiple:!1})),c=_.filter(window.menuIcons.settingsFields,function(b){return-1!==a.inArray(b.id,g)}),this.set("settings",c)},activate:function(){this.frame.on("open",this.refresh,this),this.miUpdateSelection()},deactivate:function(){b.controller.State.prototype.deactivate.apply(this,arguments),this.frame.off("open",this.refresh,this)},refresh:function(){this.miResetFilter(),this.miUpdateSelection()},miGetContent:function(){return this.miResetFilter(),new b.view.miFont({controller:this.frame,model:this,collection:this.get("library"),selection:this.get("selection"),type:this.get("type")})},miResetLibrary:function(){var a=this.get("library"),b=a.props.get("group"),c=this.frame.miGetCurrentItem();c.set("group",b),a.reInitialize(),this.set("library",a),this.miUpdateSelection()},miResetFilter:function(){var a=this.get("library"),b=this.frame.miGetCurrentItem(),c=this.get("data").groups,d=b.get("group");_.isUndefined(c[d])&&(d="all"),a.props.set("group",d)},miUpdateSelection:function(){var a,b=this.get("selection"),c=this.get("type"),d=c+"-icon",e=this.frame.miGetCurrentItem(),f=e.get(d);c===e.get("type")&&f&&(a=this.get("library").findWhere({id:f})),b.reset(a?a:[])}}),b.controller.miFont.Library=Backbone.Collection.extend({props:new Backbone.Model({group:"all",search:""}),initialize:function(a){this.icons=new Backbone.Collection(a)},reInitialize:function(){var a=this,b=this.icons.toJSON(),c=this.props.toJSON();_.each(c,function(c,d){a.filters[d]&&(b=_.filter(b,a.filters[d],c))},this),this.reset(b)},filters:{group:function(a){var b=this;return"all"===b||a.group===b||""===a.group},search:function(a){var b,c=this;return b=""===c?!0:_.any(["id","label"],function(b){var c=a[b];return c&&-1!==c.search(this)},c)}}}),b.controller.miImage=b.controller.Library.extend({defaults:_.defaults({id:"browse",menu:"default",router:"browse",toolbar:"mi-select",filterable:"uploaded",settings:["hide_label","position","image_size","vertical_align"],syncSelection:!1},b.controller.Library.prototype.defaults),initialize:function(){var c,d=this.get("selection"),e=this.get("settings");this.set("library",b.query({type:"image"})),this.routers={upload:{text:b.view.l10n.uploadFilesTitle,priority:20},browse:{text:b.view.l10n.mediaLibraryTitle,priority:40}},d instanceof b.model.Selection||this.set("selection",new b.model.Selection(d,{multiple:!1})),c=_.filter(window.menuIcons.settingsFields,function(b){return-1!==a.inArray(b.id,e)}),this.set("settings",c),b.controller.Library.prototype.initialize.apply(this,arguments)},activate:function(){b.controller.Library.prototype.activate.apply(this,arguments),this.frame.on("open",this.miUpdateSelection,this),this.miUpdateSelection()},deactivate:function(){b.controller.Library.prototype.deactivate.apply(this,arguments),this.frame.off("open",this.miUpdateSelection,this)},miUpdateSelection:function(){var a,b=this.get("selection"),d=this.get("type"),e=d+"-icon",f=this.frame.miGetCurrentItem(),g=f.get(e);d===f.get("type")&&g&&(a=c.get(g),this.dfd=a.fetch()),b.reset(a?a:[])},miGetContent:function(a){var b="upload"===a?this.uploadContent():this.browseContent();return this.frame.$el.removeClass("hide-toolbar"),b},browseContent:function(){var a=this;return new b.view.AttachmentsBrowser.miImage({type:a.get("type"),controller:a.frame,collection:a.get("library"),selection:a.get("selection"),model:a,sortable:a.get("sortable"),search:a.get("searchable"),filters:a.get("filterable"),display:a.get("displaySettings"),dragInfo:a.get("dragInfo")})},uploadContent:function(){return new b.view.UploaderInline({controller:this.frame})}}),b.view.AttachmentsBrowser.miImage=b.view.AttachmentsBrowser.extend({disposeSingle:function(){b.view.AttachmentsBrowser.prototype.disposeSingle.apply(this,arguments),this.sidebar.unset("preview"),this.sidebar.unset("settings")},createPreview:function(){var a,c,d,e=this,f=this.model;return f.dfd&&"pending"===f.dfd.state()?void f.dfd.done(function(){e.createPreview()}):(a=f.get("selection").single(),"image"!==a.get("type")?void f.get("selection").reset():a.get("uploading")?void a.on("change:uploading",e.createPreview,this):(c=this.controller,d=c.miGetCurrentItem(),this.createSettings(),void this.sidebar.set("preview",new b.view.miPreview.miImage({controller:c,settings:this.sidebar.get("settings"),model:d,data:{type:f.get("type"),alt:a.get("alt"),sizes:a.get("sizes")},priority:80}))))}}),_.extend(b.view.AttachmentsBrowser.miImage.prototype,b.view.miBrowser),b.view.miPreview.miImage=b.view.miPreview.extend({render:function(){var a=this.options.model.get("image_size"),c=this.options.data.sizes,d=this.options.settings.get("image_size"),e=[];return c.hasOwnProperty(a)||(a="full"),_.each(d.model.get("choices"),function(a){c.hasOwnProperty(a.value)&&e.push(a)}),d.model.set("choices",e),this.options.model.set("image_size",a,{silent:!0}),this.options.data.url=c[a].url,b.view.miPreview.prototype.render.apply(this,arguments)}}),b.view.MediaFrame.menuIcons=b.view.MediaFrame.extend({initialize:function(){b.view.MediaFrame.prototype.initialize.apply(this,arguments),_.defaults(this.options,{selection:[],multiple:!1,editing:!1,toolbar:"mi-select"}),this.miMenuItems=new b.model.mi.MenuItems,this.createStates(),this.bindHandlers()},createStates:function(){var a,c=this.options;c.states||_.each(window.menuIcons.iconTypes,function(d,e){return b.controller.hasOwnProperty(d.data.controller)?(a=b.controller[d.data.controller],_.defaults(d,{content:d.id,selection:c.selection}),void this.states.add(new a(d))):void delete window.menuIcons.iconTypes[e]},this)},bindHandlers:function(){this.on("router:create:browse",this.createRouter,this),this.on("router:render:browse",this.browseRouter,this),this.on("content:render",this.miRenderContent,this),this.on("toolbar:create:mi-select",this.createToolbar,this),this.on("toolbar:render:mi-select",this.miSelectToolbar,this),this.on("open",this.miInitialize,this)},browseRouter:function(a){var b=this.state().routers;b&&a.set(b)},miRenderContent:function(){var a=this.state(),b=this.content.mode(),c=a.miGetContent(b);this.content.set(c)},miSelectToolbar:function(a){{var b=this,c=b.state();c.get("type")}a.set(c.id,{style:"primary",priority:80,text:window.menuIcons.text.select,requires:{selection:!0},click:function(){b.close(),b.miUpdateItemProps(),b.miUpdateItem()}})},miContentRender:function(){var a=this.state(),b=a.miGetContent();this.content.set(b)},miGetState:function(){var a,b=window.menuIcons.currentItem;return a=!_.isUndefined(b.type)&&""!==b.type&&window.menuIcons.iconTypes.hasOwnProperty(b.type)?b.type:window.menuIcons.typeNames[0],"mi-"+a},miGetCurrentItem:function(){return this.miMenuItems.get(window.menuIcons.currentItem.id)},miUpdateMenuItems:function(){var a=this.miGetCurrentItem();_.isUndefined(a)?this.miMenuItems.add(window.menuIcons.currentItem):a.set(window.menuIcons.currentItem),this.miMenuItems.props.set("item",window.menuIcons.currentItem.id)},miInitialize:function(){this.miUpdateMenuItems(),this.setState(this.miGetState())},miUpdateItemProps:function(){var a=this.state(),b=a.get("type"),c=a.get("selection"),d=c.single(),e=d?d.id:"",f=this.miGetCurrentItem();f.set("type",b),f.set(b+"-icon",e),f.set("icon",e)},miUpdateItem:function(){var c,d=this.miGetCurrentItem().toJSON(),e=d.id,f=this.state(),g=f.get("selection").single(),h=b.template("menu-icons-"+d.type+"-field"),i=g.toJSON();i._settings=d,delete d.id,delete d.title,_.each(d,function(b,d){c=a("#menu-icons-"+e+"-"+d).not("._setting"),c.length&&c.val(b).trigger("mi:update")}),a("#menu-icons-"+e+"-select").html(h(i))}}),a("body").on("click","div.menu-icons-wrap a._select",window.menuIcons.selectIcon).on("click","div.menu-icons-wrap a._remove",window.menuIcons.removeIcon).on("mi:update","div.menu-icons-wrap select._type",window.menuIcons.toggleSelect),a("div.menu-icons-wrap select._type").trigger("mi:update"),a("#menu-item-settings-save").on("click",function(b){var c=a(this).prop("disabled",!0),d=c.siblings("span.spinner");b.preventDefault(),d.css("display","inline-block"),a.ajax({type:"POST",url:window.menuIcons.ajaxUrls.update,data:a("#menu-icons-settings :input").serialize(),success:function(a){!0===a.success&&a.data.redirectUrl?window.location=a.data.redirectUrl:c.prop("disabled",!1)},always:function(){d.hide()}})})}}(jQuery);
|
languages/menu-icons.pot
CHANGED
@@ -1,58 +1,63 @@
|
|
1 |
-
# Copyright (C) 2014
|
2 |
-
# This file is distributed under the
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Menu Icons 0.
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/
|
7 |
-
"POT-Creation-Date: 2014-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
#: includes/admin.php:95 includes/library/form-fields.php:524
|
16 |
#: includes/type-fonts.php:122
|
17 |
msgid "— Select —"
|
18 |
msgstr ""
|
19 |
|
20 |
-
#: includes/admin.php:
|
21 |
msgid "Select Icon"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: includes/admin.php:
|
25 |
msgid "Select"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: includes/admin.php:
|
29 |
msgid "All"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: includes/admin.php:
|
33 |
msgid "Preview"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: includes/admin.php:
|
37 |
msgid ""
|
38 |
"Please note that the actual look of the icons on the front-end will also be "
|
39 |
"affected by your active theme's style. You can use %s if you need to "
|
40 |
"override it."
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: includes/admin.php:
|
44 |
msgid "Icon:"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: includes/admin.php:
|
48 |
msgid "Remove"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: includes/admin.php:
|
52 |
msgid "Icon type"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: includes/admin.php:
|
56 |
msgid "Icon"
|
57 |
msgstr ""
|
58 |
|
@@ -60,76 +65,76 @@ msgstr ""
|
|
60 |
msgid "%1$s: Type %2$s is not supported, reverting to text."
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: includes/settings.php:
|
64 |
msgid "<strong>Menu Icons Settings</strong> have been successfully updated."
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: includes/settings.php:
|
68 |
msgid "<strong>Menu Icons Settings</strong> have been successfully reset."
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: includes/settings.php:
|
72 |
msgid "Menu Icons Settings"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: includes/settings.php:
|
76 |
msgid "Hide Label"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: includes/settings.php:
|
80 |
#: includes/type-dashicons.php:248
|
81 |
msgid "No"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: includes/settings.php:
|
85 |
msgid "Yes"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: includes/settings.php:
|
89 |
msgid "Position"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: includes/settings.php:
|
93 |
msgid "Before"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: includes/settings.php:
|
97 |
msgid "After"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: includes/settings.php:
|
101 |
msgid "Global"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: includes/settings.php:
|
105 |
msgid "Global settings"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: includes/settings.php:
|
109 |
msgid "Icon Types"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: includes/settings.php:
|
113 |
msgid "Current Menu"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: includes/settings.php:
|
117 |
msgid "\"%s\" menu settings"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: includes/settings.php:
|
121 |
msgid "Extensions"
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: includes/settings.php:
|
125 |
msgid "Discard all changes and reset to default state"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: includes/settings.php:
|
129 |
msgid "Reset"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: includes/settings.php:
|
133 |
msgid "Save Settings"
|
134 |
msgstr ""
|
135 |
|
@@ -221,14 +226,14 @@ msgid "Image"
|
|
221 |
msgstr ""
|
222 |
|
223 |
#: includes/type-dashicons.php:83 includes/type-dashicons.php:140
|
224 |
-
#: includes/type-dashicons.php:
|
225 |
-
#: includes/type-dashicons.php:
|
226 |
#: includes/type-elusive.php:199 includes/type-elusive.php:200
|
227 |
#: includes/type-foundation.php:128 includes/type-genericons.php:215
|
228 |
msgid "Video"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: includes/type-dashicons.php:84 includes/type-dashicons.php:
|
232 |
#: includes/type-genericons.php:220
|
233 |
msgid "Audio"
|
234 |
msgstr ""
|
@@ -282,10 +287,8 @@ msgstr ""
|
|
282 |
msgid "Write Blog"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: includes/type-dashicons.php:107
|
286 |
-
|
287 |
-
#: includes/type-genericons.php:229
|
288 |
-
msgid "Edit"
|
289 |
msgstr ""
|
290 |
|
291 |
#: includes/type-dashicons.php:109 includes/type-fontawesome.php:419
|
@@ -317,8 +320,9 @@ msgstr ""
|
|
317 |
msgid "Redo"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: includes/type-dashicons.php:120 includes/type-
|
321 |
-
|
|
|
322 |
msgstr ""
|
323 |
|
324 |
#: includes/type-dashicons.php:122 includes/type-elusive.php:96
|
@@ -465,6 +469,11 @@ msgstr ""
|
|
465 |
msgid "Post Trash"
|
466 |
msgstr ""
|
467 |
|
|
|
|
|
|
|
|
|
|
|
468 |
#: includes/type-dashicons.php:165 includes/type-elusive.php:174
|
469 |
#: includes/type-elusive.php:175 includes/type-fontawesome.php:616
|
470 |
#: includes/type-fontawesome.php:618 includes/type-foundation.php:266
|
@@ -658,194 +667,269 @@ msgstr ""
|
|
658 |
msgid "Flag"
|
659 |
msgstr ""
|
660 |
|
661 |
-
#: includes/type-dashicons.php:263
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
662 |
#: includes/type-foundation.php:212
|
663 |
msgid "Archive"
|
664 |
msgstr ""
|
665 |
|
666 |
-
#: includes/type-dashicons.php:
|
667 |
#: includes/type-genericons.php:230
|
668 |
msgid "Code"
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: includes/type-dashicons.php:
|
672 |
msgid "Default"
|
673 |
msgstr ""
|
674 |
|
675 |
-
#: includes/type-dashicons.php:
|
676 |
msgid "Document"
|
677 |
msgstr ""
|
678 |
|
679 |
-
#: includes/type-dashicons.php:
|
680 |
msgid "Interactive"
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: includes/type-dashicons.php:
|
684 |
msgid "Spreadsheet"
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: includes/type-dashicons.php:
|
688 |
msgid "Text"
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: includes/type-dashicons.php:
|
692 |
msgid "Audio Playlist"
|
693 |
msgstr ""
|
694 |
|
695 |
-
#: includes/type-dashicons.php:
|
696 |
msgid "Video Playlist"
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: includes/type-dashicons.php:
|
700 |
msgid "Misc./Post Types"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: includes/type-dashicons.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
704 |
#: includes/type-genericons.php:202
|
705 |
msgid "Location"
|
706 |
msgstr ""
|
707 |
|
708 |
-
#: includes/type-dashicons.php:
|
709 |
#: includes/type-fontawesome.php:385 includes/type-foundation.php:116
|
710 |
msgid "Camera"
|
711 |
msgstr ""
|
712 |
|
713 |
-
#: includes/type-dashicons.php:
|
714 |
msgid "Images"
|
715 |
msgstr ""
|
716 |
|
717 |
-
#: includes/type-dashicons.php:
|
718 |
msgid "Vault"
|
719 |
msgstr ""
|
720 |
|
721 |
-
#: includes/type-dashicons.php:
|
722 |
#: includes/type-fontawesome.php:559 includes/type-foundation.php:337
|
723 |
msgid "Shield"
|
724 |
msgstr ""
|
725 |
|
726 |
-
#: includes/type-dashicons.php:
|
727 |
msgid "S.O.S."
|
728 |
msgstr ""
|
729 |
|
730 |
-
#: includes/type-dashicons.php:
|
731 |
#: includes/type-elusive.php:164 includes/type-fontawesome.php:551
|
732 |
#: includes/type-genericons.php:106
|
733 |
msgid "Search"
|
734 |
msgstr ""
|
735 |
|
736 |
-
#: includes/type-dashicons.php:
|
737 |
msgid "Slides"
|
738 |
msgstr ""
|
739 |
|
740 |
-
#: includes/type-dashicons.php:
|
741 |
msgid "Analytics"
|
742 |
msgstr ""
|
743 |
|
744 |
-
#: includes/type-dashicons.php:
|
745 |
msgid "Carrot"
|
746 |
msgstr ""
|
747 |
|
748 |
-
#: includes/type-dashicons.php:
|
749 |
msgid "Chart: Pie"
|
750 |
msgstr ""
|
751 |
|
752 |
-
#: includes/type-dashicons.php:
|
753 |
msgid "Chart: Bar"
|
754 |
msgstr ""
|
755 |
|
756 |
-
#: includes/type-dashicons.php:
|
757 |
msgid "Chart: Line"
|
758 |
msgstr ""
|
759 |
|
760 |
-
#: includes/type-dashicons.php:
|
761 |
msgid "Chart: Area"
|
762 |
msgstr ""
|
763 |
|
764 |
-
#: includes/type-dashicons.php:
|
765 |
msgid "Groups"
|
766 |
msgstr ""
|
767 |
|
768 |
-
#: includes/type-dashicons.php:
|
769 |
msgid "Businessman"
|
770 |
msgstr ""
|
771 |
|
772 |
-
#: includes/type-dashicons.php:
|
773 |
msgid "ID"
|
774 |
msgstr ""
|
775 |
|
776 |
-
#: includes/type-dashicons.php:
|
777 |
msgid "Index Card"
|
778 |
msgstr ""
|
779 |
|
780 |
-
#: includes/type-dashicons.php:
|
781 |
msgid "Products"
|
782 |
msgstr ""
|
783 |
|
784 |
-
#: includes/type-dashicons.php:
|
785 |
msgid "Awards"
|
786 |
msgstr ""
|
787 |
|
788 |
-
#: includes/type-dashicons.php:
|
789 |
msgid "Forms"
|
790 |
msgstr ""
|
791 |
|
792 |
-
#: includes/type-dashicons.php:
|
793 |
msgid "Testimonial"
|
794 |
msgstr ""
|
795 |
|
796 |
-
#: includes/type-dashicons.php:
|
797 |
msgid "Portfolio"
|
798 |
msgstr ""
|
799 |
|
800 |
-
#: includes/type-dashicons.php:
|
801 |
#: includes/type-elusive.php:216 includes/type-fontawesome.php:371
|
802 |
#: includes/type-foundation.php:307 includes/type-genericons.php:161
|
803 |
msgid "Book"
|
804 |
msgstr ""
|
805 |
|
806 |
-
#: includes/type-dashicons.php:
|
807 |
#: includes/type-elusive.php:114 includes/type-fontawesome.php:428
|
808 |
#: includes/type-foundation.php:236 includes/type-genericons.php:168
|
809 |
msgid "Download"
|
810 |
msgstr ""
|
811 |
|
812 |
-
#: includes/type-dashicons.php:
|
813 |
#: includes/type-fontawesome.php:627 includes/type-foundation.php:237
|
814 |
msgid "Upload"
|
815 |
msgstr ""
|
816 |
|
817 |
-
#: includes/type-dashicons.php:
|
818 |
msgid "Backup"
|
819 |
msgstr ""
|
820 |
|
821 |
-
#: includes/type-dashicons.php:
|
822 |
#: includes/type-foundation.php:215
|
823 |
msgid "Clock"
|
824 |
msgstr ""
|
825 |
|
826 |
-
#: includes/type-dashicons.php:
|
827 |
#: includes/type-foundation.php:325
|
828 |
msgid "Lightbulb"
|
829 |
msgstr ""
|
830 |
|
831 |
-
#: includes/type-dashicons.php:
|
832 |
msgid "Desktop"
|
833 |
msgstr ""
|
834 |
|
835 |
-
#: includes/type-dashicons.php:
|
836 |
#: includes/type-genericons.php:189
|
837 |
msgid "Tablet"
|
838 |
msgstr ""
|
839 |
|
840 |
-
#: includes/type-dashicons.php:
|
841 |
msgid "Smartphone"
|
842 |
msgstr ""
|
843 |
|
844 |
-
#: includes/type-dashicons.php:
|
845 |
#: includes/type-elusive.php:322
|
846 |
msgid "Smiley"
|
847 |
msgstr ""
|
848 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
849 |
#: includes/type-elusive.php:77 includes/type-genericons.php:77
|
850 |
msgid "Actions"
|
851 |
msgstr ""
|
@@ -887,11 +971,6 @@ msgstr ""
|
|
887 |
msgid "Backward"
|
888 |
msgstr ""
|
889 |
|
890 |
-
#: includes/type-elusive.php:92 includes/type-elusive.php:93
|
891 |
-
#: includes/type-fontawesome.php:334
|
892 |
-
msgid "Forward"
|
893 |
-
msgstr ""
|
894 |
-
|
895 |
#: includes/type-elusive.php:94 includes/type-fontawesome.php:340
|
896 |
msgid "Step Forward"
|
897 |
msgstr ""
|
@@ -1039,19 +1118,6 @@ msgstr ""
|
|
1039 |
msgid "OK Sign"
|
1040 |
msgstr ""
|
1041 |
|
1042 |
-
#: includes/type-elusive.php:140 includes/type-elusive.php:141
|
1043 |
-
#: includes/type-fontawesome.php:336 includes/type-fontawesome.php:337
|
1044 |
-
#: includes/type-fontawesome.php:338 includes/type-foundation.php:279
|
1045 |
-
#: includes/type-foundation.php:280 includes/type-genericons.php:128
|
1046 |
-
msgid "Play"
|
1047 |
-
msgstr ""
|
1048 |
-
|
1049 |
-
#: includes/type-elusive.php:142 includes/type-elusive.php:143
|
1050 |
-
#: includes/type-fontawesome.php:335 includes/type-foundation.php:281
|
1051 |
-
#: includes/type-genericons.php:129
|
1052 |
-
msgid "Pause"
|
1053 |
-
msgstr ""
|
1054 |
-
|
1055 |
#: includes/type-elusive.php:144 includes/type-elusive.php:145
|
1056 |
#: includes/type-fontawesome.php:341 includes/type-foundation.php:282
|
1057 |
#: includes/type-genericons.php:130
|
@@ -1085,11 +1151,6 @@ msgstr ""
|
|
1085 |
msgid "Refresh"
|
1086 |
msgstr ""
|
1087 |
|
1088 |
-
#: includes/type-elusive.php:154 includes/type-elusive.php:155
|
1089 |
-
#: includes/type-fontawesome.php:310
|
1090 |
-
msgid "Repeat"
|
1091 |
-
msgstr ""
|
1092 |
-
|
1093 |
#: includes/type-elusive.php:156
|
1094 |
msgid "Resize Vertical"
|
1095 |
msgstr ""
|
@@ -1491,12 +1552,6 @@ msgstr ""
|
|
1491 |
msgid "Person"
|
1492 |
msgstr ""
|
1493 |
|
1494 |
-
#: includes/type-elusive.php:302 includes/type-elusive.php:303
|
1495 |
-
#: includes/type-fontawesome.php:522 includes/type-fontawesome.php:523
|
1496 |
-
#: includes/type-genericons.php:183
|
1497 |
-
msgid "Phone"
|
1498 |
-
msgstr ""
|
1499 |
-
|
1500 |
#: includes/type-elusive.php:304 includes/type-elusive.php:305
|
1501 |
#: includes/type-foundation.php:186
|
1502 |
msgid "Photo"
|
@@ -1660,10 +1715,6 @@ msgstr ""
|
|
1660 |
msgid "Israeli Sheqel"
|
1661 |
msgstr ""
|
1662 |
|
1663 |
-
#: includes/type-fontawesome.php:173
|
1664 |
-
msgid "Money"
|
1665 |
-
msgstr ""
|
1666 |
-
|
1667 |
#: includes/type-fontawesome.php:174
|
1668 |
msgid "Rouble"
|
1669 |
msgstr ""
|
@@ -1852,10 +1903,6 @@ msgstr ""
|
|
1852 |
msgid "Payment"
|
1853 |
msgstr ""
|
1854 |
|
1855 |
-
#: includes/type-fontawesome.php:284 includes/type-genericons.php:225
|
1856 |
-
msgid "Text Editor"
|
1857 |
-
msgstr ""
|
1858 |
-
|
1859 |
#: includes/type-fontawesome.php:291 includes/type-foundation.php:309
|
1860 |
#: includes/type-foundation.php:312
|
1861 |
msgid "Clipboard"
|
@@ -1986,10 +2033,6 @@ msgstr ""
|
|
1986 |
msgid "Bug"
|
1987 |
msgstr ""
|
1988 |
|
1989 |
-
#: includes/type-fontawesome.php:377 includes/type-fontawesome.php:378
|
1990 |
-
msgid "Building"
|
1991 |
-
msgstr ""
|
1992 |
-
|
1993 |
#: includes/type-fontawesome.php:380
|
1994 |
msgid "Bullseye"
|
1995 |
msgstr ""
|
@@ -2664,6 +2707,10 @@ msgstr ""
|
|
2664 |
msgid "Shopping Bag"
|
2665 |
msgstr ""
|
2666 |
|
|
|
|
|
|
|
|
|
2667 |
#: includes/type-foundation.php:162
|
2668 |
msgid "Background Color"
|
2669 |
msgstr ""
|
@@ -3197,10 +3244,6 @@ msgstr ""
|
|
3197 |
msgid "Summary"
|
3198 |
msgstr ""
|
3199 |
|
3200 |
-
#: includes/type-genericons.php:198
|
3201 |
-
msgid "404"
|
3202 |
-
msgstr ""
|
3203 |
-
|
3204 |
#: includes/type-genericons.php:228
|
3205 |
msgid "Attachment"
|
3206 |
msgstr ""
|
@@ -3225,27 +3268,14 @@ msgstr ""
|
|
3225 |
msgid "Image Size"
|
3226 |
msgstr ""
|
3227 |
|
3228 |
-
#: menu-icons.php:
|
3229 |
msgid "Menu Icons: No registered icon types found."
|
3230 |
msgstr ""
|
3231 |
|
3232 |
-
#: menu-icons.php:251
|
3233 |
-
msgctxt "1: Property key, 2: Icon type ID"
|
3234 |
-
msgid "%1$s cannot be empty, %2$s has been disabled."
|
3235 |
-
msgstr ""
|
3236 |
-
|
3237 |
-
#: menu-icons.php:256
|
3238 |
-
msgctxt "1: Property key, 2: Icon type ID"
|
3239 |
-
msgid "%1$s must be callable, %2$s has been disabled."
|
3240 |
-
msgstr ""
|
3241 |
-
|
3242 |
#. Plugin Name of the plugin/theme
|
3243 |
msgid "Menu Icons"
|
3244 |
msgstr ""
|
3245 |
|
3246 |
-
#. #-#-#-#-# menu-icons.pot (Menu Icons 0.6.0) #-#-#-#-#
|
3247 |
-
#. Plugin URI of the plugin/theme
|
3248 |
-
#. #-#-#-#-# menu-icons.pot (Menu Icons 0.6.0) #-#-#-#-#
|
3249 |
#. Author URI of the plugin/theme
|
3250 |
msgid "http://kucrut.org/"
|
3251 |
msgstr ""
|
@@ -3257,3 +3287,13 @@ msgstr ""
|
|
3257 |
#. Author of the plugin/theme
|
3258 |
msgid "Dzikri Aziz"
|
3259 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2014 Dzikri Aziz
|
2 |
+
# This file is distributed under the GPLv2.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Menu Icons 0.7.0\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/menu-icons\n"
|
7 |
+
"POT-Creation-Date: 2014-12-26 16:13:21+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
+
"X-Generator: grunt-wp-i18n 0.4.9\n"
|
15 |
+
|
16 |
+
#: includes/type-genericons.php:198
|
17 |
+
msgid "404"
|
18 |
+
msgstr ""
|
19 |
|
20 |
#: includes/admin.php:95 includes/library/form-fields.php:524
|
21 |
#: includes/type-fonts.php:122
|
22 |
msgid "— Select —"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: includes/admin.php:116
|
26 |
msgid "Select Icon"
|
27 |
msgstr ""
|
28 |
|
29 |
+
#: includes/admin.php:117 includes/admin.php:160 includes/admin.php:269
|
30 |
msgid "Select"
|
31 |
msgstr ""
|
32 |
|
33 |
+
#: includes/admin.php:118 includes/type-fontpack.php:266
|
34 |
msgid "All"
|
35 |
msgstr ""
|
36 |
|
37 |
+
#: includes/admin.php:119
|
38 |
msgid "Preview"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: includes/admin.php:121
|
42 |
msgid ""
|
43 |
"Please note that the actual look of the icons on the front-end will also be "
|
44 |
"affected by your active theme's style. You can use %s if you need to "
|
45 |
"override it."
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: includes/admin.php:265
|
49 |
msgid "Icon:"
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: includes/admin.php:275 includes/type-elusive.php:153
|
53 |
msgid "Remove"
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: includes/admin.php:281
|
57 |
msgid "Icon type"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: includes/admin.php:352
|
61 |
msgid "Icon"
|
62 |
msgstr ""
|
63 |
|
65 |
msgid "%1$s: Type %2$s is not supported, reverting to text."
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: includes/settings.php:253
|
69 |
msgid "<strong>Menu Icons Settings</strong> have been successfully updated."
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: includes/settings.php:254
|
73 |
msgid "<strong>Menu Icons Settings</strong> have been successfully reset."
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: includes/settings.php:276
|
77 |
msgid "Menu Icons Settings"
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: includes/settings.php:319
|
81 |
msgid "Hide Label"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: includes/settings.php:324 includes/type-dashicons.php:247
|
85 |
#: includes/type-dashicons.php:248
|
86 |
msgid "No"
|
87 |
msgstr ""
|
88 |
|
89 |
+
#: includes/settings.php:328 includes/type-dashicons.php:246
|
90 |
msgid "Yes"
|
91 |
msgstr ""
|
92 |
|
93 |
+
#: includes/settings.php:335
|
94 |
msgid "Position"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: includes/settings.php:340
|
98 |
msgid "Before"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: includes/settings.php:344
|
102 |
msgid "After"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: includes/settings.php:385
|
106 |
msgid "Global"
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: includes/settings.php:386
|
110 |
msgid "Global settings"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: includes/settings.php:391
|
114 |
msgid "Icon Types"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: includes/settings.php:407
|
118 |
msgid "Current Menu"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: includes/settings.php:409
|
122 |
msgid "\"%s\" menu settings"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: includes/settings.php:472 includes/settings.php:491
|
126 |
msgid "Extensions"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: includes/settings.php:509
|
130 |
msgid "Discard all changes and reset to default state"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: includes/settings.php:510
|
134 |
msgid "Reset"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: includes/settings.php:517
|
138 |
msgid "Save Settings"
|
139 |
msgstr ""
|
140 |
|
226 |
msgstr ""
|
227 |
|
228 |
#: includes/type-dashicons.php:83 includes/type-dashicons.php:140
|
229 |
+
#: includes/type-dashicons.php:280 includes/type-dashicons.php:296
|
230 |
+
#: includes/type-dashicons.php:297 includes/type-dashicons.php:298
|
231 |
#: includes/type-elusive.php:199 includes/type-elusive.php:200
|
232 |
#: includes/type-foundation.php:128 includes/type-genericons.php:215
|
233 |
msgid "Video"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: includes/type-dashicons.php:84 includes/type-dashicons.php:273
|
237 |
#: includes/type-genericons.php:220
|
238 |
msgid "Audio"
|
239 |
msgstr ""
|
287 |
msgid "Write Blog"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: includes/type-dashicons.php:107
|
291 |
+
msgid "Image Editor"
|
|
|
|
|
292 |
msgstr ""
|
293 |
|
294 |
#: includes/type-dashicons.php:109 includes/type-fontawesome.php:419
|
320 |
msgid "Redo"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: includes/type-dashicons.php:120 includes/type-fontawesome.php:284
|
324 |
+
#: includes/type-genericons.php:225
|
325 |
+
msgid "Text Editor"
|
326 |
msgstr ""
|
327 |
|
328 |
#: includes/type-dashicons.php:122 includes/type-elusive.php:96
|
469 |
msgid "Post Trash"
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: includes/type-dashicons.php:164 includes/type-elusive.php:115
|
473 |
+
#: includes/type-fontawesome.php:429 includes/type-genericons.php:229
|
474 |
+
msgid "Edit"
|
475 |
+
msgstr ""
|
476 |
+
|
477 |
#: includes/type-dashicons.php:165 includes/type-elusive.php:174
|
478 |
#: includes/type-elusive.php:175 includes/type-fontawesome.php:616
|
479 |
#: includes/type-fontawesome.php:618 includes/type-foundation.php:266
|
667 |
msgid "Flag"
|
668 |
msgstr ""
|
669 |
|
670 |
+
#: includes/type-dashicons.php:263
|
671 |
+
msgid "Skip Back"
|
672 |
+
msgstr ""
|
673 |
+
|
674 |
+
#: includes/type-dashicons.php:264
|
675 |
+
msgid "Back"
|
676 |
+
msgstr ""
|
677 |
+
|
678 |
+
#: includes/type-dashicons.php:265 includes/type-elusive.php:140
|
679 |
+
#: includes/type-elusive.php:141 includes/type-fontawesome.php:336
|
680 |
+
#: includes/type-fontawesome.php:337 includes/type-fontawesome.php:338
|
681 |
+
#: includes/type-foundation.php:279 includes/type-foundation.php:280
|
682 |
+
#: includes/type-genericons.php:128
|
683 |
+
msgid "Play"
|
684 |
+
msgstr ""
|
685 |
+
|
686 |
+
#: includes/type-dashicons.php:266 includes/type-elusive.php:142
|
687 |
+
#: includes/type-elusive.php:143 includes/type-fontawesome.php:335
|
688 |
+
#: includes/type-foundation.php:281 includes/type-genericons.php:129
|
689 |
+
msgid "Pause"
|
690 |
+
msgstr ""
|
691 |
+
|
692 |
+
#: includes/type-dashicons.php:267 includes/type-elusive.php:92
|
693 |
+
#: includes/type-elusive.php:93 includes/type-fontawesome.php:334
|
694 |
+
msgid "Forward"
|
695 |
+
msgstr ""
|
696 |
+
|
697 |
+
#: includes/type-dashicons.php:268
|
698 |
+
msgid "Skip Forward"
|
699 |
+
msgstr ""
|
700 |
+
|
701 |
+
#: includes/type-dashicons.php:269 includes/type-elusive.php:154
|
702 |
+
#: includes/type-elusive.php:155 includes/type-fontawesome.php:310
|
703 |
+
msgid "Repeat"
|
704 |
+
msgstr ""
|
705 |
+
|
706 |
+
#: includes/type-dashicons.php:270
|
707 |
+
msgid "Volume: On"
|
708 |
+
msgstr ""
|
709 |
+
|
710 |
+
#: includes/type-dashicons.php:271
|
711 |
+
msgid "Volume: Off"
|
712 |
+
msgstr ""
|
713 |
+
|
714 |
+
#: includes/type-dashicons.php:272 includes/type-fontawesome.php:351
|
715 |
#: includes/type-foundation.php:212
|
716 |
msgid "Archive"
|
717 |
msgstr ""
|
718 |
|
719 |
+
#: includes/type-dashicons.php:274 includes/type-fontawesome.php:407
|
720 |
#: includes/type-genericons.php:230
|
721 |
msgid "Code"
|
722 |
msgstr ""
|
723 |
|
724 |
+
#: includes/type-dashicons.php:275
|
725 |
msgid "Default"
|
726 |
msgstr ""
|
727 |
|
728 |
+
#: includes/type-dashicons.php:276 includes/type-genericons.php:166
|
729 |
msgid "Document"
|
730 |
msgstr ""
|
731 |
|
732 |
+
#: includes/type-dashicons.php:277
|
733 |
msgid "Interactive"
|
734 |
msgstr ""
|
735 |
|
736 |
+
#: includes/type-dashicons.php:278
|
737 |
msgid "Spreadsheet"
|
738 |
msgstr ""
|
739 |
|
740 |
+
#: includes/type-dashicons.php:279
|
741 |
msgid "Text"
|
742 |
msgstr ""
|
743 |
|
744 |
+
#: includes/type-dashicons.php:281
|
745 |
msgid "Audio Playlist"
|
746 |
msgstr ""
|
747 |
|
748 |
+
#: includes/type-dashicons.php:282
|
749 |
msgid "Video Playlist"
|
750 |
msgstr ""
|
751 |
|
752 |
+
#: includes/type-dashicons.php:287
|
753 |
msgid "Misc./Post Types"
|
754 |
msgstr ""
|
755 |
|
756 |
+
#: includes/type-dashicons.php:289
|
757 |
+
msgid "Album"
|
758 |
+
msgstr ""
|
759 |
+
|
760 |
+
#: includes/type-dashicons.php:290 includes/type-fontawesome.php:377
|
761 |
+
#: includes/type-fontawesome.php:378
|
762 |
+
msgid "Building"
|
763 |
+
msgstr ""
|
764 |
+
|
765 |
+
#: includes/type-dashicons.php:291 includes/type-dashicons.php:292
|
766 |
#: includes/type-genericons.php:202
|
767 |
msgid "Location"
|
768 |
msgstr ""
|
769 |
|
770 |
+
#: includes/type-dashicons.php:293 includes/type-elusive.php:225
|
771 |
#: includes/type-fontawesome.php:385 includes/type-foundation.php:116
|
772 |
msgid "Camera"
|
773 |
msgstr ""
|
774 |
|
775 |
+
#: includes/type-dashicons.php:294 includes/type-dashicons.php:295
|
776 |
msgid "Images"
|
777 |
msgstr ""
|
778 |
|
779 |
+
#: includes/type-dashicons.php:299
|
780 |
msgid "Vault"
|
781 |
msgstr ""
|
782 |
|
783 |
+
#: includes/type-dashicons.php:300 includes/type-dashicons.php:301
|
784 |
#: includes/type-fontawesome.php:559 includes/type-foundation.php:337
|
785 |
msgid "Shield"
|
786 |
msgstr ""
|
787 |
|
788 |
+
#: includes/type-dashicons.php:302
|
789 |
msgid "S.O.S."
|
790 |
msgstr ""
|
791 |
|
792 |
+
#: includes/type-dashicons.php:303 includes/type-elusive.php:163
|
793 |
#: includes/type-elusive.php:164 includes/type-fontawesome.php:551
|
794 |
#: includes/type-genericons.php:106
|
795 |
msgid "Search"
|
796 |
msgstr ""
|
797 |
|
798 |
+
#: includes/type-dashicons.php:304
|
799 |
msgid "Slides"
|
800 |
msgstr ""
|
801 |
|
802 |
+
#: includes/type-dashicons.php:305
|
803 |
msgid "Analytics"
|
804 |
msgstr ""
|
805 |
|
806 |
+
#: includes/type-dashicons.php:306
|
807 |
msgid "Carrot"
|
808 |
msgstr ""
|
809 |
|
810 |
+
#: includes/type-dashicons.php:307
|
811 |
msgid "Chart: Pie"
|
812 |
msgstr ""
|
813 |
|
814 |
+
#: includes/type-dashicons.php:308
|
815 |
msgid "Chart: Bar"
|
816 |
msgstr ""
|
817 |
|
818 |
+
#: includes/type-dashicons.php:309
|
819 |
msgid "Chart: Line"
|
820 |
msgstr ""
|
821 |
|
822 |
+
#: includes/type-dashicons.php:310
|
823 |
msgid "Chart: Area"
|
824 |
msgstr ""
|
825 |
|
826 |
+
#: includes/type-dashicons.php:311
|
827 |
msgid "Groups"
|
828 |
msgstr ""
|
829 |
|
830 |
+
#: includes/type-dashicons.php:312
|
831 |
msgid "Businessman"
|
832 |
msgstr ""
|
833 |
|
834 |
+
#: includes/type-dashicons.php:313 includes/type-dashicons.php:314
|
835 |
msgid "ID"
|
836 |
msgstr ""
|
837 |
|
838 |
+
#: includes/type-dashicons.php:315
|
839 |
msgid "Index Card"
|
840 |
msgstr ""
|
841 |
|
842 |
+
#: includes/type-dashicons.php:316
|
843 |
msgid "Products"
|
844 |
msgstr ""
|
845 |
|
846 |
+
#: includes/type-dashicons.php:317
|
847 |
msgid "Awards"
|
848 |
msgstr ""
|
849 |
|
850 |
+
#: includes/type-dashicons.php:318
|
851 |
msgid "Forms"
|
852 |
msgstr ""
|
853 |
|
854 |
+
#: includes/type-dashicons.php:319
|
855 |
msgid "Testimonial"
|
856 |
msgstr ""
|
857 |
|
858 |
+
#: includes/type-dashicons.php:320 includes/type-genericons.php:186
|
859 |
msgid "Portfolio"
|
860 |
msgstr ""
|
861 |
|
862 |
+
#: includes/type-dashicons.php:321 includes/type-dashicons.php:322
|
863 |
#: includes/type-elusive.php:216 includes/type-fontawesome.php:371
|
864 |
#: includes/type-foundation.php:307 includes/type-genericons.php:161
|
865 |
msgid "Book"
|
866 |
msgstr ""
|
867 |
|
868 |
+
#: includes/type-dashicons.php:323 includes/type-elusive.php:113
|
869 |
#: includes/type-elusive.php:114 includes/type-fontawesome.php:428
|
870 |
#: includes/type-foundation.php:236 includes/type-genericons.php:168
|
871 |
msgid "Download"
|
872 |
msgstr ""
|
873 |
|
874 |
+
#: includes/type-dashicons.php:324 includes/type-elusive.php:176
|
875 |
#: includes/type-fontawesome.php:627 includes/type-foundation.php:237
|
876 |
msgid "Upload"
|
877 |
msgstr ""
|
878 |
|
879 |
+
#: includes/type-dashicons.php:325
|
880 |
msgid "Backup"
|
881 |
msgstr ""
|
882 |
|
883 |
+
#: includes/type-dashicons.php:326 includes/type-fontawesome.php:403
|
884 |
#: includes/type-foundation.php:215
|
885 |
msgid "Clock"
|
886 |
msgstr ""
|
887 |
|
888 |
+
#: includes/type-dashicons.php:327 includes/type-fontawesome.php:492
|
889 |
#: includes/type-foundation.php:325
|
890 |
msgid "Lightbulb"
|
891 |
msgstr ""
|
892 |
|
893 |
+
#: includes/type-dashicons.php:328 includes/type-fontawesome.php:426
|
894 |
msgid "Desktop"
|
895 |
msgstr ""
|
896 |
|
897 |
+
#: includes/type-dashicons.php:329 includes/type-fontawesome.php:593
|
898 |
#: includes/type-genericons.php:189
|
899 |
msgid "Tablet"
|
900 |
msgstr ""
|
901 |
|
902 |
+
#: includes/type-dashicons.php:330
|
903 |
msgid "Smartphone"
|
904 |
msgstr ""
|
905 |
|
906 |
+
#: includes/type-dashicons.php:331 includes/type-elusive.php:321
|
907 |
#: includes/type-elusive.php:322
|
908 |
msgid "Smiley"
|
909 |
msgstr ""
|
910 |
|
911 |
+
#: includes/type-dashicons.php:332 includes/type-elusive.php:302
|
912 |
+
#: includes/type-elusive.php:303 includes/type-fontawesome.php:522
|
913 |
+
#: includes/type-fontawesome.php:523 includes/type-genericons.php:183
|
914 |
+
msgid "Phone"
|
915 |
+
msgstr ""
|
916 |
+
|
917 |
+
#: includes/type-dashicons.php:333
|
918 |
+
msgid "Store"
|
919 |
+
msgstr ""
|
920 |
+
|
921 |
+
#: includes/type-dashicons.php:334
|
922 |
+
msgid "Palm Tree"
|
923 |
+
msgstr ""
|
924 |
+
|
925 |
+
#: includes/type-dashicons.php:335
|
926 |
+
msgid "Tickets"
|
927 |
+
msgstr ""
|
928 |
+
|
929 |
+
#: includes/type-dashicons.php:336 includes/type-fontawesome.php:173
|
930 |
+
msgid "Money"
|
931 |
+
msgstr ""
|
932 |
+
|
933 |
#: includes/type-elusive.php:77 includes/type-genericons.php:77
|
934 |
msgid "Actions"
|
935 |
msgstr ""
|
971 |
msgid "Backward"
|
972 |
msgstr ""
|
973 |
|
|
|
|
|
|
|
|
|
|
|
974 |
#: includes/type-elusive.php:94 includes/type-fontawesome.php:340
|
975 |
msgid "Step Forward"
|
976 |
msgstr ""
|
1118 |
msgid "OK Sign"
|
1119 |
msgstr ""
|
1120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1121 |
#: includes/type-elusive.php:144 includes/type-elusive.php:145
|
1122 |
#: includes/type-fontawesome.php:341 includes/type-foundation.php:282
|
1123 |
#: includes/type-genericons.php:130
|
1151 |
msgid "Refresh"
|
1152 |
msgstr ""
|
1153 |
|
|
|
|
|
|
|
|
|
|
|
1154 |
#: includes/type-elusive.php:156
|
1155 |
msgid "Resize Vertical"
|
1156 |
msgstr ""
|
1552 |
msgid "Person"
|
1553 |
msgstr ""
|
1554 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1555 |
#: includes/type-elusive.php:304 includes/type-elusive.php:305
|
1556 |
#: includes/type-foundation.php:186
|
1557 |
msgid "Photo"
|
1715 |
msgid "Israeli Sheqel"
|
1716 |
msgstr ""
|
1717 |
|
|
|
|
|
|
|
|
|
1718 |
#: includes/type-fontawesome.php:174
|
1719 |
msgid "Rouble"
|
1720 |
msgstr ""
|
1903 |
msgid "Payment"
|
1904 |
msgstr ""
|
1905 |
|
|
|
|
|
|
|
|
|
1906 |
#: includes/type-fontawesome.php:291 includes/type-foundation.php:309
|
1907 |
#: includes/type-foundation.php:312
|
1908 |
msgid "Clipboard"
|
2033 |
msgid "Bug"
|
2034 |
msgstr ""
|
2035 |
|
|
|
|
|
|
|
|
|
2036 |
#: includes/type-fontawesome.php:380
|
2037 |
msgid "Bullseye"
|
2038 |
msgstr ""
|
2707 |
msgid "Shopping Bag"
|
2708 |
msgstr ""
|
2709 |
|
2710 |
+
#: includes/type-foundation.php:155
|
2711 |
+
msgid "Editor"
|
2712 |
+
msgstr ""
|
2713 |
+
|
2714 |
#: includes/type-foundation.php:162
|
2715 |
msgid "Background Color"
|
2716 |
msgstr ""
|
3244 |
msgid "Summary"
|
3245 |
msgstr ""
|
3246 |
|
|
|
|
|
|
|
|
|
3247 |
#: includes/type-genericons.php:228
|
3248 |
msgid "Attachment"
|
3249 |
msgstr ""
|
3268 |
msgid "Image Size"
|
3269 |
msgstr ""
|
3270 |
|
3271 |
+
#: menu-icons.php:150
|
3272 |
msgid "Menu Icons: No registered icon types found."
|
3273 |
msgstr ""
|
3274 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3275 |
#. Plugin Name of the plugin/theme
|
3276 |
msgid "Menu Icons"
|
3277 |
msgstr ""
|
3278 |
|
|
|
|
|
|
|
3279 |
#. Author URI of the plugin/theme
|
3280 |
msgid "http://kucrut.org/"
|
3281 |
msgstr ""
|
3287 |
#. Author of the plugin/theme
|
3288 |
msgid "Dzikri Aziz"
|
3289 |
msgstr ""
|
3290 |
+
|
3291 |
+
#: menu-icons.php:252
|
3292 |
+
msgctxt "1: Property key, 2: Icon type ID"
|
3293 |
+
msgid "%1$s cannot be empty, %2$s has been disabled."
|
3294 |
+
msgstr ""
|
3295 |
+
|
3296 |
+
#: menu-icons.php:257
|
3297 |
+
msgctxt "1: Property key, 2: Icon type ID"
|
3298 |
+
msgid "%1$s must be callable, %2$s has been disabled."
|
3299 |
+
msgstr ""
|
menu-icons.php
CHANGED
@@ -4,18 +4,19 @@
|
|
4 |
* Menu Icons
|
5 |
*
|
6 |
* @package Menu_Icons
|
7 |
-
* @version 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.
|
15 |
* Author: Dzikri Aziz
|
16 |
* Author URI: http://kucrut.org/
|
17 |
* License: GPLv2
|
18 |
* Text Domain: menu-icons
|
|
|
19 |
*/
|
20 |
|
21 |
|
@@ -24,7 +25,7 @@
|
|
24 |
*/
|
25 |
final class Menu_Icons {
|
26 |
|
27 |
-
const VERSION = '0.
|
28 |
|
29 |
/**
|
30 |
* Holds plugin data
|
4 |
* Menu Icons
|
5 |
*
|
6 |
* @package Menu_Icons
|
7 |
+
* @version 0.7.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.7.0
|
15 |
* Author: Dzikri Aziz
|
16 |
* Author URI: http://kucrut.org/
|
17 |
* License: GPLv2
|
18 |
* Text Domain: menu-icons
|
19 |
+
* Domain Path: /languages
|
20 |
*/
|
21 |
|
22 |
|
25 |
*/
|
26 |
final class Menu_Icons {
|
27 |
|
28 |
+
const VERSION = '0.7.0';
|
29 |
|
30 |
/**
|
31 |
* Holds plugin data
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: kucrut, joshuairl
|
3 |
Donate Link: http://kucrut.org/#coffee
|
4 |
Tags: menu, nav-menu, icons, navigation
|
5 |
-
Requires at least:
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -147,6 +147,11 @@ Let me know via [GitHub issues](https://github.com/kucrut/wp-menu-icons/issues)
|
|
147 |
Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/).
|
148 |
|
149 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
150 |
= 0.6.0 =
|
151 |
* Update Genericons to [3.2](http://genericons.com/2014/10/03/3-2/)
|
152 |
* Update Font Awesome to [4.2.0](http://fontawesome.io/whats-new/)
|
2 |
Contributors: kucrut, joshuairl
|
3 |
Donate Link: http://kucrut.org/#coffee
|
4 |
Tags: menu, nav-menu, icons, navigation
|
5 |
+
Requires at least: 4.1
|
6 |
+
Tested up to: 4.1
|
7 |
+
Stable tag: 0.7.0
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
147 |
Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/).
|
148 |
|
149 |
== Changelog ==
|
150 |
+
= 0.7.0 =
|
151 |
+
* Update Dashicons
|
152 |
+
* Fix annoying browser popup when navigating away from Nav Menus screen
|
153 |
+
* Work-around settings update with ajax
|
154 |
+
|
155 |
= 0.6.0 =
|
156 |
* Update Genericons to [3.2](http://genericons.com/2014/10/03/3-2/)
|
157 |
* Update Font Awesome to [4.2.0](http://fontawesome.io/whats-new/)
|