Version Description
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 5.7.5 |
Comparing to | |
See all releases |
Code changes from version 5.7.4 to 5.7.5
- common_init.php +2 -0
- languages/vkExUnit-ja.mo +0 -0
- languages/vkExUnit-ja.po +31 -13
- plugins/child_page_index.php +44 -20
- plugins/contact_section.php +12 -7
- plugins/other_widget/widget-page.php +8 -2
- plugins/other_widget/widget-profile.php +1 -1
- plugins/pageList_ancestor.php +16 -12
- plugins/tiny_mce_style_tags.php +6 -0
- readme.txt +1 -1
- vkExUnit.php +1 -1
common_init.php
CHANGED
@@ -26,6 +26,8 @@ function vkExUnit_get_common_options_default() {
|
|
26 |
'active_ga' => true,
|
27 |
'active_relatedPosts' => true,
|
28 |
'active_call_to_action' => true,
|
|
|
|
|
29 |
'delete_options_at_deactivate' => false,
|
30 |
'delete_options_with_bizvektors_common' => true,
|
31 |
'content_filter_state' => 'content',
|
26 |
'active_ga' => true,
|
27 |
'active_relatedPosts' => true,
|
28 |
'active_call_to_action' => true,
|
29 |
+
'active_pageList_ancestor' => true,
|
30 |
+
'active_childPageIndex' => true,
|
31 |
'delete_options_at_deactivate' => false,
|
32 |
'delete_options_with_bizvektors_common' => true,
|
33 |
'content_filter_state' => 'content',
|
languages/vkExUnit-ja.mo
CHANGED
Binary file
|
languages/vkExUnit-ja.po
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
-
"POT-Creation-Date: 2017-10-23
|
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"
|
@@ -530,11 +530,11 @@ msgstr "表示するCTAを選択してください。"
|
|
530 |
msgid "Please select"
|
531 |
msgstr "選択してください"
|
532 |
|
533 |
-
#: plugins/child_page_index.php:
|
534 |
msgid "Read more"
|
535 |
msgstr "詳しくはこちら"
|
536 |
|
537 |
-
#: plugins/child_page_index.php:
|
538 |
msgid "Display a child page index"
|
539 |
msgstr "子ページ一覧の表示"
|
540 |
|
@@ -667,8 +667,32 @@ msgstr "Contact情報を編集"
|
|
667 |
msgid "Contact Button"
|
668 |
msgstr "お問い合わせボタン"
|
669 |
|
670 |
-
#: plugins/contact_section.php:
|
671 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
672 |
#, php-format
|
673 |
msgid ""
|
674 |
"*It is necessary to set the \"%s\" -> \"Contact Information\" section in "
|
@@ -677,10 +701,6 @@ msgstr ""
|
|
677 |
"* 「%s」→ 「メイン設定」ページで『お問い合わせ情報』を設定する必要がありま"
|
678 |
"す。"
|
679 |
|
680 |
-
#: plugins/contact_section.php:389
|
681 |
-
msgid "Contact Section HTML"
|
682 |
-
msgstr "お問い合わせバナー"
|
683 |
-
|
684 |
#: plugins/css_customize/css_customize-edit.php:2
|
685 |
#: plugins/css_customize/css_customize.php:28
|
686 |
#: plugins/css_customize/css_customize.php:44
|
@@ -1196,11 +1216,11 @@ msgstr "タイトルを表示しない"
|
|
1196 |
msgid "Display page"
|
1197 |
msgstr "ページを表示"
|
1198 |
|
1199 |
-
#: plugins/other_widget/widget-page.php:
|
1200 |
msgid "Display a page list from ancestor"
|
1201 |
msgstr "現在のページの先祖階層からの子ページリストを表示"
|
1202 |
|
1203 |
-
#: plugins/other_widget/widget-page.php:
|
1204 |
msgid "Edit"
|
1205 |
msgstr "編集"
|
1206 |
|
@@ -1565,8 +1585,6 @@ msgid "SNS Settings"
|
|
1565 |
msgstr "SNS設定"
|
1566 |
|
1567 |
#: plugins/sns/sns.php:203
|
1568 |
-
#, fuzzy
|
1569 |
-
#| msgid "Button color:"
|
1570 |
msgid "Btn color"
|
1571 |
msgstr "ボタンの色:"
|
1572 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: 2017-10-29 23:01+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"
|
530 |
msgid "Please select"
|
531 |
msgstr "選択してください"
|
532 |
|
533 |
+
#: plugins/child_page_index.php:76 plugins/other_widget/widget-3pr-area.php:193
|
534 |
msgid "Read more"
|
535 |
msgstr "詳しくはこちら"
|
536 |
|
537 |
+
#: plugins/child_page_index.php:133 plugins/other_widget/widget-page.php:90
|
538 |
msgid "Display a child page index"
|
539 |
msgstr "子ページ一覧の表示"
|
540 |
|
667 |
msgid "Contact Button"
|
668 |
msgstr "お問い合わせボタン"
|
669 |
|
670 |
+
#: plugins/contact_section.php:347
|
671 |
+
msgid "Display contact button."
|
672 |
+
msgstr "お問い合わせボタンを表示します。"
|
673 |
+
|
674 |
+
#: plugins/contact_section.php:348 plugins/contact_section.php:376
|
675 |
+
#: plugins/contact_section.php:394
|
676 |
+
#, php-format
|
677 |
+
msgid ""
|
678 |
+
"It is necessary to set the \"%s\" -> \"Contact Information\" section in "
|
679 |
+
"\"Main setting\" page."
|
680 |
+
msgstr ""
|
681 |
+
"「%s」→ 「メイン設定」ページで『お問い合わせ情報』を設定する必要があります。"
|
682 |
+
|
683 |
+
#: plugins/contact_section.php:375
|
684 |
+
msgid "Display contact button"
|
685 |
+
msgstr "お問い合わせボタンを表示します。"
|
686 |
+
|
687 |
+
#: plugins/contact_section.php:392
|
688 |
+
msgid "Contact Section HTML"
|
689 |
+
msgstr "お問い合わせ情報"
|
690 |
+
|
691 |
+
#: plugins/contact_section.php:393
|
692 |
+
msgid "Display Phone number and contact button etc."
|
693 |
+
msgstr "電話番号とお問い合わせボタンなどを表示します。"
|
694 |
+
|
695 |
+
#: plugins/contact_section.php:422
|
696 |
#, php-format
|
697 |
msgid ""
|
698 |
"*It is necessary to set the \"%s\" -> \"Contact Information\" section in "
|
701 |
"* 「%s」→ 「メイン設定」ページで『お問い合わせ情報』を設定する必要がありま"
|
702 |
"す。"
|
703 |
|
|
|
|
|
|
|
|
|
704 |
#: plugins/css_customize/css_customize-edit.php:2
|
705 |
#: plugins/css_customize/css_customize.php:28
|
706 |
#: plugins/css_customize/css_customize.php:44
|
1216 |
msgid "Display page"
|
1217 |
msgstr "ページを表示"
|
1218 |
|
1219 |
+
#: plugins/other_widget/widget-page.php:102 plugins/pageList_ancestor.php:96
|
1220 |
msgid "Display a page list from ancestor"
|
1221 |
msgstr "現在のページの先祖階層からの子ページリストを表示"
|
1222 |
|
1223 |
+
#: plugins/other_widget/widget-page.php:224
|
1224 |
msgid "Edit"
|
1225 |
msgstr "編集"
|
1226 |
|
1585 |
msgstr "SNS設定"
|
1586 |
|
1587 |
#: plugins/sns/sns.php:203
|
|
|
|
|
1588 |
msgid "Btn color"
|
1589 |
msgstr "ボタンの色:"
|
1590 |
|
plugins/child_page_index.php
CHANGED
@@ -4,6 +4,34 @@
|
|
4 |
/* Child page index
|
5 |
/*-------------------------------------------*/
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
add_shortcode( 'vkExUnit_childs', 'vkExUnit_childPageIndex_shortcode' );
|
9 |
function vkExUnit_childPageIndex_shortcode() {
|
@@ -37,15 +65,7 @@ function vkExUnit_childPageIndex_shortcode() {
|
|
37 |
$childPageList_html = PHP_EOL.'<div class="veu_childPage_list">'.PHP_EOL;
|
38 |
foreach( $childrens as $children ):
|
39 |
|
40 |
-
|
41 |
-
$postExcerpt = nl2br( esc_textarea( strip_tags( $children->post_excerpt ) ) );
|
42 |
-
if ( ! $postExcerpt ) {
|
43 |
-
// $postExcerpt = mb_substr( nl2br(esc_textarea( $children->post_content ), 0, 90 ) ); // kill tags and trim 120 chara
|
44 |
-
$postExcerpt = esc_textarea( strip_tags($children->post_content ) );
|
45 |
-
$postExcerpt = mb_substr( $postExcerpt, 0, 90 ); // kill tags and trim 120 chara
|
46 |
-
|
47 |
-
if ( mb_strlen( $postExcerpt ) >= 90 ) { $postExcerpt .= '...'; }
|
48 |
-
}
|
49 |
|
50 |
// Page Item build
|
51 |
$childPageList_html .= '<a href="'.esc_url( get_permalink( $children->ID ) ).'" class="childPage_list_box"><div class="childPage_list_box_inner">';
|
@@ -90,15 +110,19 @@ function vkExUnit_childPageIndex_contentHook( $content ) {
|
|
90 |
return $content;
|
91 |
}
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
|
|
|
|
|
96 |
return true;
|
97 |
}
|
98 |
|
99 |
-
|
100 |
-
|
101 |
-
|
|
|
|
|
102 |
global $post;
|
103 |
// childPageIndex display
|
104 |
$enable = get_post_meta( $post->ID, 'vkExUnit_childPageIndex', true );?>
|
@@ -109,14 +133,14 @@ function vkExUnit_childPageIndex_meta_box() {
|
|
109 |
<?php _e( 'Display a child page index', 'vkExUnit' );?>
|
110 |
</label>
|
111 |
</div>
|
112 |
-
|
113 |
<?php
|
114 |
}
|
115 |
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
|
|
120 |
$childPageIndex = isset( $_POST['_nonce_vkExUnit__custom_field_childPageIndex'] ) ? htmlspecialchars( $_POST['_nonce_vkExUnit__custom_field_childPageIndex'] ) : null;
|
121 |
|
122 |
if ( ! wp_verify_nonce( $childPageIndex, plugin_basename( __FILE__ ) ) ) {
|
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 ) ) );
|
14 |
+
|
15 |
+
// 抜粋欄が未入力だった場合(本文欄の内容を引っ張る)
|
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文字でトリム
|
23 |
+
$page_excerpt = mb_substr( $page_excerpt, 0, 90 );
|
24 |
+
// ... を追加
|
25 |
+
$page_excerpt .= '...';
|
26 |
+
|
27 |
+
}
|
28 |
+
|
29 |
+
}
|
30 |
+
|
31 |
+
$page_excerpt = str_replace(PHP_EOL, '', $page_excerpt);
|
32 |
+
|
33 |
+
return $page_excerpt;
|
34 |
+
}
|
35 |
|
36 |
add_shortcode( 'vkExUnit_childs', 'vkExUnit_childPageIndex_shortcode' );
|
37 |
function vkExUnit_childPageIndex_shortcode() {
|
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">';
|
110 |
return $content;
|
111 |
}
|
112 |
|
113 |
+
/*-------------------------------------------*/
|
114 |
+
/* admin_metabox_activate
|
115 |
+
/*-------------------------------------------*/
|
116 |
+
add_filter( 'veu_content_meta_box_activation', 'vkExUnit_childPageIndex_admin_metabox_activate', 10, 1 );
|
117 |
+
function vkExUnit_childPageIndex_admin_metabox_activate( $flag ) {
|
118 |
return true;
|
119 |
}
|
120 |
|
121 |
+
/*-------------------------------------------*/
|
122 |
+
/* admin_metabox_content
|
123 |
+
/*-------------------------------------------*/
|
124 |
+
add_action( 'veu_content_meta_box_content', 'veu_child_page_index_admin_metabox_content' );
|
125 |
+
function veu_child_page_index_admin_metabox_content() {
|
126 |
global $post;
|
127 |
// childPageIndex display
|
128 |
$enable = get_post_meta( $post->ID, 'vkExUnit_childPageIndex', true );?>
|
133 |
<?php _e( 'Display a child page index', 'vkExUnit' );?>
|
134 |
</label>
|
135 |
</div>
|
|
|
136 |
<?php
|
137 |
}
|
138 |
|
139 |
+
/*-------------------------------------------*/
|
140 |
+
/* save_custom_field
|
141 |
+
/*-------------------------------------------*/
|
142 |
+
add_action( 'save_post', 'veu_child_page_index_save_custom_field' );
|
143 |
+
function veu_child_page_index_save_custom_field( $post_id ) {
|
144 |
$childPageIndex = isset( $_POST['_nonce_vkExUnit__custom_field_childPageIndex'] ) ? htmlspecialchars( $_POST['_nonce_vkExUnit__custom_field_childPageIndex'] ) : null;
|
145 |
|
146 |
if ( ! wp_verify_nonce( $childPageIndex, plugin_basename( __FILE__ ) ) ) {
|
plugins/contact_section.php
CHANGED
@@ -343,13 +343,14 @@ vExUnit_Contact::instance();
|
|
343 |
class WP_Widget_vkExUnit_contact_link extends WP_Widget {
|
344 |
|
345 |
function __construct() {
|
346 |
-
$widget_name =
|
347 |
-
|
|
|
348 |
parent::__construct(
|
349 |
'vkExUnit_contact',
|
350 |
$widget_name,
|
351 |
array(
|
352 |
-
'description' =>
|
353 |
)
|
354 |
);
|
355 |
}
|
@@ -371,7 +372,9 @@ class WP_Widget_vkExUnit_contact_link extends WP_Widget {
|
|
371 |
|
372 |
function form( $instance ) {
|
373 |
echo '<div style="padding:1em 0;">';
|
374 |
-
|
|
|
|
|
375 |
echo '</div>';
|
376 |
return $instance;
|
377 |
}
|
@@ -386,13 +389,15 @@ class WP_Widget_vkExUnit_Contact_Section extends WP_Widget {
|
|
386 |
|
387 |
function __construct() {
|
388 |
|
389 |
-
$widget_name =
|
|
|
|
|
390 |
|
391 |
parent::__construct(
|
392 |
'vkExUnit_contact_section',
|
393 |
$widget_name,
|
394 |
array(
|
395 |
-
'description' =>
|
396 |
)
|
397 |
);
|
398 |
}
|
@@ -414,7 +419,7 @@ class WP_Widget_vkExUnit_Contact_Section extends WP_Widget {
|
|
414 |
|
415 |
function form( $instance ) {
|
416 |
echo '<div style="padding:1em 0;">';
|
417 |
-
_e( sprintf( __( '*It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vkExUnit' ),
|
418 |
echo '</div>';
|
419 |
return $instance;
|
420 |
}
|
343 |
class WP_Widget_vkExUnit_contact_link extends WP_Widget {
|
344 |
|
345 |
function __construct() {
|
346 |
+
$widget_name = veu_get_short_name().'_'.__( 'Contact Button', 'vkExUnit' );
|
347 |
+
$widget_description = __('Display contact button.', 'vkExUnit');
|
348 |
+
$widget_description .= ' ( '.sprintf( __( 'It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vkExUnit' ),veu_get_little_short_name() ).' ) ';
|
349 |
parent::__construct(
|
350 |
'vkExUnit_contact',
|
351 |
$widget_name,
|
352 |
array(
|
353 |
+
'description' => $widget_description,
|
354 |
)
|
355 |
);
|
356 |
}
|
372 |
|
373 |
function form( $instance ) {
|
374 |
echo '<div style="padding:1em 0;">';
|
375 |
+
$widget_description = __('Display contact button', 'vkExUnit');
|
376 |
+
$widget_description .= ' ( '.sprintf( __( 'It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vkExUnit' ),veu_get_little_short_name() ).' ) ';
|
377 |
+
echo $widget_description;
|
378 |
echo '</div>';
|
379 |
return $instance;
|
380 |
}
|
389 |
|
390 |
function __construct() {
|
391 |
|
392 |
+
$widget_name = veu_get_short_name().'_'.__( 'Contact Section HTML', 'vkExUnit' );
|
393 |
+
$widget_description = __('Display Phone number and contact button etc.', 'vkExUnit');
|
394 |
+
$widget_description .= ' ( '.sprintf( __( 'It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vkExUnit' ),veu_get_little_short_name() ).' ) ';
|
395 |
|
396 |
parent::__construct(
|
397 |
'vkExUnit_contact_section',
|
398 |
$widget_name,
|
399 |
array(
|
400 |
+
'description' => $widget_description,
|
401 |
)
|
402 |
);
|
403 |
}
|
419 |
|
420 |
function form( $instance ) {
|
421 |
echo '<div style="padding:1em 0;">';
|
422 |
+
_e( sprintf( __( '*It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vkExUnit' ),veu_get_little_short_name() ) );
|
423 |
echo '</div>';
|
424 |
return $instance;
|
425 |
}
|
plugins/other_widget/widget-page.php
CHANGED
@@ -80,7 +80,10 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
|
|
80 |
|
81 |
<?php $options = vkExUnit_get_common_options(); ?>
|
82 |
|
83 |
-
<?php if (
|
|
|
|
|
|
|
84 |
<p>
|
85 |
<label for="<?php echo $this->get_field_name( 'child_page_index' ); ?>">
|
86 |
<input type="checkbox" id="<?php echo $this->get_field_name( 'child_page_index' ); ?>" name="<?php echo $this->get_field_name( 'child_page_index' ); ?>"<?php echo ( ! empty($instance['child_page_index'] ) ) ? ' checked' : ''; ?> />
|
@@ -89,7 +92,10 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
|
|
89 |
</p>
|
90 |
<?php endif; ?>
|
91 |
|
92 |
-
<?php if (
|
|
|
|
|
|
|
93 |
<p>
|
94 |
<label for="<?php echo $this->get_field_name( 'page_list_ancestor' ); ?>">
|
95 |
<input type="checkbox" id="<?php echo $this->get_field_name( 'page_list_ancestor' ); ?>" name="<?php echo $this->get_field_name( 'page_list_ancestor' ); ?>"<?php echo ( ! empty($instance['page_list_ancestor'] ) ) ? ' checked' : ''; ?> />
|
80 |
|
81 |
<?php $options = vkExUnit_get_common_options(); ?>
|
82 |
|
83 |
+
<?php if (
|
84 |
+
! isset( $options['active_childPageIndex'] )|| // 5.7.4 以前を利用で一度も有効化設定を保存していないユーザー
|
85 |
+
isset( $options['active_childPageIndex'] ) && $options['active_childPageIndex'] // Activate User
|
86 |
+
) : ?>
|
87 |
<p>
|
88 |
<label for="<?php echo $this->get_field_name( 'child_page_index' ); ?>">
|
89 |
<input type="checkbox" id="<?php echo $this->get_field_name( 'child_page_index' ); ?>" name="<?php echo $this->get_field_name( 'child_page_index' ); ?>"<?php echo ( ! empty($instance['child_page_index'] ) ) ? ' checked' : ''; ?> />
|
92 |
</p>
|
93 |
<?php endif; ?>
|
94 |
|
95 |
+
<?php if (
|
96 |
+
! isset( $options['active_pageList_ancestor'] )|| // 5.7.4 以前を利用で一度も有効化設定を保存していないユーザー
|
97 |
+
isset( $options['active_pageList_ancestor'] ) && $options['active_pageList_ancestor'] // Activate User
|
98 |
+
) : ?>
|
99 |
<p>
|
100 |
<label for="<?php echo $this->get_field_name( 'page_list_ancestor' ); ?>">
|
101 |
<input type="checkbox" id="<?php echo $this->get_field_name( 'page_list_ancestor' ); ?>" name="<?php echo $this->get_field_name( 'page_list_ancestor' ); ?>"<?php echo ( ! empty($instance['page_list_ancestor'] ) ) ? ' checked' : ''; ?> />
|
plugins/other_widget/widget-profile.php
CHANGED
@@ -11,7 +11,7 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
|
|
11 |
parent::__construct(
|
12 |
'WP_Widget_vkExUnit_profile',
|
13 |
$widget_name,
|
14 |
-
array( 'description' => __( 'Displays a your profile', '
|
15 |
);
|
16 |
}
|
17 |
|
11 |
parent::__construct(
|
12 |
'WP_Widget_vkExUnit_profile',
|
13 |
$widget_name,
|
14 |
+
array( 'description' => __( 'Displays a your profile', 'vkExUnit' ) )
|
15 |
);
|
16 |
}
|
17 |
|
plugins/pageList_ancestor.php
CHANGED
@@ -72,19 +72,20 @@ function vkExUnit_pageList_ancestor_contentHook( $content ) {
|
|
72 |
}
|
73 |
return $content;
|
74 |
}
|
75 |
-
|
76 |
-
|
|
|
|
|
|
|
|
|
77 |
return true;
|
78 |
}
|
79 |
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
add_action( 'save_post', 'vkExUnit_pageList_ancestor' );
|
86 |
-
|
87 |
-
function vkExUnit_pageList_ancestor_meta_box() {
|
88 |
global $post;
|
89 |
$enable = get_post_meta( $post->ID, 'vkExUnit_pageList_ancestor', true ); ?>
|
90 |
|
@@ -98,9 +99,12 @@ function vkExUnit_pageList_ancestor_meta_box() {
|
|
98 |
<?php
|
99 |
}
|
100 |
|
101 |
-
// seve function -------------------------------
|
102 |
|
103 |
-
|
|
|
|
|
|
|
|
|
104 |
|
105 |
$pageList_ancestor = isset( $_POST['_nonce_vkExUnit__custom_field_pageList_ancestor'] ) ? htmlspecialchars( $_POST['_nonce_vkExUnit__custom_field_pageList_ancestor'] ) : null;
|
106 |
|
72 |
}
|
73 |
return $content;
|
74 |
}
|
75 |
+
|
76 |
+
/*-------------------------------------------*/
|
77 |
+
/* admin_metabox_activate
|
78 |
+
/*-------------------------------------------*/
|
79 |
+
add_filter( 'veu_content_meta_box_activation', 'veu_page_list_ancestor_admin_metabox_activate', 10, 1 );
|
80 |
+
function veu_page_list_ancestor_admin_metabox_activate( $flag ) {
|
81 |
return true;
|
82 |
}
|
83 |
|
84 |
+
/*-------------------------------------------*/
|
85 |
+
/* admin_metabox_content
|
86 |
+
/*-------------------------------------------*/
|
87 |
+
add_action( 'veu_content_meta_box_content', 'vkExUnit_pageList_ancestor_admin_metabox_content' );
|
88 |
+
function vkExUnit_pageList_ancestor_admin_metabox_content() {
|
|
|
|
|
|
|
89 |
global $post;
|
90 |
$enable = get_post_meta( $post->ID, 'vkExUnit_pageList_ancestor', true ); ?>
|
91 |
|
99 |
<?php
|
100 |
}
|
101 |
|
|
|
102 |
|
103 |
+
/*-------------------------------------------*/
|
104 |
+
/* save_custom_field
|
105 |
+
/*-------------------------------------------*/
|
106 |
+
add_action( 'save_post', 'veu_page_list_ancestor_save_custom_field' );
|
107 |
+
function veu_page_list_ancestor_save_custom_field( $post_id ) {
|
108 |
|
109 |
$pageList_ancestor = isset( $_POST['_nonce_vkExUnit__custom_field_pageList_ancestor'] ) ? htmlspecialchars( $_POST['_nonce_vkExUnit__custom_field_pageList_ancestor'] ) : null;
|
110 |
|
plugins/tiny_mce_style_tags.php
CHANGED
@@ -10,6 +10,12 @@ function vkExUnit_mce_before_init_insert_formats( $init_array ) {
|
|
10 |
'classes' => 'veu_leadTxt',
|
11 |
// 'wrapper' => false,
|
12 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
// array(
|
14 |
// 'title' => 'Table Width Auto',
|
15 |
// 'block' => 'table',
|
10 |
'classes' => 'veu_leadTxt',
|
11 |
// 'wrapper' => false,
|
12 |
),
|
13 |
+
array(
|
14 |
+
'title' => 'Dummy Image',
|
15 |
+
'block' => 'div',
|
16 |
+
'classes' => 'veu_dummyImage',
|
17 |
+
// 'wrapper' => false,
|
18 |
+
),
|
19 |
// array(
|
20 |
// 'title' => 'Table Width Auto',
|
21 |
// 'block' => 'table',
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.8.2
|
7 |
-
Stable tag: 5.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
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.8.2
|
7 |
+
Stable tag: 5.7.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
vkExUnit.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: VK All in One Expansion Unit
|
4 |
* Plugin URI: http://ex-unit.vektor-inc.co.jp
|
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: 5.7.
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vkExUnit
|
9 |
* Domain Path: /languages
|
3 |
* Plugin Name: VK All in One Expansion Unit
|
4 |
* Plugin URI: http://ex-unit.vektor-inc.co.jp
|
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: 5.7.5
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vkExUnit
|
9 |
* Domain Path: /languages
|