VK All in One Expansion Unit - Version 6.9.2

Version Description

  • [ bug fix ][ vk blocks ] Fixed bug that becomes unusable in WordPress 5.0
Download this release

Release Info

Developer kurudrive
Plugin Icon 128x128 VK All in One Expansion Unit
Version 6.9.2
Comparing to
See all releases

Code changes from version 6.9.1 to 6.9.2

plugins/child_page_index.php CHANGED
@@ -4,10 +4,11 @@
4
/* Child page index
5
/*-------------------------------------------*/
6
7
- function veu_child_page_excerpt( $post ){
8
9
// そもそも post_excerpt が存在しなかったらreturn( $post自体が正しく受け取れてない )
10
- if ( ! isset( $post->post_excerpt ) ) { return; }
11
12
// 抜粋を取得
13
$page_excerpt = nl2br( esc_textarea( strip_tags( $post->post_excerpt ) ) );
@@ -16,7 +17,7 @@ function veu_child_page_excerpt( $post ){
16
if ( ! $page_excerpt ) {
17
18
// 本文欄から取得し、タグを除去
19
- $page_excerpt = esc_textarea( strip_tags($post->post_content ) );
20
21
if ( 90 < mb_strlen( $page_excerpt ) ) {
22
// 90文字でトリム
@@ -25,10 +26,9 @@ function veu_child_page_excerpt( $post ){
25
$page_excerpt .= '...';
26
27
}
28
-
29
}
30
31
- $page_excerpt = str_replace(PHP_EOL, '', $page_excerpt);
32
33
return $page_excerpt;
34
}
@@ -46,52 +46,60 @@ function vkExUnit_childPageIndex_shortcode() {
46
} else {
47
48
global $post;
49
- if ( ! is_page() || ! get_post_meta( $post->ID, 'vkExUnit_childPageIndex', true ) ) { return false; }
50
$parentId = $post->ID;
51
52
}
53
54
- $args = array(
55
- 'post_type' => 'page',
56
- 'posts_per_page' => -1,
57
- 'order' => 'ASC',
58
- 'orderby' => 'menu_order',
59
- 'post_parent' => $parentId,
60
);
61
$childrens = get_posts( $args );
62
63
- if ( empty( $childrens ) ) { wp_reset_query(); return false; }
64
65
- $childPageList_html = PHP_EOL.'<div class="veu_childPage_list">'.PHP_EOL;
66
- foreach( $childrens as $children ):
67
68
$postExcerpt = veu_child_page_excerpt( $children );
69
70
// Page Item build
71
- $childPageList_html .= '<a href="'.esc_url( get_permalink( $children->ID ) ).'" class="childPage_list_box"><div class="childPage_list_box_inner">';
72
- $childPageList_html .= '<h3 class="childPage_list_title">'.esc_html( strip_tags( $children->post_title ) ).'</h3>';
73
$childPageList_html .= '<div class="childPage_list_body">';
74
- $childPageList_html .= apply_filters('veu_child_index_thumbnail',get_the_post_thumbnail( $children->ID, 'thumbnail' ));
75
- $childPageList_html .= '<p class="childPage_list_text">'.$postExcerpt.'</p>';
76
- $childPageList_html .= '<span class="childPage_list_more btn btn-primary btn-xs">'.__( 'Read more', 'vkExUnit' ).'</span>';
77
$childPageList_html .= '</div>';
78
79
- $childPageList_html .= '</div></a>'.PHP_EOL;
80
endforeach;
81
82
- $childPageList_html .= PHP_EOL.'</div><!-- [ /.childPage_list ] -->'.PHP_EOL;
83
wp_reset_query();
84
85
return $childPageList_html;
86
}
87
88
89
- if( veu_content_filter_state() == 'content' ) add_filter( 'the_content', 'vkExUnit_childPageIndex_contentHook', 7, 1 );
90
- else add_action( 'loop_end', 'vkExUnit_chidPageIndex_loopend', 10, 1 );
91
92
93
- function vkExUnit_chidPageIndex_loopend( $query ){
94
- if( ! $query->is_main_query() ) return;
95
echo vkExUnit_childPageIndex_shortcode();
96
}
97
@@ -101,15 +109,18 @@ function vkExUnit_chidPageIndex_loopend( $query ){
101
function vkExUnit_childPageIndex_contentHook( $content ) {
102
103
// 抜粋だったらそのまま返す
104
- if ( vkExUnit_is_excerpt() ) { return $content; }
105
106
// ウィジェットだったらそのまま返す
107
global $is_pagewidget;
108
- if ( $is_pagewidget ) { return $content; }
109
110
// 固定ページじゅあないか、子ページインデックスを出力する設定でない場合はそのまま返す
111
global $post;
112
- if ( ! is_page() || ! get_post_meta( $post->ID, 'vkExUnit_childPageIndex',true ) ) { return $content; }
113
114
$content .= "\n[vkExUnit_childs]";
115
@@ -133,10 +144,10 @@ function veu_child_page_index_admin_metabox_content() {
133
// childPageIndex display
134
$enable = get_post_meta( $post->ID, 'vkExUnit_childPageIndex', true );?>
135
<div>
136
- <input type="hidden" name="_nonce_vkExUnit__custom_field_childPageIndex" id="_nonce_vkExUnit__custom_field_childPageIndex" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) );?>" />
137
<label for="vkExUnit_childPageIndex">
138
- <input type="checkbox" id="vkExUnit_childPageIndex" name="vkExUnit_childPageIndex"<?php echo ($enable)? ' checked' : ''; ?> />
139
- <?php _e( 'Display a child page index', 'vkExUnit' );?>
140
</label>
141
</div>
142
<?php
@@ -159,14 +170,15 @@ function veu_child_page_index_save_custom_field( $post_id ) {
159
$data = isset( $_POST['vkExUnit_childPageIndex'] ) ? htmlspecialchars( $_POST['vkExUnit_childPageIndex'] ) : null;
160
161
if ( 'page' == $data ) {
162
- if ( ! current_user_can( 'edit_page', $post_id ) ) { return $post_id; }
163
}
164
165
if ( '' == get_post_meta( $post_id, 'vkExUnit_childPageIndex' ) ) {
166
add_post_meta( $post_id, 'vkExUnit_childPageIndex', $data, true );
167
- } else if ( $data != get_post_meta( $post_id, 'vkExUnit_childPageIndex' ) ) {
168
update_post_meta( $post_id, 'vkExUnit_childPageIndex', $data );
169
- } else if ( '' == $data ) {
170
delete_post_meta( $post_id, 'vkExUnit_childPageIndex' );
171
}
172
4
/* Child page index
5
/*-------------------------------------------*/
6
7
+ function veu_child_page_excerpt( $post ) {
8
9
// そもそも post_excerpt が存在しなかったらreturn( $post自体が正しく受け取れてない )
10
+ if ( ! isset( $post->post_excerpt ) ) {
11
+ return; }
12
13
// 抜粋を取得
14
$page_excerpt = nl2br( esc_textarea( strip_tags( $post->post_excerpt ) ) );
17
if ( ! $page_excerpt ) {
18
19
// 本文欄から取得し、タグを除去
20
+ $page_excerpt = esc_textarea( strip_tags( $post->post_content ) );
21
22
if ( 90 < mb_strlen( $page_excerpt ) ) {
23
// 90文字でトリム
26
$page_excerpt .= '...';
27
28
}
29
}
30
31
+ $page_excerpt = str_replace( PHP_EOL, '', $page_excerpt );
32
33
return $page_excerpt;
34
}
46
} else {
47
48
global $post;
49
+ if ( ! is_page() || ! get_post_meta( $post->ID, 'vkExUnit_childPageIndex', true ) ) {
50
+ return false; }
51
$parentId = $post->ID;
52
53
}
54
55
+ $args = array(
56
+ 'post_type' => 'page',
57
+ 'posts_per_page' => -1,
58
+ 'order' => 'ASC',
59
+ 'orderby' => 'menu_order',
60
+ 'post_parent' => $parentId,
61
);
62
$childrens = get_posts( $args );
63
64
+ if ( empty( $childrens ) ) {
65
+ wp_reset_query();
66
+ return false; }
67
68
+ $childPageList_html = PHP_EOL . '<div class="veu_childPage_list">' . PHP_EOL;
69
+ foreach ( $childrens as $children ) :
70
71
$postExcerpt = veu_child_page_excerpt( $children );
72
73
// Page Item build
74
+ $childPageList_html .= '<a href="' . esc_url( get_permalink( $children->ID ) ) . '" class="childPage_list_box"><div class="childPage_list_box_inner">';
75
+ $childPageList_html .= '<h3 class="childPage_list_title">' . esc_html( strip_tags( $children->post_title ) ) . '</h3>';
76
$childPageList_html .= '<div class="childPage_list_body">';
77
+ $childPageList_html .= apply_filters( 'veu_child_index_thumbnail', get_the_post_thumbnail( $children->ID, 'thumbnail' ) );
78
+ $childPageList_html .= '<p class="childPage_list_text">' . $postExcerpt . '</p>';
79
+ $childPageList_html .= '<span class="childPage_list_more btn btn-primary btn-xs">' . __( 'Read more', 'vkExUnit' ) . '</span>';
80
$childPageList_html .= '</div>';
81
82
+ $childPageList_html .= '</div></a>' . PHP_EOL;
83
endforeach;
84
85
+ $childPageList_html .= PHP_EOL . '</div><!-- [ /.childPage_list ] -->' . PHP_EOL;
86
wp_reset_query();
87
88
return $childPageList_html;
89
}
90
91
92
+ if ( veu_content_filter_state() == 'content' ) {
93
+ add_filter( 'the_content', 'vkExUnit_childPageIndex_contentHook', 7, 1 );
94
+ } else {
95
+ add_action( 'loop_end', 'vkExUnit_chidPageIndex_loopend', 10, 1 );
96
+ }
97
98
99
+ function vkExUnit_chidPageIndex_loopend( $query ) {
100
+ if ( ! $query->is_main_query() ) {
101
+ return;
102
+ }
103
echo vkExUnit_childPageIndex_shortcode();
104
}
105
109
function vkExUnit_childPageIndex_contentHook( $content ) {
110
111
// 抜粋だったらそのまま返す
112
+ if ( vkExUnit_is_excerpt() ) {
113
+ return $content; }
114
115
// ウィジェットだったらそのまま返す
116
global $is_pagewidget;
117
+ if ( $is_pagewidget ) {
118
+ return $content; }
119
120
// 固定ページじゅあないか、子ページインデックスを出力する設定でない場合はそのまま返す
121
global $post;
122
+ if ( ! is_page() || ! get_post_meta( $post->ID, 'vkExUnit_childPageIndex', true ) ) {
123
+ return $content; }
124
125
$content .= "\n[vkExUnit_childs]";
126
144
// childPageIndex display
145
$enable = get_post_meta( $post->ID, 'vkExUnit_childPageIndex', true );?>
146
<div>
147
+ <input type="hidden" name="_nonce_vkExUnit__custom_field_childPageIndex" id="_nonce_vkExUnit__custom_field_childPageIndex" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" />
148
<label for="vkExUnit_childPageIndex">
149
+ <input type="checkbox" id="vkExUnit_childPageIndex" name="vkExUnit_childPageIndex"<?php echo ( $enable ) ? ' checked' : ''; ?> />
150
+ <?php _e( 'Display a child page index', 'vkExUnit' ); ?>
151
</label>
152
</div>
153
<?php
170
$data = isset( $_POST['vkExUnit_childPageIndex'] ) ? htmlspecialchars( $_POST['vkExUnit_childPageIndex'] ) : null;
171
172
if ( 'page' == $data ) {
173
+ if ( ! current_user_can( 'edit_page', $post_id ) ) {
174
+ return $post_id; }
175
}
176
177
if ( '' == get_post_meta( $post_id, 'vkExUnit_childPageIndex' ) ) {
178
add_post_meta( $post_id, 'vkExUnit_childPageIndex', $data, true );
179
+ } elseif ( $data != get_post_meta( $post_id, 'vkExUnit_childPageIndex' ) ) {
180
update_post_meta( $post_id, 'vkExUnit_childPageIndex', $data );
181
+ } elseif ( '' == $data ) {
182
delete_post_meta( $post_id, 'vkExUnit_childPageIndex' );
183
}
184
plugins/sitemap_page/hide-controller.php CHANGED
@@ -5,20 +5,20 @@
5
/*-------------------------------------------*/
6
7
/** アクションフックを使用して作成した関数を登録 */
8
- add_action( 'admin_menu', 'vue_sitemap_hide_menu' );
9
10
/** メニュー作成用のコードを含む関数を作成 */
11
- function vue_sitemap_hide_menu() {
12
-
13
- // 現在存在する固定ページを取得
14
- /*-------------------------------------------*/
15
- add_meta_box(
16
- 'sitemap-meta-box', // metaboxのID
17
- veu_get_little_short_name().' '. __( 'Site Map Hide', 'vkExUnit' ), // metaboxの表示名
18
- 'veu_sitemap_meta_box_callback', // このメタボックスに表示する中身の関数名
19
- 'page', // このメタボックスをどの投稿タイプで表示するのか?
20
- 'side' // 表示する位置
21
- );
22
}
23
24
@@ -28,26 +28,25 @@ function vue_sitemap_hide_menu() {
28
29
function veu_sitemap_meta_box_callback() {
30
31
- //CSRF対策の設定(フォームにhiddenフィールドとして追加するためのnonceを「'noncename__sitemap_hide」として設定)
32
- wp_nonce_field( wp_create_nonce(__FILE__), 'noncename__sitemap_hide' );
33
34
- global $post;
35
- // カスタムフィールド 'sitemap_hide' の値を取得
36
- $sitemap_hide = array();
37
- $sitemap_hide = get_post_meta( $post->ID, 'sitemap_hide', true );
38
39
- // チェックが入っている場合( 表示しない )
40
- if ( $sitemap_hide ) {
41
- $checked = ' checked';
42
- } else {
43
- $checked = '';
44
- }
45
-
46
- $label = __('Don\'t display on Sitemap.', 'vkExUnit' );
47
- echo '<ul>';
48
- echo '<li><label>'.'<input type="checkbox" id="sitemap_hide" name="sitemap_hide" value="true"'.$checked.'> '.$label.'</label></li>';
49
- echo '</ul>';
50
51
52
}
53
@@ -56,34 +55,34 @@ function veu_sitemap_meta_box_callback() {
56
/* 入力された値の保存
57
/*-------------------------------------------*/
58
59
- add_action('save_post', 'vue_sitemap_hide_controller_save');
60
61
- function vue_sitemap_hide_controller_save($post_id){
62
- global $post;
63
- //設定したnonce を取得(CSRF対策)
64
- $noncename__sitemap_hide = isset($_POST['noncename__sitemap_hide']) ? $_POST['noncename__sitemap_hide'] : null;
65
- //nonce を確認し、値が書き換えられていれば、何もしない(CSRF対策)
66
- if(!wp_verify_nonce($noncename__sitemap_hide, wp_create_nonce(__FILE__))) {
67
- return $post_id;
68
- }
69
70
- //自動保存ルーチンかどうかチェック。そうだった場合は何もしない(記事の自動保存処理として呼び出された場合の対策)
71
- // if(defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { return $post_id; }
72
73
- $field = 'sitemap_hide';
74
- $field_value = ( isset( $_POST[$field] ) ) ? $_POST[$field] : '';
75
- // データが空だったら入れる
76
- if( get_post_meta($post_id, $field ) == ""){
77
- add_post_meta($post_id, $field , $field_value, true);
78
- // 今入ってる値と違ってたらアップデートする
79
- } elseif( $field_value != get_post_meta( $post_id, $field , true)){
80
- update_post_meta($post_id, $field , $field_value);
81
- // 入力がなかったら消す
82
- } elseif( $field_value == "" ){
83
- delete_post_meta($post_id, $field , get_post_meta( $post_id, $field , true ));
84
- }
85
86
- } // function vue_sitemap_hide_controller_save(){
87
88
89
/*-------------------------------------------*/
@@ -93,36 +92,35 @@ function vue_sitemap_hide_controller_save($post_id){
93
function veu_sitemap_exclude_page_ids() {
94
95
// meta_key が sitemap_hide が true で post_type が page の投稿を取得する
96
- $args = array(
97
- 'posts_per_page' => -1, // 取得する数
98
- 'post_type' => 'page', // 投稿タイプ名
99
- 'meta_query' => array(
100
- array(
101
- 'key' => 'sitemap_hide',
102
- 'value' => 'true',
103
- )
104
- )
105
- );
106
- $sitemap_hide_customPosts = get_posts($args);
107
-
108
-
109
- // 取得した投稿データをループして、id名を $excludes に追加していく
110
- // 「sitemap_hide」フィールドの値が格納されていたら「$excludes」に ID を追加する処理を開始
111
- if( $sitemap_hide_customPosts ) {
112
- $excludes = '';
113
- foreach( $sitemap_hide_customPosts as $key => $value ) {
114
- // print_r($value);
115
-
116
- if( ! $excludes ) {
117
- $excludes .= $value->ID;
118
- } else {
119
- $excludes .= ','.$value->ID;
120
- }
121
-
122
- $excludes = esc_attr( $excludes );
123
- }
124
-
125
- return $excludes;
126
- } // if( $sitemap_hide_customPosts ) {
127
128
} // function veu_sitemap_exclude_page_ids() {
5
/*-------------------------------------------*/
6
7
/** アクションフックを使用して作成した関数を登録 */
8
+ add_action( 'admin_menu', 'veu_sitemap_hide_menu' );
9
10
/** メニュー作成用のコードを含む関数を作成 */
11
+ function veu_sitemap_hide_menu() {
12
+
13
+ // 現在存在する固定ページを取得
14
+ /*-------------------------------------------*/
15
+ add_meta_box(
16
+ 'sitemap-meta-box', // metaboxのID
17
+ veu_get_little_short_name() . ' ' . __( 'Site Map Hide', 'vkExUnit' ), // metaboxの表示名
18
+ 'veu_sitemap_meta_box_callback', // このメタボックスに表示する中身の関数名
19
+ 'page', // このメタボックスをどの投稿タイプで表示するのか?
20
+ 'side' // 表示する位置
21
+ );
22
}
23
24
28
29
function veu_sitemap_meta_box_callback() {
30
31
+ //CSRF対策の設定(フォームにhiddenフィールドとして追加するためのnonceを「'noncename__sitemap_hide」として設定)
32
+ wp_nonce_field( wp_create_nonce( __FILE__ ), 'noncename__sitemap_hide' );
33
34
+ global $post;
35
+ // カスタムフィールド 'sitemap_hide' の値を取得
36
+ $sitemap_hide = array();
37
+ $sitemap_hide = get_post_meta( $post->ID, 'sitemap_hide', true );
38
39
+ // チェックが入っている場合( 表示しない )
40
+ if ( $sitemap_hide ) {
41
+ $checked = ' checked';
42
+ } else {
43
+ $checked = '';
44
+ }
45
46
+ $label = __( 'Don\'t display on Sitemap.', 'vkExUnit' );
47
+ echo '<ul>';
48
+ echo '<li><label>' . '<input type="checkbox" id="sitemap_hide" name="sitemap_hide" value="true"' . $checked . '> ' . $label . '</label></li>';
49
+ echo '</ul>';
50
51
}
52
55
/* 入力された値の保存
56
/*-------------------------------------------*/
57
58
+ add_action( 'save_post', 'veu_sitemap_hide_controller_save' );
59
60
+ function veu_sitemap_hide_controller_save( $post_id ) {
61
+ global $post;
62
+ //設定したnonce を取得(CSRF対策)
63
+ $noncename__sitemap_hide = isset( $_POST['noncename__sitemap_hide'] ) ? $_POST['noncename__sitemap_hide'] : null;
64
+ //nonce を確認し、値が書き換えられていれば、何もしない(CSRF対策)
65
+ if ( ! wp_verify_nonce( $noncename__sitemap_hide, wp_create_nonce( __FILE__ ) ) ) {
66
+ return $post_id;
67
+ }
68
69
+ //自動保存ルーチンかどうかチェック。そうだった場合は何もしない(記事の自動保存処理として呼び出された場合の対策)
70
+ // if(defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { return $post_id; }
71
72
+ $field = 'sitemap_hide';
73
+ $field_value = ( isset( $_POST[ $field ] ) ) ? $_POST[ $field ] : '';
74
+ // データが空だったら入れる
75
+ if ( get_post_meta( $post_id, $field ) == '' ) {
76
+ add_post_meta( $post_id, $field, $field_value, true );
77
+ // 今入ってる値と違ってたらアップデートする
78
+ } elseif ( $field_value != get_post_meta( $post_id, $field, true ) ) {
79
+ update_post_meta( $post_id, $field, $field_value );
80
+ // 入力がなかったら消す
81
+ } elseif ( $field_value == '' ) {
82
+ delete_post_meta( $post_id, $field, get_post_meta( $post_id, $field, true ) );
83
+ }
84
85
+ } // function veu_sitemap_hide_controller_save(){
86
87
88
/*-------------------------------------------*/
92
function veu_sitemap_exclude_page_ids() {
93
94
// meta_key が sitemap_hide が true で post_type が page の投稿を取得する
95
+ $args = array(
96
+ 'posts_per_page' => -1, // 取得する数
97
+ 'post_type' => 'page', // 投稿タイプ名
98
+ 'meta_query' => array(
99
+ array(
100
+ 'key' => 'sitemap_hide',
101
+ 'value' => 'true',
102
+ ),
103
+ ),
104
+ );
105
+ $sitemap_hide_customPosts = get_posts( $args );
106
+
107
+ // 取得した投稿データをループして、id名を $excludes に追加していく
108
+ // 「sitemap_hide」フィールドの値が格納されていたら「$excludes」に ID を追加する処理を開始
109
+ if ( $sitemap_hide_customPosts ) {
110
+ $excludes = '';
111
+ foreach ( $sitemap_hide_customPosts as $key => $value ) {
112
+ // print_r($value);
113
+
114
+ if ( ! $excludes ) {
115
+ $excludes .= $value->ID;
116
+ } else {
117
+ $excludes .= ',' . $value->ID;
118
+ }
119
+
120
+ $excludes = esc_attr( $excludes );
121
+ }
122
+
123
+ return $excludes;
124
+ } // if( $sitemap_hide_customPosts ) {
125
126
} // function veu_sitemap_exclude_page_ids() {
plugins/sitemap_page/sitemap_admin.php CHANGED
@@ -1,5 +1,5 @@
1
<?php
2
- $options = vkExUnit_get_sitemap_options();
3
// $options_default = veu_get_sns_options_default();
4
/*-------------------------------------------*/
5
/* sitemap page
1
<?php
2
+ $options = veu_get_sitemap_options();
3
// $options_default = veu_get_sns_options_default();
4
/*-------------------------------------------*/
5
/* sitemap page
plugins/sitemap_page/sitemap_page.php CHANGED
@@ -17,41 +17,38 @@
17
/* Add setting page
18
/*-------------------------------------------*/
19
20
- function vkExUnit_add_sitemap_options_page() {
21
require dirname( __FILE__ ) . '/sitemap_admin.php';
22
}
23
24
require_once dirname( __FILE__ ) . '/hide-controller.php';
25
26
-
27
-
28
-
29
/*-------------------------------------------*/
30
/* Options Init
31
/*-------------------------------------------*/
32
function vkExUnit_sitemap_options_init() {
33
- if ( false === vkExUnit_get_sitemap_options() ) {
34
- add_option( 'vkExUnit_sitemap_options', vkExUnit_get_sitemap_options_default() ); }
35
36
vkExUnit_register_setting(
37
__( 'HTML Sitemap', 'vkExUnit' ),
38
'vkExUnit_sitemap_options',
39
- 'vkExUnit_sitemap_options_validate',
40
- 'vkExUnit_add_sitemap_options_page'
41
);
42
}
43
add_action( 'vkExUnit_package_init', 'vkExUnit_sitemap_options_init' );
44
45
- function vkExUnit_get_sitemap_options() {
46
- $options = get_option( 'vkExUnit_sitemap_options', vkExUnit_get_sitemap_options_default() );
47
- $options_dafault = vkExUnit_get_sitemap_options_default();
48
foreach ( $options_dafault as $key => $value ) {
49
- $options[ $key ] = (isset( $options[ $key ] )) ? $options[ $key ] : $options_dafault[ $key ];
50
}
51
return apply_filters( 'vkExUnit_sitemap_options', $options );
52
}
53
54
- function vkExUnit_get_sitemap_options_default() {
55
$default_options = array(
56
'excludeId' => '',
57
);
@@ -61,36 +58,54 @@ function vkExUnit_get_sitemap_options_default() {
61
/*-------------------------------------------*/
62
/* validate
63
/*-------------------------------------------*/
64
- function vkExUnit_sitemap_options_validate( $input ) {
65
- $output = $defaults = vkExUnit_get_sitemap_options_default();
66
67
$paras = array( 'excludeId' );
68
69
foreach ( $paras as $key => $value ) {
70
- $output[ $value ] = (isset( $input[ $value ] )) ? $input[ $value ] : '';
71
}
72
- return apply_filters( 'vkExUnit_sitemap_options_validate', $output, $input, $defaults );
73
}
74
75
/*-------------------------------------------*/
76
/* insert sitemap page
77
/*-------------------------------------------*/
78
- if( veu_content_filter_state() == 'content' ) add_filter( 'the_content', 'show_sitemap', 7, 1 );
79
- else add_action( 'loop_end', 'vkExUnit_sitemap_loopend' );
80
-
81
-
82
- function vkExUnit_sitemap_loopend( $query ){
83
- if( ! $query->is_main_query() ) return;
84
- echo show_sitemap('');
85
}
86
87
88
function show_sitemap( $content ) {
89
global $is_pagewidget;
90
- if ( $is_pagewidget ) { return $content; }
91
wp_reset_postdata(); // need under other section / ex:child page index
92
global $post;
93
- $enable = get_post_meta( $post->ID, 'vkExUnit_sitemap',true );
94
if ( $enable ) {
95
return $content . "\n" . do_shortcode( '[vkExUnit_sitemap]' );
96
}
@@ -99,57 +114,66 @@ function show_sitemap( $content ) {
99
100
function vkExUnit_sitemap( $atts ) {
101
102
- extract(shortcode_atts(array(
103
- 'exclude' => '',
104
- ), $atts));
105
106
- $sitemap_html = '<div class="row veu_sitemap">'.PHP_EOL;
107
108
/*-------------------------------------------*/
109
/* Exclude Page ids by ExUnit Main Setting Page
110
/*-------------------------------------------*/
111
- $options = vkExUnit_get_sitemap_options();
112
$excludes = esc_attr( $options['excludeId'] );
113
- $excludes = str_replace( ',',',',$excludes );
114
$excludes = mb_convert_kana( $excludes, 'kvrn' );
115
116
/*-------------------------------------------*/
117
/* Exclude Page ids by Page Edit meta box
118
/*-------------------------------------------*/
119
$veu_sitemap_exclude_page_ids = veu_sitemap_exclude_page_ids();
120
- if( ! $excludes ) {
121
$excludes .= $veu_sitemap_exclude_page_ids;
122
- } elseif( $excludes && $veu_sitemap_exclude_page_ids ) {
123
- $excludes .= ','.$veu_sitemap_exclude_page_ids;
124
}
125
126
-
127
-
128
/*-------------------------------------------*/
129
/* pages
130
/*-------------------------------------------*/
131
- $sitemap_html .= '<div class="col-md-6 sitemap-col">'.PHP_EOL;
132
- $sitemap_html .= '<ul class="link-list">'.PHP_EOL;
133
- $args = array(
134
- 'title_li' => '',
135
- 'echo' => 0,
136
- 'exclude_tree' => $excludes,
137
);
138
$sitemap_html .= wp_list_pages( $args );
139
140
- $sitemap_html .= '</ul>'.PHP_EOL; // <!-- [ /.link-list ] -->
141
- $sitemap_html .= '</div>'.PHP_EOL; //<!-- [ /.sitemap-col ] -->
142
143
/*-------------------------------------------*/
144
/* Posts & Custom posts
145
/*-------------------------------------------*/
146
- $sitemap_html .= '<div class="col-md-6 sitemap-col">'.PHP_EOL;
147
148
$page_for_posts = vkExUnit_get_page_for_posts();
149
- $allPostTypes = get_post_types( array( 'public' => true ) );
150
151
- $p = get_posts(array('post_type'=>'post','post_status'=>'publish'));
152
- if( empty($p) ) unset( $allPostTypes['post'] );
153
154
foreach ( $allPostTypes as $postType ) {
155
$post_type_object = get_post_type_object( $postType );
@@ -159,24 +183,24 @@ function vkExUnit_sitemap( $atts ) {
159
// post-type is post
160
if ( $postType_name === 'post' ) {
161
162
- $postTypes = array( 'post' );
163
$taxonomies = get_taxonomies();
164
// Loop all post types
165
foreach ( $postTypes as $key => $postType ) {
166
167
- $sitemap_html .= '<div class="sectionBox">'.PHP_EOL;
168
$post_type_object = get_post_type_object( $postType );
169
if ( $post_type_object ) {
170
171
// Post type name
172
if ( $postType == 'post' && $page_for_posts['post_top_use'] ) {
173
- $postTypeName = $page_for_posts['post_top_name'];
174
$postTypeTopUrl = get_the_permalink( $page_for_posts['post_top_id'] );
175
} else {
176
- $postTypeName = $post_type_object->labels->name;
177
- $postTypeTopUrl = home_url().'/?post_type='.$postType;
178
}
179
- $sitemap_html .= '<h4><a href="'.$postTypeTopUrl.'">'.esc_html( $postTypeName ).'</a></h4>'.PHP_EOL;
180
181
// Loop for all taxonomies
182
foreach ( $taxonomies as $key => $taxonomy ) {
@@ -184,19 +208,19 @@ function vkExUnit_sitemap( $atts ) {
184
185
// Get tax related post type
186
$taxonomy_postType = $taxonomy_info->object_type[0];
187
- if ( $taxonomy_postType == $postType && ( $taxonomy_info->name != 'post_format') ) {
188
- $args = array(
189
- 'taxonomy' => $taxonomy,
190
- 'title_li' => '',
191
- 'orderby' => 'order',
192
- 'echo' => 0,
193
'show_option_none' => '',
194
);
195
$tax_sitemap_html = wp_list_categories( $args );
196
197
if ( $tax_sitemap_html ) {
198
- $sitemap_html .= '<h5>'.$taxonomy_info->labels->name.'</h5>';
199
- $sitemap_html .= '<ul class="link-list">'.$tax_sitemap_html.'</ul>';
200
}
201
}
202
}
@@ -204,32 +228,32 @@ function vkExUnit_sitemap( $atts ) {
204
} // end foreach ($postTypes as $key => $postType)
205
} // end post-type is post
206
// not page_type and post_type
207
- else if ( $postType_name !== 'page' && $postType_name !== 'attachment' ) {
208
- $customPost_url = home_url().'/?post_type='.$postType_name;
209
- $sitemap_html .= '<h4><a href="'.$customPost_url.'">'.$post_type_object->labels->name.'</a></h4>'.PHP_EOL;
210
211
$termNames = get_object_taxonomies( $postType_name );
212
213
foreach ( $termNames as $termName ) {
214
- $termDate = get_taxonomy( $termName );
215
- $sitemap_html .= '<h5>'.$termDate->label.'</h5>'.PHP_EOL;
216
- $sitemap_html .= '<ul class="link-list">'.PHP_EOL;
217
- $args = array(
218
'taxonomy' => $termDate->name,
219
'title_li' => '',
220
'orderby' => 'order',
221
- 'echo' => 0,
222
'show_option_none' => '',
223
);
224
$sitemap_html .= wp_list_categories( $args );
225
- $sitemap_html .= '</ul>'.PHP_EOL;
226
}
227
} // end not page_type and post_type
228
} // end if($post_type_object)
229
} // end foreach ($allPostTypes as $postType)
230
- $sitemap_html .= '</div>'.PHP_EOL; // <!-- [ /.sectionBox ] -->
231
- $sitemap_html .= '</div>'.PHP_EOL; // <!-- [ /.sitemap-col ] -->
232
- $sitemap_html .= '</div>'.PHP_EOL; // <!-- [ /.sitemap ] -->
233
234
wp_reset_postdata();
235
wp_reset_query();
@@ -251,13 +275,13 @@ add_action( 'veu_content_meta_box_content', 'vkExUnit_sitemap_meta_box' );
251
function vkExUnit_sitemap_meta_box() {
252
global $post;
253
// sitemap display
254
- $enable = get_post_meta( $post->ID, 'vkExUnit_sitemap', true ); ?>
255
256
<div>
257
- <input type="hidden" name="_nonce_vkExUnit__custom_field_sitemap" id="_nonce_vkExUnit__custom_field_sitemap" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) );?>" />
258
<label for="vkExUnit_sitemap">
259
- <input type="checkbox" id="vkExUnit_sitemap" name="vkExUnit_sitemap" <?php echo ($enable)? ' checked' : ''; ?> />
260
- <?php _e( 'Display a HTML sitemap', 'vkExUnit' );?>
261
</label>
262
</div>
263
@@ -280,14 +304,15 @@ function vkExUnit_save_custom_field_sitemapData( $post_id ) {
280
$data = isset( $_POST['vkExUnit_sitemap'] ) ? htmlspecialchars( $_POST['vkExUnit_sitemap'] ) : null;
281
282
if ( 'page' == $data ) {
283
- if ( ! current_user_can( 'edit_page', $post_id ) ) { return $post_id; }
284
}
285
286
if ( '' == get_post_meta( $post_id, 'vkExUnit_sitemap' ) ) {
287
add_post_meta( $post_id, 'vkExUnit_sitemap', $data, true );
288
- } else if ( $data != get_post_meta( $post_id, 'vkExUnit_sitemap' ) ) {
289
update_post_meta( $post_id, 'vkExUnit_sitemap', $data );
290
- } else if ( '' == $data ) {
291
delete_post_meta( $post_id, 'vkExUnit_sitemap' );
292
}
293
}
17
/* Add setting page
18
/*-------------------------------------------*/
19
20
+ function veu_add_sitemap_options_page() {
21
require dirname( __FILE__ ) . '/sitemap_admin.php';
22
}
23
24
require_once dirname( __FILE__ ) . '/hide-controller.php';
25
26
/*-------------------------------------------*/
27
/* Options Init
28
/*-------------------------------------------*/
29
function vkExUnit_sitemap_options_init() {
30
+ if ( false === veu_get_sitemap_options() ) {
31
+ add_option( 'vkExUnit_sitemap_options', veu_get_sitemap_options_default() ); }
32
33
vkExUnit_register_setting(
34
__( 'HTML Sitemap', 'vkExUnit' ),
35
'vkExUnit_sitemap_options',
36
+ 'veu_sitemap_options_validate',
37
+ 'veu_add_sitemap_options_page'
38
);
39
}
40
add_action( 'vkExUnit_package_init', 'vkExUnit_sitemap_options_init' );
41
42
+ function veu_get_sitemap_options() {
43
+ $options = get_option( 'vkExUnit_sitemap_options', veu_get_sitemap_options_default() );
44
+ $options_dafault = veu_get_sitemap_options_default();
45
foreach ( $options_dafault as $key => $value ) {
46
+ $options[ $key ] = ( isset( $options[ $key ] ) ) ? $options[ $key ] : $options_dafault[ $key ];
47
}
48
return apply_filters( 'vkExUnit_sitemap_options', $options );
49
}
50
51
+ function veu_get_sitemap_options_default() {
52
$default_options = array(
53
'excludeId' => '',
54
);
58
/*-------------------------------------------*/
59
/* validate
60
/*-------------------------------------------*/
61
+ function veu_sitemap_options_validate( $input ) {
62
+ $output = $defaults = veu_get_sitemap_options_default();
63
64
$paras = array( 'excludeId' );
65
66
foreach ( $paras as $key => $value ) {
67
+ $output[ $value ] = ( isset( $input[ $value ] ) ) ? $input[ $value ] : '';
68
}
69
+ return apply_filters( 'veu_sitemap_options_validate', $output, $input, $defaults );
70
}
71
72
/*-------------------------------------------*/
73
/* insert sitemap page
74
/*-------------------------------------------*/
75
+ if ( veu_content_filter_state() == 'content' ) {
76
+ add_filter( 'the_content', 'veu_show_sitemap', 7, 1 );
77
+ } else {
78
+ add_action( 'loop_end', 'veu_sitemap_loopend' );
79
}
80
81
+ function veu_sitemap_loopend( $query ) {
82
+ if ( ! $query->is_main_query() ) {
83
+ return;
84
+ }
85
+ echo veu_show_sitemap( '' );
86
+ }
87
88
+ /**
89
+ * 現在は veu_show_sitemap() に変更になっているのが、旧 show_sitemap で飛び出された時用
90
+ * @param [type] $content [description]
91
+ * @return [type] [description]
92
+ */
93
function show_sitemap( $content ) {
94
+ veu_show_sitemap( $content );
95
+ }
96
+ /**
97
+ * [veu_show_sitemap description]
98
+ * @since 7.0
99
+ * @param [type] $content [description]
100
+ * @return [type] [description]
101
+ */
102
+ function veu_show_sitemap( $content ) {
103
global $is_pagewidget;
104
+ if ( $is_pagewidget ) {
105
+ return $content; }
106
wp_reset_postdata(); // need under other section / ex:child page index
107
global $post;
108
+ $enable = get_post_meta( $post->ID, 'vkExUnit_sitemap', true );
109
if ( $enable ) {
110
return $content . "\n" . do_shortcode( '[vkExUnit_sitemap]' );
111
}
114
115
function vkExUnit_sitemap( $atts ) {
116
117
+ extract(
118
+ shortcode_atts(
119
+ array(
120
+ 'exclude' => '',
121
+ ), $atts
122
+ )
123
+ );
124
125
+ $sitemap_html = '<div class="row veu_sitemap">' . PHP_EOL;
126
127
/*-------------------------------------------*/
128
/* Exclude Page ids by ExUnit Main Setting Page
129
/*-------------------------------------------*/
130
+ $options = veu_get_sitemap_options();
131
$excludes = esc_attr( $options['excludeId'] );
132
+ $excludes = str_replace( ',', ',', $excludes );
133
$excludes = mb_convert_kana( $excludes, 'kvrn' );
134
135
/*-------------------------------------------*/
136
/* Exclude Page ids by Page Edit meta box
137
/*-------------------------------------------*/
138
$veu_sitemap_exclude_page_ids = veu_sitemap_exclude_page_ids();
139
+ if ( ! $excludes ) {
140
$excludes .= $veu_sitemap_exclude_page_ids;
141
+ } elseif ( $excludes && $veu_sitemap_exclude_page_ids ) {
142
+ $excludes .= ',' . $veu_sitemap_exclude_page_ids;
143
}
144
145
/*-------------------------------------------*/
146
/* pages
147
/*-------------------------------------------*/
148
+ $sitemap_html .= '<div class="col-md-6 sitemap-col">' . PHP_EOL;
149
+ $sitemap_html .= '<ul class="link-list">' . PHP_EOL;
150
+ $args = array(
151
+ 'title_li' => '',
152
+ 'echo' => 0,
153
+ 'exclude_tree' => $excludes,
154
);
155
$sitemap_html .= wp_list_pages( $args );
156
157
+ $sitemap_html .= '</ul>' . PHP_EOL; // <!-- [ /.link-list ] -->
158
+ $sitemap_html .= '</div>' . PHP_EOL; //<!-- [ /.sitemap-col ] -->
159
160
/*-------------------------------------------*/
161
/* Posts & Custom posts
162
/*-------------------------------------------*/
163
+ $sitemap_html .= '<div class="col-md-6 sitemap-col">' . PHP_EOL;
164
165
$page_for_posts = vkExUnit_get_page_for_posts();
166
+ $allPostTypes = get_post_types( array( 'public' => true ) );
167
168
+ $p = get_posts(
169
+ array(
170
+ 'post_type' => 'post',
171
+ 'post_status' => 'publish',
172
+ )
173
+ );
174
+ if ( empty( $p ) ) {
175
+ unset( $allPostTypes['post'] );
176
+ }
177
178
foreach ( $allPostTypes as $postType ) {
179
$post_type_object = get_post_type_object( $postType );
183
// post-type is post
184
if ( $postType_name === 'post' ) {
185
186
+ $postTypes = array( 'post' );
187
$taxonomies = get_taxonomies();
188
// Loop all post types
189
foreach ( $postTypes as $key => $postType ) {
190
191
+ $sitemap_html .= '<div class="sectionBox">' . PHP_EOL;
192
$post_type_object = get_post_type_object( $postType );
193
if ( $post_type_object ) {
194
195
// Post type name
196
if ( $postType == 'post' && $page_for_posts['post_top_use'] ) {
197
+ $postTypeName = $page_for_posts['post_top_name'];
198
$postTypeTopUrl = get_the_permalink( $page_for_posts['post_top_id'] );
199
} else {
200
+ $postTypeName = $post_type_object->labels->name;
201
+ $postTypeTopUrl = home_url() . '/?post_type=' . $postType;
202
}
203
+ $sitemap_html .= '<h4><a href="' . $postTypeTopUrl . '">' . esc_html( $postTypeName ) . '</a></h4>' . PHP_EOL;
204
205
// Loop for all taxonomies
206
foreach ( $taxonomies as $key => $taxonomy ) {
208
209
// Get tax related post type
210
$taxonomy_postType = $taxonomy_info->object_type[0];
211
+ if ( $taxonomy_postType == $postType && ( $taxonomy_info->name != 'post_format' ) ) {
212
+ $args = array(
213
+ 'taxonomy' => $taxonomy,
214
+ 'title_li' => '',
215
+ 'orderby' => 'order',
216
+ 'echo' => 0,
217
'show_option_none' => '',
218
);
219
$tax_sitemap_html = wp_list_categories( $args );
220
221
if ( $tax_sitemap_html ) {
222
+ $sitemap_html .= '<h5>' . $taxonomy_info->labels->name . '</h5>';
223
+ $sitemap_html .= '<ul class="link-list">' . $tax_sitemap_html . '</ul>';
224
}
225
}
226
}
228
} // end foreach ($postTypes as $key => $postType)
229
} // end post-type is post
230
// not page_type and post_type
231
+ elseif ( $postType_name !== 'page' && $postType_name !== 'attachment' ) {
232
+ $customPost_url = home_url() . '/?post_type=' . $postType_name;
233
+ $sitemap_html .= '<h4><a href="' . $customPost_url . '">' . $post_type_object->labels->name . '</a></h4>' . PHP_EOL;
234
235
$termNames = get_object_taxonomies( $postType_name );
236
237
foreach ( $termNames as $termName ) {
238
+ $termDate = get_taxonomy( $termName );
239
+ $sitemap_html .= '<h5>' . $termDate->label . '</h5>' . PHP_EOL;
240
+ $sitemap_html .= '<ul class="link-list">' . PHP_EOL;
241
+ $args = array(
242
'taxonomy' => $termDate->name,
243
'title_li' => '',
244
'orderby' => 'order',
245
+ 'echo' => 0,
246
'show_option_none' => '',
247
);
248
$sitemap_html .= wp_list_categories( $args );
249
+ $sitemap_html .= '</ul>' . PHP_EOL;
250
}
251
} // end not page_type and post_type
252
} // end if($post_type_object)
253
} // end foreach ($allPostTypes as $postType)
254
+ $sitemap_html .= '</div>' . PHP_EOL; // <!-- [ /.sectionBox ] -->
255
+ $sitemap_html .= '</div>' . PHP_EOL; // <!-- [ /.sitemap-col ] -->
256
+ $sitemap_html .= '</div>' . PHP_EOL; // <!-- [ /.sitemap ] -->
257
258
wp_reset_postdata();
259
wp_reset_query();
275
function vkExUnit_sitemap_meta_box() {
276
global $post;
277
// sitemap display
278
+ $enable = get_post_meta( $post->ID, 'vkExUnit_sitemap', true ); ?>
279
280
<div>
281
+ <input type="hidden" name="_nonce_vkExUnit__custom_field_sitemap" id="_nonce_vkExUnit__custom_field_sitemap" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" />
282
<label for="vkExUnit_sitemap">
283
+ <input type="checkbox" id="vkExUnit_sitemap" name="vkExUnit_sitemap" <?php echo ( $enable ) ? ' checked' : ''; ?> />
284
+ <?php _e( 'Display a HTML sitemap', 'vkExUnit' ); ?>
285
</label>
286
</div>
287
304
$data = isset( $_POST['vkExUnit_sitemap'] ) ? htmlspecialchars( $_POST['vkExUnit_sitemap'] ) : null;
305
306
if ( 'page' == $data ) {
307
+ if ( ! current_user_can( 'edit_page', $post_id ) ) {
308
+ return $post_id; }
309
}
310
311
if ( '' == get_post_meta( $post_id, 'vkExUnit_sitemap' ) ) {
312
add_post_meta( $post_id, 'vkExUnit_sitemap', $data, true );
313
+ } elseif ( $data != get_post_meta( $post_id, 'vkExUnit_sitemap' ) ) {
314
update_post_meta( $post_id, 'vkExUnit_sitemap', $data );
315
+ } elseif ( '' == $data ) {
316
delete_post_meta( $post_id, 'vkExUnit_sitemap' );
317
}
318
}
plugins/sns/function_follow.php CHANGED
@@ -1,8 +1,16 @@
1
<?php
2
3
- add_filter( 'the_content', 'vkExUnit_add_follow' );
4
5
- function vkExUnit_add_follow( $content ) {
6
$postType = vkExUnit_get_post_type();
7
8
if ( is_single() && $postType['slug'] == 'post' ) :
1
<?php
2
3
+ add_filter( 'the_content', 'veu_add_follow' );
4
5
+ // 旧関数名
6
+ function vkExUnit_add_follow() {
7
+ veu_add_follow();
8
+ }
9
+ /**
10
+ * @since 7.0.0 -
11
+ * @param [type] $content [description]
12
+ */
13
+ function veu_add_follow( $content ) {
14
$postType = vkExUnit_get_post_type();
15
16
if ( is_single() && $postType['slug'] == 'post' ) :
plugins/vk-blocks/build/block-build.css CHANGED
@@ -3,8 +3,8 @@
3
4
/*# sourceMappingURL=../map/alert/style.css.map */
5
6
- {"version":3,"sources":["style.css"],"names":[],"mappings":"AAAA,YAAY,oBAAA,AAAa,aAAA,sBAAA,AAAkB,kBAAA,CAAC,mBAAmB,QAAQ,CAAC,cAAc,qBAAqB,mBAAmB,qBAAqB,CAAC,iBAAiB,6BAAA,AAAgB,gBAAA,oBAAA,AAAc,cAAA,iBAAiB,CAAC,uBAAuB,sBAAsB,cAAc,CAAC,sBAAsB,cAAc,kBAAkB,iBAAiB,iBAAiB,CAAC,oBAAoB,kBAAkB,eAAe,CAAC,gFAAgF,iBAAiB,CAAC,2CAA2C,qBAAqB,kBAAkB,CAAC,kDAAkD,WAAW,kBAAkB,QAAQ,SAAS,6BAA6B,CAAC,2CAA2C,kBAAkB,CAAC,qGAAqG,kBAAkB,WAAW,kBAAkB,kBAAkB,CAAC,mDAAmD,WAAW,WAAW,CAAC,kDAAkD,WAAW,WAAW,CAAC,iEAAiE,iBAAiB,CAAC,2EAA2E,OAAO,QAAQ,2BAA2B,cAAc,iBAAiB,iBAAiB,CAAC,iEAAiE,mBAAmB,CAAC,4EAA4E,WAAW,OAAO,CAAC,2EAA2E,WAAW,QAAQ,CAAC,2BAA2B,+BAAA,AAA0B,0BAAA,CAAC,kEAAkE,gBAAgB,CAAC,4EAA4E,QAAQ,QAAQ,0BAA0B,eAAe,iBAAiB,kBAAkB,CAAC,kEAAkE,kBAAkB,CAAC,6EAA6E,YAAY,OAAO,CAAC,4EAA4E,YAAY,QAAQ,CAAC,oDAAoD,qBAAqB,iCAAiC,CAAC,qBAAqB,GAAG,2CAA2C,CAAC,IAAI,2CAA2C,CAAC,IAAI,2CAA2C,CAAC,IAAI,4CAA4C,CAAC,KAAK,2CAA2C,CAAC,CAAC,0CAA0C,YAAY,aAAa,CAAC,+EAA+E,oBAAoB,CAAC,sFAAsF,MAAM,YAAY,QAAQ,SAAS,8BAA8B,4BAA4B,aAAa,kBAAkB,gBAAgB,CAAC,+EAA+E,oBAAoB,CAAC,uFAAuF,UAAU,QAAQ,CAAC,sFAAsF,UAAU,SAAS,CAAC,sCAAsC,gBAAgB,CAAC,6EAA6E,iBAAiB,cAAc,CAAC,gFAAgF,oBAAoB,CAAC,uFAAuF,MAAM,aAAa,QAAQ,SAAS,8BAA8B,4BAA4B,aAAa,kBAAkB,gBAAgB,CAAC,6EAA6E,iBAAiB,cAAc,CAAC,gFAAgF,oBAAoB,CAAC,wFAAwF,WAAW,QAAQ,CAAC,uFAAuF,WAAW,SAAS,CAAC,iBAAiB,cAAc,CAAC,CAAC","file":"../../balloon/style.css","sourcesContent":[".vk_balloon{display:flex;align-items:center}.vk_balloon figure{margin:0}.vk_balloon p{word-break:break-all;background:#f5f5f5;padding:1.1rem 1.4rem}.vk_balloon_icon{flex-basis:96px;flex-shrink:0;text-align:center}.vk_balloon_icon_image{vertical-align:bottom;max-width:64px}.vk_balloon_icon_name{display:block;text-align:center;font-size:0.7rem;margin-top:0.2rem}.vk_balloon_content{position:relative;text-align:left}.vk_balloon_content.editor-rich-text__tinymce[data-is-placeholder-visible=true]{position:absolute}.vk_balloon-type-serif .vk_balloon_content{border-color:#f5f5f5;border-radius:.4em}.vk_balloon-type-serif .vk_balloon_content::after{content:'';position:absolute;width:0;height:0;border:20px solid transparent}.vk_balloon-type-think .vk_balloon_content{border-radius:2rem}.vk_balloon-type-think .vk_balloon_content::before,.vk_balloon-type-think .vk_balloon_content::after{position:absolute;content:'';border-radius:50%;background:inherit}.vk_balloon-type-think .vk_balloon_content::before{width:20px;height:20px}.vk_balloon-type-think .vk_balloon_content::after{width:10px;height:10px}.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_icon{margin-right:2rem}.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content::after{left:0;top:50%;border-right-color:inherit;border-left:0;margin-top:-20px;margin-left:-20px}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_icon{margin-right:2.5rem}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::before{left:-22px;top:7px}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::after{left:-35px;top:20px}.vk_balloon-position-right{flex-direction:row-reverse}.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_icon{margin-left:2rem}.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content::after{right:0;top:50%;border-left-color:inherit;border-right:0;margin-top:-20px;margin-right:-20px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:2.5rem}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::before{right:-22px;top:7px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::after{right:-35px;top:20px}.vk_balloon.animation-vibration .vk_balloon_content{display:inline-block;animation:vibration .1s infinite}@keyframes vibration{0%{transform:translate(0px, 0px) rotateZ(0deg)}25%{transform:translate(2px, 2px) rotateZ(1deg)}50%{transform:translate(0px, 2px) rotateZ(0deg)}75%{transform:translate(2px, 0px) rotateZ(-1deg)}100%{transform:translate(0px, 0px) rotateZ(0deg)}}@media only screen and (max-width: 480px){.vk_balloon{display:block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content::after{top:0;left:2.9rem;width:0;height:0;border:20px solid transparent;border-bottom-color:inherit;border-top:0;margin-left:-20px;margin-top:-20px}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::before{left:36px;top:-8px}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::after{left:47px;top:-20px}.vk_balloon.vk_balloon-position-right{text-align:right}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_icon{margin-left:auto;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content::after{top:0;right:2.9rem;width:0;height:0;border:20px solid transparent;border-bottom-color:inherit;border-top:0;margin-left:-20px;margin-top:-20px}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:auto;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::before{right:36px;top:-8px}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::after{right:47px;top:-20px}.vk_balloon_icon{max-width:96px}}\n"]}
7
- .vk_balloon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.vk_balloon figure{margin:0}.vk_balloon p{word-break:break-all;background:#f5f5f5;padding:1.1rem 1.4rem}.vk_balloon_icon{-ms-flex-preferred-size:96px;flex-basis:96px;-ms-flex-negative:0;flex-shrink:0;text-align:center}.vk_balloon_icon_image{vertical-align:bottom;max-width:64px}.vk_balloon_icon_name{display:block;text-align:center;font-size:0.7rem;margin-top:0.2rem}.vk_balloon_content{position:relative;text-align:left}.vk_balloon_content.editor-rich-text__tinymce[data-is-placeholder-visible=true]{position:absolute}.vk_balloon-type-serif .vk_balloon_content{border-color:#f5f5f5;border-radius:.4em}.vk_balloon-type-serif .vk_balloon_content::after{content:'';position:absolute;width:0;height:0;border:20px solid transparent}.vk_balloon-type-think .vk_balloon_content{border-radius:2rem}.vk_balloon-type-think .vk_balloon_content::before,.vk_balloon-type-think .vk_balloon_content::after{position:absolute;content:'';border-radius:50%;background:inherit}.vk_balloon-type-think .vk_balloon_content::before{width:20px;height:20px}.vk_balloon-type-think .vk_balloon_content::after{width:10px;height:10px}.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_icon{margin-right:2rem}.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content::after{left:0;top:50%;border-right-color:inherit;border-left:0;margin-top:-20px;margin-left:-20px}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_icon{margin-right:2.5rem}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::before{left:-22px;top:7px}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::after{left:-35px;top:20px}.vk_balloon-position-right{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_icon{margin-left:2rem}.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content::after{right:0;top:50%;border-left-color:inherit;border-right:0;margin-top:-20px;margin-right:-20px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:2.5rem}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::before{right:-22px;top:7px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::after{right:-35px;top:20px}.vk_balloon.animation-vibration .vk_balloon_content{display:inline-block;animation:vibration .1s infinite}@keyframes vibration{0%{transform:translate(0px, 0px) rotateZ(0deg)}25%{transform:translate(2px, 2px) rotateZ(1deg)}50%{transform:translate(0px, 2px) rotateZ(0deg)}75%{transform:translate(2px, 0px) rotateZ(-1deg)}100%{transform:translate(0px, 0px) rotateZ(0deg)}}@media only screen and (max-width: 480px){.vk_balloon{display:block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content::after{top:0;left:2.9rem;width:0;height:0;border:20px solid transparent;border-bottom-color:inherit;border-top:0;margin-left:-20px;margin-top:-20px}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::before{left:36px;top:-8px}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::after{left:47px;top:-20px}.vk_balloon.vk_balloon-position-right{text-align:right}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_icon{margin-left:auto;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content::after{top:0;right:2.9rem;width:0;height:0;border:20px solid transparent;border-bottom-color:inherit;border-top:0;margin-left:-20px;margin-top:-20px}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:auto;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::before{right:36px;top:-8px}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::after{right:47px;top:-20px}.vk_balloon_icon{max-width:96px}}
8
9
/*# sourceMappingURL=../map/balloon/style.css.map */
10
3
4
/*# sourceMappingURL=../map/alert/style.css.map */
5
6
+ {"version":3,"sources":["style.css"],"names":[],"mappings":"AAAA,YAAY,oBAAA,AAAa,aAAA,sBAAA,AAAmB,mBAAA,iBAAiB,CAAC,mBAAmB,QAAQ,CAAC,cAAc,qBAAqB,mBAAmB,qBAAqB,CAAC,iBAAiB,6BAAA,AAAgB,gBAAA,oBAAA,AAAc,cAAA,iBAAiB,CAAC,uBAAuB,sBAAsB,cAAc,CAAC,sBAAsB,cAAc,kBAAkB,iBAAiB,iBAAiB,CAAC,oBAAoB,kBAAkB,eAAe,CAAC,gFAAgF,iBAAiB,CAAC,2CAA2C,qBAAqB,kBAAkB,CAAC,kDAAkD,WAAW,kBAAkB,QAAQ,SAAS,6BAA6B,CAAC,2CAA2C,kBAAkB,CAAC,qGAAqG,kBAAkB,WAAW,kBAAkB,kBAAkB,CAAC,mDAAmD,WAAW,WAAW,CAAC,kDAAkD,WAAW,WAAW,CAAC,iEAAiE,iBAAiB,CAAC,2EAA2E,OAAO,QAAQ,2BAA2B,cAAc,iBAAiB,iBAAiB,CAAC,iEAAiE,mBAAmB,CAAC,4EAA4E,WAAW,OAAO,CAAC,2EAA2E,WAAW,QAAQ,CAAC,2BAA2B,+BAAA,AAA0B,0BAAA,CAAC,kEAAkE,gBAAgB,CAAC,4EAA4E,QAAQ,QAAQ,0BAA0B,eAAe,iBAAiB,kBAAkB,CAAC,kEAAkE,kBAAkB,CAAC,6EAA6E,YAAY,OAAO,CAAC,4EAA4E,YAAY,QAAQ,CAAC,oDAAoD,qBAAqB,iCAAiC,CAAC,qBAAqB,GAAG,2CAA2C,CAAC,IAAI,2CAA2C,CAAC,IAAI,2CAA2C,CAAC,IAAI,4CAA4C,CAAC,KAAK,2CAA2C,CAAC,CAAC,0CAA0C,YAAY,aAAa,CAAC,+EAA+E,oBAAoB,CAAC,sFAAsF,MAAM,YAAY,QAAQ,SAAS,8BAA8B,4BAA4B,aAAa,kBAAkB,gBAAgB,CAAC,+EAA+E,oBAAoB,CAAC,uFAAuF,UAAU,QAAQ,CAAC,sFAAsF,UAAU,SAAS,CAAC,sCAAsC,gBAAgB,CAAC,6EAA6E,iBAAiB,cAAc,CAAC,gFAAgF,oBAAoB,CAAC,uFAAuF,MAAM,aAAa,QAAQ,SAAS,8BAA8B,4BAA4B,aAAa,kBAAkB,gBAAgB,CAAC,6EAA6E,iBAAiB,cAAc,CAAC,gFAAgF,oBAAoB,CAAC,wFAAwF,WAAW,QAAQ,CAAC,uFAAuF,WAAW,SAAS,CAAC,iBAAiB,cAAc,CAAC,CAAC","file":"../../balloon/style.css","sourcesContent":[".vk_balloon{display:flex;align-items:center;margin-bottom:1em}.vk_balloon figure{margin:0}.vk_balloon p{word-break:break-all;background:#f5f5f5;padding:1.1rem 1.4rem}.vk_balloon_icon{flex-basis:96px;flex-shrink:0;text-align:center}.vk_balloon_icon_image{vertical-align:bottom;max-width:64px}.vk_balloon_icon_name{display:block;text-align:center;font-size:0.7rem;margin-top:0.2rem}.vk_balloon_content{position:relative;text-align:left}.vk_balloon_content.editor-rich-text__tinymce[data-is-placeholder-visible=true]{position:absolute}.vk_balloon-type-serif .vk_balloon_content{border-color:#f5f5f5;border-radius:.4em}.vk_balloon-type-serif .vk_balloon_content::after{content:'';position:absolute;width:0;height:0;border:20px solid transparent}.vk_balloon-type-think .vk_balloon_content{border-radius:2rem}.vk_balloon-type-think .vk_balloon_content::before,.vk_balloon-type-think .vk_balloon_content::after{position:absolute;content:'';border-radius:50%;background:inherit}.vk_balloon-type-think .vk_balloon_content::before{width:20px;height:20px}.vk_balloon-type-think .vk_balloon_content::after{width:10px;height:10px}.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_icon{margin-right:2rem}.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content::after{left:0;top:50%;border-right-color:inherit;border-left:0;margin-top:-20px;margin-left:-20px}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_icon{margin-right:2.5rem}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::before{left:-22px;top:7px}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::after{left:-35px;top:20px}.vk_balloon-position-right{flex-direction:row-reverse}.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_icon{margin-left:2rem}.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content::after{right:0;top:50%;border-left-color:inherit;border-right:0;margin-top:-20px;margin-right:-20px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:2.5rem}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::before{right:-22px;top:7px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::after{right:-35px;top:20px}.vk_balloon.animation-vibration .vk_balloon_content{display:inline-block;animation:vibration .1s infinite}@keyframes vibration{0%{transform:translate(0px, 0px) rotateZ(0deg)}25%{transform:translate(2px, 2px) rotateZ(1deg)}50%{transform:translate(0px, 2px) rotateZ(0deg)}75%{transform:translate(2px, 0px) rotateZ(-1deg)}100%{transform:translate(0px, 0px) rotateZ(0deg)}}@media only screen and (max-width: 480px){.vk_balloon{display:block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content::after{top:0;left:2.9rem;width:0;height:0;border:20px solid transparent;border-bottom-color:inherit;border-top:0;margin-left:-20px;margin-top:-20px}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::before{left:36px;top:-8px}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::after{left:47px;top:-20px}.vk_balloon.vk_balloon-position-right{text-align:right}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_icon{margin-left:auto;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content::after{top:0;right:2.9rem;width:0;height:0;border:20px solid transparent;border-bottom-color:inherit;border-top:0;margin-left:-20px;margin-top:-20px}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:auto;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::before{right:36px;top:-8px}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::after{right:47px;top:-20px}.vk_balloon_icon{max-width:96px}}\n"]}
7
+ .vk_balloon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:1em}.vk_balloon figure{margin:0}.vk_balloon p{word-break:break-all;background:#f5f5f5;padding:1.1rem 1.4rem}.vk_balloon_icon{-ms-flex-preferred-size:96px;flex-basis:96px;-ms-flex-negative:0;flex-shrink:0;text-align:center}.vk_balloon_icon_image{vertical-align:bottom;max-width:64px}.vk_balloon_icon_name{display:block;text-align:center;font-size:0.7rem;margin-top:0.2rem}.vk_balloon_content{position:relative;text-align:left}.vk_balloon_content.editor-rich-text__tinymce[data-is-placeholder-visible=true]{position:absolute}.vk_balloon-type-serif .vk_balloon_content{border-color:#f5f5f5;border-radius:.4em}.vk_balloon-type-serif .vk_balloon_content::after{content:'';position:absolute;width:0;height:0;border:20px solid transparent}.vk_balloon-type-think .vk_balloon_content{border-radius:2rem}.vk_balloon-type-think .vk_balloon_content::before,.vk_balloon-type-think .vk_balloon_content::after{position:absolute;content:'';border-radius:50%;background:inherit}.vk_balloon-type-think .vk_balloon_content::before{width:20px;height:20px}.vk_balloon-type-think .vk_balloon_content::after{width:10px;height:10px}.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_icon{margin-right:2rem}.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content::after{left:0;top:50%;border-right-color:inherit;border-left:0;margin-top:-20px;margin-left:-20px}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_icon{margin-right:2.5rem}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::before{left:-22px;top:7px}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::after{left:-35px;top:20px}.vk_balloon-position-right{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_icon{margin-left:2rem}.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content::after{right:0;top:50%;border-left-color:inherit;border-right:0;margin-top:-20px;margin-right:-20px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:2.5rem}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::before{right:-22px;top:7px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::after{right:-35px;top:20px}.vk_balloon.animation-vibration .vk_balloon_content{display:inline-block;animation:vibration .1s infinite}@keyframes vibration{0%{transform:translate(0px, 0px) rotateZ(0deg)}25%{transform:translate(2px, 2px) rotateZ(1deg)}50%{transform:translate(0px, 2px) rotateZ(0deg)}75%{transform:translate(2px, 0px) rotateZ(-1deg)}100%{transform:translate(0px, 0px) rotateZ(0deg)}}@media only screen and (max-width: 480px){.vk_balloon{display:block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content::after{top:0;left:2.9rem;width:0;height:0;border:20px solid transparent;border-bottom-color:inherit;border-top:0;margin-left:-20px;margin-top:-20px}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::before{left:36px;top:-8px}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::after{left:47px;top:-20px}.vk_balloon.vk_balloon-position-right{text-align:right}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_icon{margin-left:auto;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content::after{top:0;right:2.9rem;width:0;height:0;border:20px solid transparent;border-bottom-color:inherit;border-top:0;margin-left:-20px;margin-top:-20px}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:auto;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::before{right:36px;top:-8px}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::after{right:47px;top:-20px}.vk_balloon_icon{max-width:96px}}
8
9
/*# sourceMappingURL=../map/balloon/style.css.map */
10
plugins/vk-blocks/build/languages/vk-blocks-ja-vk-blocks-buid-js.json ADDED
@@ -0,0 +1 @@
1
+ {"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=1; plural=0;","lang":"ja_JP"},"Alert":["アラート"],"Select image":["画像を選択"],"Upload image":["画像をアップロード"],"Input text":["文字を入力"],"Ballon":["フキダシ"],"Balloon setting":["フキダシ設定"],"Position":["位置"],"Please specify the layout of the balloon.":["吹き出しの配置を指定してください。"],"Left":["左"],"Right":["右"],"Type":["タイプ"],"Please select the type of balloon.":["吹き出しのタイプを指定してください。"],"Serif":["セリフ"],"Thinking":["吹き出し"],"FAQ":["質問と解答"],"Please enter a question.":["質問を入力してください。"],"Please enter a answer.":["回答を入力してください。"],"Flow":["フロー"],"Display of arrow":["矢印の表示"],"Arrow display":["矢印を表示する"],"Arrow hidden":["矢印を表示しない"],"Input title":["タイトルを入力"],"Input content":["説明を入力"]}}}
plugins/vk-blocks/vk-blocks-functions.php CHANGED
@@ -14,19 +14,12 @@ function vkblocks_blocks_assets() {
14
), VK_BLOCKS_VERSION, true
15
);
16
17
- if ( function_exists( 'gutenberg_get_jed_locale_data' ) ) {
18
-
19
- //Get translation data from indicated text-domain.
20
- $locale = gutenberg_get_jed_locale_data( 'vk-blocks' );
21
-
22
- //Add translation data to javasript object.
23
- $content = 'wp.i18n.setLocaleData( ' . json_encode( $locale ) . ', "vk-blocks" );';
24
-
25
- //Pass the data to javascript from php.
26
- wp_script_add_data( 'vk-blocks-buid-js', 'data', $content );
27
}
28
29
- if ( defined( 'GUTENBERG_VERSION' ) ) {
30
31
// Alert Block.
32
register_block_type(
14
), VK_BLOCKS_VERSION, true
15
);
16
17
+ if(function_exists('wp_set_script_translations' )){
18
+ wp_set_script_translations( 'vk-blocks-buid-js', 'vk-blocks', plugin_dir_path( __FILE__ ) . 'build/languages' );
19
}
20
21
+ global $wp_version;
22
+ if ( defined( 'GUTENBERG_VERSION' ) || version_compare( $wp_version, '5.0', '>=' ) ) {
23
24
// Alert Block.
25
register_block_type(
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: vektor-inc,kurudrive,nc30,SaoriMiyazaki,catherine8007,naoki0h
3
Donate link:
4
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
Requires at least: 4.4
6
- Tested up to: 4.9.8
7
- Stable tag: 6.9.1
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -80,6 +80,9 @@ e.g.
80
81
== Changelog ==
82
83
= 6.9.0 =
84
* [ Specification change ][ VK Blocks ] Gutenberg Blocks Change css class name
85
3
Donate link:
4
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
Requires at least: 4.4
6
+ Tested up to: 5.0.0
7
+ Stable tag: 6.9.2
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
80
81
== Changelog ==
82
83
+ = 6.9.2 =
84
+ * [ bug fix ][ vk blocks ] Fixed bug that becomes unusable in WordPress 5.0
85
+
86
= 6.9.0 =
87
* [ Specification change ][ VK Blocks ] Gutenberg Blocks Change css class name
88
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: VK All in One Expansion Unit
4
* Plugin URI: https://ex-unit.nagoya
5
* Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
- * Version: 6.9.1
7
* Author: Vektor,Inc.
8
* Text Domain: vkExUnit
9
* Domain Path: /languages
3
* Plugin Name: VK All in One Expansion Unit
4
* Plugin URI: https://ex-unit.nagoya
5
* Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
+ * Version: 6.9.2
7
* Author: Vektor,Inc.
8
* Text Domain: vkExUnit
9
* Domain Path: /languages