Skip to content

Commit

Permalink
release: minor update
Browse files Browse the repository at this point in the history
Fixed Menu Icons in Block Editor not working
Fixed CWP links.
  • Loading branch information
HardeepAsrani authored Jul 13, 2020
2 parents a5d2345 + 196d6c9 commit d90df62
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 95 deletions.
12 changes: 6 additions & 6 deletions includes/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ final class Menu_Icons_Settings {
* @since 0.3.0
*/
public static function init() {
// Include Menu Icons for Block Editor
if ( class_exists( '\ThemeIsle\GutenbergMenuIcons' ) ) {
\ThemeIsle\GutenbergMenuIcons::instance();
}

/**
* Allow themes/plugins to override the default settings
*
Expand Down Expand Up @@ -106,11 +111,6 @@ public static function init() {
self::$script_deps[] = 'icon-picker';
}

// Include Menu Icons for Block Editor
if ( class_exists( '\ThemeIsle\GutenbergMenuIcons' ) ) {
\ThemeIsle\GutenbergMenuIcons::instance();
}

add_action( 'load-nav-menus.php', array( __CLASS__, '_load_nav_menus' ), 1 );
add_action( 'wp_ajax_menu_icons_update_settings', array( __CLASS__, '_ajax_menu_icons_update_settings' ) );
add_action( 'enqueue_block_assets', array( __CLASS__, '_enqueue_font_awesome' ) );
Expand Down Expand Up @@ -655,7 +655,7 @@ private static function _get_fields() {
*/
public static function _enqueue_font_awesome() {
$url = Menu_Icons::get( 'url' );

wp_register_style(
'font-awesome-5',
"{$url}css/fontawesome/css/all.min.css"
Expand Down
130 changes: 46 additions & 84 deletions languages/menu-icons.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Menu Icons 0.12.2\n"
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/wp-menu-icons/issues\n"
"POT-Creation-Date: 2020-04-20 19:21:42+00:00\n"
"POT-Creation-Date: 2020-07-13 11:24:24+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -64,181 +64,186 @@ msgstr ""
msgid "Icon:"
msgstr ""

#: includes/picker.php:117 includes/settings.php:719
#: includes/picker.php:117 includes/settings.php:740
msgid "Select"
msgstr ""

#: includes/picker.php:118 includes/settings.php:720
#: includes/picker.php:118 includes/settings.php:741
#: vendor/codeinwp/icon-picker/includes/fields/base.php:68
#: vendor/codeinwp/icon-picker/includes/types/elusive.php:465
msgid "Remove"
msgstr ""

#: includes/settings.php:295
#: includes/settings.php:301
msgid "Menu Icons Settings"
msgstr ""

#: includes/settings.php:329
#: includes/settings.php:335
msgid "<strong>Menu Icons Settings</strong> have been successfully updated."
msgstr ""

#: includes/settings.php:330
#: includes/settings.php:336
msgid "<strong>Menu Icons Settings</strong> have been successfully reset."
msgstr ""

#: includes/settings.php:367 includes/settings.php:390
#: includes/settings.php:373 includes/settings.php:396
msgid "Extensions"
msgstr ""

#: includes/settings.php:409
#: includes/settings.php:415
msgid "Discard all changes and reset to default state"
msgstr ""

#: includes/settings.php:410
#: includes/settings.php:416
msgid "Reset"
msgstr ""

#: includes/settings.php:419
#: includes/settings.php:425
msgid "Save Settings"
msgstr ""

#: includes/settings.php:446
#: includes/settings.php:452
msgid "Global"
msgstr ""

#: includes/settings.php:447
#: includes/settings.php:453
msgid "Global settings"
msgstr ""

#: includes/settings.php:452
#: includes/settings.php:458
msgid "Icon Types"
msgstr ""

#: includes/settings.php:468
#: includes/settings.php:474
msgid "Current Menu"
msgstr ""

#: includes/settings.php:470
#: includes/settings.php:476
msgid "\"%s\" menu settings"
msgstr ""

#: includes/settings.php:496
#: includes/settings.php:502
msgid "Hide Label"
msgstr ""

#: includes/settings.php:501
#: includes/settings.php:507
#: vendor/codeinwp/icon-picker/includes/types/dashicons.php:800
#: vendor/codeinwp/icon-picker/includes/types/dashicons.php:805
msgid "No"
msgstr ""

#: includes/settings.php:505
#: includes/settings.php:511
#: vendor/codeinwp/icon-picker/includes/types/dashicons.php:795
msgid "Yes"
msgstr ""

#: includes/settings.php:512
#: includes/settings.php:518
msgid "Position"
msgstr ""

#: includes/settings.php:517
#: includes/settings.php:523
msgid "Before"
msgstr ""

#: includes/settings.php:521
#: includes/settings.php:527
msgid "After"
msgstr ""

#: includes/settings.php:528
#: includes/settings.php:534
msgid "Vertical Align"
msgstr ""

#: includes/settings.php:533
#: includes/settings.php:539
msgid "Super"
msgstr ""

#: includes/settings.php:537
#: includes/settings.php:543
#: vendor/codeinwp/icon-picker/includes/types/genericon.php:292
msgid "Top"
msgstr ""

#: includes/settings.php:541
#: includes/settings.php:547
msgid "Text Top"
msgstr ""

#: includes/settings.php:545
#: includes/settings.php:551
msgid "Middle"
msgstr ""

#: includes/settings.php:549
#: includes/settings.php:555
msgid "Baseline"
msgstr ""

#: includes/settings.php:553
#: includes/settings.php:559
msgid "Text Bottom"
msgstr ""

#: includes/settings.php:557
#: includes/settings.php:563
msgid "Bottom"
msgstr ""

#: includes/settings.php:561
#: includes/settings.php:567
msgid "Sub"
msgstr ""

#: includes/settings.php:568
#: includes/settings.php:574
#: vendor/codeinwp/icon-picker/includes/types/elusive.php:910
msgid "Font Size"
msgstr ""

#: includes/settings.php:579
#: includes/settings.php:585
msgid "SVG Width"
msgstr ""

#: includes/settings.php:590
#: includes/settings.php:596
msgid "Image Size"
msgstr ""

#: includes/settings.php:718
#: includes/settings.php:739
#: vendor/codeinwp/icon-picker/includes/fields/base.php:67
#: vendor/codeinwp/icon-picker/includes/loader.php:237
msgid "Select Icon"
msgstr ""

#: includes/settings.php:721
#: includes/settings.php:742
msgid "Change"
msgstr ""

#: includes/settings.php:722
#: includes/settings.php:743
#: vendor/codeinwp/icon-picker/includes/loader.php:236
msgid "All"
msgstr ""

#: includes/settings.php:723
#: includes/settings.php:744
msgid "Preview"
msgstr ""

#: includes/settings.php:725
#: includes/settings.php:746
msgid ""
"Please note that the actual look of the icons on the front-end will also be "
"affected by the style of your active theme. You can add your own CSS using "
"%2$s or a plugin such as %3$s if you need to override it."
msgstr ""

#: includes/settings.php:730
#: includes/settings.php:751
msgid "the customizer"
msgstr ""

#: menu-icons.php:128
#: menu-icons.php:123
msgid "Menu Icons: No registered icon types found."
msgstr ""

#: menu-icons.php:157
#: menu-icons.php:152
msgid ""
"Looks like Menu Icons was installed via Composer. Please activate Icon "
"Picker first."
msgstr ""

#: vendor/codeinwp/gutenberg-menu-icons/class-gutenberg-menu-icons.php:163
#: vendor/codeinwp/gutenberg-menu-icons/class-gutenberg-menu-icons.php:175
msgid "Cheatin&#8217; huh?"
msgstr ""

#: vendor/codeinwp/icon-picker/includes/fontpack.php:132
msgid "Icon Picker: %1$s was not found in %2$s."
msgstr ""
Expand Down Expand Up @@ -4032,42 +4037,6 @@ msgstr ""
msgid "SVG"
msgstr ""

#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/basic-theme/exclude/file.php:3
#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/plugin-include/plugin-include.php:6
msgid "Exclude"
msgstr ""

#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/plugin-include/include/file.php:2
msgid "Include"
msgstr ""

#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/text-domains/add-domain.php:2
#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:2
#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:3
#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:4
#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-domains.php:2
#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-domains.php:3
msgid "String"
msgstr ""

#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:9
#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:10
#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:11
msgid "1 Star"
msgid_plural "%s Stars"
msgstr[0] ""
msgstr[1] ""

#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/translator-comments/translator-comments.php:7
#. translators: A single line translators comment.
msgid "A"
msgstr ""

#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/translator-comments/translator-comments.php:15
#. translators: A multiline translators comment.
msgid "B"
msgstr ""

#: vendor/codeinwp/menu-item-custom-fields/doc/menu-item-custom-fields-example.php:51
msgid "Custom Field #1"
msgstr ""
Expand All @@ -4094,11 +4063,4 @@ msgstr ""

#. Author URI of the plugin/theme
msgid "https://themeisle.com"
msgstr ""

#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:6
#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:7
#: vendor/codeinwp/icon-picker/node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:8
msgctxt "a string"
msgid "String"
msgstr ""
4 changes: 2 additions & 2 deletions menu-icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin name: Menu Icons
* Plugin URI: https://github.com/Codeinwp/wp-menu-icons
* Description: Spice up your navigation menus with pretty icons, easily.
* Version: 0.12.2
* Version: 0.12.3
* Author: ThemeIsle
* Author URI: https://themeisle.com
* License: GPLv2
Expand All @@ -27,7 +27,7 @@
*/
final class Menu_Icons {

const VERSION = '0.12.2';
const VERSION = '0.12.3';

/**
* Holds plugin data
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "menu-icons",
"title": "Menu Icons",
"description": "Spice up your navigation menus with pretty icons, easily.",
"version": "0.12.2",
"version": "0.12.3",
"homepage": "http://wordpress.org/plugins/menu-icons/",
"license": "GPL-2.0",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Development of this plugin is done on [GitHub](https://github.com/codeinwp/wp-me

## If you like this plugin, then consider checking out our other projects: ##

[CodeinWP Blog](https://codeinwp.com/blog/) – Designer's Guide To WordPress
[CodeinWP Blog](https://www.codeinwp.com/blog/) – Designer's Guide To WordPress
[Revive.Social](https://revive.social) – Social Media Tools
[JustFreeThemes](https://justfreethemes.com) - Free WordPress Themes directory

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Development of this plugin is done on [GitHub](https://github.com/codeinwp/wp-me

== If you like this plugin, then consider checking out our other projects: ==

[CodeinWP Blog](https://codeinwp.com/blog/) – Designer's Guide To WordPress
[CodeinWP Blog](https://www.codeinwp.com/blog/) – Designer's Guide To WordPress
[Revive.Social](https://revive.social) – Social Media Tools
[JustFreeThemes](https://justfreethemes.com) - Free WordPress Themes directory

Expand Down

0 comments on commit d90df62

Please sign in to comment.