Lightning Advanced Unit - Version 1.1.0

Version Description

  • Added the filter to menu type items.
Download this release

Release Info

Developer kurudrive
Plugin Icon wp plugin Lightning Advanced Unit
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.0 to 1.1.0

lightning_advanced_unit.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Lightning Advanced Unit
4
  * Plugin URI: http://lightning.vektor-inc.co.jp/
5
- * Version: 1.0.0
6
  * Author: Vektor,Inc.
7
  * Author URI: http://www.vektor-inc.co.jp
8
  * Description: This is a plug-ins that extend the functionality of the theme "Lightning".
2
  /**
3
  * Plugin Name: Lightning Advanced Unit
4
  * Plugin URI: http://lightning.vektor-inc.co.jp/
5
+ * Version: 1.1.0
6
  * Author: Vektor,Inc.
7
  * Author URI: http://www.vektor-inc.co.jp
8
  * Description: This is a plug-ins that extend the functionality of the theme "Lightning".
plugins/navigation/navigation.php CHANGED
@@ -11,22 +11,24 @@ function lightning_adv_unit_customize_register_menu_type($wp_customize) {
11
  'capability' => 'edit_theme_options',
12
  'sanitize_callback' => 'lightning_sanitize_radio',
13
  ));
 
 
 
 
 
14
  $wp_customize->add_control( 'lightning_theme_options[menu_type]',array(
15
  'label' => __('Menu Type ( Mobile mode )', LIGHTNING_ADVANCED_TEXTDOMAIN),
16
  'section' => 'lightning_design',
17
  'settings' => 'lightning_theme_options[menu_type]',
18
  'type' => 'radio',
19
- 'choices' => array(
20
- 'side_slide' => __('Side Slide', LIGHTNING_ADVANCED_TEXTDOMAIN),
21
- 'vertical_show_hide' => __('Vertical Show Hide (Lightning default)', LIGHTNING_ADVANCED_TEXTDOMAIN),
22
- ),
23
  'priority' => 300,
24
  ));
25
  }
26
 
27
  function ltg_adv_is_slide_menu(){
28
  $options = get_option('lightning_theme_options');
29
- if ( !isset( $options['menu_type'] ) || $options['menu_type'] != 'vertical_show_hide' ){
30
  return true;
31
  } else {
32
  return false;
11
  'capability' => 'edit_theme_options',
12
  'sanitize_callback' => 'lightning_sanitize_radio',
13
  ));
14
+ $choices_array = array(
15
+ 'side_slide' => __('Side Slide', LIGHTNING_ADVANCED_TEXTDOMAIN),
16
+ 'vertical_show_hide' => __('Vertical Show Hide (Lightning default)', LIGHTNING_ADVANCED_TEXTDOMAIN),
17
+ );
18
+ $choices_array = apply_filters( 'ligthning_menu_choices_array_custom', $choices_array );
19
  $wp_customize->add_control( 'lightning_theme_options[menu_type]',array(
20
  'label' => __('Menu Type ( Mobile mode )', LIGHTNING_ADVANCED_TEXTDOMAIN),
21
  'section' => 'lightning_design',
22
  'settings' => 'lightning_theme_options[menu_type]',
23
  'type' => 'radio',
24
+ 'choices' => $choices_array,
 
 
 
25
  'priority' => 300,
26
  ));
27
  }
28
 
29
  function ltg_adv_is_slide_menu(){
30
  $options = get_option('lightning_theme_options');
31
+ if ( !isset( $options['menu_type'] ) || ( $options['menu_type'] == 'side_slide' ) ) {
32
  return true;
33
  } else {
34
  return false;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: Lightning,
5
  Requires at least: 4.2
6
  Tested up to: 4.5.2
7
- Stable tag: 1.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -43,7 +43,8 @@ e.g.
43
 
44
  == Changelog ==
45
 
46
-
 
47
 
48
  = 0.0.1 =
49
  * Hellow world
4
  Tags: Lightning,
5
  Requires at least: 4.2
6
  Tested up to: 4.5.2
7
+ Stable tag: 1.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
43
 
44
  == Changelog ==
45
 
46
+ = 1.1.0 =
47
+ * Added the filter to menu type items.
48
 
49
  = 0.0.1 =
50
  * Hellow world