Responsive Menu - Version 4.0.1

Version Description

(15th Dec 2020) = * Enhancement: Hide WordPress admin bar from menu preview * Enhancement: Added notice message when WordPress menu doesn't exist * Enhancement: Added admin notice banner for new version update * Enhancement: Improved menu customizer options visibility * Bug: Fixed some php notices and errors

Download this release

Release Info

Developer expresstech
Plugin Icon 128x128 Responsive Menu
Version 4.0.1
Comparing to
See all releases

Code changes from version 4.0.0 to 4.0.1

config/routing.php CHANGED
@@ -67,10 +67,20 @@ if(is_admin()):
67
  add_option( 'is_rmp_new_version', 1 );
68
  }
69
 
 
70
  wp_send_json_success( ['redirect' => admin_url('edit.php?post_type=rmp_menu')] );
71
 
72
  });
73
 
 
 
 
 
 
 
 
 
 
74
  else:
75
  add_action('template_redirect', function() {
76
  $controller = get_responsive_menu_service('front_controller');
67
  add_option( 'is_rmp_new_version', 1 );
68
  }
69
 
70
+ update_option( 'rm_upgrade_admin_notice', true );
71
  wp_send_json_success( ['redirect' => admin_url('edit.php?post_type=rmp_menu')] );
72
 
73
  });
74
 
75
+ add_action( "wp_ajax_rmp_version_admin_notice_dismiss", "rmp_version_admin_notice_dismiss");
76
+ /**
77
+ * Function to hide the version upgrade admin notice permanent.
78
+ */
79
+ function rmp_version_admin_notice_dismiss() {
80
+ update_option( 'rm_upgrade_admin_notice', true );
81
+ }
82
+
83
+
84
  else:
85
  add_action('template_redirect', function() {
86
  $controller = get_responsive_menu_service('front_controller');
config/twig.php CHANGED
@@ -68,12 +68,14 @@ else:
68
 
69
  $twig->addFunction(new Twig_SimpleFunction('menu_items', function($options) {
70
 
71
- if($options['theme_location_menu'])
 
72
  $menu = get_term(get_nav_menu_locations()[$options['theme_location_menu']], 'nav_menu')->name;
73
- elseif($options['menu_to_use'])
74
  $menu = $options['menu_to_use'];
75
- else
76
  $menu = get_terms('nav_menu')[0]->slug;
 
77
 
78
  return wp_get_nav_menu_items($menu);
79
  }));
68
 
69
  $twig->addFunction(new Twig_SimpleFunction('menu_items', function($options) {
70
 
71
+ $menu = '';
72
+ if( $options['theme_location_menu'] ) {
73
  $menu = get_term(get_nav_menu_locations()[$options['theme_location_menu']], 'nav_menu')->name;
74
+ } elseif( $options['menu_to_use'] ) {
75
  $menu = $options['menu_to_use'];
76
+ } elseif( ! empty( get_terms('nav_menu')[0]->slug ) ) {
77
  $menu = get_terms('nav_menu')[0]->slug;
78
+ }
79
 
80
  return wp_get_nav_menu_items($menu);
81
  }));
config/wp/scripts.php CHANGED
@@ -65,6 +65,8 @@ if(isset($_GET['page']) && $_GET['page'] == 'responsive-menu'):
65
  );
66
  wp_enqueue_script('responsive-menu-additional-js');
67
 
 
 
68
  });
69
  endif;
70
 
65
  );
66
  wp_enqueue_script('responsive-menu-additional-js');
67
 
68
+ wp_enqueue_style('resposnsive-menu-notice-style', plugin_dir_url(dirname(dirname(__FILE__))) . 'public/css/admin/resposnsive-menu-notice.css', null, RMP_PLUGIN_VERSION );
69
+
70
  });
71
  endif;
72
 
imgs/responsive-menu-logo.png ADDED
Binary file
public/css/admin/resposnsive-menu-notice.css ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ div.notice-responsive-menu {
2
+ display: flex;
3
+ align-items: center;
4
+ border-left-color: #15a4fa;
5
+ padding: 10px;
6
+ }
7
+
8
+ div.notice-responsive-menu .notice-responsive-menu-logo {
9
+ margin-right: 10px;
10
+ }
11
+
12
+ div.notice-responsive-menu .notice-responsive-menu-message h4,
13
+ div.notice-responsive-menu .notice-responsive-menu-message p {
14
+ margin: 0;
15
+ }
16
+
17
+ div.notice-responsive-menu .notice-responsive-menu-action {
18
+ position: absolute;
19
+ right: 40px;
20
+ }
21
+
22
+ @media screen and (max-width: 1150px) {
23
+ div.notice-responsive-menu {
24
+ flex-direction: column;
25
+ align-items: flex-start;
26
+ }
27
+ div.notice-responsive-menu .notice-responsive-menu-action {
28
+ margin-top: 20px;
29
+ }
30
+ }
31
+
32
+ div.notice-responsive-menu .notice-responsive-menu-action a {
33
+ text-decoration: none;
34
+ color: #fff;
35
+ padding: 8px 15px;
36
+ background: #36bef7;
37
+ font-size: 15px;
38
+ font-weight: 700;
39
+ border:1px solid #1d9cd2;
40
+ }
41
+ div.notice-responsive-menu .notice-responsive-menu-action a:hover {
42
+ opacity: 0.8;
43
+ }
44
+
45
+ .responsive-menu-license-upgrade-link {
46
+ color: #f80668;
47
+ font-weight: 600;
48
+ }
public/js/admin/additional.js CHANGED
@@ -49,7 +49,7 @@ jQuery(function($) {
49
  /* <-- End Preview Options */
50
 
51
  /** Move to new version */
52
- jQuery('#rmp-rollback-version').click( function(e) {
53
  e.preventDefault();
54
  jQuery.ajax({
55
  url: ajaxurl,
@@ -67,4 +67,14 @@ jQuery(function($) {
67
  });
68
  });
69
 
 
 
 
 
 
 
 
 
 
 
70
  });
49
  /* <-- End Preview Options */
50
 
51
  /** Move to new version */
52
+ jQuery('.rmp-upgrade-version').on( 'click', function(e) {
53
  e.preventDefault();
54
  jQuery.ajax({
55
  url: ajaxurl,
67
  });
68
  });
69
 
70
+ /** Call ajax to hide admin notice permanent. */
71
+ $( '.rmp-version-upgrade-notice' ).on( 'click', '.notice-dismiss', function( event ) {
72
+ event.preventDefault();
73
+ jQuery.ajax( {
74
+ type: "POST",
75
+ url: ajaxurl,
76
+ data: "action=rmp_version_admin_notice_dismiss",
77
+ });
78
+ });
79
+
80
  });
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: expresstech,responsivemenu
3
  Tags: responsive, mega menu, navigation, mobile, hamburger
4
  Requires at least: 3.6
5
  Tested up to: 5.6
6
- Stable tag: 4.0.0
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -69,7 +69,7 @@ PHP 5.5+
69
  * Integrated header bar
70
  * Let the plugin provide and style your main menu as well as hamburger menu
71
 
72
- For more reasons to go Pro, please visit [this page](https://responsive.menu#why-go-pro).
73
 
74
  [youtube https://www.youtube.com/watch?v=aj6ba0tGKPg]
75
 
@@ -111,6 +111,13 @@ To view our FAQ, please go to [https://responsive.menu/faq/](https://responsive.
111
 
112
  == Changelog ==
113
 
 
 
 
 
 
 
 
114
  = 4.0.0 (7th Dec 2020) =
115
  * New and improved admin user interface
116
  * Added menu customizer with live preview features
3
  Tags: responsive, mega menu, navigation, mobile, hamburger
4
  Requires at least: 3.6
5
  Tested up to: 5.6
6
+ Stable tag: 4.0.1
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
69
  * Integrated header bar
70
  * Let the plugin provide and style your main menu as well as hamburger menu
71
 
72
+ For more reasons to go Pro, please visit [this page](https://responsive.menu#why-go-pro) or check our [roadmap](https://next.expresstech.io/responsive-menu)
73
 
74
  [youtube https://www.youtube.com/watch?v=aj6ba0tGKPg]
75
 
111
 
112
  == Changelog ==
113
 
114
+ = 4.0.1 (15th Dec 2020) =
115
+ * Enhancement: Hide WordPress admin bar from menu preview
116
+ * Enhancement: Added notice message when WordPress menu doesn't exist
117
+ * Enhancement: Added admin notice banner for new version update
118
+ * Enhancement: Improved menu customizer options visibility
119
+ * Bug: Fixed some php notices and errors
120
+
121
  = 4.0.0 (7th Dec 2020) =
122
  * New and improved admin user interface
123
  * Added menu customizer with live preview features
responsive-menu.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Responsive Menu
5
  Plugin URI: https://expresstech.io
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
- Version: 4.0.0
8
  Author: ExpressTech
9
  Text Domain: responsive-menu
10
  Author URI: https://responsive.menu
@@ -16,9 +16,11 @@ Tags: responsive, menu, responsive menu, mega menu, max mega menu, max menu
16
  * Constant as plugin version.
17
  */
18
  if ( ! defined( 'RMP_PLUGIN_VERSION' ) ) {
19
- define( 'RMP_PLUGIN_VERSION', '4.0.0' );
20
  }
21
 
 
 
22
  add_action('admin_init', 'check_responsive_menu_php_version');
23
  function check_responsive_menu_php_version() {
24
  if(version_compare(PHP_VERSION, '5.4', '<')):
@@ -41,6 +43,36 @@ if(version_compare(PHP_VERSION, '5.4', '<'))
41
 
42
  if ( empty( get_option( 'is_rmp_new_version') ) && ! empty( get_option('responsive_menu_version') ) ) {
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  add_action( 'admin_notices', 'og_pro_deactivate_pro_version_notice');
45
 
46
  function og_pro_deactivate_pro_version_notice() {
4
  Plugin Name: Responsive Menu
5
  Plugin URI: https://expresstech.io
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
+ Version: 4.0.1
8
  Author: ExpressTech
9
  Text Domain: responsive-menu
10
  Author URI: https://responsive.menu
16
  * Constant as plugin version.
17
  */
18
  if ( ! defined( 'RMP_PLUGIN_VERSION' ) ) {
19
+ define( 'RMP_PLUGIN_VERSION', '4.0.1' );
20
  }
21
 
22
+ define('RESPONSIVE_MENU_URL', plugin_dir_url( __FILE__ ) );
23
+
24
  add_action('admin_init', 'check_responsive_menu_php_version');
25
  function check_responsive_menu_php_version() {
26
  if(version_compare(PHP_VERSION, '5.4', '<')):
43
 
44
  if ( empty( get_option( 'is_rmp_new_version') ) && ! empty( get_option('responsive_menu_version') ) ) {
45
 
46
+ /**
47
+ * Add admin notice to upgrade the plugin license.
48
+ */
49
+ add_action( 'admin_notices', 'rmp_move_new_version_admin_notice' );
50
+ function rmp_move_new_version_admin_notice() {
51
+
52
+ if ( ! empty( get_option( 'rm_upgrade_admin_notice' ) ) ) {
53
+ return;
54
+ }
55
+
56
+ if ( empty( $_GET['page'] ) || 'responsive-menu' !== $_GET['page'] ) {
57
+ return;
58
+ }
59
+ ?>
60
+
61
+ <div class="notice-responsive-menu notice error is-dismissible rmp-version-upgrade-notice">
62
+ <div class="notice-responsive-menu-logo">
63
+ <img src="<?php echo RESPONSIVE_MENU_URL;?>/imgs/responsive-menu-logo.png" width="60" height="60" alt="logo" />
64
+ </div>
65
+ <div class="notice-responsive-menu-message">
66
+ <h4 style="font-weight: 700;"><?php _e('Responsive Menu', 'responsive-menu-pro'); ?></h4>
67
+ <p><?php _e( 'Try out our new version with improved layout, live preview and many more.', 'responsive-menu-pro' ); ?></p>
68
+ </div>
69
+ <div class="notice-responsive-menu-action">
70
+ <a href="javascript:void(0)" class="rmp-upgrade-version" > <?php _e('Try, New version', 'responsive-menu-pro'); ?> </a>
71
+ </div>
72
+ </div>
73
+ <?php
74
+ }
75
+
76
  add_action( 'admin_notices', 'og_pro_deactivate_pro_version_notice');
77
 
78
  function og_pro_deactivate_pro_version_notice() {
v4.0.0/assets/admin/js/rmp-admin.js CHANGED
@@ -129,7 +129,7 @@ jQuery( document ).ready( function( jQuery ) {
129
 
130
  const version = jQuery( '#rmp-versions' ).val();
131
 
132
- if ( '3.1.29' === version ) {
133
  jQuery.ajax( {
134
  url: rmpObject.ajaxURL,
135
  data: { action: 'rmp_rollback_version' },
@@ -154,6 +154,22 @@ jQuery( document ).ready( function( jQuery ) {
154
  jQuery( '#rmp-preview-iframe-loader' ).hide();
155
  jQuery( '#rmp-menu-update-notification').remove();
156
  jQuery('#rmp-preview-iframe').show();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  });
158
 
159
  /**
@@ -772,4 +788,33 @@ jQuery( document ).ready( function( jQuery ) {
772
 
773
  });
774
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
775
  } );
129
 
130
  const version = jQuery( '#rmp-versions' ).val();
131
 
132
+ if ( '3.1.30' === version ) {
133
  jQuery.ajax( {
134
  url: rmpObject.ajaxURL,
135
  data: { action: 'rmp_rollback_version' },
154
  jQuery( '#rmp-preview-iframe-loader' ).hide();
155
  jQuery( '#rmp-menu-update-notification').remove();
156
  jQuery('#rmp-preview-iframe').show();
157
+
158
+ jQuery('#rmp-preview-iframe').contents().find( 'a' ).on( 'click', function(e) {
159
+ e.stopPropagation();
160
+ e.preventDefault();
161
+ var url = jQuery(this).attr('href');
162
+
163
+ if ( url.indexOf('?') >= 0 ) {
164
+ url = url + '&rmp_preview_mode=true';
165
+ } else {
166
+ url = url + '?rmp_preview_mode=true';
167
+ }
168
+
169
+ jQuery('#rmp-preview-iframe').attr('src', url );
170
+
171
+ });
172
+
173
  });
174
 
175
  /**
788
 
789
  });
790
 
791
+ /**
792
+ * Function to manage menu container animation options.
793
+ *
794
+ * @param {String} optionValue
795
+ */
796
+ function updateMenuContainerAnimationOptions( optionValue ) {
797
+
798
+ if ( 'push' === optionValue ) {
799
+ jQuery( '#rmp-page-wrapper' ).parents('.rmp-input-control-wrapper').fadeIn();
800
+ } else {
801
+ jQuery( '#rmp-page-wrapper' ).parents('.rmp-input-control-wrapper').fadeOut();
802
+ }
803
+
804
+ if ( 'fade' === optionValue ) {
805
+ jQuery('#rmp-menu-appear-from option[value="top"]').hide();
806
+ jQuery('#rmp-menu-appear-from option[value="bottom"]').hide();
807
+ } else {
808
+ jQuery('#rmp-menu-appear-from option[value="top"]').show();
809
+ jQuery('#rmp-menu-appear-from option[value="bottom"]').show();
810
+ }
811
+ }
812
+
813
+ // Menu container animation type and their options.
814
+ updateMenuContainerAnimationOptions( jQuery( '#rmp-animation-type' ).val() );
815
+ jQuery( '#rmp-editor-wrapper' ).on( 'change', '#rmp-animation-type', function( e ) {
816
+ const optionValue = jQuery( this ).val();
817
+ updateMenuContainerAnimationOptions( optionValue );
818
+ });
819
+
820
  } );
v4.0.0/assets/admin/scss/admin.css CHANGED
@@ -1587,7 +1587,7 @@ margin: 5px 0px 10px;
1587
  }
1588
 
1589
  .device-icons-group .device-icon .device {
1590
- top: 15px;
1591
  right: 0px;
1592
  font-size: 30px;
1593
  position: relative;
@@ -2216,10 +2216,17 @@ button.menu-save {
2216
  right: 10px;
2217
  }
2218
 
2219
- .rmp-theme-page {
 
2220
  margin: 2% 0;
2221
  }
2222
 
 
 
 
 
 
 
2223
  .rmp-theme-page .pagination {
2224
  display: inline-flex;
2225
  }
@@ -2619,4 +2626,11 @@ div.notice-responsive-menu .notice-responsive-menu-action a:hover {
2619
 
2620
  .upgrade-options .upgrade-notes p {
2621
  font-size: 14px;
2622
- }
 
 
 
 
 
 
 
1587
  }
1588
 
1589
  .device-icons-group .device-icon .device {
1590
+ top: 12px;
1591
  right: 0px;
1592
  font-size: 30px;
1593
  position: relative;
2216
  right: 10px;
2217
  }
2218
 
2219
+ .rmp-theme-page,
2220
+ .rmp-roadmap-page {
2221
  margin: 2% 0;
2222
  }
2223
 
2224
+ #rmp-roadmap-iframe {
2225
+ width: 100%;
2226
+ min-height: 700px;
2227
+ height: 100%;
2228
+ }
2229
+
2230
  .rmp-theme-page .pagination {
2231
  display: inline-flex;
2232
  }
2626
 
2627
  .upgrade-options .upgrade-notes p {
2628
  font-size: 14px;
2629
+ }
2630
+
2631
+ .rmp-admin-notice {
2632
+ margin-top: 10px;
2633
+ color: #e23f08;
2634
+ font-size: 12px;
2635
+ line-height: 20px;
2636
+ }
v4.0.0/assets/scss/main.scss CHANGED
@@ -293,7 +293,7 @@
293
  height: ( $menu_item_height + $menu_item_height_unit);
294
  line-height: ( $menu_item_line_height + $menu_item_line_height_unit );
295
  margin-right: 10px;
296
- font-size: ( $menu_item_font_size + $menu_item_font_size_unit );
297
  }
298
  }
299
 
293
  height: ( $menu_item_height + $menu_item_height_unit);
294
  line-height: ( $menu_item_line_height + $menu_item_line_height_unit );
295
  margin-right: 10px;
296
+ font-size: ( $menu_item_font_size * 1.5 ) + $menu_item_font_size_unit;
297
  }
298
  }
299
 
v4.0.0/inc/classes/class-admin.php CHANGED
@@ -295,6 +295,29 @@ class Admin {
295
  array( $this, 'rmp_theme_admin_page' )
296
  );
297
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298
  }
299
 
300
  /**
295
  array( $this, 'rmp_theme_admin_page' )
296
  );
297
 
298
+ add_submenu_page (
299
+ 'edit.php?post_type=rmp_menu',
300
+ __( 'Roadmap', 'responsive-menu-pro' ),
301
+ __( 'Roadmap', 'responsive-menu-pro' ),
302
+ 'manage_options',
303
+ 'roadmap',
304
+ array( $this, 'rmp_roadmap_admin_page' )
305
+ );
306
+
307
+ }
308
+
309
+ /**
310
+ * Add template for roadmap page.
311
+ *
312
+ * @since 4.0.1
313
+ */
314
+ public function rmp_roadmap_admin_page() {
315
+ // Check user capabilities.
316
+ if ( ! current_user_can( 'manage_options' ) ) {
317
+ return;
318
+ }
319
+
320
+ include_once RMP_PLUGIN_PATH_V4 . '/templates/rmp-roadmap.php';
321
  }
322
 
323
  /**
v4.0.0/inc/classes/class-assets.php CHANGED
@@ -42,6 +42,25 @@ class Assets {
42
 
43
  add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ] );
44
  add_action('admin_head', [ $this, 'admin_custom_style_inline'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  }
46
 
47
  /**
42
 
43
  add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ] );
44
  add_action('admin_head', [ $this, 'admin_custom_style_inline'] );
45
+ add_action('admin_head', [ $this, 'rmp_menu_editor_style_inline'] );
46
+ }
47
+
48
+ /**
49
+ * Add custom css to manage headerbar extra padding.
50
+ *
51
+ * @since 4.0.1
52
+ */
53
+ function rmp_menu_editor_style_inline() {
54
+
55
+ $editor = filter_input( INPUT_GET, 'editor', FILTER_SANITIZE_STRING );
56
+ if ( ! empty( $editor ) && get_post_type() == 'rmp_menu' && is_admin() ) {
57
+ echo '<style>
58
+ html.wp-toolbar {
59
+ margin: 0;
60
+ padding: 0 !important;
61
+ }
62
+ </style>';
63
+ }
64
  }
65
 
66
  /**
v4.0.0/inc/classes/class-editor-manager.php CHANGED
@@ -44,6 +44,12 @@ class Editor_Manager {
44
  add_action('wp_ajax_rmp_save_menu_action', array( $this, 'rmp_save_options' ) );
45
  add_action('wp_ajax_rmp_mega_menu_item_enable', array( $this, 'enable_mega_menu_item' ) );
46
  add_action('wp_ajax_rmp_save_mega_menu_item', array( $this, 'rmp_save_mega_menu_item' ) );
 
 
 
 
 
 
47
  }
48
 
49
  /**
44
  add_action('wp_ajax_rmp_save_menu_action', array( $this, 'rmp_save_options' ) );
45
  add_action('wp_ajax_rmp_mega_menu_item_enable', array( $this, 'enable_mega_menu_item' ) );
46
  add_action('wp_ajax_rmp_save_mega_menu_item', array( $this, 'rmp_save_mega_menu_item' ) );
47
+
48
+ // Hide the wp admin bar from preview iframe.
49
+ if ( ! empty( $_GET['rmp_preview_mode'] ) ) {
50
+ add_filter( 'show_admin_bar', '__return_false' );
51
+ }
52
+
53
  }
54
 
55
  /**
v4.0.0/templates/new-menu-wizard.php CHANGED
@@ -66,6 +66,20 @@ $option_manager = Option_Manager::get_instance();
66
  }
67
  ?>
68
  </select>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  </div>
70
 
71
  <div class="rmp-input-control-wrapper input-group">
66
  }
67
  ?>
68
  </select>
69
+ <?php
70
+ if( empty( $menus ) ) {
71
+ printf(
72
+ '<p class="rmp-admin-notice">
73
+ <span class="dashicons dashicons-warning"></span>
74
+ <span>%s </span>
75
+ <a href="%s"> %s </a>
76
+ </p>',
77
+ esc_html__( 'Notice : You don\'t have any existing WordPress menus, please ', 'responsive-menu-pro'),
78
+ esc_url( admin_url() . 'nav-menus.php' ),
79
+ esc_html__( 'create wp menu', 'responsive-menu-pro')
80
+ );
81
+ }
82
+ ?>
83
  </div>
84
 
85
  <div class="rmp-input-control-wrapper input-group">
v4.0.0/templates/rmp-editor.php CHANGED
@@ -2371,6 +2371,15 @@ $options = $option_manager->get_options( $menu_id );
2371
  );
2372
 
2373
  echo $ui_manager->start_group_controls();
 
 
 
 
 
 
 
 
 
2374
  echo $control_manager->add_select_control( [
2375
  'label' => __('Direction','responsive-menu-pro'),
2376
  'id' => 'rmp-menu-appear-from',
@@ -2382,15 +2391,6 @@ $options = $option_manager->get_options( $menu_id );
2382
  'value' => rmp_get_value($options,'menu_appear_from')
2383
  ] );
2384
 
2385
- echo $control_manager->add_select_control( [
2386
- 'label' => __('Type','responsive-menu-pro'),
2387
- 'id' => 'rmp-animation-type',
2388
- 'name' => 'menu[animation_type]',
2389
- 'options' => [ 'slide' => 'Slide' , 'push' => 'Push', 'fade' => 'Fade (PRO)' ],
2390
- 'value' => rmp_get_value($options,'animation_type')
2391
- ] );
2392
-
2393
-
2394
  echo $ui_manager->end_group_controls();
2395
 
2396
  echo $control_manager->add_text_input_control( [
@@ -2521,7 +2521,7 @@ $options = $option_manager->get_options( $menu_id );
2521
  <div id="rmp-preview-iframe-loader">
2522
  <img src="https://demo.responsive.menu/wp-content/themes/demo-main/static/imgs/giphy.webp" alt="loading" />
2523
  </div>
2524
- <iframe id="rmp-preview-iframe" src="<?php echo esc_url( get_site_url() ); ?>"></iframe>
2525
  </div>
2526
  </main>
2527
 
2371
  );
2372
 
2373
  echo $ui_manager->start_group_controls();
2374
+
2375
+ echo $control_manager->add_select_control( [
2376
+ 'label' => __('Type','responsive-menu-pro'),
2377
+ 'id' => 'rmp-animation-type',
2378
+ 'name' => 'menu[animation_type]',
2379
+ 'options' => [ 'slide' => 'Slide' , 'push' => 'Push', 'fade' => 'Fade (PRO)' ],
2380
+ 'value' => rmp_get_value($options,'animation_type')
2381
+ ] );
2382
+
2383
  echo $control_manager->add_select_control( [
2384
  'label' => __('Direction','responsive-menu-pro'),
2385
  'id' => 'rmp-menu-appear-from',
2391
  'value' => rmp_get_value($options,'menu_appear_from')
2392
  ] );
2393
 
 
 
 
 
 
 
 
 
 
2394
  echo $ui_manager->end_group_controls();
2395
 
2396
  echo $control_manager->add_text_input_control( [
2521
  <div id="rmp-preview-iframe-loader">
2522
  <img src="https://demo.responsive.menu/wp-content/themes/demo-main/static/imgs/giphy.webp" alt="loading" />
2523
  </div>
2524
+ <iframe id="rmp-preview-iframe" src="<?php echo esc_url( get_site_url() . '?rmp_preview_mode=true' ); ?>"></iframe>
2525
  </div>
2526
  </main>
2527
 
v4.0.0/templates/rmp-roadmap.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This is template file for roadmap amdin page.
4
+ *
5
+ * @since 4.0.0
6
+ *
7
+ * @package responsive_menu_pro
8
+ */
9
+ ?>
10
+ <div class="wrap rmp-container">
11
+
12
+ <!-- Roadmap page title -->
13
+ <h1 class="wp-heading-inline"> <?php esc_html_e( 'Roadmap', 'responsive-menu-pro' ); ?> </h1>
14
+
15
+ <!--- Roadmap page contents --->
16
+ <div class="rmp-roadmap-page" >
17
+ <iframe id="rmp-roadmap-iframe" src="https://next.expresstech.io/responsive-menu"></iframe>
18
+ </div>
19
+ </div>
v4.0.0/templates/rmp-settings.php CHANGED
@@ -53,8 +53,8 @@ if ( ! empty( $global_settings['menu_adjust_for_wp_admin_bar'] ) ) {
53
  <fieldset>
54
  <p>
55
  <select class="" aria-describedby="Rollback Version" id="rmp-versions" name="rmp-versions">
56
- <option value="4.0.0" selected> v4.0.0</option>
57
- <option value="3.1.29"> v3.1.29</option>
58
  </select>
59
  <button id="rmp-rollback-version" class="button button-primary button-large"><?php esc_html_e( 'Rollback', 'responsive-menu-pro'); ?></button>
60
  </p>
53
  <fieldset>
54
  <p>
55
  <select class="" aria-describedby="Rollback Version" id="rmp-versions" name="rmp-versions">
56
+ <option value="4.0.0" selected> v4.x</option>
57
+ <option value="3.1.30"> v3.1.30</option>
58
  </select>
59
  <button id="rmp-rollback-version" class="button button-primary button-large"><?php esc_html_e( 'Rollback', 'responsive-menu-pro'); ?></button>
60
  </p>
vendor/twig/twig/lib/Twig/Node/Include.php CHANGED
File without changes
views/admin/banners.html.twig CHANGED
@@ -5,7 +5,7 @@
5
 
6
  <div id="new-version-banner">
7
  Do you want to switch on new version ?
8
- <button type='button' id='rmp-rollback-version' name='rmp-rollback-version' class='button'>Try, New version</button>
9
  </div>
10
 
11
  <div id="upgrade-banner">
5
 
6
  <div id="new-version-banner">
7
  Do you want to switch on new version ?
8
+ <button type='button' name='rmp-rollback-version' class='rmp-upgrade-version button'>Try, New version</button>
9
  </div>
10
 
11
  <div id="upgrade-banner">