Menu Image - Version 2.9.3

Version Description

Download this release

Release Info

Developer takanakui
Plugin Icon 128x128 Menu Image
Version 2.9.3
Comparing to
See all releases

Code changes from version 2.9.2 to 2.9.3

Files changed (169) hide show
  1. freemius/LICENSE.txt +0 -0
  2. freemius/README.md +0 -0
  3. freemius/assets/css/admin/account.css +0 -0
  4. freemius/assets/css/admin/add-ons.css +0 -0
  5. freemius/assets/css/admin/affiliation.css +0 -0
  6. freemius/assets/css/admin/checkout.css +0 -0
  7. freemius/assets/css/admin/common.css +0 -0
  8. freemius/assets/css/admin/connect.css +0 -0
  9. freemius/assets/css/admin/debug.css +0 -0
  10. freemius/assets/css/admin/dialog-boxes.css +0 -0
  11. freemius/assets/css/admin/gdpr-optin-notice.css +0 -0
  12. freemius/assets/css/admin/index.php +0 -0
  13. freemius/assets/css/customizer.css +0 -0
  14. freemius/assets/css/index.php +0 -0
  15. freemius/assets/img/index.php +0 -0
  16. freemius/assets/img/mobile-menu.png +0 -0
  17. freemius/assets/img/theme-icon.png +0 -0
  18. freemius/assets/index.php +0 -0
  19. freemius/assets/js/index.php +0 -0
  20. freemius/assets/js/nojquery.ba-postmessage.js +0 -0
  21. freemius/assets/js/nojquery.ba-postmessage.min.js +0 -0
  22. freemius/assets/js/postmessage.js +0 -0
  23. freemius/composer.json +0 -0
  24. freemius/config.php +0 -0
  25. freemius/includes/class-freemius-abstract.php +0 -0
  26. freemius/includes/class-freemius.php +0 -0
  27. freemius/includes/class-fs-admin-notices.php +0 -0
  28. freemius/includes/class-fs-api.php +0 -0
  29. freemius/includes/class-fs-logger.php +0 -0
  30. freemius/includes/class-fs-options.php +0 -0
  31. freemius/includes/class-fs-plugin-updater.php +0 -0
  32. freemius/includes/class-fs-security.php +0 -0
  33. freemius/includes/class-fs-storage.php +0 -0
  34. freemius/includes/class-fs-user-lock.php +0 -0
  35. freemius/includes/customizer/class-fs-customizer-support-section.php +0 -0
  36. freemius/includes/customizer/class-fs-customizer-upsell-control.php +0 -0
  37. freemius/includes/customizer/index.php +0 -0
  38. freemius/includes/debug/class-fs-debug-bar-panel.php +0 -0
  39. freemius/includes/debug/debug-bar-start.php +0 -0
  40. freemius/includes/debug/index.php +0 -0
  41. freemius/includes/entities/class-fs-affiliate-terms.php +0 -0
  42. freemius/includes/entities/class-fs-affiliate.php +0 -0
  43. freemius/includes/entities/class-fs-billing.php +0 -0
  44. freemius/includes/entities/class-fs-entity.php +0 -0
  45. freemius/includes/entities/class-fs-payment.php +0 -0
  46. freemius/includes/entities/class-fs-plugin-info.php +0 -0
  47. freemius/includes/entities/class-fs-plugin-license.php +0 -0
  48. freemius/includes/entities/class-fs-plugin-plan.php +0 -0
  49. freemius/includes/entities/class-fs-plugin-tag.php +0 -0
  50. freemius/includes/entities/class-fs-plugin.php +0 -0
  51. freemius/includes/entities/class-fs-pricing.php +0 -0
  52. freemius/includes/entities/class-fs-scope-entity.php +0 -0
  53. freemius/includes/entities/class-fs-site.php +0 -0
  54. freemius/includes/entities/class-fs-subscription.php +0 -0
  55. freemius/includes/entities/class-fs-user.php +0 -0
  56. freemius/includes/entities/index.php +0 -0
  57. freemius/includes/fs-core-functions.php +0 -0
  58. freemius/includes/fs-essential-functions.php +0 -0
  59. freemius/includes/fs-plugin-info-dialog.php +0 -0
  60. freemius/includes/i18n.php +0 -0
  61. freemius/includes/index.php +0 -0
  62. freemius/includes/l10n.php +0 -0
  63. freemius/includes/managers/class-fs-admin-menu-manager.php +0 -0
  64. freemius/includes/managers/class-fs-admin-notice-manager.php +0 -0
  65. freemius/includes/managers/class-fs-cache-manager.php +0 -0
  66. freemius/includes/managers/class-fs-gdpr-manager.php +0 -0
  67. freemius/includes/managers/class-fs-key-value-storage.php +0 -0
  68. freemius/includes/managers/class-fs-license-manager.php +0 -0
  69. freemius/includes/managers/class-fs-option-manager.php +0 -0
  70. freemius/includes/managers/class-fs-plan-manager.php +0 -0
  71. freemius/includes/managers/class-fs-plugin-manager.php +0 -0
  72. freemius/includes/managers/index.php +0 -0
  73. freemius/includes/sdk/Exceptions/ArgumentNotExistException.php +0 -0
  74. freemius/includes/sdk/Exceptions/EmptyArgumentException.php +0 -0
  75. freemius/includes/sdk/Exceptions/Exception.php +0 -0
  76. freemius/includes/sdk/Exceptions/InvalidArgumentException.php +0 -0
  77. freemius/includes/sdk/Exceptions/OAuthException.php +0 -0
  78. freemius/includes/sdk/Exceptions/index.php +0 -0
  79. freemius/includes/sdk/FreemiusBase.php +0 -0
  80. freemius/includes/sdk/FreemiusWordPress.php +0 -0
  81. freemius/includes/sdk/LICENSE.txt +0 -0
  82. freemius/includes/sdk/index.php +0 -0
  83. freemius/includes/supplements/fs-essential-functions-1.1.7.1.php +0 -0
  84. freemius/includes/supplements/fs-essential-functions-2.2.1.php +0 -0
  85. freemius/includes/supplements/index.php +0 -0
  86. freemius/index.php +0 -0
  87. freemius/languages/freemius-da_DK.mo +0 -0
  88. freemius/languages/freemius-da_DK.po +0 -0
  89. freemius/languages/freemius-en.mo +0 -0
  90. freemius/languages/freemius-en.po +0 -0
  91. freemius/languages/freemius-es_ES.mo +0 -0
  92. freemius/languages/freemius-es_ES.po +0 -0
  93. freemius/languages/freemius-fr_FR.mo +0 -0
  94. freemius/languages/freemius-fr_FR.po +0 -0
  95. freemius/languages/freemius-he_IL.mo +0 -0
  96. freemius/languages/freemius-he_IL.po +0 -0
  97. freemius/languages/freemius-hu_HU.mo +0 -0
  98. freemius/languages/freemius-hu_HU.po +0 -0
  99. freemius/languages/freemius-it_IT.mo +0 -0
  100. freemius/languages/freemius-it_IT.po +0 -0
  101. freemius/languages/freemius-ja_JP.mo +0 -0
  102. freemius/languages/freemius-ja_JP.po +0 -0
  103. freemius/languages/freemius-nl_NL.mo +0 -0
  104. freemius/languages/freemius-nl_NL.po +0 -0
  105. freemius/languages/freemius-ru_RU.mo +0 -0
  106. freemius/languages/freemius-ru_RU.po +0 -0
  107. freemius/languages/freemius.pot +0 -0
  108. freemius/languages/index.php +0 -0
  109. freemius/require.php +0 -0
  110. freemius/start.php +0 -0
  111. freemius/templates/account.php +0 -0
  112. freemius/templates/account/billing.php +0 -0
  113. freemius/templates/account/index.php +0 -0
  114. freemius/templates/account/partials/activate-license-button.php +0 -0
  115. freemius/templates/account/partials/addon.php +0 -0
  116. freemius/templates/account/partials/deactivate-license-button.php +0 -0
  117. freemius/templates/account/partials/index.php +0 -0
  118. freemius/templates/account/partials/site.php +0 -0
  119. freemius/templates/account/payments.php +0 -0
  120. freemius/templates/add-ons.php +0 -0
  121. freemius/templates/add-trial-to-pricing.php +0 -0
  122. freemius/templates/admin-notice.php +0 -0
  123. freemius/templates/ajax-loader.php +0 -0
  124. freemius/templates/auto-installation.php +0 -0
  125. freemius/templates/checkout.php +0 -0
  126. freemius/templates/connect.php +0 -0
  127. freemius/templates/contact.php +0 -0
  128. freemius/templates/debug.php +0 -0
  129. freemius/templates/debug/api-calls.php +0 -0
  130. freemius/templates/debug/index.php +0 -0
  131. freemius/templates/debug/logger.php +0 -0
  132. freemius/templates/debug/plugins-themes-sync.php +0 -0
  133. freemius/templates/debug/scheduled-crons.php +0 -0
  134. freemius/templates/email.php +0 -0
  135. freemius/templates/firewall-issues-js.php +0 -0
  136. freemius/templates/forms/affiliation.php +0 -0
  137. freemius/templates/forms/deactivation/contact.php +0 -0
  138. freemius/templates/forms/deactivation/form.php +0 -0
  139. freemius/templates/forms/deactivation/index.php +0 -0
  140. freemius/templates/forms/deactivation/retry-skip.php +0 -0
  141. freemius/templates/forms/index.php +0 -0
  142. freemius/templates/forms/license-activation.php +0 -0
  143. freemius/templates/forms/optout.php +0 -0
  144. freemius/templates/forms/premium-versions-upgrade-handler.php +0 -0
  145. freemius/templates/forms/premium-versions-upgrade-metadata.php +0 -0
  146. freemius/templates/forms/resend-key.php +0 -0
  147. freemius/templates/forms/subscription-cancellation.php +0 -0
  148. freemius/templates/forms/trial-start.php +0 -0
  149. freemius/templates/gdpr-optin-js.php +0 -0
  150. freemius/templates/index.php +0 -0
  151. freemius/templates/js/index.php +0 -0
  152. freemius/templates/js/jquery.content-change.php +0 -0
  153. freemius/templates/js/open-license-activation.php +0 -0
  154. freemius/templates/js/style-premium-theme.php +0 -0
  155. freemius/templates/partials/network-activation.php +0 -0
  156. freemius/templates/plugin-icon.php +0 -0
  157. freemius/templates/plugin-info/description.php +0 -0
  158. freemius/templates/plugin-info/features.php +0 -0
  159. freemius/templates/plugin-info/index.php +0 -0
  160. freemius/templates/plugin-info/screenshots.php +0 -0
  161. freemius/templates/powered-by.php +0 -0
  162. freemius/templates/pricing.php +0 -0
  163. freemius/templates/secure-https-header.php +0 -0
  164. freemius/templates/sticky-admin-notice-js.php +0 -0
  165. freemius/templates/tabs-capture-js.php +0 -0
  166. freemius/templates/tabs.php +0 -0
  167. includes/css/menu-image.css +16 -16
  168. menu-image.php +53 -30
  169. readme.txt +9 -2
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
includes/css/menu-image.css CHANGED
@@ -1,43 +1,43 @@
1
- .menu-item a img {
2
  border: none;
3
  box-shadow: none;
4
  vertical-align: middle;
5
  width: auto;
6
  display: inline;
7
  }
8
- .menu-item a.menu-image-hovered img.hovered-image,
9
- .menu-item a.menu-image-hovered:hover img.menu-image {
10
  opacity: 0;
11
  transition: opacity 0.25s ease-in-out 0s;
12
  }
13
- .menu-item a.menu-image-hovered:hover img.hovered-image {
14
  opacity: 1;
15
  }
16
- .menu-item a.menu-image-title-after.menu-image-not-hovered img,
17
- .menu-item a.menu-image-hovered.menu-image-title-after .menu-image-hover-wrapper {
18
  padding-right: 10px;
19
  }
20
- .menu-item a.menu-image-title-before.menu-image-not-hovered img,
21
- .menu-item a.menu-image-hovered.menu-image-title-before .menu-image-hover-wrapper {
22
  padding-left: 10px;
23
  }
24
- .menu-item a.menu-image-title-above,
25
- .menu-item a.menu-image-title-below {
26
  text-align: center;
27
  display: block;
28
  }
29
- .menu-item a.menu-image-title-above.menu-image-not-hovered img,
30
- .menu-item a.menu-image-hovered.menu-image-title-above .menu-image-hover-wrapper {
31
  display: block;
32
  padding-top: 10px;
33
  margin: 0 auto !important;
34
  }
35
- .menu-item a.menu-image-title-below.menu-image-not-hovered img,
36
- .menu-item a.menu-image-hovered.menu-image-title-below .menu-image-hover-wrapper {
37
  display: block;
38
  padding-bottom: 10px;
39
  margin: 0 auto !important;
40
  }
41
- .menu-item a.menu-image-title-hide .menu-image-title {
42
  display: none;
43
- }
1
+ .menu-item a img, img.menu-image-title-after, img.menu-image-title-before, img.menu-image-title-above, img.menu-image-title-below {
2
  border: none;
3
  box-shadow: none;
4
  vertical-align: middle;
5
  width: auto;
6
  display: inline;
7
  }
8
+ a.menu-image-hovered img.hovered-image,
9
+ a.menu-image-hovered:hover img.menu-image {
10
  opacity: 0;
11
  transition: opacity 0.25s ease-in-out 0s;
12
  }
13
+ a.menu-image-hovered:hover img.hovered-image {
14
  opacity: 1;
15
  }
16
+ a.menu-image-title-after.menu-image-not-hovered img,
17
+ a.menu-image-hovered.menu-image-title-after .menu-image-hover-wrapper {
18
  padding-right: 10px;
19
  }
20
+ a.menu-image-title-before.menu-image-not-hovered img,
21
+ a.menu-image-hovered.menu-image-title-before .menu-image-hover-wrapper {
22
  padding-left: 10px;
23
  }
24
+ a.menu-image-title-above,
25
+ a.menu-image-title-below {
26
  text-align: center;
27
  display: block;
28
  }
29
+ a.menu-image-title-above.menu-image-not-hovered img,
30
+ a.menu-image-hovered.menu-image-title-above .menu-image-hover-wrapper {
31
  display: block;
32
  padding-top: 10px;
33
  margin: 0 auto !important;
34
  }
35
+ a.menu-image-title-below.menu-image-not-hovered img,
36
+ a.menu-image-hovered.menu-image-title-below .menu-image-hover-wrapper {
37
  display: block;
38
  padding-bottom: 10px;
39
  margin: 0 auto !important;
40
  }
41
+ a.menu-image-title-hide .menu-image-title {
42
  display: none;
43
+ }
menu-image.php CHANGED
@@ -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.2
14
  Author URI: https://www.jedipress.com
15
  */
16
 
@@ -112,16 +112,18 @@ class Menu_Image_Plugin {
112
  add_filter( 'wp_setup_nav_menu_item', array( $this, 'menu_image_wp_setup_nav_menu_item' ) );
113
  add_filter( 'nav_menu_link_attributes', array( $this, 'menu_image_nav_menu_link_attributes_filter' ), 10, 4 );
114
  add_filter( 'manage_nav-menus_columns', array( $this, 'menu_image_nav_menu_manage_columns' ), 11 );
 
115
 
116
  // Add support for additional image types.
117
  add_filter( 'file_is_displayable_image', array( $this, 'file_is_displayable_image' ), 10, 2 );
118
  add_filter( 'jetpack_photon_override_image_downsize', array( $this, 'jetpack_photon_override_image_downsize_filter' ), 10, 2 );
119
  add_filter( 'wp_get_attachment_image_attributes', array( $this, 'wp_get_attachment_image_attributes' ), 99, 3 );
120
 
121
- add_filter( 'megamenu_nav_menu_link_attributes', array( $this, 'menu_image_nav_menu_link_attributes_filter' ), 10, 3 );
122
-
123
- add_filter( 'the_title', array( $this, 'menu_image_nav_menu_item_title_filter' ), 10, 4 );
124
-
 
125
  }
126
 
127
  /**
@@ -192,7 +194,7 @@ class Menu_Image_Plugin {
192
  'menu-image-options',
193
  array( $this, 'menu_image_options_page_html' ) ,
194
  'dashicons-menu',
195
- 20
196
  );
197
  }
198
 
@@ -208,13 +210,19 @@ class Menu_Image_Plugin {
208
  } else {
209
 
210
  // Handle our form data.
211
- $enable_menu_image_hover = $_POST['menu_image_hover'];
212
- $menu_image_size_1 = $_POST['menu_image_size_1'];
213
- $menu_image_size_2 = $_POST['menu_image_size_2'];
214
- $menu_image_size_3 = $_POST['menu_image_size_3'];
215
- $image_parts_1 = explode('x', $menu_image_size_1);
216
- $image_parts_2 = explode('x', $menu_image_size_2);
217
- $image_parts_3 = explode('x', $menu_image_size_3);
 
 
 
 
 
 
218
 
219
  // Validate the menu image size format.
220
  if ( 2 === count( $image_parts_1 ) && 2 === count( $image_parts_2 ) && 2 === count( $image_parts_3 )) {
@@ -262,26 +270,27 @@ class Menu_Image_Plugin {
262
  <input type="hidden" name="updated" value="true" />
263
  <table class="form-table">
264
  <tr valign="top">
265
-
266
- <th scope="row"><?php _e( 'Menu image Hover', 'menu-image' );?></th>
267
- <td><input name="menu_image_hover" type="checkbox" value="1" <?php checked( '1', get_option( 'menu_image_hover', '1' ) ); ?> /><span class="helper"><?php _e( 'Enable the image on hover field', 'menu-image' ); ?></span></td>
268
  </tr>
269
  <tr valign="top">
270
- <th><h3><?php _e( 'Menu Image sizes ', 'menu-image' );?></h3></th>
271
  </tr>
272
  <tr valign="top">
273
-
274
- <th scope="row"><?php _e( '1st Menu Image size ', 'menu-image' );?></th>
275
- <td><input name="menu_image_size_1" type="text" value="<?php echo get_option( 'menu_image_size_1', '24x24' ) ; ?>" /><span class="helper"><?php _e( 'Use this format (24x24), width and height.', 'menu-image' ); ?></span></td>
276
  </tr>
277
- <th scope="row"><?php _e( '2nd Menu Image size ', 'menu-image' );?></th>
278
- <td><input name="menu_image_size_2" type="text" value="<?php echo get_option( 'menu_image_size_2', '36x36' ) ; ?>" /><span class="helper"><?php _e( 'Use this format (36x36), width and height.', 'menu-image' ); ?></span></td>
 
279
  </tr>
280
- <th scope="row"><?php _e( '3rd Menu Image size ', 'menu-image' );?></th>
281
- <td><input name="menu_image_size_3" type="text" value="<?php echo get_option( 'menu_image_size_3', '48x48' ) ; ?>" /><span class="helper"><?php _e( 'Use this format (48x48), width and height.', 'menu-image' ); ?></span></td>
 
282
  </tr>
283
- <th scope="row"><?php _e( 'Warning:', 'menu-image' );?></th>
284
- <td><span class="helper"> If you change the image sizes after uploading the images you will need to regenerate all thumbnails using this </span><a href="https://wordpress.org/plugins/regenerate-thumbnails/" target="_blank">plugin</a>.</td>
 
285
  </tr>
286
  </table>
287
 
@@ -317,6 +326,16 @@ class Menu_Image_Plugin {
317
  }
318
  }
319
  load_plugin_textdomain( 'menu-image', false, basename( dirname( __FILE__ ) ) . '/languages' );
 
 
 
 
 
 
 
 
 
 
320
  }
321
 
322
  /**
@@ -494,9 +513,9 @@ class Menu_Image_Plugin {
494
  *
495
  * @return string
496
  */
497
- public function menu_image_nav_menu_item_title_filter( $title, $item, $depth = null, $args = null ) {
498
 
499
- if ( ! is_nav_menu_item( $item ) ) {
500
  return $title;
501
  }
502
 
@@ -532,6 +551,8 @@ class Menu_Image_Plugin {
532
  $image = wp_get_attachment_image( $item->thumbnail_id, $image_size, false, "class=menu-image {$class}" );
533
  }
534
  $none = ''; // Sugar.
 
 
535
  switch ( $position ) {
536
  case 'hide':
537
  case 'before':
@@ -616,6 +637,8 @@ class Menu_Image_Plugin {
616
  $item_output = "{$args->before}<a {$attributes}>";
617
  $link = $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
618
  $none = ''; // Sugar.
 
 
619
  switch ( $position ) {
620
  case 'hide':
621
  case 'before':
@@ -639,7 +662,7 @@ class Menu_Image_Plugin {
639
  * Loading custom stylesheet to fix images positioning in match themes
640
  */
641
  public function menu_image_add_inline_style_action() {
642
- wp_register_style( 'menu-image', plugins_url( '', __FILE__ ) . '/includes/css/menu-image.css', array(), '2.9.2' );
643
  wp_enqueue_style( 'menu-image' );
644
  }
645
 
@@ -649,7 +672,7 @@ class Menu_Image_Plugin {
649
  * @since 2.0
650
  */
651
  public function menu_image_admin_head_nav_menus_action() {
652
- wp_enqueue_script( 'menu-image-admin', plugins_url( '/includes/js/menu-image-admin.js', __FILE__ ), array( 'jquery' ), '2.9.2' );
653
  wp_localize_script(
654
  'menu-image-admin', 'menuImage', array(
655
  'l10n' => array(
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.3
14
  Author URI: https://www.jedipress.com
15
  */
16
 
112
  add_filter( 'wp_setup_nav_menu_item', array( $this, 'menu_image_wp_setup_nav_menu_item' ) );
113
  add_filter( 'nav_menu_link_attributes', array( $this, 'menu_image_nav_menu_link_attributes_filter' ), 10, 4 );
114
  add_filter( 'manage_nav-menus_columns', array( $this, 'menu_image_nav_menu_manage_columns' ), 11 );
115
+ add_filter( 'nav_menu_item_title', array( $this, 'menu_image_nav_menu_item_title_filter' ), 10, 4 );
116
 
117
  // Add support for additional image types.
118
  add_filter( 'file_is_displayable_image', array( $this, 'file_is_displayable_image' ), 10, 2 );
119
  add_filter( 'jetpack_photon_override_image_downsize', array( $this, 'jetpack_photon_override_image_downsize_filter' ), 10, 2 );
120
  add_filter( 'wp_get_attachment_image_attributes', array( $this, 'wp_get_attachment_image_attributes' ), 99, 3 );
121
 
122
+ // Add support for Max Megamenu.
123
+ if ( function_exists( 'max_mega_menu_is_enabled' ) ) {
124
+ add_filter( 'megamenu_nav_menu_link_attributes', array( $this, 'menu_image_nav_menu_link_attributes_filter' ), 10, 3 );
125
+ add_filter( 'megamenu_the_title', array( $this, 'menu_image_nav_menu_item_title_filter' ), 10, 2 );
126
+ }
127
  }
128
 
129
  /**
194
  'menu-image-options',
195
  array( $this, 'menu_image_options_page_html' ) ,
196
  'dashicons-menu',
197
+ 150
198
  );
199
  }
200
 
210
  } else {
211
 
212
  // Handle our form data.
213
+ $enable_menu_image_hover = '0';
214
+
215
+ // If the value of the Menu Image Hover is set.
216
+ if ( isset( $_POST['menu_image_hover'] ) ) {
217
+ $enable_menu_image_hover = $_POST['menu_image_hover'];
218
+ }
219
+
220
+ $menu_image_size_1 = $_POST['menu_image_size_1'];
221
+ $menu_image_size_2 = $_POST['menu_image_size_2'];
222
+ $menu_image_size_3 = $_POST['menu_image_size_3'];
223
+ $image_parts_1 = explode('x', $menu_image_size_1);
224
+ $image_parts_2 = explode('x', $menu_image_size_2);
225
+ $image_parts_3 = explode('x', $menu_image_size_3);
226
 
227
  // Validate the menu image size format.
228
  if ( 2 === count( $image_parts_1 ) && 2 === count( $image_parts_2 ) && 2 === count( $image_parts_3 )) {
270
  <input type="hidden" name="updated" value="true" />
271
  <table class="form-table">
272
  <tr valign="top">
273
+ <th scope="row"><?php _e( 'Menu image Hover', 'menu-image' );?></th>
274
+ <td><input name="menu_image_hover" type="checkbox" value="1" <?php checked( '1', get_option( 'menu_image_hover', '1' ) ); ?> /><span class="helper"><?php _e( 'Enable the image on hover field', 'menu-image' ); ?></span></td>
 
275
  </tr>
276
  <tr valign="top">
277
+ <th><h3><?php _e( 'Menu Image sizes ', 'menu-image' );?></h3></th>
278
  </tr>
279
  <tr valign="top">
280
+ <th scope="row"><?php _e( '1st Menu Image size ', 'menu-image' );?></th>
281
+ <td><input name="menu_image_size_1" type="text" value="<?php echo get_option( 'menu_image_size_1', '24x24' ) ; ?>" /><span class="helper"><?php _e( 'Use this format (24x24), width and height.', 'menu-image' ); ?></span></td>
 
282
  </tr>
283
+ <tr>
284
+ <th scope="row"><?php _e( '2nd Menu Image size ', 'menu-image' );?></th>
285
+ <td><input name="menu_image_size_2" type="text" value="<?php echo get_option( 'menu_image_size_2', '36x36' ) ; ?>" /><span class="helper"><?php _e( 'Use this format (36x36), width and height.', 'menu-image' ); ?></span></td>
286
  </tr>
287
+ <tr>
288
+ <th scope="row"><?php _e( '3rd Menu Image size ', 'menu-image' );?></th>
289
+ <td><input name="menu_image_size_3" type="text" value="<?php echo get_option( 'menu_image_size_3', '48x48' ) ; ?>" /><span class="helper"><?php _e( 'Use this format (48x48), width and height.', 'menu-image' ); ?></span></td>
290
  </tr>
291
+ <tr>
292
+ <th scope="row"><?php _e( 'Warning:', 'menu-image' );?></th>
293
+ <td><span class="helper"> If you change the image sizes after uploading the images you will need to regenerate all thumbnails using this </span><a href="https://wordpress.org/plugins/regenerate-thumbnails/" target="_blank">plugin</a>.<p>It will also be necessary to select the icon image again in the menu items if you replaced any of the used custom image sizes.</p></td>
294
  </tr>
295
  </table>
296
 
326
  }
327
  }
328
  load_plugin_textdomain( 'menu-image', false, basename( dirname( __FILE__ ) ) . '/languages' );
329
+
330
+ if ( ! is_admin() ) {
331
+
332
+ global $wp_filter;
333
+ if ( isset( $wp_filter['wp_nav_menu_args'] ) && 0 < count( $wp_filter['wp_nav_menu_args'] ) ) {
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 );
337
+ }
338
+ }
339
  }
340
 
341
  /**
513
  *
514
  * @return string
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
 
551
  $image = wp_get_attachment_image( $item->thumbnail_id, $image_size, false, "class=menu-image {$class}" );
552
  }
553
  $none = ''; // Sugar.
554
+ $image = apply_filters( 'menu_image_img_html', $image );
555
+
556
  switch ( $position ) {
557
  case 'hide':
558
  case 'before':
637
  $item_output = "{$args->before}<a {$attributes}>";
638
  $link = $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
639
  $none = ''; // Sugar.
640
+ $image = apply_filters( 'menu_image_img_html', $image );
641
+
642
  switch ( $position ) {
643
  case 'hide':
644
  case 'before':
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.3' );
666
  wp_enqueue_style( 'menu-image' );
667
  }
668
 
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.3' );
676
  wp_localize_script(
677
  'menu-image-admin', 'menuImage', array(
678
  '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.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -29,7 +29,7 @@ With Menu Image plugin you can do more, check some of the features:
29
  It's compatible with WPML and no coding knowledge is required.
30
 
31
  = Related Plugins =
32
- * [Mobile Menu](https://wordpress.org/plugins/mobile-menu/): WP Mobile Menu is the best WordPress responsive mobile menu. Provide to your mobile visitor an easy access to your site content using any device smartphone/tablet/desktop.
33
 
34
 
35
  ###I need help or I have a doubt, check our Support
@@ -108,6 +108,13 @@ add_filter( 'wp_calculate_image_srcset', '__return_false' );
108
  2. Menu preview in standard twenty-thirteen theme
109
 
110
  == Changelog ==
 
 
 
 
 
 
 
111
  ### 2.9.2 ###
112
  * New - Include Freemius framework.
113
  * New - Settings panel.
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.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
29
  It's compatible with WPML and no coding knowledge is required.
30
 
31
  = Related Plugins =
32
+ * [Mobile Menu](https://www.wpmobilemenu.com/?utm_source=wordpressorg&utm_medium=menu-image&utm_campaign=plugin-description): WP Mobile Menu is the best WordPress responsive mobile menu. Provide to your mobile visitor an easy access to your site content using any device smartphone/tablet/desktop.
33
 
34
 
35
  ###I need help or I have a doubt, check our Support
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
114
+ * Fix - Lower the Menu Image options to be below the WordPress Settings.
115
+ * Fix - Update Mobile Menu Link.
116
+ * Fix - Relocate CSS and JS resources.
117
+
118
  ### 2.9.2 ###
119
  * New - Include Freemius framework.
120
  * New - Settings panel.