Version Description
Download this release
Release Info
Developer | takanakui |
Plugin | Menu Image |
Version | 2.9.4 |
Comparing to | |
See all releases |
Code changes from version 2.9.3 to 2.9.4
- freemius/LICENSE.txt +0 -0
- freemius/README.md +0 -0
- freemius/assets/css/admin/account.css +0 -0
- freemius/assets/css/admin/add-ons.css +0 -0
- freemius/assets/css/admin/affiliation.css +0 -0
- freemius/assets/css/admin/checkout.css +0 -0
- freemius/assets/css/admin/common.css +0 -0
- freemius/assets/css/admin/connect.css +0 -0
- freemius/assets/css/admin/debug.css +0 -0
- freemius/assets/css/admin/dialog-boxes.css +0 -0
- freemius/assets/css/admin/gdpr-optin-notice.css +0 -0
- freemius/assets/css/admin/index.php +0 -0
- freemius/assets/css/customizer.css +0 -0
- freemius/assets/css/index.php +0 -0
- freemius/assets/img/index.php +0 -0
- freemius/assets/img/mobile-menu.png +0 -0
- freemius/assets/img/theme-icon.png +0 -0
- freemius/assets/index.php +0 -0
- freemius/assets/js/index.php +0 -0
- freemius/assets/js/nojquery.ba-postmessage.js +0 -0
- freemius/assets/js/nojquery.ba-postmessage.min.js +0 -0
- freemius/assets/js/postmessage.js +0 -0
- freemius/composer.json +0 -0
- freemius/config.php +0 -0
- freemius/includes/class-freemius-abstract.php +0 -0
- freemius/includes/class-freemius.php +0 -0
- freemius/includes/class-fs-admin-notices.php +0 -0
- freemius/includes/class-fs-api.php +0 -0
- freemius/includes/class-fs-logger.php +0 -0
- freemius/includes/class-fs-options.php +0 -0
- freemius/includes/class-fs-plugin-updater.php +0 -0
- freemius/includes/class-fs-security.php +0 -0
- freemius/includes/class-fs-storage.php +0 -0
- freemius/includes/class-fs-user-lock.php +0 -0
- freemius/includes/customizer/class-fs-customizer-support-section.php +0 -0
- freemius/includes/customizer/class-fs-customizer-upsell-control.php +0 -0
- freemius/includes/customizer/index.php +0 -0
- freemius/includes/debug/class-fs-debug-bar-panel.php +0 -0
- freemius/includes/debug/debug-bar-start.php +0 -0
- freemius/includes/debug/index.php +0 -0
- freemius/includes/entities/class-fs-affiliate-terms.php +0 -0
- freemius/includes/entities/class-fs-affiliate.php +0 -0
- freemius/includes/entities/class-fs-billing.php +0 -0
- freemius/includes/entities/class-fs-entity.php +0 -0
- freemius/includes/entities/class-fs-payment.php +0 -0
- freemius/includes/entities/class-fs-plugin-info.php +0 -0
- freemius/includes/entities/class-fs-plugin-license.php +0 -0
- freemius/includes/entities/class-fs-plugin-plan.php +0 -0
- freemius/includes/entities/class-fs-plugin-tag.php +0 -0
- freemius/includes/entities/class-fs-plugin.php +0 -0
- freemius/includes/entities/class-fs-pricing.php +0 -0
- freemius/includes/entities/class-fs-scope-entity.php +0 -0
- freemius/includes/entities/class-fs-site.php +0 -0
- freemius/includes/entities/class-fs-subscription.php +0 -0
- freemius/includes/entities/class-fs-user.php +0 -0
- freemius/includes/entities/index.php +0 -0
- freemius/includes/fs-core-functions.php +0 -0
- freemius/includes/fs-essential-functions.php +0 -0
- freemius/includes/fs-plugin-info-dialog.php +0 -0
- freemius/includes/i18n.php +0 -0
- freemius/includes/index.php +0 -0
- freemius/includes/l10n.php +0 -0
- freemius/includes/managers/class-fs-admin-menu-manager.php +0 -0
- freemius/includes/managers/class-fs-admin-notice-manager.php +0 -0
- freemius/includes/managers/class-fs-cache-manager.php +0 -0
- freemius/includes/managers/class-fs-gdpr-manager.php +0 -0
- freemius/includes/managers/class-fs-key-value-storage.php +0 -0
- freemius/includes/managers/class-fs-license-manager.php +0 -0
- freemius/includes/managers/class-fs-option-manager.php +0 -0
- freemius/includes/managers/class-fs-plan-manager.php +0 -0
- freemius/includes/managers/class-fs-plugin-manager.php +0 -0
- freemius/includes/managers/index.php +0 -0
- freemius/includes/sdk/Exceptions/ArgumentNotExistException.php +0 -0
- freemius/includes/sdk/Exceptions/EmptyArgumentException.php +0 -0
- freemius/includes/sdk/Exceptions/Exception.php +0 -0
- freemius/includes/sdk/Exceptions/InvalidArgumentException.php +0 -0
- freemius/includes/sdk/Exceptions/OAuthException.php +0 -0
- freemius/includes/sdk/Exceptions/index.php +0 -0
- freemius/includes/sdk/FreemiusBase.php +0 -0
- freemius/includes/sdk/FreemiusWordPress.php +0 -0
- freemius/includes/sdk/LICENSE.txt +0 -0
- freemius/includes/sdk/index.php +0 -0
- freemius/includes/supplements/fs-essential-functions-1.1.7.1.php +0 -0
- freemius/includes/supplements/fs-essential-functions-2.2.1.php +0 -0
- freemius/includes/supplements/index.php +0 -0
- freemius/index.php +0 -0
- freemius/languages/freemius-da_DK.mo +0 -0
- freemius/languages/freemius-da_DK.po +0 -0
- freemius/languages/freemius-en.mo +0 -0
- freemius/languages/freemius-en.po +0 -0
- freemius/languages/freemius-es_ES.mo +0 -0
- freemius/languages/freemius-es_ES.po +0 -0
- freemius/languages/freemius-fr_FR.mo +0 -0
- freemius/languages/freemius-fr_FR.po +0 -0
- freemius/languages/freemius-he_IL.mo +0 -0
- freemius/languages/freemius-he_IL.po +0 -0
- freemius/languages/freemius-hu_HU.mo +0 -0
- freemius/languages/freemius-hu_HU.po +0 -0
- freemius/languages/freemius-it_IT.mo +0 -0
- freemius/languages/freemius-it_IT.po +0 -0
- freemius/languages/freemius-ja_JP.mo +0 -0
- freemius/languages/freemius-ja_JP.po +0 -0
- freemius/languages/freemius-nl_NL.mo +0 -0
- freemius/languages/freemius-nl_NL.po +0 -0
- freemius/languages/freemius-ru_RU.mo +0 -0
- freemius/languages/freemius-ru_RU.po +0 -0
- freemius/languages/freemius.pot +0 -0
- freemius/languages/index.php +0 -0
- freemius/require.php +0 -0
- freemius/start.php +0 -0
- freemius/templates/account.php +0 -0
- freemius/templates/account/billing.php +0 -0
- freemius/templates/account/index.php +0 -0
- freemius/templates/account/partials/activate-license-button.php +0 -0
- freemius/templates/account/partials/addon.php +0 -0
- freemius/templates/account/partials/deactivate-license-button.php +0 -0
- freemius/templates/account/partials/index.php +0 -0
- freemius/templates/account/partials/site.php +0 -0
- freemius/templates/account/payments.php +0 -0
- freemius/templates/add-ons.php +0 -0
- freemius/templates/add-trial-to-pricing.php +0 -0
- freemius/templates/admin-notice.php +0 -0
- freemius/templates/ajax-loader.php +0 -0
- freemius/templates/auto-installation.php +0 -0
- freemius/templates/checkout.php +0 -0
- freemius/templates/connect.php +0 -0
- freemius/templates/contact.php +0 -0
- freemius/templates/debug.php +0 -0
- freemius/templates/debug/api-calls.php +0 -0
- freemius/templates/debug/index.php +0 -0
- freemius/templates/debug/logger.php +0 -0
- freemius/templates/debug/plugins-themes-sync.php +0 -0
- freemius/templates/debug/scheduled-crons.php +0 -0
- freemius/templates/email.php +0 -0
- freemius/templates/firewall-issues-js.php +0 -0
- freemius/templates/forms/affiliation.php +0 -0
- freemius/templates/forms/deactivation/contact.php +0 -0
- freemius/templates/forms/deactivation/form.php +0 -0
- freemius/templates/forms/deactivation/index.php +0 -0
- freemius/templates/forms/deactivation/retry-skip.php +0 -0
- freemius/templates/forms/index.php +0 -0
- freemius/templates/forms/license-activation.php +0 -0
- freemius/templates/forms/optout.php +0 -0
- freemius/templates/forms/premium-versions-upgrade-handler.php +0 -0
- freemius/templates/forms/premium-versions-upgrade-metadata.php +0 -0
- freemius/templates/forms/resend-key.php +0 -0
- freemius/templates/forms/subscription-cancellation.php +0 -0
- freemius/templates/forms/trial-start.php +0 -0
- freemius/templates/gdpr-optin-js.php +0 -0
- freemius/templates/index.php +0 -0
- freemius/templates/js/index.php +0 -0
- freemius/templates/js/jquery.content-change.php +0 -0
- freemius/templates/js/open-license-activation.php +0 -0
- freemius/templates/js/style-premium-theme.php +0 -0
- freemius/templates/partials/network-activation.php +0 -0
- freemius/templates/plugin-icon.php +0 -0
- freemius/templates/plugin-info/description.php +0 -0
- freemius/templates/plugin-info/features.php +0 -0
- freemius/templates/plugin-info/index.php +0 -0
- freemius/templates/plugin-info/screenshots.php +0 -0
- freemius/templates/powered-by.php +0 -0
- freemius/templates/pricing.php +0 -0
- freemius/templates/secure-https-header.php +0 -0
- freemius/templates/sticky-admin-notice-js.php +0 -0
- freemius/templates/tabs-capture-js.php +0 -0
- freemius/templates/tabs.php +0 -0
- menu-image.php +9 -6
- readme.txt +5 -1
freemius/LICENSE.txt
CHANGED
File without changes
|
freemius/README.md
CHANGED
File without changes
|
freemius/assets/css/admin/account.css
CHANGED
File without changes
|
freemius/assets/css/admin/add-ons.css
CHANGED
File without changes
|
freemius/assets/css/admin/affiliation.css
CHANGED
File without changes
|
freemius/assets/css/admin/checkout.css
CHANGED
File without changes
|
freemius/assets/css/admin/common.css
CHANGED
File without changes
|
freemius/assets/css/admin/connect.css
CHANGED
File without changes
|
freemius/assets/css/admin/debug.css
CHANGED
File without changes
|
freemius/assets/css/admin/dialog-boxes.css
CHANGED
File without changes
|
freemius/assets/css/admin/gdpr-optin-notice.css
CHANGED
File without changes
|
freemius/assets/css/admin/index.php
CHANGED
File without changes
|
freemius/assets/css/customizer.css
CHANGED
File without changes
|
freemius/assets/css/index.php
CHANGED
File without changes
|
freemius/assets/img/index.php
CHANGED
File without changes
|
freemius/assets/img/mobile-menu.png
CHANGED
File without changes
|
freemius/assets/img/theme-icon.png
CHANGED
File without changes
|
freemius/assets/index.php
CHANGED
File without changes
|
freemius/assets/js/index.php
CHANGED
File without changes
|
freemius/assets/js/nojquery.ba-postmessage.js
CHANGED
File without changes
|
freemius/assets/js/nojquery.ba-postmessage.min.js
CHANGED
File without changes
|
freemius/assets/js/postmessage.js
CHANGED
File without changes
|
freemius/composer.json
CHANGED
File without changes
|
freemius/config.php
CHANGED
File without changes
|
freemius/includes/class-freemius-abstract.php
CHANGED
File without changes
|
freemius/includes/class-freemius.php
CHANGED
File without changes
|
freemius/includes/class-fs-admin-notices.php
CHANGED
File without changes
|
freemius/includes/class-fs-api.php
CHANGED
File without changes
|
freemius/includes/class-fs-logger.php
CHANGED
File without changes
|
freemius/includes/class-fs-options.php
CHANGED
File without changes
|
freemius/includes/class-fs-plugin-updater.php
CHANGED
File without changes
|
freemius/includes/class-fs-security.php
CHANGED
File without changes
|
freemius/includes/class-fs-storage.php
CHANGED
File without changes
|
freemius/includes/class-fs-user-lock.php
CHANGED
File without changes
|
freemius/includes/customizer/class-fs-customizer-support-section.php
CHANGED
File without changes
|
freemius/includes/customizer/class-fs-customizer-upsell-control.php
CHANGED
File without changes
|
freemius/includes/customizer/index.php
CHANGED
File without changes
|
freemius/includes/debug/class-fs-debug-bar-panel.php
CHANGED
File without changes
|
freemius/includes/debug/debug-bar-start.php
CHANGED
File without changes
|
freemius/includes/debug/index.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-affiliate-terms.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-affiliate.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-billing.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-entity.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-payment.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-plugin-info.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-plugin-license.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-plugin-plan.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-plugin-tag.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-plugin.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-pricing.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-scope-entity.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-site.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-subscription.php
CHANGED
File without changes
|
freemius/includes/entities/class-fs-user.php
CHANGED
File without changes
|
freemius/includes/entities/index.php
CHANGED
File without changes
|
freemius/includes/fs-core-functions.php
CHANGED
File without changes
|
freemius/includes/fs-essential-functions.php
CHANGED
File without changes
|
freemius/includes/fs-plugin-info-dialog.php
CHANGED
File without changes
|
freemius/includes/i18n.php
CHANGED
File without changes
|
freemius/includes/index.php
CHANGED
File without changes
|
freemius/includes/l10n.php
CHANGED
File without changes
|
freemius/includes/managers/class-fs-admin-menu-manager.php
CHANGED
File without changes
|
freemius/includes/managers/class-fs-admin-notice-manager.php
CHANGED
File without changes
|
freemius/includes/managers/class-fs-cache-manager.php
CHANGED
File without changes
|
freemius/includes/managers/class-fs-gdpr-manager.php
CHANGED
File without changes
|
freemius/includes/managers/class-fs-key-value-storage.php
CHANGED
File without changes
|
freemius/includes/managers/class-fs-license-manager.php
CHANGED
File without changes
|
freemius/includes/managers/class-fs-option-manager.php
CHANGED
File without changes
|
freemius/includes/managers/class-fs-plan-manager.php
CHANGED
File without changes
|
freemius/includes/managers/class-fs-plugin-manager.php
CHANGED
File without changes
|
freemius/includes/managers/index.php
CHANGED
File without changes
|
freemius/includes/sdk/Exceptions/ArgumentNotExistException.php
CHANGED
File without changes
|
freemius/includes/sdk/Exceptions/EmptyArgumentException.php
CHANGED
File without changes
|
freemius/includes/sdk/Exceptions/Exception.php
CHANGED
File without changes
|
freemius/includes/sdk/Exceptions/InvalidArgumentException.php
CHANGED
File without changes
|
freemius/includes/sdk/Exceptions/OAuthException.php
CHANGED
File without changes
|
freemius/includes/sdk/Exceptions/index.php
CHANGED
File without changes
|
freemius/includes/sdk/FreemiusBase.php
CHANGED
File without changes
|
freemius/includes/sdk/FreemiusWordPress.php
CHANGED
File without changes
|
freemius/includes/sdk/LICENSE.txt
CHANGED
File without changes
|
freemius/includes/sdk/index.php
CHANGED
File without changes
|
freemius/includes/supplements/fs-essential-functions-1.1.7.1.php
CHANGED
File without changes
|
freemius/includes/supplements/fs-essential-functions-2.2.1.php
CHANGED
File without changes
|
freemius/includes/supplements/index.php
CHANGED
File without changes
|
freemius/index.php
CHANGED
File without changes
|
freemius/languages/freemius-da_DK.mo
CHANGED
File without changes
|
freemius/languages/freemius-da_DK.po
CHANGED
File without changes
|
freemius/languages/freemius-en.mo
CHANGED
File without changes
|
freemius/languages/freemius-en.po
CHANGED
File without changes
|
freemius/languages/freemius-es_ES.mo
CHANGED
File without changes
|
freemius/languages/freemius-es_ES.po
CHANGED
File without changes
|
freemius/languages/freemius-fr_FR.mo
CHANGED
File without changes
|
freemius/languages/freemius-fr_FR.po
CHANGED
File without changes
|
freemius/languages/freemius-he_IL.mo
CHANGED
File without changes
|
freemius/languages/freemius-he_IL.po
CHANGED
File without changes
|
freemius/languages/freemius-hu_HU.mo
CHANGED
File without changes
|
freemius/languages/freemius-hu_HU.po
CHANGED
File without changes
|
freemius/languages/freemius-it_IT.mo
CHANGED
File without changes
|
freemius/languages/freemius-it_IT.po
CHANGED
File without changes
|
freemius/languages/freemius-ja_JP.mo
CHANGED
File without changes
|
freemius/languages/freemius-ja_JP.po
CHANGED
File without changes
|
freemius/languages/freemius-nl_NL.mo
CHANGED
File without changes
|
freemius/languages/freemius-nl_NL.po
CHANGED
File without changes
|
freemius/languages/freemius-ru_RU.mo
CHANGED
File without changes
|
freemius/languages/freemius-ru_RU.po
CHANGED
File without changes
|
freemius/languages/freemius.pot
CHANGED
File without changes
|
freemius/languages/index.php
CHANGED
File without changes
|
freemius/require.php
CHANGED
File without changes
|
freemius/start.php
CHANGED
File without changes
|
freemius/templates/account.php
CHANGED
File without changes
|
freemius/templates/account/billing.php
CHANGED
File without changes
|
freemius/templates/account/index.php
CHANGED
File without changes
|
freemius/templates/account/partials/activate-license-button.php
CHANGED
File without changes
|
freemius/templates/account/partials/addon.php
CHANGED
File without changes
|
freemius/templates/account/partials/deactivate-license-button.php
CHANGED
File without changes
|
freemius/templates/account/partials/index.php
CHANGED
File without changes
|
freemius/templates/account/partials/site.php
CHANGED
File without changes
|
freemius/templates/account/payments.php
CHANGED
File without changes
|
freemius/templates/add-ons.php
CHANGED
File without changes
|
freemius/templates/add-trial-to-pricing.php
CHANGED
File without changes
|
freemius/templates/admin-notice.php
CHANGED
File without changes
|
freemius/templates/ajax-loader.php
CHANGED
File without changes
|
freemius/templates/auto-installation.php
CHANGED
File without changes
|
freemius/templates/checkout.php
CHANGED
File without changes
|
freemius/templates/connect.php
CHANGED
File without changes
|
freemius/templates/contact.php
CHANGED
File without changes
|
freemius/templates/debug.php
CHANGED
File without changes
|
freemius/templates/debug/api-calls.php
CHANGED
File without changes
|
freemius/templates/debug/index.php
CHANGED
File without changes
|
freemius/templates/debug/logger.php
CHANGED
File without changes
|
freemius/templates/debug/plugins-themes-sync.php
CHANGED
File without changes
|
freemius/templates/debug/scheduled-crons.php
CHANGED
File without changes
|
freemius/templates/email.php
CHANGED
File without changes
|
freemius/templates/firewall-issues-js.php
CHANGED
File without changes
|
freemius/templates/forms/affiliation.php
CHANGED
File without changes
|
freemius/templates/forms/deactivation/contact.php
CHANGED
File without changes
|
freemius/templates/forms/deactivation/form.php
CHANGED
File without changes
|
freemius/templates/forms/deactivation/index.php
CHANGED
File without changes
|
freemius/templates/forms/deactivation/retry-skip.php
CHANGED
File without changes
|
freemius/templates/forms/index.php
CHANGED
File without changes
|
freemius/templates/forms/license-activation.php
CHANGED
File without changes
|
freemius/templates/forms/optout.php
CHANGED
File without changes
|
freemius/templates/forms/premium-versions-upgrade-handler.php
CHANGED
File without changes
|
freemius/templates/forms/premium-versions-upgrade-metadata.php
CHANGED
File without changes
|
freemius/templates/forms/resend-key.php
CHANGED
File without changes
|
freemius/templates/forms/subscription-cancellation.php
CHANGED
File without changes
|
freemius/templates/forms/trial-start.php
CHANGED
File without changes
|
freemius/templates/gdpr-optin-js.php
CHANGED
File without changes
|
freemius/templates/index.php
CHANGED
File without changes
|
freemius/templates/js/index.php
CHANGED
File without changes
|
freemius/templates/js/jquery.content-change.php
CHANGED
File without changes
|
freemius/templates/js/open-license-activation.php
CHANGED
File without changes
|
freemius/templates/js/style-premium-theme.php
CHANGED
File without changes
|
freemius/templates/partials/network-activation.php
CHANGED
File without changes
|
freemius/templates/plugin-icon.php
CHANGED
File without changes
|
freemius/templates/plugin-info/description.php
CHANGED
File without changes
|
freemius/templates/plugin-info/features.php
CHANGED
File without changes
|
freemius/templates/plugin-info/index.php
CHANGED
File without changes
|
freemius/templates/plugin-info/screenshots.php
CHANGED
File without changes
|
freemius/templates/powered-by.php
CHANGED
File without changes
|
freemius/templates/pricing.php
CHANGED
File without changes
|
freemius/templates/secure-https-header.php
CHANGED
File without changes
|
freemius/templates/sticky-admin-notice-js.php
CHANGED
File without changes
|
freemius/templates/tabs-capture-js.php
CHANGED
File without changes
|
freemius/templates/tabs.php
CHANGED
File without changes
|
menu-image.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Menu_Image
|
4 |
-
* @version 2.
|
5 |
* @licence GPLv2
|
6 |
*/
|
7 |
|
@@ -10,7 +10,7 @@ Plugin Name: Menu Image
|
|
10 |
Plugin URI: https://www.jedipress.com
|
11 |
Description: Improve your navigation menu items with images, logos, icons, buttons.
|
12 |
Author: Rui Guerreiro
|
13 |
-
Version: 2.9.
|
14 |
Author URI: https://www.jedipress.com
|
15 |
*/
|
16 |
|
@@ -330,7 +330,10 @@ class Menu_Image_Plugin {
|
|
330 |
if ( ! is_admin() ) {
|
331 |
|
332 |
global $wp_filter;
|
333 |
-
|
|
|
|
|
|
|
334 |
add_filter( 'walker_nav_menu_start_el', array( $this, 'menu_image_nav_menu_item_filter' ), 10, 4 );
|
335 |
} else {
|
336 |
add_filter( 'the_title', array( $this, 'menu_image_nav_menu_item_title_filter' ), 10, 4 );
|
@@ -515,7 +518,7 @@ class Menu_Image_Plugin {
|
|
515 |
*/
|
516 |
public function menu_image_nav_menu_item_title_filter( $title, $item = null, $depth = null, $args = null ) {
|
517 |
|
518 |
-
if ( ! is_nav_menu_item( $item ) || ! isset( $item ) ) {
|
519 |
return $title;
|
520 |
}
|
521 |
|
@@ -662,7 +665,7 @@ class Menu_Image_Plugin {
|
|
662 |
* Loading custom stylesheet to fix images positioning in match themes
|
663 |
*/
|
664 |
public function menu_image_add_inline_style_action() {
|
665 |
-
wp_register_style( 'menu-image', plugins_url( '', __FILE__ ) . '/includes/css/menu-image.css', array(), '2.9.
|
666 |
wp_enqueue_style( 'menu-image' );
|
667 |
}
|
668 |
|
@@ -672,7 +675,7 @@ class Menu_Image_Plugin {
|
|
672 |
* @since 2.0
|
673 |
*/
|
674 |
public function menu_image_admin_head_nav_menus_action() {
|
675 |
-
wp_enqueue_script( 'menu-image-admin', plugins_url( '/includes/js/menu-image-admin.js', __FILE__ ), array( 'jquery' ), '2.9.
|
676 |
wp_localize_script(
|
677 |
'menu-image-admin', 'menuImage', array(
|
678 |
'l10n' => array(
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Menu_Image
|
4 |
+
* @version 2.9.4
|
5 |
* @licence GPLv2
|
6 |
*/
|
7 |
|
10 |
Plugin URI: https://www.jedipress.com
|
11 |
Description: Improve your navigation menu items with images, logos, icons, buttons.
|
12 |
Author: Rui Guerreiro
|
13 |
+
Version: 2.9.4
|
14 |
Author URI: https://www.jedipress.com
|
15 |
*/
|
16 |
|
330 |
if ( ! is_admin() ) {
|
331 |
|
332 |
global $wp_filter;
|
333 |
+
|
334 |
+
$menu_filters_count = ( is_array($wp_filter['wp_nav_menu_args'] ) ? count( $wp_filter['wp_nav_menu_args'] ) : 0 );
|
335 |
+
|
336 |
+
if ( isset( $wp_filter['wp_nav_menu_args'] ) && 0 === $menu_filters_count ) {
|
337 |
add_filter( 'walker_nav_menu_start_el', array( $this, 'menu_image_nav_menu_item_filter' ), 10, 4 );
|
338 |
} else {
|
339 |
add_filter( 'the_title', array( $this, 'menu_image_nav_menu_item_title_filter' ), 10, 4 );
|
518 |
*/
|
519 |
public function menu_image_nav_menu_item_title_filter( $title, $item = null, $depth = null, $args = null ) {
|
520 |
|
521 |
+
if ( ! is_nav_menu_item( $item ) || ! isset( $item ) || strpos( $title, 'menu-image' ) > 0 ) {
|
522 |
return $title;
|
523 |
}
|
524 |
|
665 |
* Loading custom stylesheet to fix images positioning in match themes
|
666 |
*/
|
667 |
public function menu_image_add_inline_style_action() {
|
668 |
+
wp_register_style( 'menu-image', plugins_url( '', __FILE__ ) . '/includes/css/menu-image.css', array(), '2.9.4' );
|
669 |
wp_enqueue_style( 'menu-image' );
|
670 |
}
|
671 |
|
675 |
* @since 2.0
|
676 |
*/
|
677 |
public function menu_image_admin_head_nav_menus_action() {
|
678 |
+
wp_enqueue_script( 'menu-image-admin', plugins_url( '/includes/js/menu-image-admin.js', __FILE__ ), array( 'jquery' ), '2.9.4' );
|
679 |
wp_localize_script(
|
680 |
'menu-image-admin', 'menuImage', array(
|
681 |
'l10n' => array(
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: menu, navigation, image, icons, nav menu
|
|
4 |
Donate link: https://www.buymeacoffee.com/ruiguerreiro
|
5 |
Requires at least: 4.4.0
|
6 |
Tested up to: 5.2
|
7 |
-
Stable tag: 2.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -108,6 +108,10 @@ add_filter( 'wp_calculate_image_srcset', '__return_false' );
|
|
108 |
2. Menu preview in standard twenty-thirteen theme
|
109 |
|
110 |
== Changelog ==
|
|
|
|
|
|
|
|
|
111 |
### 2.9.3 ###
|
112 |
* New - Add compatibility with Max Megamenu.
|
113 |
* New - Add new filter to change the markup of the image
|
4 |
Donate link: https://www.buymeacoffee.com/ruiguerreiro
|
5 |
Requires at least: 4.4.0
|
6 |
Tested up to: 5.2
|
7 |
+
Stable tag: 2.9.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
108 |
2. Menu preview in standard twenty-thirteen theme
|
109 |
|
110 |
== Changelog ==
|
111 |
+
|
112 |
+
### 2.9.4 ###
|
113 |
+
* Fix - Bug of the duplicated images.
|
114 |
+
|
115 |
### 2.9.3 ###
|
116 |
* New - Add compatibility with Max Megamenu.
|
117 |
* New - Add new filter to change the markup of the image
|