Responsive Menu - Version 3.0.9

Version Description

(2nd August 2016) = * Requires PHP 5.4 * Added current item border colour option * Added current item border hover colour option * Apply title link to title image * Fixed transition bug with iPhone Safari iOS on links * Fixed Import option bug * Import native jquery-ui-core instead of externally * Minor bug fixes

Download this release

Release Info

Developer ResponsiveMenu
Plugin Icon 128x128 Responsive Menu
Version 3.0.9
Comparing to
See all releases

Code changes from version 3.0.8 to 3.0.9

readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: ResponsiveMenu
3
  Donate link: https://responsive.menu/donate
4
  Tags: responsive, menu, responsive menu, mobile menu, wordpress responsive menu, wp responsive menu, tablet menu, mobile, tablet, 3 lines, 3 line, three line, three lines
5
  Requires at least: 3.5.0
6
- Tested up to: 4.5.3
7
- Stable tag: 3.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -146,7 +146,17 @@ To view our whole FAQ, please go to https://responsive.menu/faq/
146
 
147
  == Changelog ==
148
 
149
- = 3.0.8 (25h July 2016) =
 
 
 
 
 
 
 
 
 
 
150
  * **Requires PHP 5.4**
151
  * Added placeholder search text colour option
152
  * Improved update process (no longer need to login to admin to trigger)
3
  Donate link: https://responsive.menu/donate
4
  Tags: responsive, menu, responsive menu, mobile menu, wordpress responsive menu, wp responsive menu, tablet menu, mobile, tablet, 3 lines, 3 line, three line, three lines
5
  Requires at least: 3.5.0
6
+ Tested up to: 4.6
7
+ Stable tag: 3.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
146
 
147
  == Changelog ==
148
 
149
+ = 3.0.9 (2nd August 2016) =
150
+ * **Requires PHP 5.4**
151
+ * Added current item border colour option
152
+ * Added current item border hover colour option
153
+ * Apply title link to title image
154
+ * Fixed transition bug with iPhone Safari iOS on links
155
+ * Fixed Import option bug
156
+ * Import native jquery-ui-core instead of externally
157
+ * Minor bug fixes
158
+
159
+ = 3.0.8 (25th July 2016) =
160
  * **Requires PHP 5.4**
161
  * Added placeholder search text colour option
162
  * Improved update process (no longer need to login to admin to trigger)
responsive-menu.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Responsive Menu
5
  Plugin URI: https://responsive.menu
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
- Version: 3.0.8
8
  Author: Responsive Menu
9
  Text Domain: responsive-menu
10
  Author URI: https://responsive.menu
@@ -48,7 +48,7 @@ add_action('init', function() use($container) {
48
  $migration->setup();
49
  $migration->synchronise();
50
  });
51
-
52
  if(is_admin()):
53
 
54
  /*
4
  Plugin Name: Responsive Menu
5
  Plugin URI: https://responsive.menu
6
  Description: Highly Customisable Responsive Menu Plugin for WordPress
7
+ Version: 3.0.9
8
  Author: Responsive Menu
9
  Text Domain: responsive-menu
10
  Author URI: https://responsive.menu
48
  $migration->setup();
49
  $migration->synchronise();
50
  });
51
+
52
  if(is_admin()):
53
 
54
  /*
src/app/Controllers/Admin.php CHANGED
@@ -32,7 +32,7 @@ class Admin {
32
  public function import($default_options, $file) {
33
  if(!empty($file['tmp_name'])):
34
  $file = file_get_contents($file['tmp_name']);
35
- $decoded = json_decode($file);
36
  $options = $this->service->updateOptions(array_merge($default_options, array_filter($decoded)));
37
  $flash['success'] = __('Responsive Menu Options Reset Successfully', 'responsive-menu');
38
  else:
32
  public function import($default_options, $file) {
33
  if(!empty($file['tmp_name'])):
34
  $file = file_get_contents($file['tmp_name']);
35
+ $decoded = (array) json_decode($file);
36
  $options = $this->service->updateOptions(array_merge($default_options, array_filter($decoded)));
37
  $flash['success'] = __('Responsive Menu Options Reset Successfully', 'responsive-menu');
38
  else:
src/app/Mappers/ScssBaseMapper.php CHANGED
@@ -13,6 +13,7 @@ class ScssBaseMapper extends ScssMapper
13
  #responsive-menu-button,
14
  #responsive-menu-container {
15
  display: none;
 
16
  }
17
 
18
  @media screen and (max-width: {$this->options['breakpoint']}px) {
@@ -133,7 +134,6 @@ class ScssBaseMapper extends ScssMapper
133
  a {
134
  width: 100%;
135
  display: block;
136
- margin-top: -1px; // Fix double borders with menu link above
137
  text-decoration: none;
138
  padding: 0 5%;
139
  position: relative;
13
  #responsive-menu-button,
14
  #responsive-menu-container {
15
  display: none;
16
+ -webkit-text-size-adjust: 100%;
17
  }
18
 
19
  @media screen and (max-width: {$this->options['breakpoint']}px) {
134
  a {
135
  width: 100%;
136
  display: block;
 
137
  text-decoration: none;
138
  padding: 0 5%;
139
  position: relative;
src/app/Mappers/ScssMenuMapper.php CHANGED
@@ -77,8 +77,8 @@ class ScssMenuMapper extends ScssMapper
77
  font-family: '{$this->options['menu_font']}';
78
  }
79
 
80
- & a, & #responsive-menu-title, & .responsive-menu-subarrow {
81
- transition: all {$this->options['transition_speed']}s;
82
  }
83
 
84
  #responsive-menu-title {
@@ -114,7 +114,8 @@ class ScssMenuMapper extends ScssMapper
114
  }
115
  a {
116
  line-height: {$this->options['menu_links_height']}px;
117
- border: 1px solid {$this->options['menu_item_border_colour']};
 
118
  color: {$this->options['menu_link_colour']};
119
  background-color: {$this->options['menu_item_background_colour']};
120
  &:hover {
@@ -146,9 +147,11 @@ class ScssMenuMapper extends ScssMapper
146
  &.responsive-menu-current-item > .responsive-menu-item-link {
147
  background-color: {$this->options['menu_current_item_background_colour']};
148
  color: {$this->options['menu_current_link_colour']};
 
149
  &:hover {
150
  background-color: {$this->options['menu_current_item_background_hover_colour']};
151
  color: {$this->options['menu_current_link_hover_colour']};
 
152
  }
153
  }
154
  }
77
  font-family: '{$this->options['menu_font']}';
78
  }
79
 
80
+ & .responsive-menu-item-link, & #responsive-menu-title, & .responsive-menu-subarrow {
81
+ transition: background-color {$this->options['transition_speed']}s, border-color {$this->options['transition_speed']}s;
82
  }
83
 
84
  #responsive-menu-title {
114
  }
115
  a {
116
  line-height: {$this->options['menu_links_height']}px;
117
+ border-top: 1px solid {$this->options['menu_item_border_colour']};
118
+ border-bottom: 1px solid {$this->options['menu_item_border_colour']};
119
  color: {$this->options['menu_link_colour']};
120
  background-color: {$this->options['menu_item_background_colour']};
121
  &:hover {
147
  &.responsive-menu-current-item > .responsive-menu-item-link {
148
  background-color: {$this->options['menu_current_item_background_colour']};
149
  color: {$this->options['menu_current_link_colour']};
150
+ border-color: {$this->options['menu_current_item_border_colour']};
151
  &:hover {
152
  background-color: {$this->options['menu_current_item_background_hover_colour']};
153
  color: {$this->options['menu_current_link_hover_colour']};
154
+ border-color: {$this->options['menu_current_item_border_hover_colour']};
155
  }
156
  }
157
  }
src/app/View/AdminView.php CHANGED
@@ -19,7 +19,7 @@ class AdminView implements View
19
  wp_enqueue_script('postbox');
20
  wp_enqueue_script('postbox-edit', plugin_dir_url(dirname(dirname(__FILE__))) . 'public/js/admin/postbox-edit.js', array('jquery', 'postbox'));
21
 
22
- wp_enqueue_script('item-drag', '//code.jquery.com/ui/1.11.4/jquery-ui.js', 'jquery', 'null');
23
 
24
  wp_register_style('admin-css', plugin_dir_url(dirname(dirname(__FILE__))) . 'public/css/admin/main.css', false, null );
25
  wp_enqueue_style('admin-css');
19
  wp_enqueue_script('postbox');
20
  wp_enqueue_script('postbox-edit', plugin_dir_url(dirname(dirname(__FILE__))) . 'public/js/admin/postbox-edit.js', array('jquery', 'postbox'));
21
 
22
+ wp_enqueue_script('jquery-ui-core');
23
 
24
  wp_register_style('admin-css', plugin_dir_url(dirname(dirname(__FILE__))) . 'public/css/admin/main.css', false, null );
25
  wp_enqueue_style('admin-css');
src/app/ViewModels/Components/Menu/Title.php CHANGED
@@ -21,15 +21,26 @@ class Title implements ViewComponent {
21
 
22
  if($options['menu_title']->getValue() || $options->getTitleImage()):
23
  $content = '<div id="responsive-menu-title">';
 
 
 
 
24
  if($options->getTitleImage())
25
  $content .= '<div id="responsive-menu-title-image">' . $options->getTitleImage() . '</div>';
26
- if($options['menu_title_link']->getValue()):
 
 
 
 
27
  $content .= '<a href="'.$link.'" target="'.$options['menu_title_link_location'].'">';
28
- endif;
29
  $content .= $title;
 
30
  if($options['menu_title_link']->getValue())
31
  $content .= '</a>';
 
32
  $content .= '</div>';
 
33
  return $content;
34
  endif;
35
 
21
 
22
  if($options['menu_title']->getValue() || $options->getTitleImage()):
23
  $content = '<div id="responsive-menu-title">';
24
+
25
+ if($options['menu_title_link']->getValue())
26
+ $content .= '<a href="'.$link.'" target="'.$options['menu_title_link_location'].'">';
27
+
28
  if($options->getTitleImage())
29
  $content .= '<div id="responsive-menu-title-image">' . $options->getTitleImage() . '</div>';
30
+
31
+ if($options['menu_title_link']->getValue())
32
+ $content .= '</a>';
33
+
34
+ if($options['menu_title_link']->getValue())
35
  $content .= '<a href="'.$link.'" target="'.$options['menu_title_link_location'].'">';
36
+
37
  $content .= $title;
38
+
39
  if($options['menu_title_link']->getValue())
40
  $content .= '</a>';
41
+
42
  $content .= '</div>';
43
+
44
  return $content;
45
  endif;
46
 
src/config/admin_ordering.php CHANGED
@@ -284,6 +284,23 @@ $order_mapping = [
284
  'type' => 'colour',
285
  'semi_pro' => true
286
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
287
  [
288
  'option' => 'menu_item_border_colour',
289
  'title' => __('Item Border Colour', 'responsive-menu'),
@@ -299,19 +316,19 @@ $order_mapping = [
299
  'semi_pro' => true
300
  ],
301
  [
302
- 'option' => 'menu_current_item_background_colour',
303
- 'title' => __('Current Item Background Colour', 'responsive-menu'),
304
  'label' => __('', 'responsive-menu'),
305
  'type' => 'colour',
306
  'semi_pro' => true
307
  ],
308
  [
309
- 'option' => 'menu_current_item_background_hover_colour',
310
- 'title' => __('Current Item Background Colour Hover', 'responsive-menu'),
311
  'label' => __('', 'responsive-menu'),
312
  'type' => 'colour',
313
  'semi_pro' => true
314
- ],
315
  ],
316
  __('Text Colours', 'responsive-menu') =>
317
  [
284
  'type' => 'colour',
285
  'semi_pro' => true
286
  ],
287
+ [
288
+ 'option' => 'menu_current_item_background_colour',
289
+ 'title' => __('Current Item Background Colour', 'responsive-menu'),
290
+ 'label' => __('', 'responsive-menu'),
291
+ 'type' => 'colour',
292
+ 'semi_pro' => true
293
+ ],
294
+ [
295
+ 'option' => 'menu_current_item_background_hover_colour',
296
+ 'title' => __('Current Item Background Colour Hover', 'responsive-menu'),
297
+ 'label' => __('', 'responsive-menu'),
298
+ 'type' => 'colour',
299
+ 'semi_pro' => true
300
+ ],
301
+ ],
302
+ __('Border Colours', 'responsive-menu-pro') =>
303
+ [
304
  [
305
  'option' => 'menu_item_border_colour',
306
  'title' => __('Item Border Colour', 'responsive-menu'),
316
  'semi_pro' => true
317
  ],
318
  [
319
+ 'option' => 'menu_current_item_border_colour',
320
+ 'title' => __('Current Item Border Colour', 'responsive-menu'),
321
  'label' => __('', 'responsive-menu'),
322
  'type' => 'colour',
323
  'semi_pro' => true
324
  ],
325
  [
326
+ 'option' => 'menu_current_item_border_hover_colour',
327
+ 'title' => __('Current Item Border Colour Hover', 'responsive-menu'),
328
  'label' => __('', 'responsive-menu'),
329
  'type' => 'colour',
330
  'semi_pro' => true
331
+ ]
332
  ],
333
  __('Text Colours', 'responsive-menu') =>
334
  [
src/config/default_options.php CHANGED
@@ -64,6 +64,8 @@ $default_options = array(
64
  'menu_title_background_hover_colour' => '#212121',
65
  'menu_current_item_background_colour' => '#212121',
66
  'menu_current_item_background_hover_colour' => '#3f3f3f',
 
 
67
  'menu_title_colour' => '#fff',
68
  'menu_title_hover_colour' => '#fff',
69
  'menu_link_colour' => '#fff',
64
  'menu_title_background_hover_colour' => '#212121',
65
  'menu_current_item_background_colour' => '#212121',
66
  'menu_current_item_background_hover_colour' => '#3f3f3f',
67
+ 'menu_current_item_border_colour' => '#212121',
68
+ 'menu_current_item_border_hover_colour' => '#3f3f3f',
69
  'menu_title_colour' => '#fff',
70
  'menu_title_hover_colour' => '#fff',
71
  'menu_link_colour' => '#fff',
src/config/route_dependencies.php CHANGED
@@ -39,7 +39,7 @@ $container['option_service'] = function($c) {
39
  };
40
 
41
  $container['current_version'] = function($c) {
42
- return '3.0.8';
43
  };
44
 
45
  $container['old_version'] = function($c) {
39
  };
40
 
41
  $container['current_version'] = function($c) {
42
+ return '3.0.9';
43
  };
44
 
45
  $container['old_version'] = function($c) {