Version Description
Download this release
Release Info
Developer | kurudrive |
Plugin | 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 +3 -3
- admin_wrapper.php +16 -16
- languages/vkExUnit-ja.mo +0 -0
- languages/vkExUnit-ja.po +104 -106
- languages/vkexunit.mo +0 -0
- languages/vkexunit.pot +60 -92
- package_manager.php +28 -29
- plugins/auto_eyecatch.php +25 -26
- plugins/call_to_action/call_to_action.php +2 -3
- plugins/call_to_action/class.call_to_action.php +341 -341
- plugins/call_to_action/view.actionbox.php +9 -9
- plugins/child_page_index/child_page_index.php +14 -14
- plugins/contact_section.php +135 -142
- plugins/icons.php +26 -21
- plugins/insert_ads.php +93 -93
- plugins/meta_description.php +0 -1
- plugins/meta_keyword.php +34 -26
- plugins/news_from_exUnit.php +7 -7
- plugins/other_widget/widget-pr-blocks.php +13 -13
- plugins/sitemap_page/sitemap_page.php +31 -11
- readme.txt +1 -1
- vkExUnit.php +1 -1
- vkExUnit_admin.php +9 -9
README.md
CHANGED
@@ -15,14 +15,14 @@
|
|
15 |
|
16 |
単語を連結する場合は _ で連結する
|
17 |
|
18 |
-
##
|
19 |
|
20 |
単語を連結する場合は _ で連結する
|
21 |
|
22 |
## CSS命名について
|
23 |
|
24 |
-
- 接頭辞は
|
25 |
-
- セクションの一番外側が
|
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 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
|
113 |
-
|
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-
|
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:
|
20 |
msgid "Main setting"
|
21 |
msgstr "メイン設定"
|
22 |
|
23 |
-
#: ../admin_wrapper.php:
|
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:
|
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
|
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 |
-
#: ../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:
|
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:
|
420 |
msgid "Automatic EyeCatch"
|
421 |
msgstr "アイキャッチ自動挿入"
|
422 |
|
423 |
-
#: ../plugins/auto_eyecatch.php:
|
424 |
msgid "Do not set eyecatch image automatic."
|
425 |
msgstr "アイキャッチ画像を自動挿入しない"
|
426 |
|
427 |
-
#: ../plugins/contact_section.php:
|
|
|
428 |
msgid "Contact"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: ../plugins/contact_section.php:
|
432 |
msgid "Please feel free to inquire."
|
433 |
msgstr "お気軽にお問い合わせください。"
|
434 |
|
435 |
-
#: ../plugins/contact_section.php:
|
436 |
msgid "Office hours 9:00 - 18:00 [ Weekdays except holidays ]"
|
437 |
msgstr "受付時間 9:00-18:00 [ 土・日・祝日除く ]"
|
438 |
|
439 |
-
#: ../plugins/contact_section.php:
|
440 |
msgid "Message"
|
441 |
msgstr "メッセージ"
|
442 |
|
443 |
-
#: ../plugins/contact_section.php:
|
444 |
-
#: ../plugins/contact_section.php:
|
445 |
-
#: ../plugins/contact_section.php:
|
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:
|
454 |
msgid "Phone number"
|
455 |
msgstr "電話番号"
|
456 |
|
457 |
-
#: ../plugins/contact_section.php:
|
458 |
msgid "Office hours"
|
459 |
msgstr "営業時間"
|
460 |
|
461 |
-
#: ../plugins/contact_section.php:
|
462 |
msgid "Weekdays except holidays"
|
463 |
msgstr ""
|
464 |
|
465 |
-
#: ../plugins/contact_section.php:
|
466 |
msgid "The contact page URL"
|
467 |
msgstr "お問い合わせ先URL"
|
468 |
|
469 |
-
#: ../plugins/contact_section.php:
|
470 |
msgid "or"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: ../plugins/contact_section.php:
|
474 |
msgid "* If you fill in the blank, contact button does not appear."
|
475 |
msgstr "未入力の場合はお問い合わせボタンは表示されません。"
|
476 |
|
477 |
-
#: ../plugins/contact_section.php:
|
478 |
msgid "Contact button Text."
|
479 |
msgstr "お問い合わせボタンに表示するテキスト"
|
480 |
|
481 |
-
#: ../plugins/contact_section.php:
|
482 |
msgid "Contact Us from email."
|
483 |
msgstr "メールでのお問い合わせはこちら"
|
484 |
|
485 |
-
#: ../plugins/contact_section.php:
|
486 |
msgid "Contact button Text. ( sub )"
|
487 |
msgstr "お問い合わせボタンに表示するテキスト2(オプション)"
|
488 |
|
489 |
-
#: ../plugins/contact_section.php:
|
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:
|
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:
|
522 |
msgid "icon setting"
|
523 |
msgstr "アイコン設定"
|
524 |
|
525 |
-
#: ../plugins/icons.php:
|
526 |
msgid "Favicon Setting"
|
527 |
msgstr "ファビコン設定"
|
528 |
|
529 |
-
#: ../plugins/icons.php:
|
530 |
msgid "Choose icon"
|
531 |
msgstr "アイコンを選択"
|
532 |
|
533 |
-
#: ../plugins/icons.php:
|
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:
|
558 |
-
#: ../plugins/meta_description.php:
|
559 |
msgid "Meta Description"
|
560 |
msgstr "メタディスクリプション"
|
561 |
|
562 |
-
#: ../plugins/meta_description.php:
|
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:
|
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:
|
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:
|
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:
|
601 |
-
#: ../plugins/meta_keyword.php:
|
602 |
-
#: ../plugins/meta_keyword.php:
|
603 |
msgid "Meta Keywords"
|
604 |
msgstr "メタキーワード"
|
605 |
|
606 |
-
#: ../plugins/meta_keyword.php:
|
607 |
msgid "Meta Keyword"
|
608 |
msgstr "メタキーワード"
|
609 |
|
610 |
-
#: ../plugins/meta_keyword.php:
|
611 |
msgid "Common Keywords"
|
612 |
msgstr "共通キーワード設定"
|
613 |
|
614 |
-
#: ../plugins/meta_keyword.php:
|
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:
|
623 |
msgid "This is not seriously, Because the SearchEngine does not care this."
|
624 |
msgstr ""
|
625 |
"あまり深く考える必要はありません。現状のサーチエンジンではそこまで重要なファ"
|
626 |
"クターとはなりません。"
|
627 |
|
628 |
-
#: ../plugins/meta_keyword.php:
|
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:
|
638 |
msgid "\",\" separator at end of the last keyword is do not need."
|
639 |
msgstr "最後のキーワードの後ろに「,」は必要ありません。"
|
640 |
|
641 |
-
#: ../plugins/meta_keyword.php:
|
642 |
msgid "Example: WordPress,template,theme,free,GPL"
|
643 |
msgstr "【例】 WordPress,テンプレート,テーマ,無料,GPL"
|
644 |
|
645 |
-
#: ../plugins/meta_keyword.php:
|
646 |
msgid ""
|
647 |
"To distinguish between individual keywords, please enter a , delimiter "
|
648 |
"(optional)."
|
649 |
msgstr "キーワードを複数入力する場合は , ( カンマ )で区切って下さい。"
|
650 |
|
651 |
-
#: ../plugins/meta_keyword.php:
|
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:
|
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:
|
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:
|
786 |
-
|
787 |
-
|
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:
|
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:
|
1021 |
-
#: ../plugins/other_widget/old/widget-page-content.php:38
|
1022 |
msgid "display title"
|
1023 |
msgstr "タイトルを表示"
|
1024 |
|
1025 |
-
#: ../plugins/other_widget/widget-page.php:
|
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 "
|
1040 |
-
msgstr "
|
1041 |
|
1042 |
#: ../plugins/other_widget/widget-pr-blocks.php:27
|
1043 |
-
msgid "
|
1044 |
-
msgstr "
|
1045 |
|
1046 |
#: ../plugins/other_widget/widget-pr-blocks.php:35
|
1047 |
-
msgid "
|
1048 |
-
msgstr "
|
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-
|
1090 |
-
msgstr "例:
|
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:
|
1246 |
msgid "HTML Sitemap"
|
1247 |
msgstr "HTMLサイトマップ"
|
1248 |
|
1249 |
-
#: ../plugins/sitemap_page/sitemap_page.php:
|
1250 |
-
msgid "
|
1251 |
-
msgstr "
|
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
|
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:
|
18 |
msgid "Main setting"
|
19 |
msgstr ""
|
20 |
|
21 |
-
#: admin_wrapper.php:
|
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:
|
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
|
192 |
msgid "categories/tags list"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: packages.php:118
|
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:
|
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:
|
383 |
msgid "Automatic EyeCatch"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: plugins/auto_eyecatch.php:
|
387 |
msgid "Do not set eyecatch image automatic."
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: plugins/contact_section.php:
|
391 |
msgid "Contact"
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: plugins/contact_section.php:
|
395 |
msgid "Please feel free to inquire."
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: plugins/contact_section.php:
|
399 |
msgid "Office hours 9:00 - 18:00 [ Weekdays except holidays ]"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: plugins/contact_section.php:
|
403 |
msgid "Message"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: plugins/contact_section.php:
|
407 |
-
#: plugins/contact_section.php:
|
408 |
-
#: plugins/contact_section.php:
|
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:
|
417 |
msgid "Phone number"
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: plugins/contact_section.php:
|
421 |
msgid "Office hours"
|
422 |
msgstr ""
|
423 |
|
424 |
-
#: plugins/contact_section.php:
|
425 |
msgid "Weekdays except holidays"
|
426 |
msgstr ""
|
427 |
|
428 |
-
#: plugins/contact_section.php:
|
429 |
msgid "The contact page URL"
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: plugins/contact_section.php:
|
433 |
msgid "or"
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: plugins/contact_section.php:
|
437 |
msgid "* If you fill in the blank, contact button does not appear."
|
438 |
msgstr ""
|
439 |
|
440 |
-
#: plugins/contact_section.php:
|
441 |
msgid "Contact button Text."
|
442 |
msgstr ""
|
443 |
|
444 |
-
#: plugins/contact_section.php:
|
445 |
msgid "Contact Us from email."
|
446 |
msgstr ""
|
447 |
|
448 |
-
#: plugins/contact_section.php:
|
449 |
msgid "Contact button Text. ( sub )"
|
450 |
msgstr ""
|
451 |
|
452 |
-
#: plugins/contact_section.php:
|
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:
|
461 |
msgid "Edit contact information"
|
462 |
msgstr ""
|
463 |
|
@@ -475,19 +472,19 @@ msgid ""
|
|
475 |
"</p>"
|
476 |
msgstr ""
|
477 |
|
478 |
-
#: plugins/icons.php:
|
479 |
msgid "icon setting"
|
480 |
msgstr ""
|
481 |
|
482 |
-
#: plugins/icons.php:
|
483 |
msgid "Favicon Setting"
|
484 |
msgstr ""
|
485 |
|
486 |
-
#: plugins/icons.php:
|
487 |
msgid "Choose icon"
|
488 |
msgstr ""
|
489 |
|
490 |
-
#: plugins/icons.php:
|
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:
|
515 |
-
#: plugins/meta_description.php:
|
516 |
msgid "Meta Description"
|
517 |
msgstr ""
|
518 |
|
519 |
-
#: plugins/meta_description.php:
|
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:
|
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:
|
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:
|
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:
|
547 |
-
#: plugins/meta_keyword.php:
|
548 |
-
#: plugins/meta_keyword.php:
|
549 |
msgid "Meta Keywords"
|
550 |
msgstr ""
|
551 |
|
552 |
-
#: plugins/meta_keyword.php:
|
553 |
msgid "Meta Keyword"
|
554 |
msgstr ""
|
555 |
|
556 |
-
#: plugins/meta_keyword.php:
|
557 |
msgid "Common Keywords"
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: plugins/meta_keyword.php:
|
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:
|
567 |
msgid "This is not seriously, Because the SearchEngine does not care this."
|
568 |
msgstr ""
|
569 |
|
570 |
-
#: plugins/meta_keyword.php:
|
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:
|
578 |
msgid "\",\" separator at end of the last keyword is do not need."
|
579 |
msgstr ""
|
580 |
|
581 |
-
#: plugins/meta_keyword.php:
|
582 |
msgid "Example: WordPress,template,theme,free,GPL"
|
583 |
msgstr ""
|
584 |
|
585 |
-
#: plugins/meta_keyword.php:
|
586 |
msgid ""
|
587 |
"To distinguish between individual keywords, please enter a , delimiter "
|
588 |
"(optional)."
|
589 |
msgstr ""
|
590 |
|
591 |
-
#: plugins/meta_keyword.php:
|
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:
|
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:
|
724 |
-
|
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:
|
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 "
|
971 |
msgstr ""
|
972 |
|
973 |
#: plugins/other_widget/widget-pr-blocks.php:27
|
974 |
-
msgid "
|
975 |
msgstr ""
|
976 |
|
977 |
#: plugins/other_widget/widget-pr-blocks.php:35
|
978 |
-
msgid "
|
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-
|
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:
|
1174 |
msgid "HTML Sitemap"
|
1175 |
msgstr ""
|
1176 |
|
1177 |
-
#: plugins/sitemap_page/sitemap_page.php:
|
1178 |
-
msgid "
|
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 |
-
|
16 |
-
|
17 |
}
|
18 |
|
19 |
|
20 |
function vkExUnit_package_is_enable( $package_name ){
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
}
|
27 |
|
28 |
|
29 |
function vkExUnit_package_register( $args ){
|
30 |
-
|
31 |
-
|
32 |
|
33 |
-
|
34 |
-
|
35 |
}
|
36 |
|
37 |
|
38 |
function vkExUnit_package_default(){
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
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 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
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 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
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 |
-
|
63 |
-
|
64 |
-
|
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
|
4 |
-
* Set
|
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 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
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 |
-
|
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 |
-
|
105 |
-
|
106 |
|
107 |
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
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 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
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 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
</td>
|
179 |
</tr>
|
180 |
<tr><th><label for="vkExUnit_cta_img_position"><?php _e('CTA image position', 'vkExUnit'); ?></label></th>
|
181 |
<td>
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
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 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
|
393 |
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
|
399 |
-
|
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 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
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 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
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 |
-
$
|
13 |
-
|
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() && $
|
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 |
-
$
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
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 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
<h3><?php _e('Contact Section', 'vkExUnit'); ?></h3>
|
72 |
<div id="meta_description" class="sectionBox">
|
73 |
<table class="form-table">
|
@@ -113,121 +112,115 @@ class vExUnit_Contact {
|
|
113 |
<th scope="row"><label for="button_text_small"><?php _e('Contact button Text. ( sub )', 'vkExUnit') ;?></label></th>
|
114 |
<td>
|
115 |
<textarea cols="20" rows="2" name="vkExUnit_contact[button_text_small]" id="button_text_small" value="" style="width:50%;" /><?php echo $options['button_text_small'] ?></textarea><br />
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
</td>
|
120 |
</tr>
|
121 |
</table>
|
122 |
<?php submit_button(); ?>
|
123 |
</div>
|
124 |
-
|
125 |
-
|
126 |
|
127 |
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
|
132 |
|
133 |
public function render_meta_box() {
|
134 |
-
$enable = get_post_meta(get_the_id(), 'vkExUnit_contact_enable', true);
|
135 |
-
|
|
|
|
|
136 |
<input type="hidden" name="_nonce_vkExUnit_contact" id="_nonce_vkExUnit__custom_auto_eyecatch_noonce" value="<?php echo wp_create_nonce(plugin_basename(__FILE__)); ?>" />
|
137 |
-
<br/>
|
138 |
<label for="vkExUnit_contact">
|
139 |
-
<input type="checkbox" id="vkExUnit_contact" name="vkExUnit_contact_enable"
|
140 |
-
<?php _e('Display Contact Section','vkExUnit');
|
|
|
|
|
|
|
141 |
<?php
|
142 |
}
|
143 |
|
|
|
|
|
144 |
|
145 |
-
|
146 |
-
|
|
|
147 |
|
148 |
-
|
149 |
-
|
150 |
-
}
|
151 |
|
152 |
-
|
153 |
-
return $post_id;
|
154 |
|
155 |
-
|
|
|
|
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
|
|
|
|
|
|
|
|
|
|
|
160 |
|
161 |
-
if ( "" == get_post_meta( $post_id, 'vkExUnit_contact_enable' )) {
|
162 |
-
add_post_meta( $post_id, 'vkExUnit_contact_enable', $data, true ) ;
|
163 |
-
} else if ( $data != get_post_meta( $post_id, 'vkExUnit_contact_enable' )) {
|
164 |
-
update_post_meta( $post_id, 'vkExUnit_contact_enable', $data ) ;
|
165 |
-
} else if ( "" == $data ) {
|
166 |
-
delete_post_meta( $post_id, 'vkExUnit_contact_enable' ) ;
|
167 |
-
}
|
168 |
-
}
|
169 |
|
|
|
|
|
|
|
|
|
|
|
170 |
|
171 |
-
public static function is_my_turn(){
|
172 |
-
if( !is_page() ) return false;
|
173 |
-
if( get_post_meta(get_the_id(), 'vkExUnit_contact_enable', true) ) return true;
|
174 |
-
return false;
|
175 |
-
}
|
176 |
|
|
|
|
|
177 |
|
178 |
-
|
179 |
-
|
|
|
180 |
|
181 |
-
$content .= '[vkExUnit_contact_section]';
|
182 |
-
return $content;
|
183 |
-
}
|
184 |
|
|
|
|
|
|
|
|
|
185 |
|
186 |
-
|
187 |
-
|
188 |
-
<
|
|
|
|
|
189 |
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
|
195 |
-
|
196 |
-
|
197 |
-
$cont = '';
|
198 |
-
$cont .= '<section class="vkExUnit_contact">';
|
199 |
-
|
200 |
-
$cont .= '<p class="vkExUnit_contact_txt">';
|
201 |
-
$cont .= '<span class="vkExUnit_contact_txt_catch">'.nl2br(esc_textarea($options['contact_txt'])).'</span>';
|
202 |
-
$cont .= '<span class="vkExUnit_contact_txt_tel">'.$options['tel_number'].'</span>';
|
203 |
-
$cont .= '<span class="vkExUnit_contact_txt_time">'.nl2br(esc_textarea($options['contact_time'])).'</span>';
|
204 |
-
$cont .= '</p>';
|
205 |
-
|
206 |
-
if (
|
207 |
-
( isset($options['contact_link']) && $options['contact_link'] ) &&
|
208 |
-
( isset($options['button_text']) && $options['button_text'] )
|
209 |
-
) {
|
210 |
-
$cont .= '<a href="'.$options['contact_link'].'" class="btn btn-primary btn-lg vkExUnit_contact_bt">';
|
211 |
-
$cont .= '<span class="vkExUnit_contact_bt_txt">'.$options['button_text'].'</span>';
|
212 |
-
|
213 |
-
if ( isset($options['button_text_small']) && $options['button_text_small'] ){
|
214 |
-
$cont .= '<span class="vkExUnit_contact_bt_subTxt">'.$options['button_text_small'].'</span>';
|
215 |
-
}
|
216 |
-
|
217 |
-
$cont .= '</a>';
|
218 |
-
}
|
219 |
-
|
220 |
-
$cont .= '</section>';
|
221 |
-
if ( current_user_can('edit_theme_options') ) {
|
222 |
-
$cont .= '<div class="vkExUnit_adminEdit"><a href="'.admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_contact" class="btn btn-default" target="_blank">'.__('Edit contact information', 'vkExUnit').'</a></div>';
|
223 |
-
}
|
224 |
-
$cont = apply_filters('vkExUnit_contact_custom',$cont);
|
225 |
-
return $cont;
|
226 |
-
}
|
227 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
|
229 |
-
|
230 |
-
|
231 |
-
|
|
|
232 |
}
|
233 |
vExUnit_Contact::instance();
|
5 |
*
|
6 |
* @package VkExUnit
|
7 |
* @author shoji imamura<imamura@vektor-inc.co.jp>
|
|
|
8 |
* @since 26/Jun/2015
|
9 |
*/
|
10 |
|
11 |
class vExUnit_Contact {
|
12 |
+
// singleton instance
|
13 |
+
private static $instance;
|
14 |
+
|
15 |
+
public static function instance() {
|
16 |
+
if ( isset( self::$instance ) )
|
17 |
+
return self::$instance;
|
18 |
+
|
19 |
+
self::$instance = new vExUnit_Contact;
|
20 |
+
self::$instance->run_init();
|
21 |
+
return self::$instance;
|
22 |
+
}
|
23 |
+
|
24 |
+
private function __construct() {
|
25 |
+
/*** do noting ***/
|
26 |
+
}
|
27 |
+
|
28 |
+
|
29 |
+
protected function run_init() {
|
30 |
+
add_action( 'admin_init', array($this, 'options_init') );
|
31 |
+
add_action('save_post', array($this, 'save_custom_field_postdata') );
|
32 |
+
add_shortcode('vkExUnit_contact_section', array($this, 'shortcode') );
|
33 |
+
add_filter('the_content', array($this, 'set_content' ), 1);
|
34 |
+
add_filter('vkExUnit_customField_Page_activation', array($this, 'activate_metavox'), 10, 1);
|
35 |
+
add_action('vkExUnit_customField_Page_box', array($this, 'render_meta_box') );
|
36 |
+
}
|
37 |
+
|
38 |
+
|
39 |
+
public function activate_metavox( $flag ){
|
40 |
+
return true;
|
41 |
+
}
|
42 |
+
|
43 |
+
|
44 |
+
public function options_init() {
|
45 |
+
vkExUnit_register_setting(
|
46 |
+
__('Contact', 'vkExUnit'), // tab label.
|
47 |
+
'vkExUnit_contact', // name attr
|
48 |
+
array($this, 'option_sanitaize'), // sanitaise function name
|
49 |
+
array($this, 'options_page') // setting_page function name
|
50 |
+
);
|
51 |
+
}
|
52 |
+
|
53 |
+
|
54 |
+
public static function get_option(){
|
55 |
+
$default = array(
|
56 |
+
'contact_txt' => __('Please feel free to inquire.', 'vkExUnit'),
|
57 |
+
'tel_number' => '000-000-0000',
|
58 |
+
'contact_time' => _('Office hours 9:00 - 18:00 [ Weekdays except holidays ]'),
|
59 |
+
'contact_link' => '',
|
60 |
+
'button_text' => '',
|
61 |
+
'button_text_small' => '',
|
62 |
+
);
|
63 |
+
return get_option('vkExUnit_contact', $default);
|
64 |
+
}
|
65 |
+
|
66 |
+
|
67 |
+
public function options_page() {
|
68 |
+
$options = self::get_option();
|
69 |
+
?>
|
70 |
<h3><?php _e('Contact Section', 'vkExUnit'); ?></h3>
|
71 |
<div id="meta_description" class="sectionBox">
|
72 |
<table class="form-table">
|
112 |
<th scope="row"><label for="button_text_small"><?php _e('Contact button Text. ( sub )', 'vkExUnit') ;?></label></th>
|
113 |
<td>
|
114 |
<textarea cols="20" rows="2" name="vkExUnit_contact[button_text_small]" id="button_text_small" value="" style="width:50%;" /><?php echo $options['button_text_small'] ?></textarea><br />
|
115 |
+
<span><?php _e('ex) ', 'vkExUnit') ;?>
|
116 |
+
<?php _e('Email contact form', 'vkExUnit') ;?>
|
117 |
+
</span>
|
118 |
</td>
|
119 |
</tr>
|
120 |
</table>
|
121 |
<?php submit_button(); ?>
|
122 |
</div>
|
123 |
+
<?php
|
124 |
+
}
|
125 |
|
126 |
|
127 |
+
public function option_sanitaize( $option ) {
|
128 |
+
return $option;
|
129 |
+
}
|
130 |
|
131 |
|
132 |
public function render_meta_box() {
|
133 |
+
$enable = get_post_meta(get_the_id(), 'vkExUnit_contact_enable', true); ?>
|
134 |
+
|
135 |
+
<div>
|
136 |
+
|
137 |
<input type="hidden" name="_nonce_vkExUnit_contact" id="_nonce_vkExUnit__custom_auto_eyecatch_noonce" value="<?php echo wp_create_nonce(plugin_basename(__FILE__)); ?>" />
|
|
|
138 |
<label for="vkExUnit_contact">
|
139 |
+
<input type="checkbox" id="vkExUnit_contact" name="vkExUnit_contact_enable"<?php echo ($enable)? ' checked' : ''; ?> />
|
140 |
+
<?php _e('Display Contact Section','vkExUnit'); ?>
|
141 |
+
</label>
|
142 |
+
</div>
|
143 |
+
|
144 |
<?php
|
145 |
}
|
146 |
|
147 |
+
public function save_custom_field_postdata( $post_id ) {
|
148 |
+
$childPageIndex = isset($_POST['_nonce_vkExUnit_contact']) ? htmlspecialchars($_POST['_nonce_vkExUnit_contact']) : null;
|
149 |
|
150 |
+
if( !wp_verify_nonce( $childPageIndex, plugin_basename(__FILE__) )){
|
151 |
+
return $post_id;
|
152 |
+
}
|
153 |
|
154 |
+
if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
|
155 |
+
return $post_id;
|
|
|
156 |
|
157 |
+
$data = isset($_POST['vkExUnit_contact_enable']) ? htmlspecialchars($_POST['vkExUnit_contact_enable']) : null;
|
|
|
158 |
|
159 |
+
if('page' == $data){
|
160 |
+
if(!current_user_can('edit_page', $post_id)) return $post_id;
|
161 |
+
}
|
162 |
|
163 |
+
if ( "" == get_post_meta( $post_id, 'vkExUnit_contact_enable' )) {
|
164 |
+
add_post_meta( $post_id, 'vkExUnit_contact_enable', $data, true ) ;
|
165 |
+
} else if ( $data != get_post_meta( $post_id, 'vkExUnit_contact_enable' )) {
|
166 |
+
update_post_meta( $post_id, 'vkExUnit_contact_enable', $data ) ;
|
167 |
+
} else if ( "" == $data ) {
|
168 |
+
delete_post_meta( $post_id, 'vkExUnit_contact_enable' ) ;
|
169 |
+
}
|
170 |
+
}
|
171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
+
public static function is_my_turn(){
|
174 |
+
if( !is_page() ) return false;
|
175 |
+
if( get_post_meta(get_the_id(), 'vkExUnit_contact_enable', true) ) return true;
|
176 |
+
return false;
|
177 |
+
}
|
178 |
|
|
|
|
|
|
|
|
|
|
|
179 |
|
180 |
+
public function set_content($content){
|
181 |
+
if( !self::is_my_turn() ) return $content;
|
182 |
|
183 |
+
$content .= '[vkExUnit_contact_section]';
|
184 |
+
return $content;
|
185 |
+
}
|
186 |
|
|
|
|
|
|
|
187 |
|
188 |
+
public function render_contact_html(){
|
189 |
+
$options = self::get_option();
|
190 |
+
$cont = '';
|
191 |
+
$cont .= '<section class="vkExUnit_contact">';
|
192 |
|
193 |
+
$cont .= '<p class="vkExUnit_contact_txt">';
|
194 |
+
$cont .= '<span class="vkExUnit_contact_txt_catch">'.nl2br(esc_textarea($options['contact_txt'])).'</span>';
|
195 |
+
$cont .= '<span class="vkExUnit_contact_txt_tel">'.$options['tel_number'].'</span>';
|
196 |
+
$cont .= '<span class="vkExUnit_contact_txt_time">'.nl2br(esc_textarea($options['contact_time'])).'</span>';
|
197 |
+
$cont .= '</p>';
|
198 |
|
199 |
+
if (
|
200 |
+
( isset($options['contact_link']) && $options['contact_link'] ) &&
|
201 |
+
( isset($options['button_text']) && $options['button_text'] )
|
202 |
+
) {
|
203 |
+
$cont .= '<a href="'.$options['contact_link'].'" class="btn btn-primary btn-lg vkExUnit_contact_bt">';
|
204 |
+
$cont .= '<span class="vkExUnit_contact_bt_txt">'.$options['button_text'].'</span>';
|
205 |
|
206 |
+
if ( isset($options['button_text_small']) && $options['button_text_small'] ){
|
207 |
+
$cont .= '<span class="vkExUnit_contact_bt_subTxt">'.$options['button_text_small'].'</span>';
|
208 |
+
}
|
209 |
|
210 |
+
$cont .= '</a>';
|
211 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
|
213 |
+
$cont .= '</section>';
|
214 |
+
if ( current_user_can('edit_theme_options') ) {
|
215 |
+
$cont .= '<div class="vkExUnit_adminEdit"><a href="'.admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_contact" class="btn btn-default" target="_blank">'.__('Edit contact information', 'vkExUnit').'</a></div>';
|
216 |
+
}
|
217 |
+
$cont = apply_filters('vkExUnit_contact_custom',$cont);
|
218 |
+
return $cont;
|
219 |
+
}
|
220 |
|
221 |
+
|
222 |
+
public function shortcode(){
|
223 |
+
return $this->render_contact_html();
|
224 |
+
}
|
225 |
}
|
226 |
vExUnit_Contact::instance();
|
plugins/icons.php
CHANGED
@@ -5,31 +5,34 @@
|
|
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_icons {
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
30 |
add_action('wp_head', array($this, 'output_tag' ));
|
31 |
-
|
32 |
-
|
|
|
33 |
public function option_init() {
|
34 |
vkExUnit_register_setting(
|
35 |
__('icon setting', 'vkExUnit'), // tab label.
|
@@ -39,11 +42,13 @@ class vExUnit_icons {
|
|
39 |
);
|
40 |
}
|
41 |
|
|
|
42 |
public static function get_default_option(){
|
43 |
$option = '';
|
44 |
return $option;
|
45 |
}
|
46 |
|
|
|
47 |
public function sanitize_config( $option ){
|
48 |
|
49 |
$output = self::get_default_option();
|
@@ -86,5 +91,5 @@ class vExUnit_icons {
|
|
86 |
}
|
87 |
|
88 |
}
|
89 |
-
|
90 |
vExUnit_icons::instance();
|
5 |
*
|
6 |
* @package VkExUnit
|
7 |
* @author shoji imamura<imamura@vektor-inc.co.jp>
|
|
|
8 |
* @since 8/Jul/2015
|
9 |
*/
|
10 |
|
11 |
class vExUnit_icons {
|
12 |
+
// singleton instance
|
13 |
+
private static $instance;
|
14 |
+
|
15 |
+
public static function instance() {
|
16 |
+
if ( isset( self::$instance ) )
|
17 |
+
return self::$instance;
|
18 |
+
|
19 |
+
self::$instance = new vExUnit_icons;
|
20 |
+
self::$instance->run_init();
|
21 |
+
return self::$instance;
|
22 |
+
}
|
23 |
+
|
24 |
+
|
25 |
+
private function __construct() {
|
26 |
+
/*** do noting ***/
|
27 |
+
}
|
28 |
+
|
29 |
+
|
30 |
+
protected function run_init() {
|
31 |
+
add_action('admin_init', array($this, 'option_init' ));
|
32 |
add_action('wp_head', array($this, 'output_tag' ));
|
33 |
+
}
|
34 |
+
|
35 |
+
|
36 |
public function option_init() {
|
37 |
vkExUnit_register_setting(
|
38 |
__('icon setting', 'vkExUnit'), // tab label.
|
42 |
);
|
43 |
}
|
44 |
|
45 |
+
|
46 |
public static function get_default_option(){
|
47 |
$option = '';
|
48 |
return $option;
|
49 |
}
|
50 |
|
51 |
+
|
52 |
public function sanitize_config( $option ){
|
53 |
|
54 |
$output = self::get_default_option();
|
91 |
}
|
92 |
|
93 |
}
|
94 |
+
|
95 |
vExUnit_icons::instance();
|
plugins/insert_ads.php
CHANGED
@@ -5,115 +5,115 @@
|
|
5 |
*
|
6 |
* @package VkExUnit
|
7 |
* @author shoji imamura<imamura@vektor-inc.co.jp>
|
8 |
-
* @version 1.0.0
|
9 |
* @since 30/Jul/2015
|
10 |
*/
|
11 |
|
12 |
class vExUnit_Ads {
|
13 |
-
|
14 |
-
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
|
25 |
-
|
26 |
-
|
|
|
27 |
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
|
46 |
|
47 |
-
|
48 |
-
|
49 |
|
50 |
-
|
51 |
|
52 |
-
|
53 |
|
54 |
-
|
55 |
-
|
56 |
|
57 |
|
58 |
-
|
59 |
-
|
60 |
|
61 |
-
|
62 |
|
63 |
-
|
64 |
|
65 |
-
|
66 |
-
|
67 |
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
|
87 |
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
|
106 |
-
|
107 |
-
|
108 |
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
|
114 |
|
115 |
-
|
116 |
-
|
117 |
?>
|
118 |
<h3><?php _e('Insert ads', 'vkExUnit'); ?></h3>
|
119 |
<div id="vkExUnit_Ads" class="sectionBox">
|
@@ -121,27 +121,27 @@ class vExUnit_Ads {
|
|
121 |
<tr><th><?php _e('Insert ads to post.', 'vkExUnit'); ?>
|
122 |
</th><td style="max-width:80em;">
|
123 |
<?php _e('Insert ads to more tag and after content.', 'vkExUnit'); ?><br/><?php _e('If you want to separate ads area, you fill two fields.', 'vkExUnit'); ?>
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
</td></tr></table>
|
141 |
<?php submit_button(); ?>
|
142 |
</div>
|
143 |
<?php
|
144 |
-
|
145 |
|
146 |
}
|
147 |
|
5 |
*
|
6 |
* @package VkExUnit
|
7 |
* @author shoji imamura<imamura@vektor-inc.co.jp>
|
|
|
8 |
* @since 30/Jul/2015
|
9 |
*/
|
10 |
|
11 |
class vExUnit_Ads {
|
12 |
+
// singleton instance
|
13 |
+
private static $instance;
|
14 |
|
15 |
+
public static function instance() {
|
16 |
+
if ( isset( self::$instance ) )
|
17 |
+
return self::$instance;
|
18 |
|
19 |
+
self::$instance = new vExUnit_Ads;
|
20 |
+
self::$instance->run_init();
|
21 |
+
return self::$instance;
|
22 |
+
}
|
23 |
|
24 |
+
private function __construct() {
|
25 |
+
/*** do noting ***/
|
26 |
+
}
|
27 |
|
28 |
|
29 |
+
protected function run_init() {
|
30 |
+
add_action('admin_init', array($this, 'option_init' ));
|
31 |
+
if( get_post_type() == 'post' ){
|
32 |
+
add_filter('the_content', array($this, 'set_content' ), 1);
|
33 |
+
}
|
34 |
+
add_shortcode('vkExUnit_ad', array($this, 'shortcode') );
|
35 |
+
}
|
36 |
|
37 |
+
public function option_init() {
|
38 |
+
vkExUnit_register_setting(
|
39 |
+
__('Insert ads', 'vkExUnit'), // tab label.
|
40 |
+
'vkExUnit_Ads', // name attr
|
41 |
+
array( $this, 'sanitize_config' ), // sanitaise function name
|
42 |
+
array( $this, 'render_configPage' ) // setting_page function name
|
43 |
+
);
|
44 |
+
}
|
45 |
|
46 |
|
47 |
+
public function set_content($content){
|
48 |
+
$option = $this->get_option();
|
49 |
|
50 |
+
$content = preg_replace('/(<span id="more-[0-9]+"><\/span>)/', '$1'.'[vkExUnit_ad area=more]' , $content);
|
51 |
|
52 |
+
$content .= '[vkExUnit_ad area=after]';
|
53 |
|
54 |
+
return $content;
|
55 |
+
}
|
56 |
|
57 |
|
58 |
+
public function shortcode( $atts ){
|
59 |
+
extract(shortcode_atts(array('area' => ''), $atts));
|
60 |
|
61 |
+
if($area != 'after' && $area != 'more') return '';
|
62 |
|
63 |
+
$option = $this->get_option();
|
64 |
|
65 |
+
return $this->render_ad($option[$area], $area);
|
66 |
+
}
|
67 |
|
68 |
|
69 |
+
private function render_ad( $ads ,$area='more'){
|
70 |
+
if( !$ads[0] ) return '';
|
71 |
+
$class = "col-md-12";
|
72 |
+
if( isset($ads[1]) && $ads[1] ) $class="col-md-6";
|
73 |
|
74 |
+
$content = '';
|
75 |
+
$content .= '<aside class="row vkExUnit_insertAds '.$area.'">';
|
76 |
+
foreach($ads as $ad){
|
77 |
+
if(!$ad) break;
|
78 |
|
79 |
+
$content .= '<div class="'.$class.'">';
|
80 |
+
$content .= $ad;
|
81 |
+
$content .= '</div>';
|
82 |
+
}
|
83 |
+
$content .= '</aside>';
|
84 |
+
return $content;
|
85 |
+
}
|
86 |
|
87 |
|
88 |
+
public function sanitize_config( $input ){
|
89 |
+
$option['more'][0] = stripslashes( $input['more'][0] );
|
90 |
+
$option['more'][1] = stripslashes( $input['more'][1] );
|
91 |
+
$option['after'][0] = stripslashes( $input['after'][0] );
|
92 |
+
$option['after'][1] = stripslashes( $input['after'][1] );
|
93 |
|
94 |
+
if( !$option['more'][0] && $option['more'][1] ){
|
95 |
+
$option['more'][0] = $option['more'][1];
|
96 |
+
$option['more'][1] = '';
|
97 |
+
}
|
98 |
+
if( !$option['more'][1] ) unset( $option['more'][1] );
|
99 |
|
100 |
+
if( !$option['after'][0] && $option['after'][1] ){
|
101 |
+
$option['after'][0] = $option['after'][1];
|
102 |
+
$option['after'][1] = '';
|
103 |
+
}
|
104 |
+
if( !$option['after'][1] ) unset( $option['more'][1] );
|
105 |
|
106 |
+
return $option;
|
107 |
+
}
|
108 |
|
109 |
|
110 |
+
public static function get_option(){
|
111 |
+
return get_option( 'vkExUnit_Ads', array('more'=>array(''),'after'=>array('')) );
|
112 |
+
}
|
113 |
|
114 |
|
115 |
+
public function render_configPage(){
|
116 |
+
$option = $this->get_option();
|
117 |
?>
|
118 |
<h3><?php _e('Insert ads', 'vkExUnit'); ?></h3>
|
119 |
<div id="vkExUnit_Ads" class="sectionBox">
|
121 |
<tr><th><?php _e('Insert ads to post.', 'vkExUnit'); ?>
|
122 |
</th><td style="max-width:80em;">
|
123 |
<?php _e('Insert ads to more tag and after content.', 'vkExUnit'); ?><br/><?php _e('If you want to separate ads area, you fill two fields.', 'vkExUnit'); ?>
|
124 |
+
<dl>
|
125 |
+
<dt><label for="ad_content_moretag"><?php _e('insert the ad [ more tag ]', 'vkExUnit'); ?></label></dt>
|
126 |
+
<dd>
|
127 |
+
<textarea rows="5" name="vkExUnit_Ads[more][]" id="ad_content_moretag" value="" style="width:100%;max-width:50em;" /><?php echo (isset( $option['more'][0] ) && $option['more'][0] )? $option['more'][0]: ''; ?></textarea>
|
128 |
+
<br/>
|
129 |
+
<textarea rows="5" name="vkExUnit_Ads[more][]" value="" style="width:100%;max-width:50em;" /><?php echo (isset( $option['more'][1] ) && $option['more'][1] )? $option['more'][1]: ''; ?></textarea>
|
130 |
+
</dd>
|
131 |
+
</dl>
|
132 |
+
<dl>
|
133 |
+
<dt><label for="ad_content_after"><?php _e('insert the ad [ after content ]', 'vkExUnit'); ?></label></dt>
|
134 |
+
<dd>
|
135 |
+
<textarea rows="5" name="vkExUnit_Ads[after][]" id="ad_content_after" value="" style="width:100%;max-width:50em;" /><?php echo (isset( $option['after'][0] ) && $option['after'][0] )? $option['after'][0]: ''; ?></textarea>
|
136 |
+
<br/>
|
137 |
+
<textarea rows="5" name="vkExUnit_Ads[after][]" value="" style="width:100%;max-width:50em;" /><?php echo (isset( $option['after'][1] ) && $option['after'][1] )? $option['after'][1]: ''; ?></textarea>
|
138 |
+
</dd>
|
139 |
+
</dl>
|
140 |
</td></tr></table>
|
141 |
<?php submit_button(); ?>
|
142 |
</div>
|
143 |
<?php
|
144 |
+
}
|
145 |
|
146 |
}
|
147 |
|
plugins/meta_description.php
CHANGED
@@ -5,7 +5,6 @@
|
|
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 |
|
5 |
*
|
6 |
* @package VkExUnit
|
7 |
* @author shoji imamura<imamura@vektor-inc.co.jp>
|
|
|
8 |
* @since 26/Jun/2015
|
9 |
*/
|
10 |
|
plugins/meta_keyword.php
CHANGED
@@ -5,33 +5,36 @@
|
|
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_meta_keywords {
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
30 |
add_action('admin_menu', array($this, 'add_custom_field'));
|
31 |
add_action('save_post' , array($this, 'save_custom_field'));
|
32 |
add_action('wp_head', array($this, 'set_HeadKeywords' ), 1);
|
33 |
-
|
34 |
-
|
|
|
35 |
public function option_init() {
|
36 |
vkExUnit_register_setting(
|
37 |
__('Meta Keywords', 'vkExUnit'), // tab label.
|
@@ -41,11 +44,13 @@ class vExUnit_meta_keywords {
|
|
41 |
);
|
42 |
}
|
43 |
|
|
|
44 |
public function get_default_option(){
|
45 |
$option = '';
|
46 |
return $option;
|
47 |
}
|
48 |
|
|
|
49 |
public function sanitize_config( $option ){
|
50 |
$option = preg_replace('/^,*(.+)$/', '$1', $option);
|
51 |
$option = preg_replace('/,*$/', '', $option);
|
@@ -89,6 +94,7 @@ class vExUnit_meta_keywords {
|
|
89 |
add_meta_box('div1', __('Meta Keywords', 'vkExUnit'), array( $this, 'render_meta_box' ), 'post', 'normal', 'high');
|
90 |
}
|
91 |
|
|
|
92 |
public function render_meta_box(){
|
93 |
global $post;
|
94 |
echo '<input type="hidden" name="_nonce_vkExUnit__custom_field_metaKeyword" id="_nonce_vkExUnit__custom_field_metaKeyword" value="'.wp_create_nonce(plugin_basename(__FILE__)).'" />';
|
@@ -99,12 +105,13 @@ class vExUnit_meta_keywords {
|
|
99 |
echo '</p>';
|
100 |
}
|
101 |
|
|
|
102 |
public function save_custom_field($post_id){
|
103 |
$metaKeyword = isset($_POST['_nonce_vkExUnit__custom_field_metaKeyword']) ? htmlspecialchars($_POST['_nonce_vkExUnit__custom_field_metaKeyword']) : null;
|
104 |
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
|
109 |
if(!wp_verify_nonce($metaKeyword, plugin_basename(__FILE__))){
|
110 |
return $post_id;
|
@@ -126,9 +133,10 @@ class vExUnit_meta_keywords {
|
|
126 |
}
|
127 |
}
|
128 |
|
|
|
129 |
public function get_postKeyword(){
|
130 |
$post_id = get_the_id();
|
131 |
-
|
132 |
if(empty($post_id))
|
133 |
return null;
|
134 |
|
@@ -136,6 +144,7 @@ class vExUnit_meta_keywords {
|
|
136 |
return $keyword;
|
137 |
}
|
138 |
|
|
|
139 |
public function set_HeadKeywords(){
|
140 |
$commonKeyWords = self::get_option();
|
141 |
// get custom field
|
@@ -148,7 +157,6 @@ class vExUnit_meta_keywords {
|
|
148 |
if(!$key){ return; }
|
149 |
echo '<meta name="keywords" content="' . $key. '" />'."\n";
|
150 |
}
|
151 |
-
|
152 |
}
|
153 |
-
|
154 |
vExUnit_meta_keywords::instance();
|
5 |
*
|
6 |
* @package VkExUnit
|
7 |
* @author shoji imamura<imamura@vektor-inc.co.jp>
|
|
|
8 |
* @since 26/Jun/2015
|
9 |
*/
|
10 |
|
11 |
class vExUnit_meta_keywords {
|
12 |
+
|
13 |
+
private static $instance;
|
14 |
+
|
15 |
+
public static function instance() {
|
16 |
+
if ( isset( self::$instance ) )
|
17 |
+
return self::$instance;
|
18 |
+
|
19 |
+
self::$instance = new vExUnit_meta_keywords;
|
20 |
+
self::$instance->run_init();
|
21 |
+
return self::$instance;
|
22 |
+
}
|
23 |
+
|
24 |
+
|
25 |
+
private function __construct() {
|
26 |
+
/*** do noting ***/
|
27 |
+
}
|
28 |
+
|
29 |
+
|
30 |
+
protected function run_init() {
|
31 |
+
add_action('admin_init', array($this, 'option_init' ));
|
32 |
add_action('admin_menu', array($this, 'add_custom_field'));
|
33 |
add_action('save_post' , array($this, 'save_custom_field'));
|
34 |
add_action('wp_head', array($this, 'set_HeadKeywords' ), 1);
|
35 |
+
}
|
36 |
+
|
37 |
+
|
38 |
public function option_init() {
|
39 |
vkExUnit_register_setting(
|
40 |
__('Meta Keywords', 'vkExUnit'), // tab label.
|
44 |
);
|
45 |
}
|
46 |
|
47 |
+
|
48 |
public function get_default_option(){
|
49 |
$option = '';
|
50 |
return $option;
|
51 |
}
|
52 |
|
53 |
+
|
54 |
public function sanitize_config( $option ){
|
55 |
$option = preg_replace('/^,*(.+)$/', '$1', $option);
|
56 |
$option = preg_replace('/,*$/', '', $option);
|
94 |
add_meta_box('div1', __('Meta Keywords', 'vkExUnit'), array( $this, 'render_meta_box' ), 'post', 'normal', 'high');
|
95 |
}
|
96 |
|
97 |
+
|
98 |
public function render_meta_box(){
|
99 |
global $post;
|
100 |
echo '<input type="hidden" name="_nonce_vkExUnit__custom_field_metaKeyword" id="_nonce_vkExUnit__custom_field_metaKeyword" value="'.wp_create_nonce(plugin_basename(__FILE__)).'" />';
|
105 |
echo '</p>';
|
106 |
}
|
107 |
|
108 |
+
|
109 |
public function save_custom_field($post_id){
|
110 |
$metaKeyword = isset($_POST['_nonce_vkExUnit__custom_field_metaKeyword']) ? htmlspecialchars($_POST['_nonce_vkExUnit__custom_field_metaKeyword']) : null;
|
111 |
|
112 |
+
// if autosave is to deny
|
113 |
+
if( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
|
114 |
+
return $post_id;
|
115 |
|
116 |
if(!wp_verify_nonce($metaKeyword, plugin_basename(__FILE__))){
|
117 |
return $post_id;
|
133 |
}
|
134 |
}
|
135 |
|
136 |
+
|
137 |
public function get_postKeyword(){
|
138 |
$post_id = get_the_id();
|
139 |
+
|
140 |
if(empty($post_id))
|
141 |
return null;
|
142 |
|
144 |
return $keyword;
|
145 |
}
|
146 |
|
147 |
+
|
148 |
public function set_HeadKeywords(){
|
149 |
$commonKeyWords = self::get_option();
|
150 |
// get custom field
|
157 |
if(!$key){ return; }
|
158 |
echo '<meta name="keywords" content="' . $key. '" />'."\n";
|
159 |
}
|
|
|
160 |
}
|
161 |
+
|
162 |
vExUnit_meta_keywords::instance();
|
plugins/news_from_exUnit.php
CHANGED
@@ -3,18 +3,18 @@ function vkExUnit_news_body()
|
|
3 |
{
|
4 |
|
5 |
include_once(ABSPATH . WPINC . '/feed.php');
|
6 |
-
|
7 |
if ( 'ja' == get_locale() ) {
|
8 |
$exUnit_feed_url = 'http://ex-unit.bizvektor.com/ja/?feed?'.date('his') ;
|
9 |
} else {
|
10 |
$exUnit_feed_url = 'http://ex-unit.bizvektor.com/?feed?'.date('his') ;
|
11 |
}
|
12 |
|
13 |
-
$my_feeds = array(
|
14 |
-
array('feed_url' => $exUnit_feed_url)
|
15 |
);
|
16 |
|
17 |
-
|
18 |
foreach ( $my_feeds as $feed )
|
19 |
{
|
20 |
$rss = fetch_feed( $feed["feed_url"] );
|
@@ -22,10 +22,10 @@ function vkExUnit_news_body()
|
|
22 |
if ( !is_wp_error($rss) )
|
23 |
{
|
24 |
$output = '';
|
25 |
-
|
26 |
$maxitems = $rss->get_item_quantity( 5 ); //number of news to display (maximum)
|
27 |
$rss_items = $rss->get_items( 0, $maxitems );
|
28 |
-
|
29 |
$output .= '<div class="rss-widget">';
|
30 |
|
31 |
$output .= '<div class="logo_exUnit">';
|
@@ -35,7 +35,7 @@ function vkExUnit_news_body()
|
|
35 |
if ( $maxitems == 0 )
|
36 |
{
|
37 |
$output .= '<li>';
|
38 |
-
$output .= __('Sorry, there is no post', 'vkExUnit');
|
39 |
$output .= '</li>';
|
40 |
}
|
41 |
else
|
3 |
{
|
4 |
|
5 |
include_once(ABSPATH . WPINC . '/feed.php');
|
6 |
+
|
7 |
if ( 'ja' == get_locale() ) {
|
8 |
$exUnit_feed_url = 'http://ex-unit.bizvektor.com/ja/?feed?'.date('his') ;
|
9 |
} else {
|
10 |
$exUnit_feed_url = 'http://ex-unit.bizvektor.com/?feed?'.date('his') ;
|
11 |
}
|
12 |
|
13 |
+
$my_feeds = array(
|
14 |
+
array('feed_url' => $exUnit_feed_url)
|
15 |
);
|
16 |
|
17 |
+
|
18 |
foreach ( $my_feeds as $feed )
|
19 |
{
|
20 |
$rss = fetch_feed( $feed["feed_url"] );
|
22 |
if ( !is_wp_error($rss) )
|
23 |
{
|
24 |
$output = '';
|
25 |
+
|
26 |
$maxitems = $rss->get_item_quantity( 5 ); //number of news to display (maximum)
|
27 |
$rss_items = $rss->get_items( 0, $maxitems );
|
28 |
+
|
29 |
$output .= '<div class="rss-widget">';
|
30 |
|
31 |
$output .= '<div class="logo_exUnit">';
|
35 |
if ( $maxitems == 0 )
|
36 |
{
|
37 |
$output .= '<li>';
|
38 |
+
$output .= __('Sorry, there is no post', 'vkExUnit');
|
39 |
$output .= '</li>';
|
40 |
}
|
41 |
else
|
plugins/other_widget/widget-pr-blocks.php
CHANGED
@@ -16,35 +16,35 @@ class WP_Widget_vkExUnit_PR_Blocks extends WP_Widget {
|
|
16 |
$defaults = array(
|
17 |
'block_count' => 3,
|
18 |
|
19 |
-
'label_1' => __( '
|
20 |
'media_image_1' => '',
|
21 |
'media_alt_1' => '',
|
22 |
-
'iconFont_class_1' => '',
|
23 |
-
'iconFont_bgColor_1' => '',
|
24 |
'summary_1' => '',
|
25 |
'linkurl_1' => '',
|
26 |
|
27 |
-
'label_2' => __( '
|
28 |
'media_image_2' => '',
|
29 |
'media_alt_2' => '',
|
30 |
-
'iconFont_class_2' => '',
|
31 |
-
'iconFont_bgColor_2' => '',
|
32 |
'summary_2' => '',
|
33 |
'linkurl_2' => '',
|
34 |
|
35 |
-
'label_3' => __( '
|
36 |
'media_image_3' => '',
|
37 |
'media_alt_3' => '',
|
38 |
-
'iconFont_class_3' => '',
|
39 |
-
'iconFont_bgColor_3' => '',
|
40 |
'summary_3' => '',
|
41 |
'linkurl_3' => '',
|
42 |
|
43 |
-
'label_4' => __( '
|
44 |
'media_image_4' => '',
|
45 |
'media_alt_4' => '',
|
46 |
-
'iconFont_class_4' => '',
|
47 |
-
'iconFont_bgColor_4' => '',
|
48 |
'summary_4' => '',
|
49 |
'linkurl_4' => ''
|
50 |
);
|
@@ -75,7 +75,7 @@ for ( $i = 1; $i <= intval($instance['block_count']); ) {
|
|
75 |
echo '<p><label for="'.$this->get_field_id('iconFont_'.$i).'">'.__( 'Class name of the icon font you want to use:', 'vkExUnit' ).'</label><br/>'.
|
76 |
'[ <a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank">Font Awesome Icons</a> ]<br/>
|
77 |
<input type="text" id="'.$this->get_field_id('iconFont_class_'.$i).'-font" class="font_class" name="'.$this->get_field_name('iconFont_class_'.$i).'" value="'.$instance['iconFont_class_'.$i].'" /><br>'
|
78 |
-
.__( 'To choose your favorite icon, and enter the class.', 'vkExUnit').'<br>'.__(' ex:fa-
|
79 |
|
80 |
// icon font background color
|
81 |
echo '<p class="color_picker_wrap">'.
|
16 |
$defaults = array(
|
17 |
'block_count' => 3,
|
18 |
|
19 |
+
'label_1' => __( 'Service', 'vkExUnit' ),
|
20 |
'media_image_1' => '',
|
21 |
'media_alt_1' => '',
|
22 |
+
'iconFont_class_1' => 'fa-file-text-o',
|
23 |
+
'iconFont_bgColor_1' => '#337ab7',
|
24 |
'summary_1' => '',
|
25 |
'linkurl_1' => '',
|
26 |
|
27 |
+
'label_2' => __( 'Company', 'vkExUnit' ),
|
28 |
'media_image_2' => '',
|
29 |
'media_alt_2' => '',
|
30 |
+
'iconFont_class_2' => 'fa-building-o',
|
31 |
+
'iconFont_bgColor_2' => '#337ab7',
|
32 |
'summary_2' => '',
|
33 |
'linkurl_2' => '',
|
34 |
|
35 |
+
'label_3' => __( 'Recruit', 'vkExUnit' ),
|
36 |
'media_image_3' => '',
|
37 |
'media_alt_3' => '',
|
38 |
+
'iconFont_class_3' => 'fa-user',
|
39 |
+
'iconFont_bgColor_3' => '#337ab7',
|
40 |
'summary_3' => '',
|
41 |
'linkurl_3' => '',
|
42 |
|
43 |
+
'label_4' => __( 'Contact', 'vkExUnit' ),
|
44 |
'media_image_4' => '',
|
45 |
'media_alt_4' => '',
|
46 |
+
'iconFont_class_4' => 'fa-envelope',
|
47 |
+
'iconFont_bgColor_4' => '#337ab7',
|
48 |
'summary_4' => '',
|
49 |
'linkurl_4' => ''
|
50 |
);
|
75 |
echo '<p><label for="'.$this->get_field_id('iconFont_'.$i).'">'.__( 'Class name of the icon font you want to use:', 'vkExUnit' ).'</label><br/>'.
|
76 |
'[ <a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank">Font Awesome Icons</a> ]<br/>
|
77 |
<input type="text" id="'.$this->get_field_id('iconFont_class_'.$i).'-font" class="font_class" name="'.$this->get_field_name('iconFont_class_'.$i).'" value="'.$instance['iconFont_class_'.$i].'" /><br>'
|
78 |
+
.__( 'To choose your favorite icon, and enter the class.', 'vkExUnit').'<br>'.__(' ex:fa-file-text-o', 'vkExUnit' ).'</p>';
|
79 |
|
80 |
// icon font background color
|
81 |
echo '<p class="color_picker_wrap">'.
|
plugins/sitemap_page/sitemap_page.php
CHANGED
@@ -1,4 +1,18 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
/*-------------------------------------------*/
|
3 |
/* Add setting page
|
4 |
/*-------------------------------------------*/
|
@@ -58,10 +72,10 @@ function vkExUnit_sitemap_options_validate( $input ) {
|
|
58 |
add_filter('the_content', 'show_sitemap', 7, 1);
|
59 |
|
60 |
function show_sitemap($content) {
|
|
|
61 |
global $post;
|
62 |
-
$
|
63 |
-
|
64 |
-
if(!empty($show_sitemap_value) && $show_sitemap_value[0] === 'active'){
|
65 |
return $content.do_shortcode('[vkExUnit_sitemap]');
|
66 |
}
|
67 |
return $content;
|
@@ -192,18 +206,24 @@ function vkExUnit_sitemap_activate( $flag ){
|
|
192 |
}
|
193 |
|
194 |
|
|
|
|
|
|
|
195 |
add_action('vkExUnit_customField_Page_box', 'vkExUnit_sitemap_meta_box');
|
196 |
function vkExUnit_sitemap_meta_box(){
|
197 |
global $post;
|
198 |
// sitemap display
|
199 |
-
$
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
|
|
|
|
|
|
207 |
}
|
208 |
|
209 |
|
1 |
<?php
|
2 |
+
|
3 |
+
/*-------------------------------------------*/
|
4 |
+
/* Add setting page
|
5 |
+
/*-------------------------------------------*/
|
6 |
+
/* Options Init
|
7 |
+
/*-------------------------------------------*/
|
8 |
+
/* validate
|
9 |
+
/*-------------------------------------------*/
|
10 |
+
/* insert sitemap page
|
11 |
+
/*-------------------------------------------*/
|
12 |
+
/* admin _ meta box
|
13 |
+
/*-------------------------------------------*/
|
14 |
+
|
15 |
+
|
16 |
/*-------------------------------------------*/
|
17 |
/* Add setting page
|
18 |
/*-------------------------------------------*/
|
72 |
add_filter('the_content', 'show_sitemap', 7, 1);
|
73 |
|
74 |
function show_sitemap($content) {
|
75 |
+
wp_reset_postdata(); // need under other section / ex:child page index
|
76 |
global $post;
|
77 |
+
$enable = get_post_meta( $post->ID, 'vkExUnit_sitemap',true );
|
78 |
+
if($enable){
|
|
|
79 |
return $content.do_shortcode('[vkExUnit_sitemap]');
|
80 |
}
|
81 |
return $content;
|
206 |
}
|
207 |
|
208 |
|
209 |
+
/*-------------------------------------------*/
|
210 |
+
/* admin _ meta box
|
211 |
+
/*-------------------------------------------*/
|
212 |
add_action('vkExUnit_customField_Page_box', 'vkExUnit_sitemap_meta_box');
|
213 |
function vkExUnit_sitemap_meta_box(){
|
214 |
global $post;
|
215 |
// sitemap display
|
216 |
+
$enable = get_post_meta( $post->ID, 'vkExUnit_sitemap', true ); ?>
|
217 |
+
|
218 |
+
<div>
|
219 |
+
<input type="hidden" name="_nonce_vkExUnit__custom_field_sitemap" id="_nonce_vkExUnit__custom_field_sitemap" value="<?php echo wp_create_nonce(plugin_basename(__FILE__));?>" />
|
220 |
+
<label for="vkExUnit_sitemap">
|
221 |
+
<input type="checkbox" id="vkExUnit_sitemap" name="vkExUnit_sitemap" <?php echo ($enable)? ' checked' : ''; ?> />
|
222 |
+
<?php _e('Display a HTML sitemap', 'vkExUnit');?>
|
223 |
+
</label>
|
224 |
+
</div>
|
225 |
+
|
226 |
+
<?php
|
227 |
}
|
228 |
|
229 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.2
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.2
|
7 |
+
Stable tag: 2.1.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
vkExUnit.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: VK All in One Expansion Unit
|
4 |
Plugin URI: https://github.com/kurudrive/VK-All-in-one-Expansion-Unit
|
5 |
Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
|
6 |
-
Version: 2.1.
|
7 |
Author: Vektor,Inc.
|
8 |
Author URI: http://vektor-inc.co.jp
|
9 |
License: GPL2
|
3 |
Plugin Name: VK All in One Expansion Unit
|
4 |
Plugin URI: https://github.com/kurudrive/VK-All-in-one-Expansion-Unit
|
5 |
Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
|
6 |
+
Version: 2.1.4
|
7 |
Author: Vektor,Inc.
|
8 |
Author URI: http://vektor-inc.co.jp
|
9 |
License: GPL2
|
vkExUnit_admin.php
CHANGED
@@ -36,7 +36,7 @@
|
|
36 |
</div><!-- [ /.plugin-description ] -->
|
37 |
</td>
|
38 |
</tr>
|
39 |
-
|
40 |
<!-- [ active_fontawesome ] -->
|
41 |
<tr<?php echo (isset($options['active_fontawesome']) && $options['active_fontawesome'])? ' class="active"': ' class="inactive"'; ?>>
|
42 |
<th scope='row' class='check-column'>
|
@@ -54,7 +54,7 @@
|
|
54 |
</div><!-- [ /.plugin-description ] -->
|
55 |
</td>
|
56 |
</tr>
|
57 |
-
|
58 |
<!-- [ active_icon ] -->
|
59 |
<tr<?php echo (isset($options['active_icon']) && $options['active_icon'])? ' class="active"': ' class="inactive"'; ?>>
|
60 |
<th scope='row' class='check-column'>
|
@@ -72,7 +72,7 @@
|
|
72 |
</div><!-- [ /.plugin-description ] -->
|
73 |
</td>
|
74 |
</tr>
|
75 |
-
|
76 |
<!-- [ active_wpTitle ] -->
|
77 |
<tr<?php echo (isset($options['active_wpTitle']) && $options['active_wpTitle'])? ' class="active"': ' class="inactive"'; ?>>
|
78 |
<th scope='row' class='check-column'>
|
@@ -110,7 +110,7 @@
|
|
110 |
</a></span>
|
111 |
</div>
|
112 |
<?php endif; ?>
|
113 |
-
|
114 |
</td>
|
115 |
<td class='column-Keyword desc'>
|
116 |
<div class='plugin-Keyword'>
|
@@ -147,7 +147,7 @@
|
|
147 |
</th>
|
148 |
<td class='plugin-title'>
|
149 |
<strong><?php _e('Social media cooperation.', 'vkExUnit'); ?></strong>
|
150 |
-
|
151 |
<?php if (isset($options['active_sns']) && $options['active_sns']) : ?>
|
152 |
<div class="row-actions visible">
|
153 |
<span class="0">
|
@@ -156,7 +156,7 @@
|
|
156 |
</a></span>
|
157 |
</div>
|
158 |
<?php endif; ?>
|
159 |
-
|
160 |
</td>
|
161 |
<td class='column-description desc'>
|
162 |
<div class='plugin-description'>
|
@@ -167,7 +167,7 @@
|
|
167 |
<li><?php _e('Facebook Page Plugin widget.','vkExUnit');?></li>
|
168 |
<li><?php _e('Print Follow me box to content bottom.','vkExUnit');?></li>
|
169 |
</ul>
|
170 |
-
<p><?php
|
171 |
$settingPage = '<a href="'.admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options">'.__('Main setting page').'</a>';
|
172 |
printf( __( '* You can stop the function separately from the %s.', 'vkExUnit' ), $settingPage );?>
|
173 |
</p>
|
@@ -187,7 +187,7 @@
|
|
187 |
<strong>Google Analytics</strong>
|
188 |
|
189 |
<?php if (isset($options['active_ga']) && $options['active_ga']) : ?>
|
190 |
-
|
191 |
<span class="0">
|
192 |
<a href="<?php echo admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_ga_options';?>">
|
193 |
<?php _e('Setting','vkExUnit');?>
|
@@ -220,7 +220,7 @@
|
|
220 |
</div><!-- [ /.plugin-description ] -->
|
221 |
</td>
|
222 |
</tr>
|
223 |
-
|
224 |
<?php
|
225 |
|
226 |
|
36 |
</div><!-- [ /.plugin-description ] -->
|
37 |
</td>
|
38 |
</tr>
|
39 |
+
|
40 |
<!-- [ active_fontawesome ] -->
|
41 |
<tr<?php echo (isset($options['active_fontawesome']) && $options['active_fontawesome'])? ' class="active"': ' class="inactive"'; ?>>
|
42 |
<th scope='row' class='check-column'>
|
54 |
</div><!-- [ /.plugin-description ] -->
|
55 |
</td>
|
56 |
</tr>
|
57 |
+
|
58 |
<!-- [ active_icon ] -->
|
59 |
<tr<?php echo (isset($options['active_icon']) && $options['active_icon'])? ' class="active"': ' class="inactive"'; ?>>
|
60 |
<th scope='row' class='check-column'>
|
72 |
</div><!-- [ /.plugin-description ] -->
|
73 |
</td>
|
74 |
</tr>
|
75 |
+
|
76 |
<!-- [ active_wpTitle ] -->
|
77 |
<tr<?php echo (isset($options['active_wpTitle']) && $options['active_wpTitle'])? ' class="active"': ' class="inactive"'; ?>>
|
78 |
<th scope='row' class='check-column'>
|
110 |
</a></span>
|
111 |
</div>
|
112 |
<?php endif; ?>
|
113 |
+
|
114 |
</td>
|
115 |
<td class='column-Keyword desc'>
|
116 |
<div class='plugin-Keyword'>
|
147 |
</th>
|
148 |
<td class='plugin-title'>
|
149 |
<strong><?php _e('Social media cooperation.', 'vkExUnit'); ?></strong>
|
150 |
+
|
151 |
<?php if (isset($options['active_sns']) && $options['active_sns']) : ?>
|
152 |
<div class="row-actions visible">
|
153 |
<span class="0">
|
156 |
</a></span>
|
157 |
</div>
|
158 |
<?php endif; ?>
|
159 |
+
|
160 |
</td>
|
161 |
<td class='column-description desc'>
|
162 |
<div class='plugin-description'>
|
167 |
<li><?php _e('Facebook Page Plugin widget.','vkExUnit');?></li>
|
168 |
<li><?php _e('Print Follow me box to content bottom.','vkExUnit');?></li>
|
169 |
</ul>
|
170 |
+
<p><?php
|
171 |
$settingPage = '<a href="'.admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options">'.__('Main setting page').'</a>';
|
172 |
printf( __( '* You can stop the function separately from the %s.', 'vkExUnit' ), $settingPage );?>
|
173 |
</p>
|
187 |
<strong>Google Analytics</strong>
|
188 |
|
189 |
<?php if (isset($options['active_ga']) && $options['active_ga']) : ?>
|
190 |
+
|
191 |
<span class="0">
|
192 |
<a href="<?php echo admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_ga_options';?>">
|
193 |
<?php _e('Setting','vkExUnit');?>
|
220 |
</div><!-- [ /.plugin-description ] -->
|
221 |
</td>
|
222 |
</tr>
|
223 |
+
|
224 |
<?php
|
225 |
|
226 |
|