Lightning Advanced Unit - Version 2.1.0

Version Description

Download this release

Release Info

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

Code changes from version 2.0.2 to 2.1.0

inc/sidebar-child-list-hidden.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*-------------------------------------------*/
3
+ /* Customizer
4
+ /*-------------------------------------------*/
5
+ add_action( 'customize_register', 'lightning_adv_unit_customize_register_sidebar_child_list_hidden' );
6
+ function lightning_adv_unit_customize_register_sidebar_child_list_hidden($wp_customize) {
7
+ $wp_customize->add_setting( 'lightning_theme_options[sidebar_child_list_hidden]', array(
8
+ 'default' => false,
9
+ 'type' => 'option',
10
+ 'capability' => 'edit_theme_options',
11
+ 'sanitize_callback' => 'lightning_sanitize_checkbox',
12
+ ));
13
+ $wp_customize->add_control( 'lightning_theme_options[sidebar_child_list_hidden]',array(
14
+ 'label' => __('Sidebar menu hide list children', LIGHTNING_ADVANCED_TEXTDOMAIN),
15
+ 'section' => 'lightning_design',
16
+ 'settings' => 'lightning_theme_options[sidebar_child_list_hidden]',
17
+ 'type' => 'checkbox',
18
+ 'priority' => 550,
19
+ ));
20
+ }
21
+
22
+ /*-------------------------------------------*/
23
+ /* Position Change
24
+ /*-------------------------------------------*/
25
+ add_action( 'wp_head', 'lightning_adv_unit_sidebar_child_list_hidden_css', 2 );
26
+ function lightning_adv_unit_sidebar_child_list_hidden_css(){
27
+ $options = get_option( 'lightning_theme_options' );
28
+ if ( isset($options['sidebar_child_list_hidden'] ) && $options['sidebar_child_list_hidden'] ){
29
+ $custom_css = "/*-------------------------------------------*/
30
+ /* sidebar child menu display
31
+ /*-------------------------------------------*/
32
+ .localNav ul ul.children { display:none; }
33
+ .localNav ul li.current_page_ancestor ul.children,
34
+ .localNav ul li.current_page_item ul.children,
35
+ .localNav ul li.current-cat ul.children{ display:block; }";
36
+ wp_add_inline_style( 'lightning-design-style', $custom_css );
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-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"
@@ -9,7 +9,7 @@ msgstr ""
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.5.7\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SourceCharset: UTF-8\n"
15
  "X-Poedit-KeywordsList: __;_x;_e;_ex\n"
@@ -27,10 +27,6 @@ msgstr "左"
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 "横スライド"
@@ -39,10 +35,20 @@ msgstr "横スライド"
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 "コンテンツエリア投稿リスト"
@@ -51,85 +57,97 @@ msgstr "コンテンツエリア投稿リスト"
51
  msgid "Displays a list of your most recent posts"
52
  msgstr "最新の投稿記事リストを表示します。"
53
 
54
- #: ../inc/widgets/widget-new-posts.php:108
55
  msgid "Last updated"
56
  msgstr "最終更新日"
57
 
58
- #: ../inc/widgets/widget-new-posts.php:132
59
- #: ../inc/widgets/widget-new-posts.php:156
60
  msgid "Read more"
61
  msgstr "詳しくはこちら"
62
 
63
- #: ../inc/widgets/widget-new-posts.php:176
64
  msgid "<dl><dt>%s</dt><dd>%l</dd></dl>"
65
  msgstr "<dl><dt>%s</dt><dd>%l</dd></dl>"
66
 
67
- #: ../inc/widgets/widget-new-posts.php:196
68
  msgid "Tags"
69
  msgstr "タグ"
70
 
71
- #: ../inc/widgets/widget-new-posts.php:229
72
  msgid "Recent Posts"
73
  msgstr "最新記事"
74
 
75
- #: ../inc/widgets/widget-new-posts.php:238
76
  msgid "Display Format"
77
  msgstr "表示形式"
78
 
79
- #: ../inc/widgets/widget-new-posts.php:240
80
  #: ../inc/widgets/widget-new-posts.php:242
 
81
  msgid "Thumbnail"
82
  msgstr "サムネイル画像"
83
 
84
- #: ../inc/widgets/widget-new-posts.php:240
85
  #: ../inc/widgets/widget-new-posts.php:242
 
86
  msgid "Date"
87
  msgstr "日付"
88
 
89
- #: ../inc/widgets/widget-new-posts.php:240
90
  #: ../inc/widgets/widget-new-posts.php:242
 
91
  msgid "Category"
92
  msgstr "カテゴリー"
93
 
94
- #: ../inc/widgets/widget-new-posts.php:240
95
  #: ../inc/widgets/widget-new-posts.php:242
 
96
  msgid "Title"
97
  msgstr "タイトル"
98
 
99
- #: ../inc/widgets/widget-new-posts.php:240
100
  msgid "Excerpt"
101
  msgstr "抜粋"
102
 
103
- #: ../inc/widgets/widget-new-posts.php:242
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
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  #~ msgid "Main setting"
134
  #~ msgstr "メイン設定"
135
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2017-05-28 02:24+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"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8.11\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SourceCharset: UTF-8\n"
15
  "X-Poedit-KeywordsList: __;_x;_e;_ex\n"
27
  msgid "Right"
28
  msgstr "右"
29
 
 
 
 
 
30
  #: ../inc/navigation/navigation.php:15
31
  msgid "Side Slide"
32
  msgstr "横スライド"
35
  msgid "Vertical Show Hide (Lightning default)"
36
  msgstr "縦展開(Ligthning標準)"
37
 
38
+ #: ../inc/navigation/navigation.php:21
39
  msgid "Menu Type ( Mobile mode )"
40
  msgstr "メニュータイプ(モバイル端末時)"
41
 
42
+ #: ../inc/sidebar-child-list-hidden.php:14
43
+ msgid "Sidebar menu hide list children"
44
+ msgstr ""
45
+ "サイドバーに表示されるページリストを全て表示せずにアクティブでない階層を非表"
46
+ "示にする"
47
+
48
+ #: ../inc/sidebar-position.php:14
49
+ msgid "Sidebar position ( PC mode )"
50
+ msgstr "サイドバーの位置(PC閲覧時)"
51
+
52
  #: ../inc/widgets/widget-new-posts.php:12
53
  msgid "Content Area Posts Widget"
54
  msgstr "コンテンツエリア投稿リスト"
57
  msgid "Displays a list of your most recent posts"
58
  msgstr "最新の投稿記事リストを表示します。"
59
 
60
+ #: ../inc/widgets/widget-new-posts.php:110
61
  msgid "Last updated"
62
  msgstr "最終更新日"
63
 
64
+ #: ../inc/widgets/widget-new-posts.php:134
65
+ #: ../inc/widgets/widget-new-posts.php:158
66
  msgid "Read more"
67
  msgstr "詳しくはこちら"
68
 
69
+ #: ../inc/widgets/widget-new-posts.php:178
70
  msgid "<dl><dt>%s</dt><dd>%l</dd></dl>"
71
  msgstr "<dl><dt>%s</dt><dd>%l</dd></dl>"
72
 
73
+ #: ../inc/widgets/widget-new-posts.php:198
74
  msgid "Tags"
75
  msgstr "タグ"
76
 
77
+ #: ../inc/widgets/widget-new-posts.php:231
78
  msgid "Recent Posts"
79
  msgstr "最新記事"
80
 
81
+ #: ../inc/widgets/widget-new-posts.php:240
82
  msgid "Display Format"
83
  msgstr "表示形式"
84
 
 
85
  #: ../inc/widgets/widget-new-posts.php:242
86
+ #: ../inc/widgets/widget-new-posts.php:244
87
  msgid "Thumbnail"
88
  msgstr "サムネイル画像"
89
 
 
90
  #: ../inc/widgets/widget-new-posts.php:242
91
+ #: ../inc/widgets/widget-new-posts.php:244
92
  msgid "Date"
93
  msgstr "日付"
94
 
 
95
  #: ../inc/widgets/widget-new-posts.php:242
96
+ #: ../inc/widgets/widget-new-posts.php:244
97
  msgid "Category"
98
  msgstr "カテゴリー"
99
 
 
100
  #: ../inc/widgets/widget-new-posts.php:242
101
+ #: ../inc/widgets/widget-new-posts.php:244
102
  msgid "Title"
103
  msgstr "タイトル"
104
 
105
+ #: ../inc/widgets/widget-new-posts.php:242
106
  msgid "Excerpt"
107
  msgstr "抜粋"
108
 
109
+ #: ../inc/widgets/widget-new-posts.php:244
110
  msgid "Content"
111
  msgstr "本文"
112
 
113
+ #: ../inc/widgets/widget-new-posts.php:249
114
  msgid "Title:"
115
  msgstr "タイトル"
116
 
117
+ #: ../inc/widgets/widget-new-posts.php:254
118
  msgid "Display count"
119
  msgstr "表示する記事数"
120
 
121
+ #: ../inc/widgets/widget-new-posts.php:259
122
  msgid "Slug for the custom type you want to display"
123
  msgstr "表示したい記事タイプ"
124
 
125
+ #: ../inc/widgets/widget-new-posts.php:264
126
  msgid "taxonomy ID"
127
  msgstr "カテゴリー(タクソノミー)ID"
128
 
129
+ #: ../inc/widgets/widget-new-posts.php:266
130
  msgid "if you need filtering by term, add the term ID separate by \",\"."
131
  msgstr ""
132
  "特定のカテゴリーのみ表示したい場合は<br/>カンマ(,)区切りでカテゴリーIDを入力"
133
  "します。"
134
 
135
+ #: ../inc/widgets/widget-new-posts.php:268
136
  msgid "if empty this area, I will do not filtering."
137
  msgstr "空欄の場合はフィルタリングは行いません。"
138
 
139
+ #: ../node_modules/rx/dist/rx.min.js:1
140
+ msgid "N"
141
+ msgstr ""
142
+
143
+ #: ../node_modules/rx/dist/rx.min.js:1
144
+ msgid "E"
145
+ msgstr ""
146
+
147
+ #: ../node_modules/rx/dist/rx.min.js:1
148
+ msgid "C"
149
+ msgstr ""
150
+
151
  #~ msgid "Main setting"
152
  #~ msgstr "メイン設定"
153
 
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: 2.0.2
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".
@@ -28,6 +28,7 @@ require_once( LIGHTNING_ADVANCED_DIR . 'inc/navigation/navigation.php' );
28
  require_once( LIGHTNING_ADVANCED_DIR . 'inc/widgets/widget-new-posts.php' );
29
  require_once( LIGHTNING_ADVANCED_DIR . 'inc/menu-btn-position.php' );
30
  require_once( LIGHTNING_ADVANCED_DIR . 'inc/sidebar-position.php' );
 
31
 
32
  /*-------------------------------------------*/
33
  /* translations
2
  /**
3
  * Plugin Name: Lightning Advanced Unit
4
  * Plugin URI: http://lightning.vektor-inc.co.jp/
5
+ * Version: 2.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".
28
  require_once( LIGHTNING_ADVANCED_DIR . 'inc/widgets/widget-new-posts.php' );
29
  require_once( LIGHTNING_ADVANCED_DIR . 'inc/menu-btn-position.php' );
30
  require_once( LIGHTNING_ADVANCED_DIR . 'inc/sidebar-position.php' );
31
+ require_once( LIGHTNING_ADVANCED_DIR . 'inc/sidebar-child-list-hidden.php' );
32
 
33
  /*-------------------------------------------*/
34
  /* translations