Lightning Advanced Unit - Version 1.3.0

Version Description

Download this release

Release Info

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

Code changes from version 1.2.0 to 1.3.0

inc/menu-btn-position.php CHANGED
@@ -19,7 +19,7 @@ function lightning_adv_unit_customize_register_menu_btn_position($wp_customize)
19
  'left' => __('Left', LIGHTNING_ADVANCED_TEXTDOMAIN),
20
  'right' => __('Right', LIGHTNING_ADVANCED_TEXTDOMAIN),
21
  ),
22
- 'priority' => 501,
23
  ));
24
  }
25
 
19
  'left' => __('Left', LIGHTNING_ADVANCED_TEXTDOMAIN),
20
  'right' => __('Right', LIGHTNING_ADVANCED_TEXTDOMAIN),
21
  ),
22
+ 'priority' => 601,
23
  ));
24
  }
25
 
inc/navigation/navigation.php CHANGED
@@ -22,7 +22,7 @@ function lightning_adv_unit_customize_register_menu_type($wp_customize) {
22
  'settings' => 'lightning_theme_options[menu_type]',
23
  'type' => 'radio',
24
  'choices' => $choices_array,
25
- 'priority' => 300,
26
  ));
27
  }
28
 
22
  'settings' => 'lightning_theme_options[menu_type]',
23
  'type' => 'radio',
24
  'choices' => $choices_array,
25
+ 'priority' => 600,
26
  ));
27
  }
28
 
inc/sidebar-position.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*-------------------------------------------*/
3
+ /* Customizer
4
+ /*-------------------------------------------*/
5
+ add_action( 'customize_register', 'lightning_adv_unit_customize_register_sidebar_position' );
6
+ function lightning_adv_unit_customize_register_sidebar_position($wp_customize) {
7
+ $wp_customize->add_setting( 'lightning_theme_options[sidebar_position]', array(
8
+ 'default' => 'right',
9
+ 'type' => 'option',
10
+ 'capability' => 'edit_theme_options',
11
+ 'sanitize_callback' => 'lightning_sanitize_radio',
12
+ ));
13
+ $wp_customize->add_control( 'lightning_theme_options[sidebar_position]',array(
14
+ 'label' => __('Sidebar position ( PC mode )', LIGHTNING_ADVANCED_TEXTDOMAIN),
15
+ 'section' => 'lightning_design',
16
+ 'settings' => 'lightning_theme_options[sidebar_position]',
17
+ 'type' => 'radio',
18
+ 'choices' => array(
19
+ 'right' => __('Right', LIGHTNING_ADVANCED_TEXTDOMAIN),
20
+ 'left' => __('Left', LIGHTNING_ADVANCED_TEXTDOMAIN),
21
+ ),
22
+ 'priority' => 610,
23
+ ));
24
+ }
25
+
26
+ /*-------------------------------------------*/
27
+ /* Position Change
28
+ /*-------------------------------------------*/
29
+ add_action( 'wp_head', 'lightning_adv_unit_sidebar_position_custom' , 161 );
30
+ function lightning_adv_unit_sidebar_position_custom(){
31
+ $options = get_option('lightning_theme_options');
32
+ if (isset($options['sidebar_position']) && $options['sidebar_position'] == "left"){
33
+ $custom_css = "@media (min-width: 992px) { .subSection { float:left;margin-left:0; } .mainSection { float:right; } }";
34
+ echo '<style type="text/css">';
35
+ echo $custom_css;
36
+ echo '</style>';
37
+ }
38
+ }
languages/lightning-adv-unit-ja.mo CHANGED
Binary file
languages/lightning-adv-unit-ja.po CHANGED
@@ -1,7 +1,7 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
- "POT-Creation-Date: 2016-06-11 02:06+0900\n"
5
  "PO-Revision-Date: \n"
6
  "Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
7
  "Language-Team: Vektor translate Team <info@vektor-inc.co.jp>\n"
@@ -19,26 +19,30 @@ msgstr ""
19
  msgid "Menu button position ( Mobile mode )"
20
  msgstr "メニューボタンの位置(モバイル端末時)"
21
 
22
- #: ../inc/menu-btn-position.php:19
23
  msgid "Left"
24
  msgstr "左"
25
 
26
- #: ../inc/menu-btn-position.php:20
27
  msgid "Right"
28
  msgstr "右"
29
 
30
- #: ../inc/navigation/navigation.php:15
31
- msgid "Menu Type ( Mobile mode )"
32
- msgstr "メニュータイプ(モバイル端末時)"
33
 
34
- #: ../inc/navigation/navigation.php:20
35
  msgid "Side Slide"
36
  msgstr "横スライド"
37
 
38
- #: ../inc/navigation/navigation.php:21
39
  msgid "Vertical Show Hide (Lightning default)"
40
  msgstr "縦展開(Ligthning標準)"
41
 
 
 
 
 
42
  #: ../inc/widgets/widget-new-posts.php:12
43
  msgid "Content Area Posts Widget"
44
  msgstr "コンテンツエリア投稿リスト"
@@ -100,29 +104,29 @@ msgstr "抜粋"
100
  msgid "Content"
101
  msgstr "本文"
102
 
103
- #: ../inc/widgets/widget-new-posts.php:246
104
  msgid "Title:"
105
  msgstr "タイトル"
106
 
107
- #: ../inc/widgets/widget-new-posts.php:251
108
  msgid "Display count"
109
  msgstr "表示する記事数"
110
 
111
- #: ../inc/widgets/widget-new-posts.php:256
112
  msgid "Slug for the custom type you want to display"
113
  msgstr "表示したい記事タイプ"
114
 
115
- #: ../inc/widgets/widget-new-posts.php:261
116
  msgid "taxonomy ID"
117
  msgstr "カテゴリー(タクソノミー)ID"
118
 
119
- #: ../inc/widgets/widget-new-posts.php:263
120
  msgid "if you need filtering by term, add the term ID separate by \",\"."
121
  msgstr ""
122
  "特定のカテゴリーのみ表示したい場合は<br/>カンマ(,)区切りでカテゴリーIDを入力"
123
  "します。"
124
 
125
- #: ../inc/widgets/widget-new-posts.php:265
126
  msgid "if empty this area, I will do not filtering."
127
  msgstr "空欄の場合はフィルタリングは行いません。"
128
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2016-08-24 13:27+0900\n"
5
  "PO-Revision-Date: \n"
6
  "Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
7
  "Language-Team: Vektor translate Team <info@vektor-inc.co.jp>\n"
19
  msgid "Menu button position ( Mobile mode )"
20
  msgstr "メニューボタンの位置(モバイル端末時)"
21
 
22
+ #: ../inc/menu-btn-position.php:19 ../inc/sidebar-position.php:20
23
  msgid "Left"
24
  msgstr "左"
25
 
26
+ #: ../inc/menu-btn-position.php:20 ../inc/sidebar-position.php:19
27
  msgid "Right"
28
  msgstr "右"
29
 
30
+ #: ../inc/sidebar-position.php:14
31
+ msgid "Sidebar position ( PC mode )"
32
+ msgstr "サイドバーの位置(PC閲覧時)"
33
 
34
+ #: ../inc/navigation/navigation.php:15
35
  msgid "Side Slide"
36
  msgstr "横スライド"
37
 
38
+ #: ../inc/navigation/navigation.php:16
39
  msgid "Vertical Show Hide (Lightning default)"
40
  msgstr "縦展開(Ligthning標準)"
41
 
42
+ #: ../inc/navigation/navigation.php:20
43
+ msgid "Menu Type ( Mobile mode )"
44
+ msgstr "メニュータイプ(モバイル端末時)"
45
+
46
  #: ../inc/widgets/widget-new-posts.php:12
47
  msgid "Content Area Posts Widget"
48
  msgstr "コンテンツエリア投稿リスト"
104
  msgid "Content"
105
  msgstr "本文"
106
 
107
+ #: ../inc/widgets/widget-new-posts.php:247
108
  msgid "Title:"
109
  msgstr "タイトル"
110
 
111
+ #: ../inc/widgets/widget-new-posts.php:252
112
  msgid "Display count"
113
  msgstr "表示する記事数"
114
 
115
+ #: ../inc/widgets/widget-new-posts.php:257
116
  msgid "Slug for the custom type you want to display"
117
  msgstr "表示したい記事タイプ"
118
 
119
+ #: ../inc/widgets/widget-new-posts.php:262
120
  msgid "taxonomy ID"
121
  msgstr "カテゴリー(タクソノミー)ID"
122
 
123
+ #: ../inc/widgets/widget-new-posts.php:264
124
  msgid "if you need filtering by term, add the term ID separate by \",\"."
125
  msgstr ""
126
  "特定のカテゴリーのみ表示したい場合は<br/>カンマ(,)区切りでカテゴリーIDを入力"
127
  "します。"
128
 
129
+ #: ../inc/widgets/widget-new-posts.php:266
130
  msgid "if empty this area, I will do not filtering."
131
  msgstr "空欄の場合はフィルタリングは行いません。"
132
 
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.2.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".
@@ -23,6 +23,7 @@ define( 'LIGHTNING_ADVANCED_SHORT_NAME', 'LTG' );
23
  require_once( LIGHTNING_ADVANCED_DIR . 'inc/navigation/navigation.php' );
24
  require_once( LIGHTNING_ADVANCED_DIR . 'inc/widgets/widget-new-posts.php' );
25
  require_once( LIGHTNING_ADVANCED_DIR . 'inc/menu-btn-position.php' );
 
26
  // require_once( LIGHTNING_ADVANCED_DIR . 'inc/header-top/header-top.php' );
27
 
28
  /*-------------------------------------------*/
2
  /**
3
  * Plugin Name: Lightning Advanced Unit
4
  * Plugin URI: http://lightning.vektor-inc.co.jp/
5
+ * Version: 1.3.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".
23
  require_once( LIGHTNING_ADVANCED_DIR . 'inc/navigation/navigation.php' );
24
  require_once( LIGHTNING_ADVANCED_DIR . 'inc/widgets/widget-new-posts.php' );
25
  require_once( LIGHTNING_ADVANCED_DIR . 'inc/menu-btn-position.php' );
26
+ require_once( LIGHTNING_ADVANCED_DIR . 'inc/sidebar-position.php' );
27
  // require_once( LIGHTNING_ADVANCED_DIR . 'inc/header-top/header-top.php' );
28
 
29
  /*-------------------------------------------*/
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: vektor-inc,bizvektor,kurudrive
3
  Donate link:
4
  Tags: Lightning,
5
  Requires at least: 4.2
6
- Tested up to: 4.5.2
7
- Stable tag: 1.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -43,6 +43,9 @@ e.g.
43
 
44
  == Changelog ==
45
 
 
 
 
46
  = 1.1.0 =
47
  * Added the filter to menu type items.
48
 
3
  Donate link:
4
  Tags: Lightning,
5
  Requires at least: 4.2
6
+ Tested up to: 4.6.0
7
+ Stable tag: 1.3.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.2.0 =
47
+ * [ Add function ] Sidebar position changer
48
+
49
  = 1.1.0 =
50
  * Added the filter to menu type items.
51