VK All in One Expansion Unit - Version 2.1.4

Version Description

Download this release

Release Info

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

Code changes from version 2.1.3 to 2.1.4

README.md CHANGED
@@ -15,14 +15,14 @@
15
16
単語を連結する場合は _ で連結する
17
18
- ## DBに保存する名前
19
20
単語を連結する場合は _ で連結する
21
22
## CSS命名について
23
24
- - 接頭辞は vkExUnit_ にする事でcssがテーマやプラグインのクラス名と被って余計なstyleの影響を受ける事を防ぐ
25
- - セクションの一番外側が vkExUnit_セクション名 / その内側の要素は vkExUnit_セクション名_XXXX とする
26
- 複数の単語の場合はキャメルケース(連結する単語の最初の1文字を大文字)にする
27
※一つの単語なのか複数の単語が合わさっているのかわからないため
28
- 要素が複数の場合は、単語をアンダーバーで区切る
15
16
単語を連結する場合は _ で連結する
17
18
+ ## テーマオプション/ポストメタに保存する名前
19
20
単語を連結する場合は _ で連結する
21
22
## CSS命名について
23
24
+ - 接頭辞は veu_ にする事でcssがテーマやプラグインのクラス名と被って余計なstyleの影響を受ける事を防ぐ
25
+ - セクションの一番外側が veu_セクション名 / その内側の要素は veu_セクション名_XXXX とする
26
- 複数の単語の場合はキャメルケース(連結する単語の最初の1文字を大文字)にする
27
※一つの単語なのか複数の単語が合わさっているのかわからないため
28
- 要素が複数の場合は、単語をアンダーバーで区切る
admin_wrapper.php CHANGED
@@ -1,4 +1,4 @@
1
- <?php
2
3
function vkExUnit_add_main_setting() {
4
$capability_required = add_filter( 'vkExUnit_ga_page_capability', vkExUnit_get_capability_required() );
@@ -16,7 +16,6 @@ function vkExUnit_add_main_setting() {
16
add_action( 'admin_menu', 'vkExUnit_add_main_setting' );
17
18
19
-
20
function vkExUnit_render_main_config(){
21
22
vkExUnit_save_main_config();
@@ -25,16 +24,16 @@ function vkExUnit_render_main_config(){
25
<div class="adminMain">
26
<form method="post" action="">
27
28
- <?php
29
wp_nonce_field( 'standing_on_the_shoulder_of_giants', '_nonce_vkExUnit' );
30
31
global $vkExUnit_options;
32
if( is_array($vkExUnit_options) ):
33
foreach($vkExUnit_options as $vkoption){
34
if(!isset($vkoption['render_page'])){ continue; }
35
-
36
echo '<section id="'. $vkoption['option_name'] .'" class="sectionBox">';
37
-
38
vkExUnit_render_menu($vkExUnit_options, $vkoption['tab_label']);
39
40
if( is_array($vkoption['render_page'])){
@@ -66,7 +65,7 @@ _e('Activated Packages is noting. please activate some package.', 'vkExUnit');
66
67
function vkExUnit_register_setting( $tab_label="tab_label", $option_name, $sanitize_callback, $render_page ){
68
global $vkExUnit_options;
69
- $vkExUnit_options[] =
70
array(
71
'option_name'=>$option_name,
72
'callback'=>$sanitize_callback,
@@ -86,12 +85,12 @@ function vkExUnit_main_config_sanitaize($post){
86
87
$before = (isset($post[$opt['option_name']])? $post[$opt['option_name']]: null);
88
$option = $opt['callback'][0]->$opt['callback'][1]($before);
89
-
90
}elseif( function_exists( $opt['callback'] ) ){
91
92
$before = (isset($post[$opt['option_name']])? $post[$opt['option_name']]: null);
93
$option = $opt['callback']($before);
94
-
95
}else { continue; }
96
97
update_option($opt['option_name'], $option);
@@ -102,17 +101,18 @@ function vkExUnit_main_config_sanitaize($post){
102
103
function vkExUnit_save_main_config(){
104
105
- // nonce
106
- if(!isset($_POST['_nonce_vkExUnit'])){
107
- return ;
108
- }
109
- if(!wp_verify_nonce($_POST['_nonce_vkExUnit'], 'standing_on_the_shoulder_of_giants')){
110
- return ;
111
- }
112
113
- vkExUnit_main_config_sanitaize($_POST);
114
}
115
116
function vkExUnit_render_menu( $sections, $current_tab=null ){
117
echo '<div class="optionNav"><ul>';
118
foreach($sections as $section){
1
+ <?php
2
3
function vkExUnit_add_main_setting() {
4
$capability_required = add_filter( 'vkExUnit_ga_page_capability', vkExUnit_get_capability_required() );
16
add_action( 'admin_menu', 'vkExUnit_add_main_setting' );
17
18
19
function vkExUnit_render_main_config(){
20
21
vkExUnit_save_main_config();
24
<div class="adminMain">
25
<form method="post" action="">
26
27
+ <?php
28
wp_nonce_field( 'standing_on_the_shoulder_of_giants', '_nonce_vkExUnit' );
29
30
global $vkExUnit_options;
31
if( is_array($vkExUnit_options) ):
32
foreach($vkExUnit_options as $vkoption){
33
if(!isset($vkoption['render_page'])){ continue; }
34
+
35
echo '<section id="'. $vkoption['option_name'] .'" class="sectionBox">';
36
+
37
vkExUnit_render_menu($vkExUnit_options, $vkoption['tab_label']);
38
39
if( is_array($vkoption['render_page'])){
65
66
function vkExUnit_register_setting( $tab_label="tab_label", $option_name, $sanitize_callback, $render_page ){
67
global $vkExUnit_options;
68
+ $vkExUnit_options[] =
69
array(
70
'option_name'=>$option_name,
71
'callback'=>$sanitize_callback,
85
86
$before = (isset($post[$opt['option_name']])? $post[$opt['option_name']]: null);
87
$option = $opt['callback'][0]->$opt['callback'][1]($before);
88
+
89
}elseif( function_exists( $opt['callback'] ) ){
90
91
$before = (isset($post[$opt['option_name']])? $post[$opt['option_name']]: null);
92
$option = $opt['callback']($before);
93
+
94
}else { continue; }
95
96
update_option($opt['option_name'], $option);
101
102
function vkExUnit_save_main_config(){
103
104
+ // nonce
105
+ if(!isset($_POST['_nonce_vkExUnit'])){
106
+ return ;
107
+ }
108
+ if(!wp_verify_nonce($_POST['_nonce_vkExUnit'], 'standing_on_the_shoulder_of_giants')){
109
+ return ;
110
+ }
111
112
+ vkExUnit_main_config_sanitaize($_POST);
113
}
114
115
+
116
function vkExUnit_render_menu( $sections, $current_tab=null ){
117
echo '<div class="optionNav"><ul>';
118
foreach($sections as $section){
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: 2015-08-16 20:58+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"
@@ -16,13 +16,14 @@ msgstr ""
16
"X-Poedit-SearchPath-0: ..\n"
17
18
#: ../admin_wrapper.php:7 ../admin_wrapper.php:8
19
- #: ../plugins/meta_keyword.php:97
20
msgid "Main setting"
21
msgstr "メイン設定"
22
23
- #: ../admin_wrapper.php:52
24
msgid "Activated Packages is noting. please activate some package."
25
msgstr ""
26
27
#: ../common_helpers.php:126
28
#, php-format
@@ -103,11 +104,10 @@ msgid "Chats"
103
msgstr "チャット"
104
105
#: ../common_helpers.php:270 ../plugins/other_widget/widget-taxonomies.php:79
106
- #: ../plugins/other_widget/old/widget-taxonomy-list.php:81
107
msgid "Archives"
108
msgstr "アーカイブ"
109
110
- #: ../packages.php:45 ../plugins/contact_section.php:71
111
msgid "Contact Section"
112
msgstr "お問い合わせ"
113
@@ -199,21 +199,19 @@ msgstr "VK_FB Page Plugin - Facebook ページプラグインを表示します
199
msgid "VK_3PR area - display the 3PR area."
200
msgstr "VK_3PR エリア - 3PR エリアを表示します。"
201
202
- #: ../packages.php:118 ../plugins/other_widget/old/widget-taxonomy-list.php:17
203
msgid "categories/tags list"
204
msgstr "カテゴリー/タグ リスト"
205
206
- #: ../packages.php:118 ../plugins/other_widget/old/widget-taxonomy-list.php:11
207
msgid "Displays a categories, tags or format list."
208
msgstr "カテゴリ・タグまたは、フォーマットリストを表示します。"
209
210
#: ../packages.php:119 ../plugins/other_widget/widget-archives.php:14
211
- #: ../plugins/other_widget/old/widget-archive-list.php:14
212
msgid "archive list"
213
msgstr "アーカイブリスト"
214
215
#: ../packages.php:119 ../plugins/other_widget/widget-archives.php:12
216
- #: ../plugins/other_widget/old/widget-archive-list.php:12
217
msgid ""
218
"Displays a list of archives. You can choose the post type and also to "
219
"display archives by month or by year."
@@ -236,7 +234,7 @@ msgstr ""
236
"追加する CSS コードは「VK Ex Unit」→「CSS カスタマイズ」の画面にて入力して下"
237
"さい。"
238
239
- #: ../packages.php:158 ../plugins/insert_ads.php:38
240
#: ../plugins/insert_ads.php:118
241
msgid "Insert ads"
242
msgstr "広告の挿入"
@@ -416,33 +414,34 @@ msgstr "関連記事を表示"
416
msgid "Print Related posts lists to post content bottom."
417
msgstr "関連記事を記事コンテンツ下のエリアへ表示します。"
418
419
- #: ../plugins/auto_eyecatch.php:41
420
msgid "Automatic EyeCatch"
421
msgstr "アイキャッチ自動挿入"
422
423
- #: ../plugins/auto_eyecatch.php:51
424
msgid "Do not set eyecatch image automatic."
425
msgstr "アイキャッチ画像を自動挿入しない"
426
427
- #: ../plugins/contact_section.php:47
428
msgid "Contact"
429
msgstr ""
430
431
- #: ../plugins/contact_section.php:57 ../plugins/contact_section.php:78
432
msgid "Please feel free to inquire."
433
msgstr "お気軽にお問い合わせください。"
434
435
- #: ../plugins/contact_section.php:59
436
msgid "Office hours 9:00 - 18:00 [ Weekdays except holidays ]"
437
msgstr "受付時間 9:00-18:00 [ 土・日・祝日除く ]"
438
439
- #: ../plugins/contact_section.php:75
440
msgid "Message"
441
msgstr "メッセージ"
442
443
- #: ../plugins/contact_section.php:78 ../plugins/contact_section.php:85
444
- #: ../plugins/contact_section.php:92 ../plugins/contact_section.php:100
445
- #: ../plugins/contact_section.php:108 ../plugins/contact_section.php:116
446
#: ../plugins/google_analytics/ga_admin.php:16 ../plugins/sns/sns_admin.php:31
447
#: ../plugins/sns/old/sns_admin.php:20 ../plugins/sns/old/sns_admin.php:61
448
#: ../plugins/sns/old/sns_admin.php:79 ../plugins/sns/old/sns_admin.php:98
@@ -450,43 +449,43 @@ msgstr "メッセージ"
450
msgid "ex) "
451
msgstr "例: "
452
453
- #: ../plugins/contact_section.php:82
454
msgid "Phone number"
455
msgstr "電話番号"
456
457
- #: ../plugins/contact_section.php:89 ../plugins/contact_section.php:92
458
msgid "Office hours"
459
msgstr "営業時間"
460
461
- #: ../plugins/contact_section.php:92
462
msgid "Weekdays except holidays"
463
msgstr ""
464
465
- #: ../plugins/contact_section.php:97
466
msgid "The contact page URL"
467
msgstr "お問い合わせ先URL"
468
469
- #: ../plugins/contact_section.php:100
470
msgid "or"
471
msgstr ""
472
473
- #: ../plugins/contact_section.php:101
474
msgid "* If you fill in the blank, contact button does not appear."
475
msgstr "未入力の場合はお問い合わせボタンは表示されません。"
476
477
- #: ../plugins/contact_section.php:105
478
msgid "Contact button Text."
479
msgstr "お問い合わせボタンに表示するテキスト"
480
481
- #: ../plugins/contact_section.php:108
482
msgid "Contact Us from email."
483
msgstr "メールでのお問い合わせはこちら"
484
485
- #: ../plugins/contact_section.php:113
486
msgid "Contact button Text. ( sub )"
487
msgstr "お問い合わせボタンに表示するテキスト2(オプション)"
488
489
- #: ../plugins/contact_section.php:117
490
msgid "Email contact form"
491
msgstr "お気軽にお問い合わせください。"
492
@@ -494,7 +493,7 @@ msgstr "お気軽にお問い合わせください。"
494
msgid "Display Contact Section"
495
msgstr "お問い合わせ情報の表示"
496
497
- #: ../plugins/contact_section.php:222
498
msgid "Edit contact information"
499
msgstr ""
500
@@ -518,19 +517,19 @@ msgstr ""
518
"in One Expansion Unit</a> by <a href=\"http://www.vektor-inc.co.jp\" target="
519
"\"_blank\">Vektor,Inc.</a> technology.</p>"
520
521
- #: ../plugins/icons.php:35 ../plugins/icons.php:63
522
msgid "icon setting"
523
msgstr "アイコン設定"
524
525
- #: ../plugins/icons.php:68
526
msgid "Favicon Setting"
527
msgstr "ファビコン設定"
528
529
- #: ../plugins/icons.php:70
530
msgid "Choose icon"
531
msgstr "アイコンを選択"
532
533
- #: ../plugins/icons.php:71
534
msgid "Please upload your \".ico\" file"
535
msgstr "作成したicoファイルをアップロードしてください"
536
@@ -554,12 +553,12 @@ msgstr "広告を挿入 [ moreタグ ]"
554
msgid "insert the ad [ after content ]"
555
msgstr "広告を挿入 [ 記事の最後 ]"
556
557
- #: ../plugins/meta_description.php:21 ../plugins/meta_description.php:32
558
- #: ../plugins/meta_description.php:35
559
msgid "Meta Description"
560
msgstr "メタディスクリプション"
561
562
- #: ../plugins/meta_description.php:38
563
msgid ""
564
"What you have to complete the \"excerpt\" column of the edit screen of each "
565
"page will be reflected in the description of the meta tag."
@@ -567,7 +566,7 @@ msgstr ""
567
"各ページの編集画面の「抜粋」欄に記入した内容がmetaタグのディスクリプションに"
568
"反映されます"
569
570
- #: ../plugins/meta_description.php:39
571
msgid ""
572
"Description of meta tags in the search results screen of search sites such "
573
"as Google, will be Displayed, such as the bottom of the site title. If the "
@@ -578,7 +577,7 @@ msgstr ""
578
"す。しかし、トップページに設定した固定ページに抜粋が記入されている場合はその"
579
"内容が反映されます。"
580
581
- #: ../plugins/meta_description.php:40
582
msgid ""
583
"The meta description of the top page is subject to the catchphrase of the "
584
"site. However, its contents will be reflected if the excerpt is entered in "
@@ -588,7 +587,7 @@ msgstr ""
588
"す。しかし、トップページに設定した固定ページに抜粋が記入されている場合はその"
589
"内容が反映されます。"
590
591
- #: ../plugins/meta_description.php:41
592
msgid ""
593
"If \"excerpt\" column is not found, Click \"Display Option\" of page top at "
594
"each article edit page, and check the expert column display."
@@ -597,21 +596,21 @@ msgstr ""
597
"ので、そこをクリックすると「抜粋」欄を表示するチェックボックスが出てきますの"
598
"で、チェックして下さい。"
599
600
- #: ../plugins/meta_keyword.php:37 ../plugins/meta_keyword.php:86
601
- #: ../plugins/meta_keyword.php:88 ../plugins/meta_keyword.php:89
602
- #: ../plugins/meta_keyword.php:95
603
msgid "Meta Keywords"
604
msgstr "メタキーワード"
605
606
- #: ../plugins/meta_keyword.php:63
607
msgid "Meta Keyword"
608
msgstr "メタキーワード"
609
610
- #: ../plugins/meta_keyword.php:66
611
msgid "Common Keywords"
612
msgstr "共通キーワード設定"
613
614
- #: ../plugins/meta_keyword.php:67
615
msgid ""
616
"Keywords for meta tag. This words will set Meta Keyword with post keywords. "
617
"if you want multiple keywords, enter with separator of \",\"."
@@ -619,13 +618,13 @@ msgstr ""
619
"メタタグに入力するキーワードを入力します。ここでは全てのページで使用する共通"
620
"のキーワードを設定します。複数ある場合は「,」で区切ってください。"
621
622
- #: ../plugins/meta_keyword.php:70
623
msgid "This is not seriously, Because the SearchEngine does not care this."
624
msgstr ""
625
"あまり深く考える必要はありません。現状のサーチエンジンではそこまで重要なファ"
626
"クターとはなりません。"
627
628
- #: ../plugins/meta_keyword.php:71
629
msgid ""
630
"For each page individual keyword is enter at the edit screen of each "
631
"article. 10 keywords maximum, together with a each article keywords is "
@@ -634,21 +633,21 @@ msgstr ""
634
"個々のページのキーワードはそれぞれの投稿ページのキーワード入力欄から追加して"
635
"ください。それらと合わせて10個程度のキーワード数であることが望ましいです。"
636
637
- #: ../plugins/meta_keyword.php:72
638
msgid "\",\" separator at end of the last keyword is do not need."
639
msgstr "最後のキーワードの後ろに「,」は必要ありません。"
640
641
- #: ../plugins/meta_keyword.php:73
642
msgid "Example: WordPress,template,theme,free,GPL"
643
msgstr "【例】 WordPress,テンプレート,テーマ,無料,GPL"
644
645
- #: ../plugins/meta_keyword.php:96
646
msgid ""
647
"To distinguish between individual keywords, please enter a , delimiter "
648
"(optional)."
649
msgstr "キーワードを複数入力する場合は , ( カンマ )で区切って下さい。"
650
651
- #: ../plugins/meta_keyword.php:98
652
#, php-format
653
msgid "* keywords common to the entire site can be set from %s."
654
msgstr "サイト全体のキーワードは %s より設定することができます。"
@@ -688,7 +687,7 @@ msgid "Follow common setting"
688
msgstr "共通設定を使用"
689
690
#: ../plugins/call_to_action/class.call_to_action.php:90
691
- #: ../plugins/call_to_action/class.call_to_action.php:390
692
msgid "Disable display"
693
msgstr "表示しない"
694
@@ -775,22 +774,16 @@ msgstr ""
775
msgid "Show index page"
776
msgstr "一覧ページを表示する"
777
778
- #: ../plugins/child_page_index/child_page_index.php:42
779
#: ../plugins/other_widget/widget-3pr-area.php:274
780
#: ../plugins/other_widget/widget-3pr-area.php:316
781
#: ../plugins/other_widget/widget-3pr-area.php:359
782
msgid "Read more"
783
msgstr "詳しくはこちら"
784
785
- #: ../plugins/child_page_index/child_page_index.php:75
786
- #: ../plugins/sitemap_page/sitemap_page.php:201
787
- msgid "Choose display a child page index"
788
- msgstr "子ページの一覧を表示するか選択"
789
-
790
- #: ../plugins/child_page_index/child_page_index.php:80
791
- msgid "if checked you will display a child page index "
792
- msgstr ""
793
- "チェックを入れると個別ページ下へ同じ親ページをもつ子ページ一覧を表示します。"
794
795
#: ../plugins/css_customize/css_customize-edit.php:2
796
#: ../plugins/css_customize/css_customize.php:35
@@ -943,18 +936,14 @@ msgstr "3PR エリア3 設定"
943
944
#: ../plugins/other_widget/widget-archives.php:50
945
#: ../plugins/other_widget/widget-archives.php:51
946
- #: ../plugins/other_widget/old/widget-archive-list.php:49
947
- #: ../plugins/other_widget/old/widget-archive-list.php:50
948
msgid "Monthly archives"
949
msgstr "月別アーカイブ"
950
951
#: ../plugins/other_widget/widget-archives.php:60
952
- #: ../plugins/other_widget/old/widget-archive-list.php:59
953
msgid "Title"
954
msgstr "タイトル"
955
956
#: ../plugins/other_widget/widget-archives.php:64
957
- #: ../plugins/other_widget/old/widget-archive-list.php:63
958
msgid "Post type"
959
msgstr "ポストタイプ"
960
@@ -1010,20 +999,16 @@ msgstr "選択したページの内容を表示します。"
1010
msgid "page content to widget"
1011
msgstr "固定ページ本文"
1012
1013
- #: ../plugins/other_widget/widget-page.php:30
1014
#: ../plugins/other_widget/widget-taxonomies.php:58
1015
- #: ../plugins/other_widget/old/widget-page-content.php:30
1016
- #: ../plugins/other_widget/old/widget-taxonomy-list.php:61
1017
msgid "Display page"
1018
msgstr "ページを表示"
1019
1020
- #: ../plugins/other_widget/widget-page.php:38
1021
- #: ../plugins/other_widget/old/widget-page-content.php:38
1022
msgid "display title"
1023
msgstr "タイトルを表示"
1024
1025
- #: ../plugins/other_widget/widget-page.php:64
1026
- #: ../plugins/other_widget/old/widget-page-content.php:61
1027
msgid "Edit"
1028
msgstr "編集"
1029
@@ -1033,23 +1018,19 @@ msgstr ""
1033
1034
#: ../plugins/other_widget/widget-pr-blocks.php:12
1035
msgid "PR Blocks"
1036
- msgstr ""
1037
1038
#: ../plugins/other_widget/widget-pr-blocks.php:19
1039
- msgid "PR Block1 title"
1040
- msgstr "PR ブロック1 タイトル"
1041
1042
#: ../plugins/other_widget/widget-pr-blocks.php:27
1043
- msgid "PR Block2 title"
1044
- msgstr "PR ブロック2 タイトル"
1045
1046
#: ../plugins/other_widget/widget-pr-blocks.php:35
1047
- msgid "PR Block3 title"
1048
- msgstr "PR ブロック3 タイトル"
1049
-
1050
- #: ../plugins/other_widget/widget-pr-blocks.php:43
1051
- msgid "PR Block4 title"
1052
- msgstr "PR ブロック4 タイトル"
1053
1054
#: ../plugins/other_widget/widget-pr-blocks.php:56
1055
msgid "The choice of the number of columns:"
@@ -1086,8 +1067,8 @@ msgid "To choose your favorite icon, and enter the class."
1086
msgstr "アイコンフォントを選んでそのクラス名を入力してください。"
1087
1088
#: ../plugins/other_widget/widget-pr-blocks.php:78
1089
- msgid " ex:fa-rocket"
1090
- msgstr "例: fa-rocket"
1091
1092
#: ../plugins/other_widget/widget-pr-blocks.php:82
1093
msgid "Icon bg-color:"
@@ -1177,18 +1158,14 @@ msgstr "カテゴリー/カスタム分類リスト"
1177
1178
#: ../plugins/other_widget/widget-taxonomies.php:45
1179
#: ../plugins/other_widget/widget-taxonomies.php:46
1180
- #: ../plugins/other_widget/old/widget-taxonomy-list.php:48
1181
- #: ../plugins/other_widget/old/widget-taxonomy-list.php:49
1182
msgid "Category"
1183
msgstr "カテゴリー"
1184
1185
#: ../plugins/other_widget/widget-taxonomies.php:54
1186
- #: ../plugins/other_widget/old/widget-taxonomy-list.php:57
1187
msgid "Label to display"
1188
msgstr "表示するラベル"
1189
1190
#: ../plugins/other_widget/widget-taxonomies.php:74
1191
- #: ../plugins/other_widget/old/widget-taxonomy-list.php:76
1192
msgid "Blog"
1193
msgstr "ブログ"
1194
@@ -1200,14 +1177,6 @@ msgstr "現在のページの子ページのリストを表示します。"
1200
msgid "child pages list"
1201
msgstr "子ページのリスト"
1202
1203
- #: ../plugins/other_widget/old/widget-page-content.php:10
1204
- msgid "Displays the content of a chosen page."
1205
- msgstr "選択したページの内容を表示します。"
1206
-
1207
- #: ../plugins/other_widget/old/widget-page-content.php:12
1208
- msgid "page content for top"
1209
- msgstr "固定ページ本文"
1210
-
1211
#: ../plugins/other_widget/old/widget-rss-widget.php:9
1212
msgid "Displays entries list from a RSS feed link."
1213
msgstr "RSSフィードリンクからエントリーリストを表示します。"
@@ -1242,13 +1211,13 @@ msgid ""
1242
"that you want to exclude."
1243
msgstr "複数のページを除外する場合は , (コンマ)で区切って入力してください。"
1244
1245
- #: ../plugins/sitemap_page/sitemap_page.php:17
1246
msgid "HTML Sitemap"
1247
msgstr "HTMLサイトマップ"
1248
1249
- #: ../plugins/sitemap_page/sitemap_page.php:206
1250
- msgid "if checked you will display a sitemap"
1251
- msgstr "チェックを入れるとHTMLサイトマップを表示します。"
1252
1253
#: ../plugins/sns/function_fbPagePlugin.php:10
1254
msgid "Displays a Facebook Page Plugin"
@@ -1565,6 +1534,38 @@ msgstr "BizVektor を使用して OGP タグを出力しない。"
1565
msgid "Page top"
1566
msgstr "ページ先頭へ"
1567
1568
#, fuzzy
1569
#~ msgid "Post each setting."
1570
#~ msgstr "3PR エリア1 設定"
@@ -1621,9 +1622,6 @@ msgstr "ページ先頭へ"
1621
#~ msgid "Media float setting:"
1622
#~ msgstr "メイン設定"
1623
1624
- #~ msgid "Display a child page index"
1625
- #~ msgstr "子ページ一覧の表示"
1626
-
1627
#~ msgid "Other Widgets"
1628
#~ msgstr "Other ウィジェット"
1629
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2015-08-17 19:28+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"
16
"X-Poedit-SearchPath-0: ..\n"
17
18
#: ../admin_wrapper.php:7 ../admin_wrapper.php:8
19
+ #: ../plugins/meta_keyword.php:103
20
msgid "Main setting"
21
msgstr "メイン設定"
22
23
+ #: ../admin_wrapper.php:51
24
msgid "Activated Packages is noting. please activate some package."
25
msgstr ""
26
+ "有効化されているパッケージがありません。何かの機能を有効化してください。"
27
28
#: ../common_helpers.php:126
29
#, php-format
104
msgstr "チャット"
105
106
#: ../common_helpers.php:270 ../plugins/other_widget/widget-taxonomies.php:79
107
msgid "Archives"
108
msgstr "アーカイブ"
109
110
+ #: ../packages.php:45 ../plugins/contact_section.php:70
111
msgid "Contact Section"
112
msgstr "お問い合わせ"
113
199
msgid "VK_3PR area - display the 3PR area."
200
msgstr "VK_3PR エリア - 3PR エリアを表示します。"
201
202
+ #: ../packages.php:118
203
msgid "categories/tags list"
204
msgstr "カテゴリー/タグ リスト"
205
206
+ #: ../packages.php:118
207
msgid "Displays a categories, tags or format list."
208
msgstr "カテゴリ・タグまたは、フォーマットリストを表示します。"
209
210
#: ../packages.php:119 ../plugins/other_widget/widget-archives.php:14
211
msgid "archive list"
212
msgstr "アーカイブリスト"
213
214
#: ../packages.php:119 ../plugins/other_widget/widget-archives.php:12
215
msgid ""
216
"Displays a list of archives. You can choose the post type and also to "
217
"display archives by month or by year."
234
"追加する CSS コードは「VK Ex Unit」→「CSS カスタマイズ」の画面にて入力して下"
235
"さい。"
236
237
+ #: ../packages.php:158 ../plugins/insert_ads.php:39
238
#: ../plugins/insert_ads.php:118
239
msgid "Insert ads"
240
msgstr "広告の挿入"
414
msgid "Print Related posts lists to post content bottom."
415
msgstr "関連記事を記事コンテンツ下のエリアへ表示します。"
416
417
+ #: ../plugins/auto_eyecatch.php:40
418
msgid "Automatic EyeCatch"
419
msgstr "アイキャッチ自動挿入"
420
421
+ #: ../plugins/auto_eyecatch.php:50
422
msgid "Do not set eyecatch image automatic."
423
msgstr "アイキャッチ画像を自動挿入しない"
424
425
+ #: ../plugins/contact_section.php:46
426
+ #: ../plugins/other_widget/widget-pr-blocks.php:43
427
msgid "Contact"
428
msgstr ""
429
430
+ #: ../plugins/contact_section.php:56 ../plugins/contact_section.php:77
431
msgid "Please feel free to inquire."
432
msgstr "お気軽にお問い合わせください。"
433
434
+ #: ../plugins/contact_section.php:58
435
msgid "Office hours 9:00 - 18:00 [ Weekdays except holidays ]"
436
msgstr "受付時間 9:00-18:00 [ 土・日・祝日除く ]"
437
438
+ #: ../plugins/contact_section.php:74
439
msgid "Message"
440
msgstr "メッセージ"
441
442
+ #: ../plugins/contact_section.php:77 ../plugins/contact_section.php:84
443
+ #: ../plugins/contact_section.php:91 ../plugins/contact_section.php:99
444
+ #: ../plugins/contact_section.php:107 ../plugins/contact_section.php:115
445
#: ../plugins/google_analytics/ga_admin.php:16 ../plugins/sns/sns_admin.php:31
446
#: ../plugins/sns/old/sns_admin.php:20 ../plugins/sns/old/sns_admin.php:61
447
#: ../plugins/sns/old/sns_admin.php:79 ../plugins/sns/old/sns_admin.php:98
449
msgid "ex) "
450
msgstr "例: "
451
452
+ #: ../plugins/contact_section.php:81
453
msgid "Phone number"
454
msgstr "電話番号"
455
456
+ #: ../plugins/contact_section.php:88 ../plugins/contact_section.php:91
457
msgid "Office hours"
458
msgstr "営業時間"
459
460
+ #: ../plugins/contact_section.php:91
461
msgid "Weekdays except holidays"
462
msgstr ""
463
464
+ #: ../plugins/contact_section.php:96
465
msgid "The contact page URL"
466
msgstr "お問い合わせ先URL"
467
468
+ #: ../plugins/contact_section.php:99
469
msgid "or"
470
msgstr ""
471
472
+ #: ../plugins/contact_section.php:100
473
msgid "* If you fill in the blank, contact button does not appear."
474
msgstr "未入力の場合はお問い合わせボタンは表示されません。"
475
476
+ #: ../plugins/contact_section.php:104
477
msgid "Contact button Text."
478
msgstr "お問い合わせボタンに表示するテキスト"
479
480
+ #: ../plugins/contact_section.php:107
481
msgid "Contact Us from email."
482
msgstr "メールでのお問い合わせはこちら"
483
484
+ #: ../plugins/contact_section.php:112
485
msgid "Contact button Text. ( sub )"
486
msgstr "お問い合わせボタンに表示するテキスト2(オプション)"
487
488
+ #: ../plugins/contact_section.php:116
489
msgid "Email contact form"
490
msgstr "お気軽にお問い合わせください。"
491
493
msgid "Display Contact Section"
494
msgstr "お問い合わせ情報の表示"
495
496
+ #: ../plugins/contact_section.php:215
497
msgid "Edit contact information"
498
msgstr ""
499
517
"in One Expansion Unit</a> by <a href=\"http://www.vektor-inc.co.jp\" target="
518
"\"_blank\">Vektor,Inc.</a> technology.</p>"
519
520
+ #: ../plugins/icons.php:38 ../plugins/icons.php:68
521
msgid "icon setting"
522
msgstr "アイコン設定"
523
524
+ #: ../plugins/icons.php:73
525
msgid "Favicon Setting"
526
msgstr "ファビコン設定"
527
528
+ #: ../plugins/icons.php:75
529
msgid "Choose icon"
530
msgstr "アイコンを選択"
531
532
+ #: ../plugins/icons.php:76
533
msgid "Please upload your \".ico\" file"
534
msgstr "作成したicoファイルをアップロードしてください"
535
553
msgid "insert the ad [ after content ]"
554
msgstr "広告を挿入 [ 記事の最後 ]"
555
556
+ #: ../plugins/meta_description.php:20 ../plugins/meta_description.php:31
557
+ #: ../plugins/meta_description.php:34
558
msgid "Meta Description"
559
msgstr "メタディスクリプション"
560
561
+ #: ../plugins/meta_description.php:37
562
msgid ""
563
"What you have to complete the \"excerpt\" column of the edit screen of each "
564
"page will be reflected in the description of the meta tag."
566
"各ページの編集画面の「抜粋」欄に記入した内容がmetaタグのディスクリプションに"
567
"反映されます"
568
569
+ #: ../plugins/meta_description.php:38
570
msgid ""
571
"Description of meta tags in the search results screen of search sites such "
572
"as Google, will be Displayed, such as the bottom of the site title. If the "
577
"す。しかし、トップページに設定した固定ページに抜粋が記入されている場合はその"
578
"内容が反映されます。"
579
580
+ #: ../plugins/meta_description.php:39
581
msgid ""
582
"The meta description of the top page is subject to the catchphrase of the "
583
"site. However, its contents will be reflected if the excerpt is entered in "
587
"す。しかし、トップページに設定した固定ページに抜粋が記入されている場合はその"
588
"内容が反映されます。"
589
590
+ #: ../plugins/meta_description.php:40
591
msgid ""
592
"If \"excerpt\" column is not found, Click \"Display Option\" of page top at "
593
"each article edit page, and check the expert column display."
596
"ので、そこをクリックすると「抜粋」欄を表示するチェックボックスが出てきますの"
597
"で、チェックして下さい。"
598
599
+ #: ../plugins/meta_keyword.php:40 ../plugins/meta_keyword.php:91
600
+ #: ../plugins/meta_keyword.php:93 ../plugins/meta_keyword.php:94
601
+ #: ../plugins/meta_keyword.php:101
602
msgid "Meta Keywords"
603
msgstr "メタキーワード"
604
605
+ #: ../plugins/meta_keyword.php:68
606
msgid "Meta Keyword"
607
msgstr "メタキーワード"
608
609
+ #: ../plugins/meta_keyword.php:71
610
msgid "Common Keywords"
611
msgstr "共通キーワード設定"
612
613
+ #: ../plugins/meta_keyword.php:72
614
msgid ""
615
"Keywords for meta tag. This words will set Meta Keyword with post keywords. "
616
"if you want multiple keywords, enter with separator of \",\"."
618
"メタタグに入力するキーワードを入力します。ここでは全てのページで使用する共通"
619
"のキーワードを設定します。複数ある場合は「,」で区切ってください。"
620
621
+ #: ../plugins/meta_keyword.php:75
622
msgid "This is not seriously, Because the SearchEngine does not care this."
623
msgstr ""
624
"あまり深く考える必要はありません。現状のサーチエンジンではそこまで重要なファ"
625
"クターとはなりません。"
626
627
+ #: ../plugins/meta_keyword.php:76
628
msgid ""
629
"For each page individual keyword is enter at the edit screen of each "
630
"article. 10 keywords maximum, together with a each article keywords is "
633
"個々のページのキーワードはそれぞれの投稿ページのキーワード入力欄から追加して"
634
"ください。それらと合わせて10個程度のキーワード数であることが望ましいです。"
635
636
+ #: ../plugins/meta_keyword.php:77
637
msgid "\",\" separator at end of the last keyword is do not need."
638
msgstr "最後のキーワードの後ろに「,」は必要ありません。"
639
640
+ #: ../plugins/meta_keyword.php:78
641
msgid "Example: WordPress,template,theme,free,GPL"
642
msgstr "【例】 WordPress,テンプレート,テーマ,無料,GPL"
643
644
+ #: ../plugins/meta_keyword.php:102
645
msgid ""
646
"To distinguish between individual keywords, please enter a , delimiter "
647
"(optional)."
648
msgstr "キーワードを複数入力する場合は , ( カンマ )で区切って下さい。"
649
650
+ #: ../plugins/meta_keyword.php:104
651
#, php-format
652
msgid "* keywords common to the entire site can be set from %s."
653
msgstr "サイト全体のキーワードは %s より設定することができます。"
687
msgstr "共通設定を使用"
688
689
#: ../plugins/call_to_action/class.call_to_action.php:90
690
+ #: ../plugins/call_to_action/class.call_to_action.php:397
691
msgid "Disable display"
692
msgstr "表示しない"
693
774
msgid "Show index page"
775
msgstr "一覧ページを表示する"
776
777
+ #: ../plugins/child_page_index/child_page_index.php:40
778
#: ../plugins/other_widget/widget-3pr-area.php:274
779
#: ../plugins/other_widget/widget-3pr-area.php:316
780
#: ../plugins/other_widget/widget-3pr-area.php:359
781
msgid "Read more"
782
msgstr "詳しくはこちら"
783
784
+ #: ../plugins/child_page_index/child_page_index.php:76
785
+ msgid "Display a child page index"
786
+ msgstr "子ページ一覧の表示"
787
788
#: ../plugins/css_customize/css_customize-edit.php:2
789
#: ../plugins/css_customize/css_customize.php:35
936
937
#: ../plugins/other_widget/widget-archives.php:50
938
#: ../plugins/other_widget/widget-archives.php:51
939
msgid "Monthly archives"
940
msgstr "月別アーカイブ"
941
942
#: ../plugins/other_widget/widget-archives.php:60
943
msgid "Title"
944
msgstr "タイトル"
945
946
#: ../plugins/other_widget/widget-archives.php:64
947
msgid "Post type"
948
msgstr "ポストタイプ"
949
999
msgid "page content to widget"
1000
msgstr "固定ページ本文"
1001
1002
+ #: ../plugins/other_widget/widget-page.php:33
1003
#: ../plugins/other_widget/widget-taxonomies.php:58
1004
msgid "Display page"
1005
msgstr "ページを表示"
1006
1007
+ #: ../plugins/other_widget/widget-page.php:41
1008
msgid "display title"
1009
msgstr "タイトルを表示"
1010
1011
+ #: ../plugins/other_widget/widget-page.php:65
1012
msgid "Edit"
1013
msgstr "編集"
1014
1018
1019
#: ../plugins/other_widget/widget-pr-blocks.php:12
1020
msgid "PR Blocks"
1021
+ msgstr "PR Blocks"
1022
1023
#: ../plugins/other_widget/widget-pr-blocks.php:19
1024
+ msgid "Service"
1025
+ msgstr "サービス紹介"
1026
1027
#: ../plugins/other_widget/widget-pr-blocks.php:27
1028
+ msgid "Company"
1029
+ msgstr "会社案内"
1030
1031
#: ../plugins/other_widget/widget-pr-blocks.php:35
1032
+ msgid "Recruit"
1033
+ msgstr "採用情報"
1034
1035
#: ../plugins/other_widget/widget-pr-blocks.php:56
1036
msgid "The choice of the number of columns:"
1067
msgstr "アイコンフォントを選んでそのクラス名を入力してください。"
1068
1069
#: ../plugins/other_widget/widget-pr-blocks.php:78
1070
+ msgid " ex:fa-file-text-o"
1071
+ msgstr "例:fa-file-text-o"
1072
1073
#: ../plugins/other_widget/widget-pr-blocks.php:82
1074
msgid "Icon bg-color:"
1158
1159
#: ../plugins/other_widget/widget-taxonomies.php:45
1160
#: ../plugins/other_widget/widget-taxonomies.php:46
1161
msgid "Category"
1162
msgstr "カテゴリー"
1163
1164
#: ../plugins/other_widget/widget-taxonomies.php:54
1165
msgid "Label to display"
1166
msgstr "表示するラベル"
1167
1168
#: ../plugins/other_widget/widget-taxonomies.php:74
1169
msgid "Blog"
1170
msgstr "ブログ"
1171
1177
msgid "child pages list"
1178
msgstr "子ページのリスト"
1179
1180
#: ../plugins/other_widget/old/widget-rss-widget.php:9
1181
msgid "Displays entries list from a RSS feed link."
1182
msgstr "RSSフィードリンクからエントリーリストを表示します。"
1211
"that you want to exclude."
1212
msgstr "複数のページを除外する場合は , (コンマ)で区切って入力してください。"
1213
1214
+ #: ../plugins/sitemap_page/sitemap_page.php:31
1215
msgid "HTML Sitemap"
1216
msgstr "HTMLサイトマップ"
1217
1218
+ #: ../plugins/sitemap_page/sitemap_page.php:222
1219
+ msgid "Display a HTML sitemap"
1220
+ msgstr "HTMLサイトマップの表示"
1221
1222
#: ../plugins/sns/function_fbPagePlugin.php:10
1223
msgid "Displays a Facebook Page Plugin"
1534
msgid "Page top"
1535
msgstr "ページ先頭へ"
1536
1537
+ #~ msgid "Choose display a child page index"
1538
+ #~ msgstr "子ページの一覧を表示するか選択"
1539
+
1540
+ #~ msgid "Displays the content of a chosen page."
1541
+ #~ msgstr "選択したページの内容を表示します。"
1542
+
1543
+ #~ msgid "page content for top"
1544
+ #~ msgstr "固定ページ本文"
1545
+
1546
+ #~ msgid "if checked you will display a child page index "
1547
+ #~ msgstr ""
1548
+ #~ "チェックを入れると個別ページ下へ同じ親ページをもつ子ページ一覧を表示しま"
1549
+ #~ "す。"
1550
+
1551
+ #~ msgid "PR Block1 title"
1552
+ #~ msgstr "PR ブロック1 タイトル"
1553
+
1554
+ #~ msgid "PR Block2 title"
1555
+ #~ msgstr "PR ブロック2 タイトル"
1556
+
1557
+ #~ msgid "PR Block3 title"
1558
+ #~ msgstr "PR ブロック3 タイトル"
1559
+
1560
+ #~ msgid "PR Block4 title"
1561
+ #~ msgstr "PR ブロック4 タイトル"
1562
+
1563
+ #~ msgid " ex:fa-rocket"
1564
+ #~ msgstr "例: fa-rocket"
1565
+
1566
+ #~ msgid "if checked you will display a sitemap"
1567
+ #~ msgstr "チェックを入れるとHTMLサイトマップを表示します。"
1568
+
1569
#, fuzzy
1570
#~ msgid "Post each setting."
1571
#~ msgstr "3PR エリア1 設定"
1622
#~ msgid "Media float setting:"
1623
#~ msgstr "メイン設定"
1624
1625
#~ msgid "Other Widgets"
1626
#~ msgstr "Other ウィジェット"
1627
languages/vkexunit.mo CHANGED
Binary file
languages/vkexunit.pot CHANGED
@@ -1,7 +1,7 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: \n"
4
- "POT-Creation-Date: 2015-08-17 11:57+0900\n"
5
"PO-Revision-Date: \n"
6
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
7
"Language-Team: Vektor,Inc. <info@vektor-inc.co.jp>\n"
@@ -14,11 +14,11 @@ msgstr ""
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SearchPath-0: .\n"
16
17
- #: admin_wrapper.php:7 admin_wrapper.php:8 plugins/meta_keyword.php:97
18
msgid "Main setting"
19
msgstr ""
20
21
- #: admin_wrapper.php:52
22
msgid "Activated Packages is noting. please activate some package."
23
msgstr ""
24
@@ -101,11 +101,10 @@ msgid "Chats"
101
msgstr ""
102
103
#: common_helpers.php:270 plugins/other_widget/widget-taxonomies.php:79
104
- #: plugins/other_widget/old/widget-taxonomy-list.php:81
105
msgid "Archives"
106
msgstr ""
107
108
- #: packages.php:45 plugins/contact_section.php:71
109
msgid "Contact Section"
110
msgstr ""
111
@@ -188,21 +187,19 @@ msgstr ""
188
msgid "VK_3PR area - display the 3PR area."
189
msgstr ""
190
191
- #: packages.php:118 plugins/other_widget/old/widget-taxonomy-list.php:17
192
msgid "categories/tags list"
193
msgstr ""
194
195
- #: packages.php:118 plugins/other_widget/old/widget-taxonomy-list.php:11
196
msgid "Displays a categories, tags or format list."
197
msgstr ""
198
199
#: packages.php:119 plugins/other_widget/widget-archives.php:14
200
- #: plugins/other_widget/old/widget-archive-list.php:14
201
msgid "archive list"
202
msgstr ""
203
204
#: packages.php:119 plugins/other_widget/widget-archives.php:12
205
- #: plugins/other_widget/old/widget-archive-list.php:12
206
msgid ""
207
"Displays a list of archives. You can choose the post type and also to "
208
"display archives by month or by year."
@@ -220,7 +217,7 @@ msgstr ""
220
msgid "You can set Customize CSS."
221
msgstr ""
222
223
- #: packages.php:158 plugins/insert_ads.php:37 plugins/insert_ads.php:118
224
msgid "Insert ads"
225
msgstr ""
226
@@ -379,33 +376,33 @@ msgstr ""
379
msgid "Print Related posts lists to post content bottom."
380
msgstr ""
381
382
- #: plugins/auto_eyecatch.php:41
383
msgid "Automatic EyeCatch"
384
msgstr ""
385
386
- #: plugins/auto_eyecatch.php:51
387
msgid "Do not set eyecatch image automatic."
388
msgstr ""
389
390
- #: plugins/contact_section.php:47
391
msgid "Contact"
392
msgstr ""
393
394
- #: plugins/contact_section.php:57 plugins/contact_section.php:78
395
msgid "Please feel free to inquire."
396
msgstr ""
397
398
- #: plugins/contact_section.php:59
399
msgid "Office hours 9:00 - 18:00 [ Weekdays except holidays ]"
400
msgstr ""
401
402
- #: plugins/contact_section.php:75
403
msgid "Message"
404
msgstr ""
405
406
- #: plugins/contact_section.php:78 plugins/contact_section.php:85
407
- #: plugins/contact_section.php:92 plugins/contact_section.php:100
408
- #: plugins/contact_section.php:108 plugins/contact_section.php:116
409
#: plugins/google_analytics/ga_admin.php:16 plugins/sns/sns_admin.php:31
410
#: plugins/sns/old/sns_admin.php:20 plugins/sns/old/sns_admin.php:61
411
#: plugins/sns/old/sns_admin.php:79 plugins/sns/old/sns_admin.php:98
@@ -413,43 +410,43 @@ msgstr ""
413
msgid "ex) "
414
msgstr ""
415
416
- #: plugins/contact_section.php:82
417
msgid "Phone number"
418
msgstr ""
419
420
- #: plugins/contact_section.php:89 plugins/contact_section.php:92
421
msgid "Office hours"
422
msgstr ""
423
424
- #: plugins/contact_section.php:92
425
msgid "Weekdays except holidays"
426
msgstr ""
427
428
- #: plugins/contact_section.php:97
429
msgid "The contact page URL"
430
msgstr ""
431
432
- #: plugins/contact_section.php:100
433
msgid "or"
434
msgstr ""
435
436
- #: plugins/contact_section.php:101
437
msgid "* If you fill in the blank, contact button does not appear."
438
msgstr ""
439
440
- #: plugins/contact_section.php:105
441
msgid "Contact button Text."
442
msgstr ""
443
444
- #: plugins/contact_section.php:108
445
msgid "Contact Us from email."
446
msgstr ""
447
448
- #: plugins/contact_section.php:113
449
msgid "Contact button Text. ( sub )"
450
msgstr ""
451
452
- #: plugins/contact_section.php:117
453
msgid "Email contact form"
454
msgstr ""
455
@@ -457,7 +454,7 @@ msgstr ""
457
msgid "Display Contact Section"
458
msgstr ""
459
460
- #: plugins/contact_section.php:222
461
msgid "Edit contact information"
462
msgstr ""
463
@@ -475,19 +472,19 @@ msgid ""
475
"</p>"
476
msgstr ""
477
478
- #: plugins/icons.php:35 plugins/icons.php:63
479
msgid "icon setting"
480
msgstr ""
481
482
- #: plugins/icons.php:68
483
msgid "Favicon Setting"
484
msgstr ""
485
486
- #: plugins/icons.php:70
487
msgid "Choose icon"
488
msgstr ""
489
490
- #: plugins/icons.php:71
491
msgid "Please upload your \".ico\" file"
492
msgstr ""
493
@@ -511,18 +508,18 @@ msgstr ""
511
msgid "insert the ad [ after content ]"
512
msgstr ""
513
514
- #: plugins/meta_description.php:21 plugins/meta_description.php:32
515
- #: plugins/meta_description.php:35
516
msgid "Meta Description"
517
msgstr ""
518
519
- #: plugins/meta_description.php:38
520
msgid ""
521
"What you have to complete the \"excerpt\" column of the edit screen of each "
522
"page will be reflected in the description of the meta tag."
523
msgstr ""
524
525
- #: plugins/meta_description.php:39
526
msgid ""
527
"Description of meta tags in the search results screen of search sites such "
528
"as Google, will be Displayed, such as the bottom of the site title. If the "
@@ -530,65 +527,65 @@ msgid ""
530
"has become a specification that is applied as a description."
531
msgstr ""
532
533
- #: plugins/meta_description.php:40
534
msgid ""
535
"The meta description of the top page is subject to the catchphrase of the "
536
"site. However, its contents will be reflected if the excerpt is entered in "
537
"fixed page that was set on the top page."
538
msgstr ""
539
540
- #: plugins/meta_description.php:41
541
msgid ""
542
"If \"excerpt\" column is not found, Click \"Display Option\" of page top at "
543
"each article edit page, and check the expert column display."
544
msgstr ""
545
546
- #: plugins/meta_keyword.php:37 plugins/meta_keyword.php:86
547
- #: plugins/meta_keyword.php:88 plugins/meta_keyword.php:89
548
- #: plugins/meta_keyword.php:95
549
msgid "Meta Keywords"
550
msgstr ""
551
552
- #: plugins/meta_keyword.php:63
553
msgid "Meta Keyword"
554
msgstr ""
555
556
- #: plugins/meta_keyword.php:66
557
msgid "Common Keywords"
558
msgstr ""
559
560
- #: plugins/meta_keyword.php:67
561
msgid ""
562
"Keywords for meta tag. This words will set Meta Keyword with post keywords. "
563
"if you want multiple keywords, enter with separator of \",\"."
564
msgstr ""
565
566
- #: plugins/meta_keyword.php:70
567
msgid "This is not seriously, Because the SearchEngine does not care this."
568
msgstr ""
569
570
- #: plugins/meta_keyword.php:71
571
msgid ""
572
"For each page individual keyword is enter at the edit screen of each "
573
"article. 10 keywords maximum, together with a each article keywords is "
574
"desirable."
575
msgstr ""
576
577
- #: plugins/meta_keyword.php:72
578
msgid "\",\" separator at end of the last keyword is do not need."
579
msgstr ""
580
581
- #: plugins/meta_keyword.php:73
582
msgid "Example: WordPress,template,theme,free,GPL"
583
msgstr ""
584
585
- #: plugins/meta_keyword.php:96
586
msgid ""
587
"To distinguish between individual keywords, please enter a , delimiter "
588
"(optional)."
589
msgstr ""
590
591
- #: plugins/meta_keyword.php:98
592
#, php-format
593
msgid "* keywords common to the entire site can be set from %s."
594
msgstr ""
@@ -713,20 +710,15 @@ msgstr ""
713
msgid "Show index page"
714
msgstr ""
715
716
- #: plugins/child_page_index/child_page_index.php:42
717
#: plugins/other_widget/widget-3pr-area.php:274
718
#: plugins/other_widget/widget-3pr-area.php:316
719
#: plugins/other_widget/widget-3pr-area.php:359
720
msgid "Read more"
721
msgstr ""
722
723
- #: plugins/child_page_index/child_page_index.php:75
724
- #: plugins/sitemap_page/sitemap_page.php:201
725
- msgid "Choose display a child page index"
726
- msgstr ""
727
-
728
- #: plugins/child_page_index/child_page_index.php:80
729
- msgid "if checked you will display a child page index "
730
msgstr ""
731
732
#: plugins/css_customize/css_customize-edit.php:2
@@ -876,18 +868,14 @@ msgstr ""
876
877
#: plugins/other_widget/widget-archives.php:50
878
#: plugins/other_widget/widget-archives.php:51
879
- #: plugins/other_widget/old/widget-archive-list.php:49
880
- #: plugins/other_widget/old/widget-archive-list.php:50
881
msgid "Monthly archives"
882
msgstr ""
883
884
#: plugins/other_widget/widget-archives.php:60
885
- #: plugins/other_widget/old/widget-archive-list.php:59
886
msgid "Title"
887
msgstr ""
888
889
#: plugins/other_widget/widget-archives.php:64
890
- #: plugins/other_widget/old/widget-archive-list.php:63
891
msgid "Post type"
892
msgstr ""
893
@@ -943,18 +931,14 @@ msgstr ""
943
944
#: plugins/other_widget/widget-page.php:33
945
#: plugins/other_widget/widget-taxonomies.php:58
946
- #: plugins/other_widget/old/widget-page-content.php:30
947
- #: plugins/other_widget/old/widget-taxonomy-list.php:61
948
msgid "Display page"
949
msgstr ""
950
951
#: plugins/other_widget/widget-page.php:41
952
- #: plugins/other_widget/old/widget-page-content.php:38
953
msgid "display title"
954
msgstr ""
955
956
- #: plugins/other_widget/widget-page.php:67
957
- #: plugins/other_widget/old/widget-page-content.php:61
958
msgid "Edit"
959
msgstr ""
960
@@ -967,19 +951,15 @@ msgid "PR Blocks"
967
msgstr ""
968
969
#: plugins/other_widget/widget-pr-blocks.php:19
970
- msgid "PR Block1 title"
971
msgstr ""
972
973
#: plugins/other_widget/widget-pr-blocks.php:27
974
- msgid "PR Block2 title"
975
msgstr ""
976
977
#: plugins/other_widget/widget-pr-blocks.php:35
978
- msgid "PR Block3 title"
979
- msgstr ""
980
-
981
- #: plugins/other_widget/widget-pr-blocks.php:43
982
- msgid "PR Block4 title"
983
msgstr ""
984
985
#: plugins/other_widget/widget-pr-blocks.php:56
@@ -1015,7 +995,7 @@ msgid "To choose your favorite icon, and enter the class."
1015
msgstr ""
1016
1017
#: plugins/other_widget/widget-pr-blocks.php:78
1018
- msgid " ex:fa-rocket"
1019
msgstr ""
1020
1021
#: plugins/other_widget/widget-pr-blocks.php:82
@@ -1105,18 +1085,14 @@ msgstr ""
1105
1106
#: plugins/other_widget/widget-taxonomies.php:45
1107
#: plugins/other_widget/widget-taxonomies.php:46
1108
- #: plugins/other_widget/old/widget-taxonomy-list.php:48
1109
- #: plugins/other_widget/old/widget-taxonomy-list.php:49
1110
msgid "Category"
1111
msgstr ""
1112
1113
#: plugins/other_widget/widget-taxonomies.php:54
1114
- #: plugins/other_widget/old/widget-taxonomy-list.php:57
1115
msgid "Label to display"
1116
msgstr ""
1117
1118
#: plugins/other_widget/widget-taxonomies.php:74
1119
- #: plugins/other_widget/old/widget-taxonomy-list.php:76
1120
msgid "Blog"
1121
msgstr ""
1122
@@ -1128,14 +1104,6 @@ msgstr ""
1128
msgid "child pages list"
1129
msgstr ""
1130
1131
- #: plugins/other_widget/old/widget-page-content.php:10
1132
- msgid "Displays the content of a chosen page."
1133
- msgstr ""
1134
-
1135
- #: plugins/other_widget/old/widget-page-content.php:12
1136
- msgid "page content for top"
1137
- msgstr ""
1138
-
1139
#: plugins/other_widget/old/widget-rss-widget.php:9
1140
msgid "Displays entries list from a RSS feed link."
1141
msgstr ""
@@ -1170,12 +1138,12 @@ msgid ""
1170
"that you want to exclude."
1171
msgstr ""
1172
1173
- #: plugins/sitemap_page/sitemap_page.php:17
1174
msgid "HTML Sitemap"
1175
msgstr ""
1176
1177
- #: plugins/sitemap_page/sitemap_page.php:206
1178
- msgid "if checked you will display a sitemap"
1179
msgstr ""
1180
1181
#: plugins/sns/function_fbPagePlugin.php:10
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2015-08-17 19:28+0900\n"
5
"PO-Revision-Date: \n"
6
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
7
"Language-Team: Vektor,Inc. <info@vektor-inc.co.jp>\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SearchPath-0: .\n"
16
17
+ #: admin_wrapper.php:7 admin_wrapper.php:8 plugins/meta_keyword.php:103
18
msgid "Main setting"
19
msgstr ""
20
21
+ #: admin_wrapper.php:51
22
msgid "Activated Packages is noting. please activate some package."
23
msgstr ""
24
101
msgstr ""
102
103
#: common_helpers.php:270 plugins/other_widget/widget-taxonomies.php:79
104
msgid "Archives"
105
msgstr ""
106
107
+ #: packages.php:45 plugins/contact_section.php:70
108
msgid "Contact Section"
109
msgstr ""
110
187
msgid "VK_3PR area - display the 3PR area."
188
msgstr ""
189
190
+ #: packages.php:118
191
msgid "categories/tags list"
192
msgstr ""
193
194
+ #: packages.php:118
195
msgid "Displays a categories, tags or format list."
196
msgstr ""
197
198
#: packages.php:119 plugins/other_widget/widget-archives.php:14
199
msgid "archive list"
200
msgstr ""
201
202
#: packages.php:119 plugins/other_widget/widget-archives.php:12
203
msgid ""
204
"Displays a list of archives. You can choose the post type and also to "
205
"display archives by month or by year."
217
msgid "You can set Customize CSS."
218
msgstr ""
219
220
+ #: packages.php:158 plugins/insert_ads.php:39 plugins/insert_ads.php:118
221
msgid "Insert ads"
222
msgstr ""
223
376
msgid "Print Related posts lists to post content bottom."
377
msgstr ""
378
379
+ #: plugins/auto_eyecatch.php:40
380
msgid "Automatic EyeCatch"
381
msgstr ""
382
383
+ #: plugins/auto_eyecatch.php:50
384
msgid "Do not set eyecatch image automatic."
385
msgstr ""
386
387
+ #: plugins/contact_section.php:46 plugins/other_widget/widget-pr-blocks.php:43
388
msgid "Contact"
389
msgstr ""
390
391
+ #: plugins/contact_section.php:56 plugins/contact_section.php:77
392
msgid "Please feel free to inquire."
393
msgstr ""
394
395
+ #: plugins/contact_section.php:58
396
msgid "Office hours 9:00 - 18:00 [ Weekdays except holidays ]"
397
msgstr ""
398
399
+ #: plugins/contact_section.php:74
400
msgid "Message"
401
msgstr ""
402
403
+ #: plugins/contact_section.php:77 plugins/contact_section.php:84
404
+ #: plugins/contact_section.php:91 plugins/contact_section.php:99
405
+ #: plugins/contact_section.php:107 plugins/contact_section.php:115
406
#: plugins/google_analytics/ga_admin.php:16 plugins/sns/sns_admin.php:31
407
#: plugins/sns/old/sns_admin.php:20 plugins/sns/old/sns_admin.php:61
408
#: plugins/sns/old/sns_admin.php:79 plugins/sns/old/sns_admin.php:98
410
msgid "ex) "
411
msgstr ""
412
413
+ #: plugins/contact_section.php:81
414
msgid "Phone number"
415
msgstr ""
416
417
+ #: plugins/contact_section.php:88 plugins/contact_section.php:91
418
msgid "Office hours"
419
msgstr ""
420
421
+ #: plugins/contact_section.php:91
422
msgid "Weekdays except holidays"
423
msgstr ""
424
425
+ #: plugins/contact_section.php:96
426
msgid "The contact page URL"
427
msgstr ""
428
429
+ #: plugins/contact_section.php:99
430
msgid "or"
431
msgstr ""
432
433
+ #: plugins/contact_section.php:100
434
msgid "* If you fill in the blank, contact button does not appear."
435
msgstr ""
436
437
+ #: plugins/contact_section.php:104
438
msgid "Contact button Text."
439
msgstr ""
440
441
+ #: plugins/contact_section.php:107
442
msgid "Contact Us from email."
443
msgstr ""
444
445
+ #: plugins/contact_section.php:112
446
msgid "Contact button Text. ( sub )"
447
msgstr ""
448
449
+ #: plugins/contact_section.php:116
450
msgid "Email contact form"
451
msgstr ""
452
454
msgid "Display Contact Section"
455
msgstr ""
456
457
+ #: plugins/contact_section.php:215
458
msgid "Edit contact information"
459
msgstr ""
460
472
"</p>"
473
msgstr ""
474
475
+ #: plugins/icons.php:38 plugins/icons.php:68
476
msgid "icon setting"
477
msgstr ""
478
479
+ #: plugins/icons.php:73
480
msgid "Favicon Setting"
481
msgstr ""
482
483
+ #: plugins/icons.php:75
484
msgid "Choose icon"
485
msgstr ""
486
487
+ #: plugins/icons.php:76
488
msgid "Please upload your \".ico\" file"
489
msgstr ""
490
508
msgid "insert the ad [ after content ]"
509
msgstr ""
510
511
+ #: plugins/meta_description.php:20 plugins/meta_description.php:31
512
+ #: plugins/meta_description.php:34
513
msgid "Meta Description"
514
msgstr ""
515
516
+ #: plugins/meta_description.php:37
517
msgid ""
518
"What you have to complete the \"excerpt\" column of the edit screen of each "
519
"page will be reflected in the description of the meta tag."
520
msgstr ""
521
522
+ #: plugins/meta_description.php:38
523
msgid ""
524
"Description of meta tags in the search results screen of search sites such "
525
"as Google, will be Displayed, such as the bottom of the site title. If the "
527
"has become a specification that is applied as a description."
528
msgstr ""
529
530
+ #: plugins/meta_description.php:39
531
msgid ""
532
"The meta description of the top page is subject to the catchphrase of the "
533
"site. However, its contents will be reflected if the excerpt is entered in "
534
"fixed page that was set on the top page."
535
msgstr ""
536
537
+ #: plugins/meta_description.php:40
538
msgid ""
539
"If \"excerpt\" column is not found, Click \"Display Option\" of page top at "
540
"each article edit page, and check the expert column display."
541
msgstr ""
542
543
+ #: plugins/meta_keyword.php:40 plugins/meta_keyword.php:91
544
+ #: plugins/meta_keyword.php:93 plugins/meta_keyword.php:94
545
+ #: plugins/meta_keyword.php:101
546
msgid "Meta Keywords"
547
msgstr ""
548
549
+ #: plugins/meta_keyword.php:68
550
msgid "Meta Keyword"
551
msgstr ""
552
553
+ #: plugins/meta_keyword.php:71
554
msgid "Common Keywords"
555
msgstr ""
556
557
+ #: plugins/meta_keyword.php:72
558
msgid ""
559
"Keywords for meta tag. This words will set Meta Keyword with post keywords. "
560
"if you want multiple keywords, enter with separator of \",\"."
561
msgstr ""
562
563
+ #: plugins/meta_keyword.php:75
564
msgid "This is not seriously, Because the SearchEngine does not care this."
565
msgstr ""
566
567
+ #: plugins/meta_keyword.php:76
568
msgid ""
569
"For each page individual keyword is enter at the edit screen of each "
570
"article. 10 keywords maximum, together with a each article keywords is "
571
"desirable."
572
msgstr ""
573
574
+ #: plugins/meta_keyword.php:77
575
msgid "\",\" separator at end of the last keyword is do not need."
576
msgstr ""
577
578
+ #: plugins/meta_keyword.php:78
579
msgid "Example: WordPress,template,theme,free,GPL"
580
msgstr ""
581
582
+ #: plugins/meta_keyword.php:102
583
msgid ""
584
"To distinguish between individual keywords, please enter a , delimiter "
585
"(optional)."
586
msgstr ""
587
588
+ #: plugins/meta_keyword.php:104
589
#, php-format
590
msgid "* keywords common to the entire site can be set from %s."
591
msgstr ""
710
msgid "Show index page"
711
msgstr ""
712
713
+ #: plugins/child_page_index/child_page_index.php:40
714
#: plugins/other_widget/widget-3pr-area.php:274
715
#: plugins/other_widget/widget-3pr-area.php:316
716
#: plugins/other_widget/widget-3pr-area.php:359
717
msgid "Read more"
718
msgstr ""
719
720
+ #: plugins/child_page_index/child_page_index.php:76
721
+ msgid "Display a child page index"
722
msgstr ""
723
724
#: plugins/css_customize/css_customize-edit.php:2
868
869
#: plugins/other_widget/widget-archives.php:50
870
#: plugins/other_widget/widget-archives.php:51
871
msgid "Monthly archives"
872
msgstr ""
873
874
#: plugins/other_widget/widget-archives.php:60
875
msgid "Title"
876
msgstr ""
877
878
#: plugins/other_widget/widget-archives.php:64
879
msgid "Post type"
880
msgstr ""
881
931
932
#: plugins/other_widget/widget-page.php:33
933
#: plugins/other_widget/widget-taxonomies.php:58
934
msgid "Display page"
935
msgstr ""
936
937
#: plugins/other_widget/widget-page.php:41
938
msgid "display title"
939
msgstr ""
940
941
+ #: plugins/other_widget/widget-page.php:65
942
msgid "Edit"
943
msgstr ""
944
951
msgstr ""
952
953
#: plugins/other_widget/widget-pr-blocks.php:19
954
+ msgid "Service"
955
msgstr ""
956
957
#: plugins/other_widget/widget-pr-blocks.php:27
958
+ msgid "Company"
959
msgstr ""
960
961
#: plugins/other_widget/widget-pr-blocks.php:35
962
+ msgid "Recruit"
963
msgstr ""
964
965
#: plugins/other_widget/widget-pr-blocks.php:56
995
msgstr ""
996
997
#: plugins/other_widget/widget-pr-blocks.php:78
998
+ msgid " ex:fa-file-text-o"
999
msgstr ""
1000
1001
#: plugins/other_widget/widget-pr-blocks.php:82
1085
1086
#: plugins/other_widget/widget-taxonomies.php:45
1087
#: plugins/other_widget/widget-taxonomies.php:46
1088
msgid "Category"
1089
msgstr ""
1090
1091
#: plugins/other_widget/widget-taxonomies.php:54
1092
msgid "Label to display"
1093
msgstr ""
1094
1095
#: plugins/other_widget/widget-taxonomies.php:74
1096
msgid "Blog"
1097
msgstr ""
1098
1104
msgid "child pages list"
1105
msgstr ""
1106
1107
#: plugins/other_widget/old/widget-rss-widget.php:9
1108
msgid "Displays entries list from a RSS feed link."
1109
msgstr ""
1138
"that you want to exclude."
1139
msgstr ""
1140
1141
+ #: plugins/sitemap_page/sitemap_page.php:31
1142
msgid "HTML Sitemap"
1143
msgstr ""
1144
1145
+ #: plugins/sitemap_page/sitemap_page.php:222
1146
+ msgid "Display a HTML sitemap"
1147
msgstr ""
1148
1149
#: plugins/sns/function_fbPagePlugin.php:10
package_manager.php CHANGED
@@ -4,7 +4,6 @@
4
*
5
* @package VkExUnit
6
* @author shoji imamura<imamura@vektor-inc.co.jp>
7
- * @version 1.1.0
8
* @since 6/Aug/2015
9
*/
10
@@ -12,50 +11,50 @@ vkExUnit_package_initilate();
12
13
14
function vkExUnit_package_initilate(){
15
- global $vkExUnit_packages;
16
- if(!is_array($vkExUnit_packages)) $vkExUnit_packages = array();
17
}
18
19
20
function vkExUnit_package_is_enable( $package_name ){
21
- global $vkExUnit_packages;
22
- if( !isset( $vkExUnit_packages[$package_name] ) ) return null;
23
- $options = vkExUnit_get_common_options();
24
- if( !isset($options['active_'.$package_name]) ) return $vkExUnit_packages[$package_name]['default'];
25
- return $options['active_'.$package_name];
26
}
27
28
29
function vkExUnit_package_register( $args ){
30
- $defaults = vkExUnit_package_default();
31
- $args = wp_parse_args( $args, $defaults );
32
33
- global $vkExUnit_packages;
34
- $vkExUnit_packages[$args['name']] = $args;
35
}
36
37
38
function vkExUnit_package_default(){
39
- return array(
40
- 'name' => null,
41
- 'title' => 'noting',
42
- 'description' => "noting",
43
- 'attr' => array(),
44
- 'default' => null,
45
- );
46
}
47
48
49
add_filter('vkExUnit_common_options_validate' , 'vkExUnit_common_package_options_validate', 10, 2);
50
function vkExUnit_common_package_options_validate( $output, $input ){
51
- global $vkExUnit_packages;
52
- if( !count($vkExUnit_packages) ) return $output;
53
- foreach($vkExUnit_packages as $package){
54
- if(
55
- isset($output['active_'.$package['name']]) &&
56
- $output['active_'.$package['name']] == (isset($input['active_'.$package['name']]) && $input['active_'.$package['name']]) ? true : false
57
- ) continue;
58
- $output['active_'.$package['name']] = (isset($input['active_'.$package['name']])) ? true : false;
59
- }
60
- return $output;
61
}
4
*
5
* @package VkExUnit
6
* @author shoji imamura<imamura@vektor-inc.co.jp>
7
* @since 6/Aug/2015
8
*/
9
11
12
13
function vkExUnit_package_initilate(){
14
+ global $vkExUnit_packages;
15
+ if(!is_array($vkExUnit_packages)) $vkExUnit_packages = array();
16
}
17
18
19
function vkExUnit_package_is_enable( $package_name ){
20
+ global $vkExUnit_packages;
21
+ if( !isset( $vkExUnit_packages[$package_name] ) ) return null;
22
+ $options = vkExUnit_get_common_options();
23
+ if( !isset($options['active_'.$package_name]) ) return $vkExUnit_packages[$package_name]['default'];
24
+ return $options['active_'.$package_name];
25
}
26
27
28
function vkExUnit_package_register( $args ){
29
+ $defaults = vkExUnit_package_default();
30
+ $args = wp_parse_args( $args, $defaults );
31
32
+ global $vkExUnit_packages;
33
+ $vkExUnit_packages[$args['name']] = $args;
34
}
35
36
37
function vkExUnit_package_default(){
38
+ return array(
39
+ 'name' => null,
40
+ 'title' => 'noting',
41
+ 'description' => "noting",
42
+ 'attr' => array(),
43
+ 'default' => null,
44
+ );
45
}
46
47
48
add_filter('vkExUnit_common_options_validate' , 'vkExUnit_common_package_options_validate', 10, 2);
49
function vkExUnit_common_package_options_validate( $output, $input ){
50
+ global $vkExUnit_packages;
51
+ if( !count($vkExUnit_packages) ) return $output;
52
+ foreach($vkExUnit_packages as $package){
53
+ if(
54
+ isset($output['active_'.$package['name']]) &&
55
+ $output['active_'.$package['name']] == (isset($input['active_'.$package['name']]) && $input['active_'.$package['name']]) ? true : false
56
+ ) continue;
57
+ $output['active_'.$package['name']] = (isset($input['active_'.$package['name']])) ? true : false;
58
+ }
59
+ return $output;
60
}
plugins/auto_eyecatch.php CHANGED
@@ -5,38 +5,37 @@
5
*
6
* @package VkExUnit
7
* @author shoji imamura<imamura@vektor-inc.co.jp>
8
- * @version 0.1.2.0
9
* @since 8/Jul/2015
10
*/
11
12
class vExUnit_eyecatch {
13
- private static $instance;
14
-
15
- public static $allowed_post_types = array( 'post', 'page' );
16
-
17
- public static function instance() {
18
- if ( isset( self::$instance ) )
19
- return self::$instance;
20
-
21
- self::$instance = new vExUnit_eyecatch;
22
- self::$instance->run_init();
23
- return self::$instance;
24
- }
25
-
26
-
27
- private function __construct() {
28
- }
29
-
30
-
31
- protected function run_init() {
32
add_action('admin_menu', array($this, 'add_custom_field'));
33
add_action('save_post' , array($this, 'save_custom_field'));
34
add_filter('the_content', array($this, 'set_eyecatch' ), 1);
35
- }
36
37
38
public function add_custom_field(){
39
-
40
foreach( self::$allowed_post_types as $post_type ){
41
add_meta_box('vkExUnit_EyeCatch', __('Automatic EyeCatch', 'vkExUnit'), array( $this, 'render_meta_box' ), $post_type, 'normal', 'high');
42
}
@@ -59,9 +58,9 @@ class vExUnit_eyecatch {
59
60
$keyword = get_post_meta($post_id, 'vkExUnit_metaKeyword', true);
61
62
- // if autosave then deny
63
- if( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
64
- return $post_id;
65
66
if(!wp_verify_nonce($metaKeyword, plugin_basename(__FILE__))){
67
return $post_id;
@@ -116,5 +115,5 @@ class vExUnit_eyecatch {
116
}
117
118
}
119
-
120
vExUnit_eyecatch::instance();
5
*
6
* @package VkExUnit
7
* @author shoji imamura<imamura@vektor-inc.co.jp>
8
* @since 8/Jul/2015
9
*/
10
11
class vExUnit_eyecatch {
12
+ private static $instance;
13
+
14
+ public static $allowed_post_types = array( 'post', 'page' );
15
+
16
+ public static function instance() {
17
+ if ( isset( self::$instance ) )
18
+ return self::$instance;
19
+
20
+ self::$instance = new vExUnit_eyecatch;
21
+ self::$instance->run_init();
22
+ return self::$instance;
23
+ }
24
+
25
+
26
+ private function __construct() {
27
+ /*** do noting ***/
28
+ }
29
+
30
+
31
+ protected function run_init() {
32
add_action('admin_menu', array($this, 'add_custom_field'));
33
add_action('save_post' , array($this, 'save_custom_field'));
34
add_filter('the_content', array($this, 'set_eyecatch' ), 1);
35
+ }
36
37
38
public function add_custom_field(){
39
foreach( self::$allowed_post_types as $post_type ){
40
add_meta_box('vkExUnit_EyeCatch', __('Automatic EyeCatch', 'vkExUnit'), array( $this, 'render_meta_box' ), $post_type, 'normal', 'high');
41
}
58
59
$keyword = get_post_meta($post_id, 'vkExUnit_metaKeyword', true);
60
61
+ // if autosave then deny
62
+ if( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
63
+ return $post_id;
64
65
if(!wp_verify_nonce($metaKeyword, plugin_basename(__FILE__))){
66
return $post_id;
115
}
116
117
}
118
+
119
vExUnit_eyecatch::instance();
plugins/call_to_action/call_to_action.php CHANGED
@@ -1,12 +1,11 @@
1
<?php
2
/**
3
- * VkExUnit meta_keyword.php
4
- * Set meta tag of keyword for single page each
5
*
6
* @package VkExUnit
7
* @author shoji imamura<imamura@vektor-inc.co.jp>
8
* @since 3/Aug/2015
9
- * @since 1.6.6
10
*/
11
12
require_once vkExUnit_get_directory() . '/plugins/call_to_action/class.call_to_action.php';
1
<?php
2
/**
3
+ * VkExUnit call_to_action.php
4
+ * Set CTA section to after content of Page.
5
*
6
* @package VkExUnit
7
* @author shoji imamura<imamura@vektor-inc.co.jp>
8
* @since 3/Aug/2015
9
*/
10
11
require_once vkExUnit_get_directory() . '/plugins/call_to_action/class.call_to_action.php';
plugins/call_to_action/class.call_to_action.php CHANGED
@@ -1,116 +1,116 @@
1
<?php
2
class vExUnit_call_responce {
3
- // singleton instance
4
- private static $instance;
5
-
6
- public static $posttype_name = 'cta';
7
-
8
- public $content_number = 500;
9
-
10
- public static function instance() {
11
- if ( isset( self::$instance ) )
12
- return self::$instance;
13
-
14
- self::$instance = new vExUnit_call_responce;
15
- self::$instance->run_init();
16
- return self::$instance;
17
- }
18
-
19
-
20
- private function __construct() {
21
- /*** do noting ***/
22
- }
23
-
24
-
25
- protected function run_init() {
26
- add_action( 'init', array($this, 'set_posttype') );
27
- add_action( 'admin_init', array($this, 'option_init') );
28
- add_action( 'admin_menu', array($this, 'add_custom_field') );
29
- add_action( 'save_post', array($this, 'save_custom_field') );
30
- add_filter( 'the_content', array($this, 'content_filter'), $this->content_number, 1 );
31
- }
32
-
33
-
34
- public function option_init() {
35
- vkExUnit_register_setting(
36
- 'CTA', // tab label.
37
- 'vkExUnit_cta_settings', // name attr
38
- array( $this, 'sanitize_config' ), // sanitaise function name
39
- array( $this, 'render_configPage' ) // setting_page function name
40
- );
41
- }
42
-
43
-
44
- public function set_posttype(){
45
- $labels = array(
46
- 'name' => 'CTA',
47
- 'singular_name' => 'CTA',
48
- 'edit_item' => __('Edit CTA', 'vkExUnit'),
49
- 'add_new_item' => __('Add new CTA', 'vkExUnit'),
50
- 'new_item' => __('New CTA', 'vkExUnit'),
51
- );
52
-
53
- $args = array(
54
- 'labels' => $labels,
55
- 'public' => false,
56
- 'publicly_queryable' => false,
57
- 'has_archive' => true,
58
- 'show_ui' => true,
59
- 'show_in_menu' => true,
60
- 'menu_position' => 5,
61
- 'query_var' => true,
62
- 'rewrite' => true,
63
- 'capability_type' => 'post',
64
- 'has_archive' => false,
65
- 'hierarchical' => false,
66
- 'taxonomies' => array(),
67
- 'supports' => array( 'title' ),
68
- );
69
- register_post_type( self::$posttype_name , $args );
70
- }
71
-
72
-
73
- public function add_custom_field(){
74
- $post_types = get_post_types( array( '_builtin' => false, 'public' => true ) );
75
- while( list($key, $post ) = each( $post_types ) ){
76
- add_meta_box('vkExUnit_cta', __('Call to Action setting', 'vkExUnit'), array( $this, 'render_meta_box' ), $post, 'normal', 'high');
77
- }
78
- add_meta_box('vkExUnit_cta', __('Call to Action setting', 'vkExUnit'), array( $this, 'render_meta_box' ), 'page', 'normal', 'high');
79
- add_meta_box('vkExUnit_cta', __('Call to Action setting', 'vkExUnit'), array( $this, 'render_meta_box' ), 'post', 'normal', 'high');
80
-
81
- add_meta_box('vkExUnit_cta_url', __('CTA Contents', 'vkExUnit'), array( $this, 'render_meta_box_cta' ), self::$posttype_name, 'normal', 'high');
82
- }
83
-
84
-
85
- public function render_meta_box(){
86
- echo '<input type="hidden" name="_nonce_vkExUnit_custom_cta" id="_nonce_vkExUnit__custom_field_metaKeyword" value="'.wp_create_nonce(plugin_basename(__FILE__)).'" />';
87
-
88
- $ctas = self::get_ctas(true, ' - ');
89
- array_unshift( $ctas, array( 'key' => 0, 'label' => __('Follow common setting', 'vkExUnit') ) );
90
- $ctas[] = array( 'key' => 'disable', 'label' => __('Disable display', 'vkExUnit') );
91
- $now = get_post_meta(get_the_id(),'vkexunit_cta_each_option', true);
92
- ?>
93
<input type="hidden" name="_vkExUnit_cta_switch" value="cta_number" />
94
95
<select name="vkexunit_cta_each_option" id="vkexunit_cta_each_option">
96
<?php foreach($ctas as $cta): ?>
97
- <option value="<?php echo $cta['key'] ?>" <?php echo($cta['key'] == $now)? 'selected':''; ?> ><?php echo $cta['label'] ?></option>
98
<?php endforeach; ?>
99
</select>
100
<p>
101
<a href="<?php echo admin_url('admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings'); ?>" class="button button-default" target="_blank"><?php _e('CTA common setting', 'vkExUnit'); ?></a>
102
<a href="<?php echo admin_url('edit.php?post_type=cta') ?>" class="button button-default" target="_blank"><?php _e('Show CTA index page', 'vkExUnit'); ?></a>
103
</p>
104
- <?php
105
- }
106
107
108
- public function render_meta_box_cta(){
109
- echo '<input type="hidden" name="_nonce_vkExUnit_custom_cta" id="_nonce_vkExUnit__custom_field_metaKeyword" value="'.wp_create_nonce(plugin_basename(__FILE__)).'" />';
110
- $imgid = get_post_meta(get_the_id(), 'vkExUnit_cta_img', true);
111
- $cta_image = wp_get_attachment_image_src($imgid);
112
- $image_position = get_post_meta(get_the_id(), 'vkExUnit_cta_img_position', true);
113
- ?>
114
<style>
115
#message.updated a {display:none;}
116
#thumbnail_box { max-width:300px; max-height:300px; }
@@ -128,37 +128,37 @@ class vExUnit_call_responce {
128
</style>
129
<script type="text/javascript">
130
jQuery(document).ready(function($){
131
- var custom_uploader;
132
- jQuery('.cta-media_btn').click(function(e) {
133
- e.preventDefault();
134
-
135
- if (custom_uploader) {
136
- custom_uploader.open();
137
- return;
138
- }
139
- custom_uploader = wp.media({
140
- title: 'Choose Image',
141
- library: {type: 'image'},
142
- button: {text: 'Choose Image'},
143
- multiple: false,
144
- });
145
-
146
- custom_uploader.on('select', function() {
147
- var images = custom_uploader.state().get('selection');
148
- images.each(function(file){
149
- jQuery('#cta-thumbnail_image').attr('src', file.toJSON().url).removeClass("noimage");
150
- jQuery('.vkExUnit_cta_img').val(file.toJSON().id);
151
- jQuery('#cta-thumbnail_control').removeClass("add").addClass("change");
152
- });
153
- });
154
- custom_uploader.open();
155
- });
156
- jQuery('#cta-thumbnail_control #media_thumb_url_remove').on('click', function(){
157
- jQuery('#cta-thumbnail_image').attr('src', '').addClass("noimage");
158
- jQuery('.vkExUnit_cta_img').val('');
159
- jQuery('#cta-thumbnail_control').removeClass("change").addClass("add");
160
- return false;
161
- });
162
});
163
</script>
164
<input type="hidden" name="_vkExUnit_cta_switch" value="cta_content" />
@@ -166,24 +166,24 @@ jQuery(document).ready(function($){
166
<tr>
167
<th><?php _e('CTA image', 'vkExUnit'); ?></th>
168
<td>
169
- <div id="cta-thumbnail_box" >
170
- <img id="cta-thumbnail_image" src="<?php echo ($cta_image)? $cta_image[0] : ''; ?>" class="<?php echo ($cta_image)? '' : 'noimage'; ?>" />
171
- </div>
172
- <div id="cta-thumbnail_control" class="<?php echo ($cta_image)? 'change' : 'add'; ?>">
173
- <button id="media_thumb_url_add" class="cta-media_btn button button-default"><?php _e('Add image', 'vkExUnit'); ?></button>
174
- <button id="media_thumb_url_change" class="cta-media_btn button button-default"><?php _e('Change image', 'vkExUnit'); ?></button>
175
- <button id="media_thumb_url_remove" class="button button-default"><?php _e('Remove image', 'vkExUnit'); ?></button>
176
- </div>
177
- <input type="hidden" name="vkExUnit_cta_img" class="vkExUnit_cta_img" value="<?php echo $imgid; ?>" />
178
</td>
179
</tr>
180
<tr><th><label for="vkExUnit_cta_img_position"><?php _e('CTA image position', 'vkExUnit'); ?></label></th>
181
<td>
182
- <select name="vkExUnit_cta_img_position" id="vkExUnit_cta_img_position">
183
- <option value="right" <?php echo ($image_position == 'right')? 'selected' : ''; ?> ><?php _e('right', 'vkExUnit'); ?></option>
184
- <option value="center" <?php echo ($image_position == 'center')? 'selected' : ''; ?> ><?php _e('center', 'vkExUnit'); ?></option>
185
- <option value="left" <?php echo ($image_position == 'left')? 'selected' : ''; ?> ><?php _e('left', 'vkExUnit'); ?></option>
186
- </select>
187
</td></tr>
188
<tr><th>
189
<label for="vkExUnit_cta_button_text"><?php _e('Button text', 'vkExUnit'); ?></label></th><td>
@@ -199,203 +199,203 @@ jQuery(document).ready(function($){
199
</td></tr>
200
</table>
201
<a href="<?php echo admin_url('admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings'); ?>" class="button button-default" target="_blank"><?php _e('CTA setting', 'vkExUnit'); ?></a>
202
- <?php
203
- }
204
-
205
-
206
- public function save_custom_field( $post_id ){
207
- if( !isset( $_POST['_vkExUnit_cta_switch'] ) ) return $post_id;
208
- $noonce = isset($_POST['_nonce_vkExUnit_custom_cta']) ? htmlspecialchars($_POST['_nonce_vkExUnit_custom_cta']) : null;
209
-
210
- // if autosave is to deny
211
- if( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
212
- return $post_id;
213
-
214
- if(!wp_verify_nonce($noonce, plugin_basename(__FILE__))){
215
- return $post_id;
216
- }
217
-
218
- if( $_POST['_vkExUnit_cta_switch'] == 'cta_number' ){
219
- $data = $_POST['vkexunit_cta_each_option'];
220
-
221
- if(get_post_meta($post_id, 'vkexunit_cta_each_option') == ""){
222
- add_post_meta($post_id, 'vkexunit_cta_each_option', $data, true);
223
- }elseif($data != get_post_meta($post_id, 'vkexunit_cta_each_option', true)){
224
- update_post_meta($post_id, 'vkexunit_cta_each_option', $data);
225
- }elseif(!$data){
226
- delete_post_meta($post_id, 'vkexunit_cta_each_option', get_post_meta($post_id, 'vkexunit_cta_each_option', true));
227
- }
228
- return $post_id;
229
- }
230
- elseif( $_POST['_vkExUnit_cta_switch'] == 'cta_content' ){
231
- $data = $_POST['vkExUnit_cta_img'];
232
- if(get_post_meta($post_id, 'vkExUnit_cta_img') == ""){
233
- add_post_meta($post_id, 'vkExUnit_cta_img', $data, true);
234
- }elseif($data != get_post_meta($post_id, 'vkExUnit_cta_img', true)){
235
- update_post_meta($post_id, 'vkExUnit_cta_img', $data);
236
- }elseif(!$data){
237
- delete_post_meta($post_id, 'vkExUnit_cta_img', get_post_meta($post_id, 'vkExUnit_cta_img', true));
238
- }
239
-
240
- $data = $_POST['vkExUnit_cta_img_position'];
241
- if(get_post_meta($post_id, 'vkExUnit_cta_img_position') == ""){
242
- add_post_meta($post_id, 'vkExUnit_cta_img_position', $data, true);
243
- }elseif($data != get_post_meta($post_id, 'vkExUnit_cta_img_position', true)){
244
- update_post_meta($post_id, 'vkExUnit_cta_img_position', $data);
245
- }elseif(!$data){
246
- delete_post_meta($post_id, 'vkExUnit_cta_img_position', get_post_meta($post_id, 'vkExUnit_cta_img_position', true));
247
- }
248
-
249
- $data = stripslashes($_POST['vkExUnit_cta_button_text']);
250
- if(get_post_meta($post_id, 'vkExUnit_cta_button_text') == ""){
251
- add_post_meta($post_id, 'vkExUnit_cta_button_text', $data, true);
252
- }elseif($data != get_post_meta($post_id, 'vkExUnit_cta_button_text', true)){
253
- update_post_meta($post_id, 'vkExUnit_cta_button_text', $data);
254
- }elseif(!$data){
255
- delete_post_meta($post_id, 'vkExUnit_cta_button_text', get_post_meta($post_id, 'vkExUnit_cta_button_text', true));
256
- }
257
-
258
- $data = $_POST['vkExUnit_cta_url'];
259
-
260
- if(get_post_meta($post_id, 'vkExUnit_cta_url') == ""){
261
- add_post_meta($post_id, 'vkExUnit_cta_url', $data, true);
262
- }elseif($data != get_post_meta($post_id, 'vkExUnit_cta_url', true)){
263
- update_post_meta($post_id, 'vkExUnit_cta_url', $data);
264
- }elseif(!$data){
265
- delete_post_meta($post_id, 'vkExUnit_cta_url', get_post_meta($post_id, 'vkExUnit_cta_url', true));
266
- }
267
-
268
- $data = stripslashes($_POST['vkExUnit_cta_text']);
269
- if(get_post_meta($post_id, 'vkExUnit_cta_text') == ""){
270
- add_post_meta($post_id, 'vkExUnit_cta_text', $data, true);
271
- }elseif($data != get_post_meta($post_id, 'vkExUnit_cta_text', true)){
272
- update_post_meta($post_id, 'vkExUnit_cta_text', $data);
273
- }elseif(!$data){
274
- delete_post_meta($post_id, 'vkExUnit_cta_text', get_post_meta($post_id, 'vkExUnit_cta_text', true));
275
- }
276
- return $post_id;
277
- }
278
- }
279
-
280
-
281
- public static function get_cta_post( $id ){
282
- $args = array(
283
- 'post_type' => self::$posttype_name,
284
- 'p' => $id,
285
- 'post_count' => 1
286
- );
287
- $query = new WP_Query( $args );
288
- if( !$query->post_count ) return null;
289
-
290
- return $query->posts[0];
291
- }
292
-
293
-
294
- public static function render_cta_content( $id ){
295
- if( !$id ) return '';
296
- $post = self::get_cta_post($id);
297
- if( !$post ) return '';
298
-
299
- include vkExUnit_get_directory() . '/plugins/call_to_action/view.actionbox.php';
300
- return $content;
301
- }
302
-
303
-
304
- public function is_cta_id( $id=null ){
305
- if( !$id ) $id = get_the_id();
306
- if( !$id ) return null;
307
-
308
- $post_config = get_post_meta( $id, 'vkexunit_cta_each_option', true );
309
-
310
- if( $post_config ){
311
- if( $post_config == 'disable' ) return null;
312
- return $post_config;
313
- }
314
-
315
- $post_type = get_post_type( $id );
316
- $option = self::get_option();
317
- if( isset( $option[$post_type] ) && is_numeric( $option[$post_type] ) ) return $option[$post_type] ;
318
- return null;
319
- }
320
-
321
-
322
- public function content_filter( $content ){
323
- if( self::is_pagewidget() ) return $content;
324
- $content .= self::render_cta_content( $this->is_cta_id() );
325
- return $content;
326
- }
327
-
328
-
329
- public static function is_pagewidget(){
330
- global $is_pagewidget;
331
- return ($is_pagewidget)? true : false;
332
- }
333
-
334
-
335
- public function sanitize_config( $input ){
336
- $posttypes = array_merge( array( 'post'=>'post', 'page'=>'page' ), get_post_types( array( 'public'=>true, '_builtin'=>false ), 'names' ) );
337
- $option = get_option( 'vkExUnit_cta_settings' );
338
- if( !$option ) $current_option = self::get_default_option();
339
-
340
- while(list($key, $value) = each($input)){
341
- $option[$key] = ( is_numeric( $value ) )? $value : 0 ;
342
- }
343
- return $option;
344
- }
345
-
346
-
347
- public static function get_default_option(){
348
- $option = array();
349
- $posttypes = array_merge( array( 'post'=>'post', 'page'=>'page'), get_post_types( array( 'public'=>true, '_builtin'=>false ), 'names' ));
350
- while( list($key, $posttype) = each( $posttypes ) ){
351
- $option[ $posttype ] = false;
352
- }
353
- return $option;
354
- }
355
-
356
-
357
- public static function get_option( $show_label=false ){
358
- $default = self::get_default_option();
359
- $option = get_option( 'vkExUnit_cta_settings' );
360
-
361
- if( !$option || !is_array($option) ) return $default;
362
-
363
- $posttypes = array_merge( array( 'post'=>'post', 'page'=>'page' ), get_post_types( array( 'public'=>true, '_builtin'=>false ), 'names' ));
364
-
365
- $output_option = array();
366
- while(list($key, $value) = each($posttypes)){
367
- $output_option[$value] = ( isset( $option[$value] ) )? $option[$value] : $default[$value];
368
- }
369
-
370
- return $output_option;
371
- }
372
-
373
-
374
- public function get_ctas( $show_label=false, $head='' ){
375
- $args = array(
376
- 'post_type' => self::$posttype_name,
377
- );
378
- $query = new WP_Query($args);
379
- $ctas = array();
380
- while( list($key, $post) = each( $query->posts ) ){
381
- if($show_label){
382
- $ctas[] = array(
383
- 'key' => $post->ID,
384
- 'label' => $head . $post->post_title
385
- );
386
- }else{
387
- $ctas[] = $post->ID;
388
- }
389
- }
390
- return $ctas;
391
- }
392
393
394
- public function render_configPage(){
395
- $options = self::get_option();
396
- $ctas = self::get_ctas(true, ' - ');
397
- array_unshift( $ctas, array( 'key' => 0, 'label' => __('Disable display', 'vkExUnit') ) );
398
399
- include vkExUnit_get_directory() . '/plugins/call_to_action/view.adminsetting.php';
400
- }
401
- }
1
<?php
2
class vExUnit_call_responce {
3
+ // singleton instance
4
+ private static $instance;
5
+
6
+ public static $posttype_name = 'cta';
7
+
8
+ public $content_number = 500;
9
+
10
+ public static function instance() {
11
+ if ( isset( self::$instance ) )
12
+ return self::$instance;
13
+
14
+ self::$instance = new vExUnit_call_responce;
15
+ self::$instance->run_init();
16
+ return self::$instance;
17
+ }
18
+
19
+
20
+ private function __construct() {
21
+ /*** do noting ***/
22
+ }
23
+
24
+
25
+ protected function run_init() {
26
+ add_action( 'init', array($this, 'set_posttype') );
27
+ add_action( 'admin_init', array($this, 'option_init') );
28
+ add_action( 'admin_menu', array($this, 'add_custom_field') );
29
+ add_action( 'save_post', array($this, 'save_custom_field') );
30
+ add_filter( 'the_content', array($this, 'content_filter'), $this->content_number, 1 );
31
+ }
32
+
33
+
34
+ public function option_init() {
35
+ vkExUnit_register_setting(
36
+ 'CTA', // tab label.
37
+ 'vkExUnit_cta_settings', // name attr
38
+ array( $this, 'sanitize_config' ), // sanitaise function name
39
+ array( $this, 'render_configPage' ) // setting_page function name
40
+ );
41
+ }
42
+
43
+
44
+ public function set_posttype(){
45
+ $labels = array(
46
+ 'name' => 'CTA',
47
+ 'singular_name' => 'CTA',
48
+ 'edit_item' => __('Edit CTA', 'vkExUnit'),
49
+ 'add_new_item' => __('Add new CTA', 'vkExUnit'),
50
+ 'new_item' => __('New CTA', 'vkExUnit'),
51
+ );
52
+
53
+ $args = array(
54
+ 'labels' => $labels,
55
+ 'public' => false,
56
+ 'publicly_queryable' => false,
57
+ 'has_archive' => true,
58
+ 'show_ui' => true,
59
+ 'show_in_menu' => true,
60
+ 'menu_position' => 5,
61
+ 'query_var' => true,
62
+ 'rewrite' => true,
63
+ 'capability_type' => 'post',
64
+ 'has_archive' => false,
65
+ 'hierarchical' => false,
66
+ 'taxonomies' => array(),
67
+ 'supports' => array( 'title' ),
68
+ );
69
+ register_post_type( self::$posttype_name , $args );
70
+ }
71
+
72
+
73
+ public function add_custom_field(){
74
+ $post_types = get_post_types( array( '_builtin' => false, 'public' => true ) );
75
+ while( list($key, $post ) = each( $post_types ) ){
76
+ add_meta_box('vkExUnit_cta', __('Call to Action setting', 'vkExUnit'), array( $this, 'render_meta_box' ), $post, 'normal', 'high');
77
+ }
78
+ add_meta_box('vkExUnit_cta', __('Call to Action setting', 'vkExUnit'), array( $this, 'render_meta_box' ), 'page', 'normal', 'high');
79
+ add_meta_box('vkExUnit_cta', __('Call to Action setting', 'vkExUnit'), array( $this, 'render_meta_box' ), 'post', 'normal', 'high');
80
+
81
+ add_meta_box('vkExUnit_cta_url', __('CTA Contents', 'vkExUnit'), array( $this, 'render_meta_box_cta' ), self::$posttype_name, 'normal', 'high');
82
+ }
83
+
84
+
85
+ public function render_meta_box(){
86
+ echo '<input type="hidden" name="_nonce_vkExUnit_custom_cta" id="_nonce_vkExUnit__custom_field_metaKeyword" value="'.wp_create_nonce(plugin_basename(__FILE__)).'" />';
87
+
88
+ $ctas = self::get_ctas(true, ' - ');
89
+ array_unshift( $ctas, array( 'key' => 0, 'label' => __('Follow common setting', 'vkExUnit') ) );
90
+ $ctas[] = array( 'key' => 'disable', 'label' => __('Disable display', 'vkExUnit') );
91
+ $now = get_post_meta(get_the_id(),'vkexunit_cta_each_option', true);
92
+ ?>
93
<input type="hidden" name="_vkExUnit_cta_switch" value="cta_number" />
94
95
<select name="vkexunit_cta_each_option" id="vkexunit_cta_each_option">
96
<?php foreach($ctas as $cta): ?>
97
+ <option value="<?php echo $cta['key'] ?>" <?php echo($cta['key'] == $now)? 'selected':''; ?> ><?php echo $cta['label'] ?></option>
98
<?php endforeach; ?>
99
</select>
100
<p>
101
<a href="<?php echo admin_url('admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings'); ?>" class="button button-default" target="_blank"><?php _e('CTA common setting', 'vkExUnit'); ?></a>
102
<a href="<?php echo admin_url('edit.php?post_type=cta') ?>" class="button button-default" target="_blank"><?php _e('Show CTA index page', 'vkExUnit'); ?></a>
103
</p>
104
+ <?php
105
+ }
106
107
108
+ public function render_meta_box_cta(){
109
+ echo '<input type="hidden" name="_nonce_vkExUnit_custom_cta" id="_nonce_vkExUnit__custom_field_metaKeyword" value="'.wp_create_nonce(plugin_basename(__FILE__)).'" />';
110
+ $imgid = get_post_meta(get_the_id(), 'vkExUnit_cta_img', true);
111
+ $cta_image = wp_get_attachment_image_src($imgid);
112
+ $image_position = get_post_meta(get_the_id(), 'vkExUnit_cta_img_position', true);
113
+ ?>
114
<style>
115
#message.updated a {display:none;}
116
#thumbnail_box { max-width:300px; max-height:300px; }
128
</style>
129
<script type="text/javascript">
130
jQuery(document).ready(function($){
131
+ var custom_uploader;
132
+ jQuery('.cta-media_btn').click(function(e) {
133
+ e.preventDefault();
134
+
135
+ if (custom_uploader) {
136
+ custom_uploader.open();
137
+ return;
138
+ }
139
+ custom_uploader = wp.media({
140
+ title: 'Choose Image',
141
+ library: {type: 'image'},
142
+ button: {text: 'Choose Image'},
143
+ multiple: false,
144
+ });
145
+
146
+ custom_uploader.on('select', function() {
147
+ var images = custom_uploader.state().get('selection');
148
+ images.each(function(file){
149
+ jQuery('#cta-thumbnail_image').attr('src', file.toJSON().url).removeClass("noimage");
150
+ jQuery('.vkExUnit_cta_img').val(file.toJSON().id);
151
+ jQuery('#cta-thumbnail_control').removeClass("add").addClass("change");
152
+ });
153
+ });
154
+ custom_uploader.open();
155
+ });
156
+ jQuery('#cta-thumbnail_control #media_thumb_url_remove').on('click', function(){
157
+ jQuery('#cta-thumbnail_image').attr('src', '').addClass("noimage");
158
+ jQuery('.vkExUnit_cta_img').val('');
159
+ jQuery('#cta-thumbnail_control').removeClass("change").addClass("add");
160
+ return false;
161
+ });
162
});
163
</script>
164
<input type="hidden" name="_vkExUnit_cta_switch" value="cta_content" />
166
<tr>
167
<th><?php _e('CTA image', 'vkExUnit'); ?></th>
168
<td>
169
+ <div id="cta-thumbnail_box" >
170
+ <img id="cta-thumbnail_image" src="<?php echo ($cta_image)? $cta_image[0] : ''; ?>" class="<?php echo ($cta_image)? '' : 'noimage'; ?>" />
171
+ </div>
172
+ <div id="cta-thumbnail_control" class="<?php echo ($cta_image)? 'change' : 'add'; ?>">
173
+ <button id="media_thumb_url_add" class="cta-media_btn button button-default"><?php _e('Add image', 'vkExUnit'); ?></button>
174
+ <button id="media_thumb_url_change" class="cta-media_btn button button-default"><?php _e('Change image', 'vkExUnit'); ?></button>
175
+ <button id="media_thumb_url_remove" class="button button-default"><?php _e('Remove image', 'vkExUnit'); ?></button>
176
+ </div>
177
+ <input type="hidden" name="vkExUnit_cta_img" class="vkExUnit_cta_img" value="<?php echo $imgid; ?>" />
178
</td>
179
</tr>
180
<tr><th><label for="vkExUnit_cta_img_position"><?php _e('CTA image position', 'vkExUnit'); ?></label></th>
181
<td>
182
+ <select name="vkExUnit_cta_img_position" id="vkExUnit_cta_img_position">
183
+ <option value="right" <?php echo ($image_position == 'right')? 'selected' : ''; ?> ><?php _e('right', 'vkExUnit'); ?></option>
184
+ <option value="center" <?php echo ($image_position == 'center')? 'selected' : ''; ?> ><?php _e('center', 'vkExUnit'); ?></option>
185
+ <option value="left" <?php echo ($image_position == 'left')? 'selected' : ''; ?> ><?php _e('left', 'vkExUnit'); ?></option>
186
+ </select>
187
</td></tr>
188
<tr><th>
189
<label for="vkExUnit_cta_button_text"><?php _e('Button text', 'vkExUnit'); ?></label></th><td>
199
</td></tr>
200
</table>
201
<a href="<?php echo admin_url('admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings'); ?>" class="button button-default" target="_blank"><?php _e('CTA setting', 'vkExUnit'); ?></a>
202
+ <?php
203
+ }
204
+
205
+
206
+ public function save_custom_field( $post_id ){
207
+ if( !isset( $_POST['_vkExUnit_cta_switch'] ) ) return $post_id;
208
+ $noonce = isset($_POST['_nonce_vkExUnit_custom_cta']) ? htmlspecialchars($_POST['_nonce_vkExUnit_custom_cta']) : null;
209
+
210
+ // if autosave is to deny
211
+ if( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
212
+ return $post_id;
213
+
214
+ if(!wp_verify_nonce($noonce, plugin_basename(__FILE__))){
215
+ return $post_id;
216
+ }
217
+
218
+ if( $_POST['_vkExUnit_cta_switch'] == 'cta_number' ){
219
+ $data = $_POST['vkexunit_cta_each_option'];
220
+
221
+ if(get_post_meta($post_id, 'vkexunit_cta_each_option') == ""){
222
+ add_post_meta($post_id, 'vkexunit_cta_each_option', $data, true);
223
+ }elseif($data != get_post_meta($post_id, 'vkexunit_cta_each_option', true)){
224
+ update_post_meta($post_id, 'vkexunit_cta_each_option', $data);
225
+ }elseif(!$data){
226
+ delete_post_meta($post_id, 'vkexunit_cta_each_option', get_post_meta($post_id, 'vkexunit_cta_each_option', true));
227
+ }
228
+ return $post_id;
229
+ }
230
+ elseif( $_POST['_vkExUnit_cta_switch'] == 'cta_content' ){
231
+ $data = $_POST['vkExUnit_cta_img'];
232
+ if(get_post_meta($post_id, 'vkExUnit_cta_img') == ""){
233
+ add_post_meta($post_id, 'vkExUnit_cta_img', $data, true);
234
+ }elseif($data != get_post_meta($post_id, 'vkExUnit_cta_img', true)){
235
+ update_post_meta($post_id, 'vkExUnit_cta_img', $data);
236
+ }elseif(!$data){
237
+ delete_post_meta($post_id, 'vkExUnit_cta_img', get_post_meta($post_id, 'vkExUnit_cta_img', true));
238
+ }
239
+
240
+ $data = $_POST['vkExUnit_cta_img_position'];
241
+ if(get_post_meta($post_id, 'vkExUnit_cta_img_position') == ""){
242
+ add_post_meta($post_id, 'vkExUnit_cta_img_position', $data, true);
243
+ }elseif($data != get_post_meta($post_id, 'vkExUnit_cta_img_position', true)){
244
+ update_post_meta($post_id, 'vkExUnit_cta_img_position', $data);
245
+ }elseif(!$data){
246
+ delete_post_meta($post_id, 'vkExUnit_cta_img_position', get_post_meta($post_id, 'vkExUnit_cta_img_position', true));
247
+ }
248
+
249
+ $data = stripslashes($_POST['vkExUnit_cta_button_text']);
250
+ if(get_post_meta($post_id, 'vkExUnit_cta_button_text') == ""){
251
+ add_post_meta($post_id, 'vkExUnit_cta_button_text', $data, true);
252
+ }elseif($data != get_post_meta($post_id, 'vkExUnit_cta_button_text', true)){
253
+ update_post_meta($post_id, 'vkExUnit_cta_button_text', $data);
254
+ }elseif(!$data){
255
+ delete_post_meta($post_id, 'vkExUnit_cta_button_text', get_post_meta($post_id, 'vkExUnit_cta_button_text', true));
256
+ }
257
+
258
+ $data = $_POST['vkExUnit_cta_url'];
259
+
260
+ if(get_post_meta($post_id, 'vkExUnit_cta_url') == ""){
261
+ add_post_meta($post_id, 'vkExUnit_cta_url', $data, true);
262
+ }elseif($data != get_post_meta($post_id, 'vkExUnit_cta_url', true)){
263
+ update_post_meta($post_id, 'vkExUnit_cta_url', $data);
264
+ }elseif(!$data){
265
+ delete_post_meta($post_id, 'vkExUnit_cta_url', get_post_meta($post_id, 'vkExUnit_cta_url', true));
266
+ }
267
+
268
+ $data = stripslashes($_POST['vkExUnit_cta_text']);
269
+ if(get_post_meta($post_id, 'vkExUnit_cta_text') == ""){
270
+ add_post_meta($post_id, 'vkExUnit_cta_text', $data, true);
271
+ }elseif($data != get_post_meta($post_id, 'vkExUnit_cta_text', true)){
272
+ update_post_meta($post_id, 'vkExUnit_cta_text', $data);
273
+ }elseif(!$data){
274
+ delete_post_meta($post_id, 'vkExUnit_cta_text', get_post_meta($post_id, 'vkExUnit_cta_text', true));
275
+ }
276
+ return $post_id;
277
+ }
278
+ }
279
+
280
+
281
+ public static function get_cta_post( $id ){
282
+ $args = array(
283
+ 'post_type' => self::$posttype_name,
284
+ 'p' => $id,
285
+ 'post_count' => 1
286
+ );
287
+ $query = new WP_Query( $args );
288
+ if( !$query->post_count ) return null;
289
+
290
+ return $query->posts[0];
291
+ }
292
+
293
+
294
+ public static function render_cta_content( $id ){
295
+ if( !$id ) return '';
296
+ $post = self::get_cta_post($id);
297
+ if( !$post ) return '';
298
+
299
+ include vkExUnit_get_directory() . '/plugins/call_to_action/view.actionbox.php';
300
+ return $content;
301
+ }
302
+
303
+
304
+ public function is_cta_id( $id=null ){
305
+ if( !$id ) $id = get_the_id();
306
+ if( !$id ) return null;
307
+
308
+ $post_config = get_post_meta( $id, 'vkexunit_cta_each_option', true );
309
+
310
+ if( $post_config ){
311
+ if( $post_config == 'disable' ) return null;
312
+ return $post_config;
313
+ }
314
+
315
+ $post_type = get_post_type( $id );
316
+ $option = self::get_option();
317
+ if( isset( $option[$post_type] ) && is_numeric( $option[$post_type] ) ) return $option[$post_type] ;
318
+ return null;
319
+ }
320
+
321
+
322
+ public function content_filter( $content ){
323
+ if( self::is_pagewidget() ) return $content;
324
+ $content .= self::render_cta_content( $this->is_cta_id() );
325
+ return $content;
326
+ }
327
+
328
+
329
+ public static function is_pagewidget(){
330
+ global $is_pagewidget;
331
+ return ($is_pagewidget)? true : false;
332
+ }
333
+
334
+
335
+ public function sanitize_config( $input ){
336
+ $posttypes = array_merge( array( 'post'=>'post', 'page'=>'page' ), get_post_types( array( 'public'=>true, '_builtin'=>false ), 'names' ) );
337
+ $option = get_option( 'vkExUnit_cta_settings' );
338
+ if( !$option ) $current_option = self::get_default_option();
339
+
340
+ while(list($key, $value) = each($input)){
341
+ $option[$key] = ( is_numeric( $value ) )? $value : 0 ;
342
+ }
343
+ return $option;
344
+ }
345
+
346
+
347
+ public static function get_default_option(){
348
+ $option = array();
349
+ $posttypes = array_merge( array( 'post'=>'post', 'page'=>'page'), get_post_types( array( 'public'=>true, '_builtin'=>false ), 'names' ));
350
+ while( list($key, $posttype) = each( $posttypes ) ){
351
+ $option[ $posttype ] = false;
352
+ }
353
+ return $option;
354
+ }
355
+
356
+
357
+ public static function get_option( $show_label=false ){
358
+ $default = self::get_default_option();
359
+ $option = get_option( 'vkExUnit_cta_settings' );
360
+
361
+ if( !$option || !is_array($option) ) return $default;
362
+
363
+ $posttypes = array_merge( array( 'post'=>'post', 'page'=>'page' ), get_post_types( array( 'public'=>true, '_builtin'=>false ), 'names' ));
364
+
365
+ $output_option = array();
366
+ while(list($key, $value) = each($posttypes)){
367
+ $output_option[$value] = ( isset( $option[$value] ) )? $option[$value] : $default[$value];
368
+ }
369
+
370
+ return $output_option;
371
+ }
372
+
373
+
374
+ public function get_ctas( $show_label=false, $head='' ){
375
+ $args = array(
376
+ 'post_type' => self::$posttype_name,
377
+ );
378
+ $query = new WP_Query($args);
379
+ $ctas = array();
380
+ while( list($key, $post) = each( $query->posts ) ){
381
+ if($show_label){
382
+ $ctas[] = array(
383
+ 'key' => $post->ID,
384
+ 'label' => $head . $post->post_title
385
+ );
386
+ }else{
387
+ $ctas[] = $post->ID;
388
+ }
389
+ }
390
+ return $ctas;
391
+ }
392
393
394
+ public function render_configPage(){
395
+ $options = self::get_option();
396
+ $ctas = self::get_ctas(true, ' - ');
397
+ array_unshift( $ctas, array( 'key' => 0, 'label' => __('Disable display', 'vkExUnit') ) );
398
399
+ include vkExUnit_get_directory() . '/plugins/call_to_action/view.adminsetting.php';
400
+ }
401
+ }
plugins/call_to_action/view.actionbox.php CHANGED
@@ -15,20 +15,20 @@ $content .= '<section class="vkExUnit_cta">';
15
$content .= '<h1 class="vkExUnit_cta_title">' . $post->post_title . '</h1>';
16
$content .= '<div class="vkExUnit_cta_body">';
17
if( $imgid ){
18
- $cta_image = wp_get_attachment_image_src( $imgid, 'full' );
19
- $content .= '<div class="vkExUnit_cta_body_image vkExUnit_cta_body_image_'.$image_position.'">';
20
- $content .= '<img src="'. $cta_image[0] .'" />';
21
- $content .= '</div>';
22
}
23
$content .= '<div class="vkExUnit_cta_body_txt '.(($imgid)? 'image_exist' : 'image_no').'">';
24
$content .= $text;
25
$content .= '</div>';
26
if( $url && $btn_text ){
27
- $content .= '<div class="vkExUnit_cta_body_link">';
28
- $content .= '<a href="'.$url.'" class="btn btn-primary btn-block btn-lg" target="_blank">';
29
- $content .= $btn_text;
30
- $content .= '</a>';
31
- $content .= '</div>';
32
}
33
$content .= '</div><!-- [ /.vkExUnit_cta_body ] -->';
34
$content .= '</section>';
15
$content .= '<h1 class="vkExUnit_cta_title">' . $post->post_title . '</h1>';
16
$content .= '<div class="vkExUnit_cta_body">';
17
if( $imgid ){
18
+ $cta_image = wp_get_attachment_image_src( $imgid, 'full' );
19
+ $content .= '<div class="vkExUnit_cta_body_image vkExUnit_cta_body_image_'.$image_position.'">';
20
+ $content .= '<img src="'. $cta_image[0] .'" />';
21
+ $content .= '</div>';
22
}
23
$content .= '<div class="vkExUnit_cta_body_txt '.(($imgid)? 'image_exist' : 'image_no').'">';
24
$content .= $text;
25
$content .= '</div>';
26
if( $url && $btn_text ){
27
+ $content .= '<div class="vkExUnit_cta_body_link">';
28
+ $content .= '<a href="'.$url.'" class="btn btn-primary btn-block btn-lg" target="_blank">';
29
+ $content .= $btn_text;
30
+ $content .= '</a>';
31
+ $content .= '</div>';
32
}
33
$content .= '</div><!-- [ /.vkExUnit_cta_body ] -->';
34
$content .= '</section>';
plugins/child_page_index/child_page_index.php CHANGED
@@ -9,10 +9,8 @@ add_filter('the_content', 'show_childPageIndex', 7);
9
function show_childPageIndex($content) {
10
remove_filter('the_content','wpautop');
11
global $post;
12
- $childPageIndex_value = get_post_meta( $post->ID, 'vkExUnit_childPageIndex' );
13
- if(!empty($childPageIndex_value)){
14
- // check the childPageIndex_value
15
- if( is_page() && $childPageIndex_value[0] == 'active'){
16
17
$parentId = $post->ID;
18
$args = array(
@@ -52,8 +50,7 @@ function show_childPageIndex($content) {
52
return wpautop($content);
53
54
endif;
55
- } // if( is_page() && $childPageIndex_value[0] == 'active'){
56
- } // if(!empty($childPageIndex_value)){
57
58
return wpautop($content);
59
add_filter('the_content','wpautop');
@@ -70,14 +67,17 @@ add_action('vkExUnit_customField_Page_box', 'vkExUnit_childPageIndex_meta_box');
70
function vkExUnit_childPageIndex_meta_box(){
71
global $post;
72
// childPageIndex display
73
- $childPageIndex_active = get_post_meta( $post->ID, 'vkExUnit_childPageIndex' );
74
- echo '<div><input type="hidden" name="_nonce_vkExUnit__custom_field_childPageIndex" id="_nonce_vkExUnit__custom_field_childPageIndex" value="'.wp_create_nonce(plugin_basename(__FILE__)).'" />';
75
- echo '<label class="hidden" for="vkExUnit_childPageIndex">'.__('Choose display a child page index', 'vkExUnit').'</label>
76
- <input type="checkbox" id="vkExUnit_childPageIndex" name="vkExUnit_childPageIndex" value="active"';
77
- if( !empty($childPageIndex_active) ) {
78
- if( $childPageIndex_active[0] === 'active' ) echo ' checked="checked"';
79
- }
80
- echo '/>'.__('if checked you will display a child page index ', 'vkExUnit').'</div>';
81
}
82
83
9
function show_childPageIndex($content) {
10
remove_filter('the_content','wpautop');
11
global $post;
12
+ $enable = get_post_meta( $post->ID, 'vkExUnit_childPageIndex',true );
13
+ if( is_page() && $enable ){
14
15
$parentId = $post->ID;
16
$args = array(
50
return wpautop($content);
51
52
endif;
53
+ } // if( is_page() && $enable ){
54
55
return wpautop($content);
56
add_filter('the_content','wpautop');
67
function vkExUnit_childPageIndex_meta_box(){
68
global $post;
69
// childPageIndex display
70
+ $enable = get_post_meta( $post->ID, 'vkExUnit_childPageIndex', true);?>
71
+
72
+ <div>
73
+ <input type="hidden" name="_nonce_vkExUnit__custom_field_childPageIndex" id="_nonce_vkExUnit__custom_field_childPageIndex" value="<?php echo wp_create_nonce(plugin_basename(__FILE__));?>" />
74
+ <label for="vkExUnit_childPageIndex">
75
+ <input type="checkbox" id="vkExUnit_childPageIndex" name="vkExUnit_childPageIndex"<?php echo ($enable)? ' checked' : ''; ?> />
76
+ <?php _e('Display a child page index', 'vkExUnit');?>
77
+ </label>
78
+ </div>
79
+
80
+ <?php
81
}
82
83
plugins/contact_section.php CHANGED
@@ -5,69 +5,68 @@
5
*
6
* @package VkExUnit
7
* @author shoji imamura<imamura@vektor-inc.co.jp>
8
- * @version 0.0.0.0
9
* @since 26/Jun/2015
10
*/
11
12
class vExUnit_Contact {
13
- // singleton instance
14
- private static $instance;
15
-
16
- public static function instance() {
17
- if ( isset( self::$instance ) )
18
- return self::$instance;
19
-
20
- self::$instance = new vExUnit_Contact;
21
- self::$instance->run_init();
22
- return self::$instance;
23
- }
24
-
25
- private function __construct() {
26
- }
27
-
28
-
29
- protected function run_init() {
30
- add_action( 'admin_init', array($this, 'options_init') );
31
- add_action('wp_head', array($this, 'header_css') );
32
- add_action('save_post', array($this, 'save_custom_field_postdata') );
33
- add_shortcode('vkExUnit_contact_section', array($this, 'shortcode') );
34
- add_filter('the_content', array($this, 'set_content' ), 1);
35
- add_filter('vkExUnit_customField_Page_activation', array($this, 'activate_metavox'), 10, 1);
36
- add_action('vkExUnit_customField_Page_box', array($this, 'render_meta_box') );
37
- }
38
-
39
-
40
- public function activate_metavox( $flag ){
41
- return true;
42
- }
43
-
44
-
45
- public function options_init() {
46
- vkExUnit_register_setting(
47
- __('Contact', 'vkExUnit'), // tab label.
48
- 'vkExUnit_contact', // name attr
49
- array($this, 'option_sanitaize'), // sanitaise function name
50
- array($this, 'options_page') // setting_page function name
51
- );
52
- }
53
-
54
-
55
- public static function get_option(){
56
- $default = array(
57
- 'contact_txt' => __('Please feel free to inquire.', 'vkExUnit'),
58
- 'tel_number' => '000-000-0000',
59
- 'contact_time' => _('Office hours 9:00 - 18:00 [ Weekdays except holidays ]'),
60
- 'contact_link' => '',
61
- 'button_text' => '',
62
- 'button_text_small' => '',
63
- );
64
- return get_option('vkExUnit_contact', $default);
65
- }
66
-
67
-
68
- public function options_page() {
69