Version Description
- [ Add function ][ Fuull wide Widget ] Add text shadow.
Download this release
Release Info
Developer | kurudrive |
Plugin | Lightning Advanced Unit |
Version | 2.5.0 |
Comparing to | |
See all releases |
Code changes from version 2.4.1 to 2.5.0
- inc/widgets/widget-full-wide-title.php +33 -10
- languages/lightning-adv-unit-ja.mo +0 -0
- languages/lightning-adv-unit-ja.po +28 -11
- lightning_advanced_unit.php +11 -2
- readme.txt +4 -4
inc/widgets/widget-full-wide-title.php
CHANGED
@@ -27,11 +27,13 @@ class LTG_Full_Wide_Title extends WP_Widget {
|
|
27 |
public static function default_options( $args=array() )
|
28 |
{
|
29 |
$defaults = array(
|
30 |
-
'media_image_id'
|
31 |
-
'title_bg_color'
|
32 |
-
'title_font_color'
|
33 |
-
'title'
|
34 |
-
'after_widget'
|
|
|
|
|
35 |
);
|
36 |
return wp_parse_args( (array) $args, $defaults );
|
37 |
}
|
@@ -124,6 +126,15 @@ var vk_title_bg_image_delete = function(e){
|
|
124 |
'<label for="'.$this->get_field_id( 'title_font_color' ).'">'.__( 'Text color of the title:', LIGHTNING_ADVANCED_TEXTDOMAIN ).'</label><br/>'.
|
125 |
'<input type="text" id="'.$this->get_field_id( 'title_font_color' ).'" class="color_picker" name="'.$this->get_field_name( 'title_font_color' ).'" value="'. esc_attr( $instance[ 'title_font_color' ] ).'" /></p>';
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
|
128 |
// サブタイトルの入力
|
129 |
if ( isset( $instance['text'] ) && $instance['text'] ) {
|
@@ -152,6 +163,8 @@ var vk_title_bg_image_delete = function(e){
|
|
152 |
$instance[ 'title_font_color' ] = sanitize_hex_color( $new_instance[ 'title_font_color' ] );
|
153 |
$instance[ 'title' ] = wp_kses_post( $new_instance[ 'title' ] );
|
154 |
$instance[ 'text' ] = wp_kses_post( $new_instance[ 'text' ] );
|
|
|
|
|
155 |
return $new_instance;
|
156 |
}
|
157 |
|
@@ -184,14 +197,24 @@ var vk_title_bg_image_delete = function(e){
|
|
184 |
}
|
185 |
|
186 |
public static function widget_font_style( $instance ){
|
187 |
-
$widget_font_style = '
|
188 |
// 色が登録されている場合
|
189 |
if ( ! empty( $instance[ 'title_font_color' ] ) ) {
|
190 |
-
$widget_font_style
|
191 |
} else {
|
192 |
// その他(色が登録されていない)
|
193 |
-
$widget_font_style
|
194 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
return $widget_font_style;
|
196 |
}
|
197 |
|
@@ -199,8 +222,8 @@ var vk_title_bg_image_delete = function(e){
|
|
199 |
{
|
200 |
$instance = self::default_options( $instance );
|
201 |
echo $args ['before_widget'];
|
202 |
-
echo '<div class="widget_ltg_adv_full_wide_title_outer" style="'
|
203 |
-
echo '<h2 class="widget_ltg_adv_full_wide_title_title" style="'
|
204 |
// サブテキストがある場合
|
205 |
if ( ! empty( $instance['text'] ) ){
|
206 |
echo '<p style="'.$this->widget_font_style($instance).'" class="widget_ltg_adv_full_wide_title_caption">'.wp_kses_post( $instance['text'] ).'</p>';
|
27 |
public static function default_options( $args=array() )
|
28 |
{
|
29 |
$defaults = array(
|
30 |
+
'media_image_id' => Null,
|
31 |
+
'title_bg_color' => '',
|
32 |
+
'title_font_color' => '',
|
33 |
+
'title' => Null,
|
34 |
+
'after_widget' => '',
|
35 |
+
'title_shadow_use' => false,
|
36 |
+
'title_shadow_color' => '#000',
|
37 |
);
|
38 |
return wp_parse_args( (array) $args, $defaults );
|
39 |
}
|
126 |
'<label for="'.$this->get_field_id( 'title_font_color' ).'">'.__( 'Text color of the title:', LIGHTNING_ADVANCED_TEXTDOMAIN ).'</label><br/>'.
|
127 |
'<input type="text" id="'.$this->get_field_id( 'title_font_color' ).'" class="color_picker" name="'.$this->get_field_name( 'title_font_color' ).'" value="'. esc_attr( $instance[ 'title_font_color' ] ).'" /></p>';
|
128 |
|
129 |
+
// Shadow Use
|
130 |
+
$checked = ( $instance['title_shadow_use'] ) ? ' checked': '' ;
|
131 |
+
echo '<p><input type="checkbox" id="'.$this->get_field_id( 'title_shadow_use' ).'" name="'.$this->get_field_name( 'title_shadow_use' ).'" value="true"'.$checked.' >';
|
132 |
+
echo '<label for="'.$this->get_field_id( 'title_shadow_use' ).'">'. __( 'Text shadow', LIGHTNING_ADVANCED_TEXTDOMAIN ).'</label><br/></p>';
|
133 |
+
|
134 |
+
// Shadow color
|
135 |
+
echo '<p class="color_picker_wrap">'.
|
136 |
+
'<label for="'.$this->get_field_id( 'title_shadow_color' ).'">'.__( 'Text shadow color:', LIGHTNING_ADVANCED_TEXTDOMAIN ).'</label><br/>'.
|
137 |
+
'<input type="text" id="'.$this->get_field_id( 'title_shadow_color' ).'" class="color_picker" name="'.$this->get_field_name( 'title_shadow_color' ).'" value="'. esc_attr( $instance[ 'title_shadow_color' ] ).'" /></p>';
|
138 |
|
139 |
// サブタイトルの入力
|
140 |
if ( isset( $instance['text'] ) && $instance['text'] ) {
|
163 |
$instance[ 'title_font_color' ] = sanitize_hex_color( $new_instance[ 'title_font_color' ] );
|
164 |
$instance[ 'title' ] = wp_kses_post( $new_instance[ 'title' ] );
|
165 |
$instance[ 'text' ] = wp_kses_post( $new_instance[ 'text' ] );
|
166 |
+
$instance[ 'title_shadow_use' ] = ( $new_instance[ 'title_shadow_use' ] ) ? true : false;
|
167 |
+
$instance[ 'title_shadow_color' ] = sanitize_hex_color( $new_instance[ 'title_shadow_color' ] );
|
168 |
return $new_instance;
|
169 |
}
|
170 |
|
197 |
}
|
198 |
|
199 |
public static function widget_font_style( $instance ){
|
200 |
+
$widget_font_style = '';
|
201 |
// 色が登録されている場合
|
202 |
if ( ! empty( $instance[ 'title_font_color' ] ) ) {
|
203 |
+
$widget_font_style .= 'color:' .$instance[ 'title_font_color' ].';';
|
204 |
} else {
|
205 |
// その他(色が登録されていない)
|
206 |
+
$widget_font_style .= '';
|
207 |
}
|
208 |
+
|
209 |
+
// シャドウ
|
210 |
+
if ( isset( $instance[ 'title_shadow_use' ] ) && $instance[ 'title_shadow_use' ] ) {
|
211 |
+
if ( ! empty( $instance[ 'title_shadow_color' ] ) ){
|
212 |
+
$widget_font_style .= 'text-shadow:0 0 0.3em '.$instance[ 'title_shadow_color' ];
|
213 |
+
} else {
|
214 |
+
$widget_font_style .= 'text-shadow:0 0 0.3em #000';
|
215 |
+
}
|
216 |
+
}
|
217 |
+
|
218 |
return $widget_font_style;
|
219 |
}
|
220 |
|
222 |
{
|
223 |
$instance = self::default_options( $instance );
|
224 |
echo $args ['before_widget'];
|
225 |
+
echo '<div class="widget_ltg_adv_full_wide_title_outer" style="'.esc_attr( $this->widget_outer_style($instance) ).'">';
|
226 |
+
echo '<h2 class="widget_ltg_adv_full_wide_title_title" style="'.esc_attr( $this->widget_font_style($instance) ).'">'.wp_kses_post( $instance['title'] ).'</h1>';
|
227 |
// サブテキストがある場合
|
228 |
if ( ! empty( $instance['text'] ) ){
|
229 |
echo '<p style="'.$this->widget_font_style($instance).'" class="widget_ltg_adv_full_wide_title_caption">'.wp_kses_post( $instance['text'] ).'</p>';
|
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: 2017-
|
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 2.0.
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"X-Poedit-KeywordsList: __;_x;_e;_ex\n"
|
@@ -57,28 +57,36 @@ msgstr "全幅見出し"
|
|
57 |
msgid "This widget is used for single column only."
|
58 |
msgstr "このウィジェットは1カラム表示選択時に利用できます。"
|
59 |
|
60 |
-
#: ../inc/widgets/widget-full-wide-title.php:
|
61 |
#: ../inc/widgets/widget-new-posts.php:245
|
62 |
msgid "Title:"
|
63 |
msgstr "タイトル :"
|
64 |
|
65 |
-
#: ../inc/widgets/widget-full-wide-title.php:
|
66 |
msgid "Set image"
|
67 |
msgstr "画像を選択"
|
68 |
|
69 |
-
#: ../inc/widgets/widget-full-wide-title.php:
|
70 |
msgid "Delete image"
|
71 |
msgstr "画像を削除"
|
72 |
|
73 |
-
#: ../inc/widgets/widget-full-wide-title.php:
|
74 |
msgid "Title background color:"
|
75 |
msgstr "背景色:"
|
76 |
|
77 |
-
#: ../inc/widgets/widget-full-wide-title.php:
|
78 |
msgid "Text color of the title:"
|
79 |
msgstr "タイトルの文字色:"
|
80 |
|
81 |
-
#: ../inc/widgets/widget-full-wide-title.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
msgid "Sub title:"
|
83 |
msgstr "サブタイトル :"
|
84 |
|
@@ -170,6 +178,18 @@ msgstr "リンク先URL:"
|
|
170 |
msgid "Notation text:"
|
171 |
msgstr "表記テキスト:"
|
172 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
#~ msgid "Order by"
|
174 |
#~ msgstr "表示順"
|
175 |
|
@@ -792,9 +812,6 @@ msgstr "表記テキスト:"
|
|
792 |
#~ msgid "Button link url"
|
793 |
#~ msgstr "ボタンのリンク先URL"
|
794 |
|
795 |
-
#~ msgid "Text message"
|
796 |
-
#~ msgstr "テキストメッセージ"
|
797 |
-
|
798 |
#~ msgid "CTA setting"
|
799 |
#~ msgstr "CTA設定"
|
800 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: 2017-10-16 22:36+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 2.0.4\n"
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"X-Poedit-KeywordsList: __;_x;_e;_ex\n"
|
57 |
msgid "This widget is used for single column only."
|
58 |
msgstr "このウィジェットは1カラム表示選択時に利用できます。"
|
59 |
|
60 |
+
#: ../inc/widgets/widget-full-wide-title.php:56
|
61 |
#: ../inc/widgets/widget-new-posts.php:245
|
62 |
msgid "Title:"
|
63 |
msgstr "タイトル :"
|
64 |
|
65 |
+
#: ../inc/widgets/widget-full-wide-title.php:79
|
66 |
msgid "Set image"
|
67 |
msgstr "画像を選択"
|
68 |
|
69 |
+
#: ../inc/widgets/widget-full-wide-title.php:80
|
70 |
msgid "Delete image"
|
71 |
msgstr "画像を削除"
|
72 |
|
73 |
+
#: ../inc/widgets/widget-full-wide-title.php:121
|
74 |
msgid "Title background color:"
|
75 |
msgstr "背景色:"
|
76 |
|
77 |
+
#: ../inc/widgets/widget-full-wide-title.php:126
|
78 |
msgid "Text color of the title:"
|
79 |
msgstr "タイトルの文字色:"
|
80 |
|
81 |
+
#: ../inc/widgets/widget-full-wide-title.php:132
|
82 |
+
msgid "Text shadow"
|
83 |
+
msgstr "文字の影"
|
84 |
+
|
85 |
+
#: ../inc/widgets/widget-full-wide-title.php:136
|
86 |
+
msgid "Text shadow color:"
|
87 |
+
msgstr "文字の影の色 :"
|
88 |
+
|
89 |
+
#: ../inc/widgets/widget-full-wide-title.php:150
|
90 |
msgid "Sub title:"
|
91 |
msgstr "サブタイトル :"
|
92 |
|
178 |
msgid "Notation text:"
|
179 |
msgstr "表記テキスト:"
|
180 |
|
181 |
+
#: ../node_modules/rx/dist/rx.min.js:1
|
182 |
+
msgid "N"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: ../node_modules/rx/dist/rx.min.js:1
|
186 |
+
msgid "E"
|
187 |
+
msgstr ""
|
188 |
+
|
189 |
+
#: ../node_modules/rx/dist/rx.min.js:1
|
190 |
+
msgid "C"
|
191 |
+
msgstr ""
|
192 |
+
|
193 |
#~ msgid "Order by"
|
194 |
#~ msgstr "表示順"
|
195 |
|
812 |
#~ msgid "Button link url"
|
813 |
#~ msgstr "ボタンのリンク先URL"
|
814 |
|
|
|
|
|
|
|
815 |
#~ msgid "CTA setting"
|
816 |
#~ msgstr "CTA設定"
|
817 |
|
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.
|
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".
|
@@ -24,7 +24,16 @@ define( 'LIGHTNING_ADVANCED_URL', plugin_dir_url( __FILE__ ) );
|
|
24 |
define( 'LIGHTNING_ADVANCED_DIR', plugin_dir_path( __FILE__ ) );
|
25 |
define( 'LIGHTNING_ADVANCED_SHORT_NAME', 'LTG' );
|
26 |
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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' );
|
2 |
/**
|
3 |
* Plugin Name: Lightning Advanced Unit
|
4 |
* Plugin URI: http://lightning.vektor-inc.co.jp/
|
5 |
+
* Version: 2.5.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".
|
24 |
define( 'LIGHTNING_ADVANCED_DIR', plugin_dir_path( __FILE__ ) );
|
25 |
define( 'LIGHTNING_ADVANCED_SHORT_NAME', 'LTG' );
|
26 |
|
27 |
+
/*
|
28 |
+
スライドメニューをフックで解除に出来るように plugin_loaded を追加
|
29 |
+
*/
|
30 |
+
add_action('plugins_loaded', 'lightning_adv_unit_setup');
|
31 |
+
function lightning_adv_unit_setup(){
|
32 |
+
if ( apply_filters( 'lightning_slide_nav_load', true ) ){
|
33 |
+
require_once( LIGHTNING_ADVANCED_DIR . 'inc/navigation/navigation.php' );
|
34 |
+
}
|
35 |
+
}
|
36 |
+
|
37 |
require_once( LIGHTNING_ADVANCED_DIR . 'inc/widgets/widget-new-posts.php' );
|
38 |
require_once( LIGHTNING_ADVANCED_DIR . 'inc/menu-btn-position.php' );
|
39 |
require_once( LIGHTNING_ADVANCED_DIR . 'inc/sidebar-position.php' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: Lightning,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.7.0
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -44,11 +44,11 @@ e.g.
|
|
44 |
|
45 |
== Changelog ==
|
46 |
|
47 |
-
= 2.
|
48 |
-
* [ Add function ]
|
49 |
|
50 |
= 2.2.0 =
|
51 |
-
* [ Specification change ] When active Origin Pro or Variety that, labal color active.
|
52 |
|
53 |
= 2.0.0 =
|
54 |
* [ Specification change ] Change mobile menu break point
|
4 |
Tags: Lightning,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.7.0
|
7 |
+
Stable tag: 2.5.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
44 |
|
45 |
== Changelog ==
|
46 |
|
47 |
+
= 2.5.0 =
|
48 |
+
* [ Add function ][ Fuull wide Widget ] Add text shadow.
|
49 |
|
50 |
= 2.2.0 =
|
51 |
+
* [ Specification change ] When active Origin Pro or Variety that, labal color active.
|
52 |
|
53 |
= 2.0.0 =
|
54 |
* [ Specification change ] Change mobile menu break point
|