WooCommerce Menu Cart - Version 2.12.0

Version Description

  • Security: escape URL in admin notice
  • Tweak: Settings styles & colors
  • Tested up to WooCommerce 6.6 & WP 6.0
Download this release

Release Info

Developer wpovernight
Plugin Icon 128x128 WooCommerce Menu Cart
Version 2.12.0
Comparing to
See all releases

Code changes from version 2.11.0 to 2.12.0

assets/css/wpmenucart-settings.css ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Settings */
2
+ body.woocommerce_page_wpmenucart_options_page {
3
+ background: #fff;
4
+ }
5
+ .wpo_wpmenucart_settings {
6
+ margin-right: 20px;
7
+ margin-top: 10px;
8
+ }
9
+ .wpo_wpmenucart_settings h2 {
10
+ padding: 1em;
11
+ font-weight: 400;
12
+ font-size: 18px;
13
+ margin: 0;
14
+ }
15
+ .wpo_wpmenucart_settings .wpo_wpmenucart_settings_container .wpo_wpmenucart_settings_tab {
16
+ margin: 0;
17
+ }
18
+ .wpo_wpmenucart_settings .wpo_wpmenucart_settings_container .wpo_wpmenucart_settings_tab h2 {
19
+ font-size: 1.3em;
20
+ margin: 1em 0;
21
+ font-weight: 600;
22
+ padding: 0;
23
+ }
24
+ .wpo_wpmenucart_settings .wpo_wpmenucart_settings_container {
25
+ padding: 20px;
26
+ }
27
+ .wpo_wpmenucart_settings .wpo_wpmenucart_settings_container .notice.inline {
28
+ max-width: 590px;
29
+ border-left-color: #51266b;
30
+ }
31
+ .wpo_wpmenucart_settings tr.secondary th,
32
+ .wpo_wpmenucart_settings tr.secondary td {
33
+ padding-top: 0;
34
+ padding-bottom: 10px;
35
+ }
36
+
37
+ /* Pro Ad */
38
+ .menucart-pro-ad {
39
+ border: 1px solid #3D5C99;
40
+ background-color: #EBF5FF;
41
+ border-radius: 5px;
42
+ padding: 15px;
43
+ }
44
+
45
+ .menucart-pro-ad-big {
46
+ margin-top: 15px;
47
+ min-height: 90px;
48
+ position: relative;
49
+ padding-left: 120px;
50
+ clear: both;
51
+ }
52
+
53
+ .menucart-pro-ad-small {
54
+ position: absolute;
55
+ right: 20px;
56
+ top: 20px;
57
+ }
58
+ .menucart-pro-ad img.wpo-helper {
59
+ position: absolute;
60
+ bottom: 64px;
61
+ left: -10px;
62
+ }
assets/css/wpmenucart-settings.min.css ADDED
@@ -0,0 +1 @@
 
1
+ body.woocommerce_page_wpmenucart_options_page{background:#fff}.wpo_wpmenucart_settings{margin-right:20px;margin-top:10px}.wpo_wpmenucart_settings h2{padding:1em;font-weight:400;font-size:18px;margin:0}.wpo_wpmenucart_settings .wpo_wpmenucart_settings_container .wpo_wpmenucart_settings_tab{margin:0}.wpo_wpmenucart_settings .wpo_wpmenucart_settings_container .wpo_wpmenucart_settings_tab h2{font-size:1.3em;margin:1em 0;font-weight:600;padding:0}.wpo_wpmenucart_settings .wpo_wpmenucart_settings_container{padding:20px}.wpo_wpmenucart_settings .wpo_wpmenucart_settings_container .notice.inline{max-width:590px;border-left-color:#51266b}.wpo_wpmenucart_settings tr.secondary td,.wpo_wpmenucart_settings tr.secondary th{padding-top:0;padding-bottom:10px}.menucart-pro-ad{border:1px solid #3d5c99;background-color:#ebf5ff;border-radius:5px;padding:15px}.menucart-pro-ad-big{margin-top:15px;min-height:90px;position:relative;padding-left:120px;clear:both}.menucart-pro-ad-small{position:absolute;right:20px;top:20px}.menucart-pro-ad img.wpo-helper{position:absolute;bottom:64px;left:-10px}
assets/js/wpmenucart-settings.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery( function ( $ ) {
2
+
3
+ $( '.hidden-input' ).on( 'click', function() {
4
+ $( this ).closest( '.hidden-input' ).prev( '.pro-feature' ).show( 'slow' );
5
+ $( this ).closest( '.hidden-input' ).hide();
6
+ } );
7
+
8
+ $( '.hidden-input-icon' ).on( 'click', function() {
9
+ $( '.pro-icon' ).show( 'slow' );
10
+ } );
11
+
12
+ } );
assets/js/wpmenucart-settings.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery(function(a){a(".hidden-input").on("click",function(){a(this).closest(".hidden-input").prev(".pro-feature").show("slow"),a(this).closest(".hidden-input").hide()}),a(".hidden-input-icon").on("click",function(){a(".pro-icon").show("slow")})});
includes/wpmenucart-settings.php CHANGED
@@ -4,6 +4,10 @@ class WpMenuCart_Settings {
4
  public function __construct() {
5
  add_action( 'admin_init', array( &$this, 'init_settings' ) ); // Registers settings
6
  add_action( 'admin_menu', array( &$this, 'wpmenucart_add_page' ) );
 
 
 
 
7
  add_filter( 'plugin_action_links_'.WPO_Menu_Cart()->plugin_basename, array( &$this, 'wpmenucart_add_settings_link' ) );
8
 
9
  //Menu admin, not using for now (very complex ajax structure...)
@@ -366,100 +370,78 @@ class WpMenuCart_Settings {
366
  /**
367
  * Build the options page.
368
  */
369
- public function wpmenucart_options_do_page() {
 
370
  ?>
371
-
372
  <div class="wrap">
373
- <div class="icon32" id="icon-options-general"><br /></div>
374
- <h2><?php _e('WP Menu Cart', 'wp-menu-cart' ) ?></h2>
375
- <?php
376
- // print_r(get_option('wpmenucart')); //for debugging
377
- //print_r($this->get_shop_plugins());
378
- //print_r(apply_filters( 'active_plugins', get_option( 'active_plugins' )));
379
- if (!$this->get_menu_array()) {
380
- ?>
381
- <div class="error" style="width:400px; padding:10px;">
382
- <?php _e( 'You need to create a menu before you can use Menu Cart. Go to <strong>Appearence > Menus</strong> and create menu to add the cart to.', 'wp-menu-cart' ); ?>
383
  </div>
384
- <?php } ?>
385
- <form method="post" action="options.php">
386
- <?php
387
-
 
 
 
 
 
 
388
  settings_fields( 'wpmenucart' );
389
  do_settings_sections( 'wpmenucart' );
390
-
391
  submit_button();
392
  ?>
393
-
394
  </form>
395
- <script type="text/javascript">
396
- jQuery( function ( $ ) {
397
- $('.hidden-input').on('click', function() {
398
- $(this).closest('.hidden-input').prev('.pro-feature').show('slow');
399
- $(this).closest('.hidden-input').hide();
400
- });
401
-
402
- $('.hidden-input-icon').on('click', function() {
403
- $('.pro-icon').show('slow');
404
- });
405
- });
406
- </script>
407
- <style type="text/css">
408
- .menucart-pro-ad {
409
- border: 1px solid #3D5C99;
410
- background-color: #EBF5FF;
411
- border-radius: 5px;
412
- padding: 15px;
413
- }
414
- .menucart-pro-ad-big {
415
- margin-top: 15px;
416
- min-height: 90px;
417
- position: relative;
418
- padding-left: 120px;
419
- clear: both;
420
- }
421
- .menucart-pro-ad-small {
422
- position: absolute;
423
- right: 20px;
424
- top: 20px;
425
- }
426
- img.wpo-helper {
427
- position: absolute;
428
- bottom: 64px;
429
- left: -10px;
430
- }
431
- </style>
432
- <div class="menucart-pro-ad menucart-pro-ad-small">
433
- <?php _e( 'Want To Stand Out?', 'wp-menu-cart' ); ?> <a href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartgopro"><?php _e( 'Go Pro.', 'wp-menu-cart' ); ?></a>
434
- <ul style="font-size: 12px;list-style-type:circle;margin-left: 20px">
435
- <li><?php _e('Unlimited Menus', 'wp-menu-cart' ) ?></li>
436
- <li><?php _e('Choice of 14 icons', 'wp-menu-cart' ) ?></li>
437
- <li><?php _e('Packed with customization options', 'wp-menu-cart' ) ?></li>
438
- <li><?php _e('Access to Shortcode', 'wp-menu-cart' ) ?></li>
439
- <li><?php _e('Top Notch Support', 'wp-menu-cart' ) ?></li>
440
- </ul>
441
- </div>
442
- <div class="menucart-pro-ad menucart-pro-ad-big">
443
- <img src="<?php echo plugins_url( 'assets/images/', dirname(__FILE__) ) . 'wpo-helper.png'; ?>" class="wpo-helper">
444
- <h2><?php _e('Sell In Style With Menu Cart Pro!', 'wp-menu-cart' ) ?></h2>
445
- <br>
446
- <?php _e('Go Pro with Menu Cart Pro. Includes all the great standard features found in this free version plus:', 'wp-menu-cart' ) ?>
447
- <br>
448
- <ul style="list-style-type:circle;margin-left: 40px">
449
- <li><?php _e('A choice of over 10 cart icons', 'wp-menu-cart' ) ?></li>
450
- <li><?php _e('A fully featured cart details flyout', 'wp-menu-cart' ) ?></li>
451
- <li><?php _e('Ability to add cart + flyout to an <strong>unlimited</strong> amount of menus', 'wp-menu-cart' ) ?></li>
452
- <li><?php _e('Adjust the content & URLs via the settings', 'wp-menu-cart' ) ?></li>
453
- <li><?php _e('Enter custom styles and apply custom classes via the settings', 'wp-menu-cart' ) ?></li>
454
- <li><?php _e('WPML compatible', 'wp-menu-cart' ) ?></li>
455
- <li><?php _e('Automatic updates on any great new features', 'wp-menu-cart' ) ?></li>
456
- <li><?php _e('Put the cart anywhere with the [wpmenucart] shortcode', 'wp-menu-cart' ) ?></li>
457
- </ul>
458
- <?php
459
- /* translators: 1,2: <a> tags */
460
- printf (__('Need to see more? %1$sClick here%2$s to check it out. Add a product to your cart and watch what happens!', 'wp-menu-cart' ), '<a href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartadmore">','</a>'); ?><br><br>
461
- <a class="button button-primary" style="text-align: center;margin: 0px auto" href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartadbuy"><?php _e('Buy Now', 'wp-menu-cart' ) ?></a>
462
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
463
  </div>
464
  <?php
465
  }
4
  public function __construct() {
5
  add_action( 'admin_init', array( &$this, 'init_settings' ) ); // Registers settings
6
  add_action( 'admin_menu', array( &$this, 'wpmenucart_add_page' ) );
7
+ add_action( 'wpo_wpmenucart_before_settings_content', array( &$this, 'nav_error_notice' ) );
8
+ add_action( 'wpo_wpmenucart_settings_content', array( &$this, 'display_settings' ) );
9
+ add_action( 'wpo_wpmenucart_after_settings_content', array( &$this, 'display_pro_ad' ) );
10
+
11
  add_filter( 'plugin_action_links_'.WPO_Menu_Cart()->plugin_basename, array( &$this, 'wpmenucart_add_settings_link' ) );
12
 
13
  //Menu admin, not using for now (very complex ajax structure...)
370
  /**
371
  * Build the options page.
372
  */
373
+ public function wpmenucart_options_do_page() {
374
+ settings_errors();
375
  ?>
 
376
  <div class="wrap">
377
+ <div class="wpo_wpmenucart_settings">
378
+ <h2><?php _e( 'WP Menu Cart', 'wp-menu-cart' ); ?></h2>
379
+ <div class="wpo_wpmenucart_settings_container">
380
+ <?php do_action( 'wpo_wpmenucart_before_settings_content' ); ?>
381
+ <?php do_action( 'wpo_wpmenucart_settings_content' ); ?>
382
+ <?php do_action( 'wpo_wpmenucart_after_settings_content' ); ?>
 
 
 
 
383
  </div>
384
+ </div>
385
+ </div>
386
+ <?php
387
+ }
388
+
389
+ public function display_settings() {
390
+ ?>
391
+ <div class="wpo_wpmenucart_settings_tab">
392
+ <form method="post" action="options.php">
393
+ <?php
394
  settings_fields( 'wpmenucart' );
395
  do_settings_sections( 'wpmenucart' );
 
396
  submit_button();
397
  ?>
 
398
  </form>
399
+ </div>
400
+ <?php
401
+ }
402
+
403
+ public function nav_error_notice() {
404
+ if ( ! $this->get_menu_array() && ! WPO_Menu_Cart()->is_block_theme() ) {
405
+ ?>
406
+ <div class="notice notice-error">
407
+ <?php _e( 'You need to create a menu before you can use Menu Cart. Go to <strong>Appearence > Menus</strong> and create menu to add the cart to.', 'wp-menu-cart' ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  </div>
409
+ <?php
410
+ }
411
+ }
412
+
413
+ public function display_pro_ad() {
414
+ ?>
415
+ <div class="menucart-pro-ad menucart-pro-ad-small">
416
+ <?php _e( 'Want To Stand Out?', 'wp-menu-cart' ); ?> <a href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartgopro"><?php _e( 'Go Pro.', 'wp-menu-cart' ); ?></a>
417
+ <ul style="font-size: 12px;list-style-type:circle;margin-left: 20px">
418
+ <li><?php _e('Unlimited Menus', 'wp-menu-cart' ) ?></li>
419
+ <li><?php _e('Choice of 14 icons', 'wp-menu-cart' ) ?></li>
420
+ <li><?php _e('Packed with customization options', 'wp-menu-cart' ) ?></li>
421
+ <li><?php _e('Access to Shortcode', 'wp-menu-cart' ) ?></li>
422
+ <li><?php _e('Top Notch Support', 'wp-menu-cart' ) ?></li>
423
+ </ul>
424
+ </div>
425
+ <div class="menucart-pro-ad menucart-pro-ad-big">
426
+ <img src="<?php echo plugins_url( 'assets/images/', dirname(__FILE__) ) . 'wpo-helper.png'; ?>" class="wpo-helper">
427
+ <h2><?php _e('Sell In Style With Menu Cart Pro!', 'wp-menu-cart' ) ?></h2>
428
+ <br>
429
+ <?php _e('Go Pro with Menu Cart Pro. Includes all the great standard features found in this free version plus:', 'wp-menu-cart' ) ?>
430
+ <br>
431
+ <ul style="list-style-type:circle;margin-left: 40px">
432
+ <li><?php _e('A choice of over 10 cart icons', 'wp-menu-cart' ) ?></li>
433
+ <li><?php _e('A fully featured cart details flyout', 'wp-menu-cart' ) ?></li>
434
+ <li><?php _e('Ability to add cart + flyout to an <strong>unlimited</strong> amount of menus', 'wp-menu-cart' ) ?></li>
435
+ <li><?php _e('Adjust the content & URLs via the settings', 'wp-menu-cart' ) ?></li>
436
+ <li><?php _e('Enter custom styles and apply custom classes via the settings', 'wp-menu-cart' ) ?></li>
437
+ <li><?php _e('WPML compatible', 'wp-menu-cart' ) ?></li>
438
+ <li><?php _e('Automatic updates on any great new features', 'wp-menu-cart' ) ?></li>
439
+ <li><?php _e('Put the cart anywhere with the [wpmenucart] shortcode', 'wp-menu-cart' ) ?></li>
440
+ </ul>
441
+ <?php
442
+ /* translators: 1,2: <a> tags */
443
+ printf (__('Need to see more? %1$sClick here%2$s to check it out. Add a product to your cart and watch what happens!', 'wp-menu-cart' ), '<a href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartadmore">','</a>'); ?><br><br>
444
+ <a class="button button-primary" style="text-align: center;margin: 0px auto" href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartadbuy"><?php _e('Buy Now', 'wp-menu-cart' ) ?></a>
445
  </div>
446
  <?php
447
  }
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: pomegranate, jprummer, alexmigf, yordansoares, kluver, dpeyou
3
  Donate link: https://wpovernight.com/downloads/menu-cart-pro/
4
  Tags: woocommerce, menu, bar, cart, basket, header, shopping cart, navigation, edd, ecommerce, eshop, wp-ecommerce, jigoshop, wpec
5
  Requires at least: 3.4
6
- Tested up to: 5.9
7
  Requires PHP: 5.3
8
- Stable tag: 2.11.0
9
 
10
  Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
11
 
@@ -85,6 +85,11 @@ Once the plugin is activated navigate to Settings > Menu Cart Setup. Select your
85
 
86
  == Changelog ==
87
 
 
 
 
 
 
88
  = 2.11.0 =
89
  * New: Support for Full Site Editing navigation blocks (WP5.9+)
90
  * Tested up to WooCommerce 6.4
3
  Donate link: https://wpovernight.com/downloads/menu-cart-pro/
4
  Tags: woocommerce, menu, bar, cart, basket, header, shopping cart, navigation, edd, ecommerce, eshop, wp-ecommerce, jigoshop, wpec
5
  Requires at least: 3.4
6
+ Tested up to: 6.0
7
  Requires PHP: 5.3
8
+ Stable tag: 2.12.0
9
 
10
  Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
11
 
85
 
86
  == Changelog ==
87
 
88
+ = 2.12.0 =
89
+ * Security: escape URL in admin notice
90
+ * Tweak: Settings styles & colors
91
+ * Tested up to WooCommerce 6.6 & WP 6.0
92
+
93
  = 2.11.0 =
94
  * New: Support for Full Site Editing navigation blocks (WP5.9+)
95
  * Tested up to WooCommerce 6.4
wp-menu-cart.php CHANGED
@@ -3,14 +3,14 @@
3
  * Plugin Name: WooCommerce Menu Cart
4
  * Plugin URI: https://wpovernight.com/downloads/menu-cart-pro/
5
  * Description: Extension for your e-commerce plugin (WooCommerce, WP-Ecommerce, Easy Digital Downloads, Eshop or Jigoshop) that places a cart icon with number of items and total cost in the menu bar. Activate the plugin, set your options and you're ready to go! Will automatically conform to your theme styles.
6
- * Version: 2.11.0
7
  * Author: WP Overnight
8
  * Author URI: https://wpovernight.com/
9
  * License: GPLv2 or later
10
  * License URI: https://opensource.org/licenses/gpl-license.php
11
  * Text Domain: wp-menu-cart
12
  * WC requires at least: 2.0.0
13
- * WC tested up to: 6.4
14
  */
15
 
16
  if ( ! defined( 'ABSPATH' ) ) {
@@ -21,7 +21,7 @@ if ( ! class_exists( 'WpMenuCart' ) && ! class_exists( 'WPO_Menu_Cart_Pro' ) ) :
21
 
22
  class WpMenuCart {
23
 
24
- protected $plugin_version = '2.11.0';
25
  public $plugin_slug;
26
  public $plugin_basename;
27
  public $options;
@@ -59,7 +59,8 @@ class WpMenuCart {
59
  add_action( 'init', array( $this, 'load_classes' ) );
60
 
61
  // enqueue scripts & styles
62
- add_action( 'wp_enqueue_scripts', array( &$this, 'load_scripts_styles' ) ); // load frontend scripts
 
63
  add_action( 'init', array( &$this, 'register_cart_navigation_block' ) ); // register cart navigation block
64
  add_action( 'wp_default_styles', array( &$this, 'load_block_editor_styles' ), 99 ); // load block editor styles
65
 
@@ -261,11 +262,11 @@ class WpMenuCart {
261
  /**
262
  * Fallback admin notices
263
  *
264
- * @return string Fallack notice.
265
  */
266
  public function need_shop() {
267
- $error = __( 'WP Menu Cart could not detect an active shop plugin. Make sure you have activated at least one of the supported plugins.' , 'wp-menu-cart' );
268
- $message = sprintf('<div class="error"><p>%1$s <a href="%2$s">%3$s</a></p></div>', $error, add_query_arg( 'hide_wpmenucart_shop_check', 'true' ), __( 'Hide this notice', 'wp-menu-cart' ) );
269
  echo $message;
270
  }
271
 
@@ -426,9 +427,26 @@ class WpMenuCart {
426
  }
427
 
428
  /**
429
- * Load CSS
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
430
  */
431
- public function load_scripts_styles() {
432
  if ( isset( $this->options['icon_display'] ) ) {
433
  wp_enqueue_style( 'wpmenucart-icons', plugins_url( '/assets/css/wpmenucart-icons'.$this->asset_suffix.'.css', __FILE__ ), array(), WPMENUCART_VERSION, 'all' );
434
  wp_add_inline_style( 'wpmenucart-icons', $this->get_parsed_font_css() );
3
  * Plugin Name: WooCommerce Menu Cart
4
  * Plugin URI: https://wpovernight.com/downloads/menu-cart-pro/
5
  * Description: Extension for your e-commerce plugin (WooCommerce, WP-Ecommerce, Easy Digital Downloads, Eshop or Jigoshop) that places a cart icon with number of items and total cost in the menu bar. Activate the plugin, set your options and you're ready to go! Will automatically conform to your theme styles.
6
+ * Version: 2.12.0
7
  * Author: WP Overnight
8
  * Author URI: https://wpovernight.com/
9
  * License: GPLv2 or later
10
  * License URI: https://opensource.org/licenses/gpl-license.php
11
  * Text Domain: wp-menu-cart
12
  * WC requires at least: 2.0.0
13
+ * WC tested up to: 6.6
14
  */
15
 
16
  if ( ! defined( 'ABSPATH' ) ) {
21
 
22
  class WpMenuCart {
23
 
24
+ protected $plugin_version = '2.12.0';
25
  public $plugin_slug;
26
  public $plugin_basename;
27
  public $options;
59
  add_action( 'init', array( $this, 'load_classes' ) );
60
 
61
  // enqueue scripts & styles
62
+ add_action( 'admin_enqueue_scripts', array( &$this, 'load_admin_assets' ) );
63
+ add_action( 'wp_enqueue_scripts', array( &$this, 'load_frontend_assets' ) );
64
  add_action( 'init', array( &$this, 'register_cart_navigation_block' ) ); // register cart navigation block
65
  add_action( 'wp_default_styles', array( &$this, 'load_block_editor_styles' ), 99 ); // load block editor styles
66
 
262
  /**
263
  * Fallback admin notices
264
  *
265
+ * @return void
266
  */
267
  public function need_shop() {
268
+ $error = __( 'WP Menu Cart could not detect an active shop plugin. Make sure you have activated at least one of the supported plugins.' , 'wp-menu-cart' );
269
+ $message = sprintf( '<div class="error"><p>%1$s <a href="%2$s">%3$s</a></p></div>', $error, esc_url( add_query_arg( 'hide_wpmenucart_shop_check', 'true' ) ), __( 'Hide this notice', 'wp-menu-cart' ) );
270
  echo $message;
271
  }
272
 
427
  }
428
 
429
  /**
430
+ * Load admin assets
431
+ */
432
+ public function load_admin_assets() {
433
+ if ( is_admin() && get_current_screen()->id == 'woocommerce_page_wpmenucart_options_page' ) {
434
+ wp_enqueue_style( 'wpmenucart-settings-styles', plugins_url( '/assets/css/wpmenucart-settings'.$this->asset_suffix.'.css', __FILE__ ), array(), WPMENUCART_VERSION );
435
+
436
+ wp_enqueue_script(
437
+ 'wpmenucart-settings-scripts',
438
+ plugins_url( '/assets/js/wpmenucart-settings'.$this->asset_suffix.'.js', __FILE__ ),
439
+ array( 'jquery' ),
440
+ WPMENUCART_VERSION,
441
+ true
442
+ );
443
+ }
444
+ }
445
+
446
+ /**
447
+ * Load frontend assets
448
  */
449
+ public function load_frontend_assets() {
450
  if ( isset( $this->options['icon_display'] ) ) {
451
  wp_enqueue_style( 'wpmenucart-icons', plugins_url( '/assets/css/wpmenucart-icons'.$this->asset_suffix.'.css', __FILE__ ), array(), WPMENUCART_VERSION, 'all' );
452
  wp_add_inline_style( 'wpmenucart-icons', $this->get_parsed_font_css() );