Version Description
- [ Add functions ] Insert CTA to contents.
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.1.0
- README.md +8 -1
- _scss/admin.scss +1 -0
- _scss/style.scss +27 -4
- common_init.php +2 -1
- config.rb +2 -2
- css/admin.css +1 -0
- css/style.css +24 -3
- css/style_in_bs.css +24 -3
- languages/vkExUnit-ja.mo +0 -0
- languages/vkExUnit-ja.po +179 -33
- languages/vkexunit.mo +0 -0
- languages/vkexunit.pot +18 -19
- packages.php +32 -2
- plugins/call_to_action/call_to_action.php +14 -0
- plugins/call_to_action/class.call_to_action.php +394 -0
- plugins/call_to_action/view.actionbox.php +32 -0
- plugins/call_to_action/view.adminsetting.php +37 -0
- plugins/related_posts/related_posts.php +3 -3
- plugins/sitemap_page/sitemap_page.php +21 -21
- plugins/sns/function_snsBtns.php +1 -1
- readme.txt +5 -1
- vkExUnit.php +12 -4
- vkExUnit_admin.php +9 -2
README.md
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# コーディングルール
|
2 |
|
3 |
## function名
|
@@ -16,7 +21,9 @@
|
|
16 |
|
17 |
## CSS命名について
|
18 |
|
|
|
|
|
19 |
- 複数の単語の場合はキャメルケース(連結する単語の最初の1文字を大文字)にする
|
20 |
※一つの単語なのか複数の単語が合わさっているのかわからないため
|
21 |
- 要素が複数の場合は、単語をアンダーバーで区切る
|
22 |
-
※ハイフンだとダブルクリックで選択出来ないため
|
1 |
+
# 各部名称
|
2 |
+
|
3 |
+
* 従来 3PR BOX や 3PR AREA などとしていた特定の要素の集合部分は「セクション」に統一する。
|
4 |
+
→ 3PR Section / ChildPage List Section / CTA Section など
|
5 |
+
|
6 |
# コーディングルール
|
7 |
|
8 |
## function名
|
21 |
|
22 |
## CSS命名について
|
23 |
|
24 |
+
- 接頭辞は vkExUnit_ にする事でcssがテーマやプラグインのクラス名と被って余計なstyleの影響を受ける事を防ぐ
|
25 |
+
- セクションの一番外側が vkExUnit_セクション名 / その内側の要素は vkExUnit_セクション名_XXXX とする
|
26 |
- 複数の単語の場合はキャメルケース(連結する単語の最初の1文字を大文字)にする
|
27 |
※一つの単語なのか複数の単語が合わさっているのかわからないため
|
28 |
- 要素が複数の場合は、単語をアンダーバーで区切る
|
29 |
+
※ハイフンだとダブルクリックで選択出来ないため
|
_scss/admin.scss
CHANGED
@@ -41,6 +41,7 @@
|
|
41 |
}
|
42 |
h3 { background-color:#333; color:#fff; padding:10px 15px;font-size:150%;margin-top:0;border-left:5px solid #e50000;}
|
43 |
input[type=text] { width:50%; }
|
|
|
44 |
dl {
|
45 |
dt { font-weight: bold;margin-bottom:5px; }
|
46 |
dd { margin-left:0; }
|
41 |
}
|
42 |
h3 { background-color:#333; color:#fff; padding:10px 15px;font-size:150%;margin-top:0;border-left:5px solid #e50000;}
|
43 |
input[type=text] { width:50%; }
|
44 |
+
select { width:50%; }
|
45 |
dl {
|
46 |
dt { font-weight: bold;margin-bottom:5px; }
|
47 |
dd { margin-left:0; }
|
_scss/style.scss
CHANGED
@@ -27,13 +27,20 @@
|
|
27 |
/*-------------------------------------------*/
|
28 |
/* sitemap page Plugin
|
29 |
/*-------------------------------------------*/
|
|
|
|
|
|
|
|
|
30 |
/* Insert Ads
|
31 |
/*-------------------------------------------*/
|
32 |
|
|
|
|
|
33 |
/*-------------------------------------------*/
|
34 |
/* .common
|
35 |
/*-------------------------------------------*/
|
36 |
|
|
|
37 |
.link-list li { padding:0.5em; }
|
38 |
.widget {
|
39 |
.subSection-title { font-size:18px; }
|
@@ -314,15 +321,15 @@
|
|
314 |
.circle_icon{
|
315 |
display: table;
|
316 |
margin: 0 auto ;
|
317 |
-
width:
|
318 |
-
height:
|
319 |
border-radius: 50%;
|
320 |
.font_icon{
|
321 |
display: table-cell;
|
322 |
color: #fff;
|
323 |
vertical-align: middle;
|
324 |
text-align: center;
|
325 |
-
font-size:
|
326 |
}
|
327 |
}
|
328 |
.prBox_title{
|
@@ -441,9 +448,25 @@
|
|
441 |
}
|
442 |
|
443 |
/*-------------------------------------------*/
|
444 |
-
/*
|
445 |
/*-------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
|
|
|
|
|
|
|
447 |
.vkExUnit_contact { display:block; overflow:hidden;margin-bottom:1em;padding:25px 24px 21px; border:3px solid #efefef;box-shadow:inset 0px 0px 0px 1px rgba(255,255,255,1);background-color: #f9f9f9 }
|
448 |
.vkExUnit_contact_txt_catch,
|
449 |
.vkExUnit_contact_txt_tel,
|
27 |
/*-------------------------------------------*/
|
28 |
/* sitemap page Plugin
|
29 |
/*-------------------------------------------*/
|
30 |
+
/* CTA Section
|
31 |
+
/*-------------------------------------------*/
|
32 |
+
/* Contact Section
|
33 |
+
/*-------------------------------------------*/
|
34 |
/* Insert Ads
|
35 |
/*-------------------------------------------*/
|
36 |
|
37 |
+
$section_margin : 20px;
|
38 |
+
|
39 |
/*-------------------------------------------*/
|
40 |
/* .common
|
41 |
/*-------------------------------------------*/
|
42 |
|
43 |
+
html { font-size: inherit; } /* reset bootstrap */
|
44 |
.link-list li { padding:0.5em; }
|
45 |
.widget {
|
46 |
.subSection-title { font-size:18px; }
|
321 |
.circle_icon{
|
322 |
display: table;
|
323 |
margin: 0 auto ;
|
324 |
+
width: 80px;
|
325 |
+
height: 80px;
|
326 |
border-radius: 50%;
|
327 |
.font_icon{
|
328 |
display: table-cell;
|
329 |
color: #fff;
|
330 |
vertical-align: middle;
|
331 |
text-align: center;
|
332 |
+
font-size: 40px;
|
333 |
}
|
334 |
}
|
335 |
.prBox_title{
|
448 |
}
|
449 |
|
450 |
/*-------------------------------------------*/
|
451 |
+
/* CTA Section
|
452 |
/*-------------------------------------------*/
|
453 |
+
.vkExUnit_cta { display:block; overflow:hidden;background-color: #efefef;margin-top:$section_margin;margin-bottom:$section_margin;
|
454 |
+
h1.vkExUnit_cta_title { display:block; overflow:hidden;background-color: #333;font-size:22px;color:#fff;padding: 12px 20px 10px;line-height: 1.2em; }
|
455 |
+
.vkExUnit_cta_body { display:block; overflow:hidden; padding:1.5em 2em 2em;line-height: 170%; }
|
456 |
+
.vkExUnit_cta_body_image img { max-width: 250px; }
|
457 |
+
.vkExUnit_cta_body_image_right { float:right;margin-left:20px; }
|
458 |
+
.vkExUnit_cta_body_image_left { float:left;margin-right:20px; }
|
459 |
+
.vkExUnit_cta_body_image_center { display:block; overflow:hidden;
|
460 |
+
img { display:block; margin:0 auto 15px;max-width: 100%; }
|
461 |
+
}
|
462 |
+
|
463 |
+
.vkExUnit_cta_body_txt { display:block; overflow:hidden; }
|
464 |
+
.vkExUnit_cta_body_link { margin-top:1em; }
|
465 |
+
}
|
466 |
|
467 |
+
/*-------------------------------------------*/
|
468 |
+
/* Contact Section
|
469 |
+
/*-------------------------------------------*/
|
470 |
.vkExUnit_contact { display:block; overflow:hidden;margin-bottom:1em;padding:25px 24px 21px; border:3px solid #efefef;box-shadow:inset 0px 0px 0px 1px rgba(255,255,255,1);background-color: #f9f9f9 }
|
471 |
.vkExUnit_contact_txt_catch,
|
472 |
.vkExUnit_contact_txt_tel,
|
common_init.php
CHANGED
@@ -33,7 +33,7 @@ function vkExUnit_get_common_options_default() {
|
|
33 |
'active_sns' => true,
|
34 |
'active_ga' => true,
|
35 |
'active_relatedPosts' => true,
|
36 |
-
|
37 |
);
|
38 |
return apply_filters( 'vkExUnit_common_options_default', $default_options );
|
39 |
}
|
@@ -55,5 +55,6 @@ function vkExUnit_common_options_validate( $input ) {
|
|
55 |
$output['active_relatedPosts'] = (isset($input['active_relatedPosts'])) ? true:false;
|
56 |
$output['active_otherWidgets'] = (isset($input['active_otherWidgets'])) ? true:false;
|
57 |
$output['active_css_customize'] = (isset($input['active_css_customize'])) ? true:false;
|
|
|
58 |
return apply_filters( 'vkExUnit_common_options_validate', $output, $input, $defaults );
|
59 |
}
|
33 |
'active_sns' => true,
|
34 |
'active_ga' => true,
|
35 |
'active_relatedPosts' => true,
|
36 |
+
'active_call_to_action' => false,
|
37 |
);
|
38 |
return apply_filters( 'vkExUnit_common_options_default', $default_options );
|
39 |
}
|
55 |
$output['active_relatedPosts'] = (isset($input['active_relatedPosts'])) ? true:false;
|
56 |
$output['active_otherWidgets'] = (isset($input['active_otherWidgets'])) ? true:false;
|
57 |
$output['active_css_customize'] = (isset($input['active_css_customize'])) ? true:false;
|
58 |
+
$output['active_call_to_action'] = (isset($input['active_call_to_action'])) ? true:false;
|
59 |
return apply_filters( 'vkExUnit_common_options_validate', $output, $input, $defaults );
|
60 |
}
|
config.rb
CHANGED
@@ -4,6 +4,6 @@ sass_dir = "_scss"
|
|
4 |
images_dir = "images"
|
5 |
javascripts_dir = "js"
|
6 |
output_style = :compact
|
7 |
-
#output_style = :compressed
|
8 |
line_comments = false
|
9 |
-
#sass_options = {:debug_info => false}
|
4 |
images_dir = "images"
|
5 |
javascripts_dir = "js"
|
6 |
output_style = :compact
|
7 |
+
# output_style = :compressed
|
8 |
line_comments = false
|
9 |
+
# sass_options = {:debug_info => false}
|
css/admin.css
CHANGED
@@ -28,5 +28,6 @@
|
|
28 |
.vkExUnit_admin_page h2 .pageTitleTxt { font-size: 28px; }
|
29 |
.vkExUnit_admin_page h3 { background-color: #333; color: #fff; padding: 10px 15px; font-size: 150%; margin-top: 0; border-left: 5px solid #e50000; }
|
30 |
.vkExUnit_admin_page input[type=text] { width: 50%; }
|
|
|
31 |
.vkExUnit_admin_page dl dt { font-weight: bold; margin-bottom: 5px; }
|
32 |
.vkExUnit_admin_page dl dd { margin-left: 0; }
|
28 |
.vkExUnit_admin_page h2 .pageTitleTxt { font-size: 28px; }
|
29 |
.vkExUnit_admin_page h3 { background-color: #333; color: #fff; padding: 10px 15px; font-size: 150%; margin-top: 0; border-left: 5px solid #e50000; }
|
30 |
.vkExUnit_admin_page input[type=text] { width: 50%; }
|
31 |
+
.vkExUnit_admin_page select { width: 50%; }
|
32 |
.vkExUnit_admin_page dl dt { font-weight: bold; margin-bottom: 5px; }
|
33 |
.vkExUnit_admin_page dl dd { margin-left: 0; }
|
css/style.css
CHANGED
@@ -40,11 +40,18 @@
|
|
40 |
/*-------------------------------------------*/
|
41 |
/* sitemap page Plugin
|
42 |
/*-------------------------------------------*/
|
|
|
|
|
|
|
|
|
43 |
/* Insert Ads
|
44 |
/*-------------------------------------------*/
|
45 |
/*-------------------------------------------*/
|
46 |
/* .common
|
47 |
/*-------------------------------------------*/
|
|
|
|
|
|
|
48 |
.link-list li { padding: 0.5em; }
|
49 |
|
50 |
.widget .subSection-title { font-size: 18px; }
|
@@ -180,8 +187,8 @@
|
|
180 |
.widget.pr_blocks a { color: #333; }
|
181 |
.widget.pr_blocks a:hover { color: #333; text-decoration: none; }
|
182 |
.widget.pr_blocks a .summary:hover { text-decoration: underline; }
|
183 |
-
.widget.pr_blocks .circle_icon { display: table; margin: 0 auto; width:
|
184 |
-
.widget.pr_blocks .circle_icon .font_icon { display: table-cell; color: #fff; vertical-align: middle; text-align: center; font-size:
|
185 |
.widget.pr_blocks .prBox_title { margin-top: 1.5em; margin-bottom: 1em; text-align: center; font-size: 18px; }
|
186 |
.widget.pr_blocks .media_pr { display: table; margin: 0 auto; }
|
187 |
.widget.pr_blocks .pr_image { display: table-cell; overflow: hidden; width: 120px; height: 120px; border-radius: 50%; vertical-align: middle; text-align: center; }
|
@@ -221,7 +228,21 @@
|
|
221 |
.sitemap-col .cat-item { padding: 0; }
|
222 |
|
223 |
/*-------------------------------------------*/
|
224 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
/*-------------------------------------------*/
|
226 |
.vkExUnit_contact { display: block; overflow: hidden; margin-bottom: 1em; padding: 25px 24px 21px; border: 3px solid #efefef; box-shadow: inset 0px 0px 0px 1px white; background-color: #f9f9f9; }
|
227 |
|
40 |
/*-------------------------------------------*/
|
41 |
/* sitemap page Plugin
|
42 |
/*-------------------------------------------*/
|
43 |
+
/* CTA Section
|
44 |
+
/*-------------------------------------------*/
|
45 |
+
/* Contact Section
|
46 |
+
/*-------------------------------------------*/
|
47 |
/* Insert Ads
|
48 |
/*-------------------------------------------*/
|
49 |
/*-------------------------------------------*/
|
50 |
/* .common
|
51 |
/*-------------------------------------------*/
|
52 |
+
html { font-size: inherit; }
|
53 |
+
|
54 |
+
/* reset bootstrap */
|
55 |
.link-list li { padding: 0.5em; }
|
56 |
|
57 |
.widget .subSection-title { font-size: 18px; }
|
187 |
.widget.pr_blocks a { color: #333; }
|
188 |
.widget.pr_blocks a:hover { color: #333; text-decoration: none; }
|
189 |
.widget.pr_blocks a .summary:hover { text-decoration: underline; }
|
190 |
+
.widget.pr_blocks .circle_icon { display: table; margin: 0 auto; width: 80px; height: 80px; border-radius: 50%; }
|
191 |
+
.widget.pr_blocks .circle_icon .font_icon { display: table-cell; color: #fff; vertical-align: middle; text-align: center; font-size: 40px; }
|
192 |
.widget.pr_blocks .prBox_title { margin-top: 1.5em; margin-bottom: 1em; text-align: center; font-size: 18px; }
|
193 |
.widget.pr_blocks .media_pr { display: table; margin: 0 auto; }
|
194 |
.widget.pr_blocks .pr_image { display: table-cell; overflow: hidden; width: 120px; height: 120px; border-radius: 50%; vertical-align: middle; text-align: center; }
|
228 |
.sitemap-col .cat-item { padding: 0; }
|
229 |
|
230 |
/*-------------------------------------------*/
|
231 |
+
/* CTA Section
|
232 |
+
/*-------------------------------------------*/
|
233 |
+
.vkExUnit_cta { display: block; overflow: hidden; background-color: #efefef; margin-top: 20px; margin-bottom: 20px; }
|
234 |
+
.vkExUnit_cta h1.vkExUnit_cta_title { display: block; overflow: hidden; background-color: #333; font-size: 22px; color: #fff; padding: 12px 20px 10px; line-height: 1.2em; }
|
235 |
+
.vkExUnit_cta .vkExUnit_cta_body { display: block; overflow: hidden; padding: 1.5em 2em 2em; line-height: 170%; }
|
236 |
+
.vkExUnit_cta .vkExUnit_cta_body_image img { max-width: 250px; }
|
237 |
+
.vkExUnit_cta .vkExUnit_cta_body_image_right { float: right; margin-left: 20px; }
|
238 |
+
.vkExUnit_cta .vkExUnit_cta_body_image_left { float: left; margin-right: 20px; }
|
239 |
+
.vkExUnit_cta .vkExUnit_cta_body_image_center { display: block; overflow: hidden; }
|
240 |
+
.vkExUnit_cta .vkExUnit_cta_body_image_center img { display: block; margin: 0 auto 15px; max-width: 100%; }
|
241 |
+
.vkExUnit_cta .vkExUnit_cta_body_txt { display: block; overflow: hidden; }
|
242 |
+
.vkExUnit_cta .vkExUnit_cta_body_link { margin-top: 1em; }
|
243 |
+
|
244 |
+
/*-------------------------------------------*/
|
245 |
+
/* Contact Section
|
246 |
/*-------------------------------------------*/
|
247 |
.vkExUnit_contact { display: block; overflow: hidden; margin-bottom: 1em; padding: 25px 24px 21px; border: 3px solid #efefef; box-shadow: inset 0px 0px 0px 1px white; background-color: #f9f9f9; }
|
248 |
|
css/style_in_bs.css
CHANGED
@@ -620,11 +620,18 @@ input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="butto
|
|
620 |
/*-------------------------------------------*/
|
621 |
/* sitemap page Plugin
|
622 |
/*-------------------------------------------*/
|
|
|
|
|
|
|
|
|
623 |
/* Insert Ads
|
624 |
/*-------------------------------------------*/
|
625 |
/*-------------------------------------------*/
|
626 |
/* .common
|
627 |
/*-------------------------------------------*/
|
|
|
|
|
|
|
628 |
.link-list li { padding: 0.5em; }
|
629 |
|
630 |
.widget .subSection-title { font-size: 18px; }
|
@@ -760,8 +767,8 @@ input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="butto
|
|
760 |
.widget.pr_blocks a { color: #333; }
|
761 |
.widget.pr_blocks a:hover { color: #333; text-decoration: none; }
|
762 |
.widget.pr_blocks a .summary:hover { text-decoration: underline; }
|
763 |
-
.widget.pr_blocks .circle_icon { display: table; margin: 0 auto; width:
|
764 |
-
.widget.pr_blocks .circle_icon .font_icon { display: table-cell; color: #fff; vertical-align: middle; text-align: center; font-size:
|
765 |
.widget.pr_blocks .prBox_title { margin-top: 1.5em; margin-bottom: 1em; text-align: center; font-size: 18px; }
|
766 |
.widget.pr_blocks .media_pr { display: table; margin: 0 auto; }
|
767 |
.widget.pr_blocks .pr_image { display: table-cell; overflow: hidden; width: 120px; height: 120px; border-radius: 50%; vertical-align: middle; text-align: center; }
|
@@ -801,7 +808,21 @@ input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="butto
|
|
801 |
.sitemap-col .cat-item { padding: 0; }
|
802 |
|
803 |
/*-------------------------------------------*/
|
804 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
805 |
/*-------------------------------------------*/
|
806 |
.vkExUnit_contact { display: block; overflow: hidden; margin-bottom: 1em; padding: 25px 24px 21px; border: 3px solid #efefef; box-shadow: inset 0px 0px 0px 1px white; background-color: #f9f9f9; }
|
807 |
|
620 |
/*-------------------------------------------*/
|
621 |
/* sitemap page Plugin
|
622 |
/*-------------------------------------------*/
|
623 |
+
/* CTA Section
|
624 |
+
/*-------------------------------------------*/
|
625 |
+
/* Contact Section
|
626 |
+
/*-------------------------------------------*/
|
627 |
/* Insert Ads
|
628 |
/*-------------------------------------------*/
|
629 |
/*-------------------------------------------*/
|
630 |
/* .common
|
631 |
/*-------------------------------------------*/
|
632 |
+
html { font-size: inherit; }
|
633 |
+
|
634 |
+
/* reset bootstrap */
|
635 |
.link-list li { padding: 0.5em; }
|
636 |
|
637 |
.widget .subSection-title { font-size: 18px; }
|
767 |
.widget.pr_blocks a { color: #333; }
|
768 |
.widget.pr_blocks a:hover { color: #333; text-decoration: none; }
|
769 |
.widget.pr_blocks a .summary:hover { text-decoration: underline; }
|
770 |
+
.widget.pr_blocks .circle_icon { display: table; margin: 0 auto; width: 80px; height: 80px; border-radius: 50%; }
|
771 |
+
.widget.pr_blocks .circle_icon .font_icon { display: table-cell; color: #fff; vertical-align: middle; text-align: center; font-size: 40px; }
|
772 |
.widget.pr_blocks .prBox_title { margin-top: 1.5em; margin-bottom: 1em; text-align: center; font-size: 18px; }
|
773 |
.widget.pr_blocks .media_pr { display: table; margin: 0 auto; }
|
774 |
.widget.pr_blocks .pr_image { display: table-cell; overflow: hidden; width: 120px; height: 120px; border-radius: 50%; vertical-align: middle; text-align: center; }
|
808 |
.sitemap-col .cat-item { padding: 0; }
|
809 |
|
810 |
/*-------------------------------------------*/
|
811 |
+
/* CTA Section
|
812 |
+
/*-------------------------------------------*/
|
813 |
+
.vkExUnit_cta { display: block; overflow: hidden; background-color: #efefef; margin-top: 20px; margin-bottom: 20px; }
|
814 |
+
.vkExUnit_cta h1.vkExUnit_cta_title { display: block; overflow: hidden; background-color: #333; font-size: 22px; color: #fff; padding: 12px 20px 10px; line-height: 1.2em; }
|
815 |
+
.vkExUnit_cta .vkExUnit_cta_body { display: block; overflow: hidden; padding: 1.5em 2em 2em; line-height: 170%; }
|
816 |
+
.vkExUnit_cta .vkExUnit_cta_body_image img { max-width: 250px; }
|
817 |
+
.vkExUnit_cta .vkExUnit_cta_body_image_right { float: right; margin-left: 20px; }
|
818 |
+
.vkExUnit_cta .vkExUnit_cta_body_image_left { float: left; margin-right: 20px; }
|
819 |
+
.vkExUnit_cta .vkExUnit_cta_body_image_center { display: block; overflow: hidden; }
|
820 |
+
.vkExUnit_cta .vkExUnit_cta_body_image_center img { display: block; margin: 0 auto 15px; max-width: 100%; }
|
821 |
+
.vkExUnit_cta .vkExUnit_cta_body_txt { display: block; overflow: hidden; }
|
822 |
+
.vkExUnit_cta .vkExUnit_cta_body_link { margin-top: 1em; }
|
823 |
+
|
824 |
+
/*-------------------------------------------*/
|
825 |
+
/* Contact Section
|
826 |
/*-------------------------------------------*/
|
827 |
.vkExUnit_contact { display: block; overflow: hidden; margin-bottom: 1em; padding: 25px 24px 21px; border: 3px solid #efefef; box-shadow: inset 0px 0px 0px 1px white; background-color: #f9f9f9; }
|
828 |
|
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"
|
@@ -107,25 +107,25 @@ msgstr "チャット"
|
|
107 |
msgid "Archives"
|
108 |
msgstr "アーカイブ"
|
109 |
|
110 |
-
#: ../packages.php:
|
111 |
msgid "Contact Section"
|
112 |
msgstr "お問い合わせ"
|
113 |
|
114 |
-
#: ../packages.php:
|
115 |
msgid "Display Contact Section at after content."
|
116 |
msgstr "お問い合わせ情報を本文の下に表示する"
|
117 |
|
118 |
-
#: ../packages.php:
|
119 |
-
#: ../packages.php:
|
120 |
-
#: ../vkExUnit_admin.php:193
|
121 |
msgid "Setting"
|
122 |
msgstr "設定"
|
123 |
|
124 |
-
#: ../packages.php:
|
125 |
msgid "Child page index"
|
126 |
msgstr "子ページの一覧表示"
|
127 |
|
128 |
-
#: ../packages.php:
|
129 |
msgid ""
|
130 |
"At the bottom of the specified page, it will display a list of the child "
|
131 |
"page."
|
@@ -133,58 +133,86 @@ msgstr ""
|
|
133 |
"指定した固定ページの下部へ、その固定ページの下層子ページの「ページタイトル / "
|
134 |
"サムネイル / 抜粋文 / 該当ページへのリンク」をセットで一覧表示します。"
|
135 |
|
136 |
-
#: ../packages.php:
|
137 |
msgid "Display HTML Site Map"
|
138 |
msgstr "HTMLサイトマップの表示"
|
139 |
|
140 |
-
#: ../packages.php:
|
141 |
msgid "It displays a HTML Site Map to the specified page."
|
142 |
msgstr "指定した固定ページにHTMLサイトマップを表示します。"
|
143 |
|
144 |
-
#: ../packages.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
msgid "You can use various widgets."
|
146 |
msgstr ""
|
147 |
"以下の機能を持ったウィジェットを追加します。各ウィジェットの設定は「外観」→"
|
148 |
"「ウィジェット」の設定画面より行って下さい。"
|
149 |
|
150 |
-
#: ../packages.php:
|
151 |
msgid ""
|
152 |
"VK_Recent Posts - display the link text and the date of the latest article "
|
153 |
"title."
|
154 |
msgstr "VK_最新記事 - 最新記事タイトルのリンクテキストと日付を表示します。"
|
155 |
|
156 |
-
#: ../packages.php:
|
157 |
msgid ""
|
158 |
"VK_Page content to widget - display the contents of the page to the widgets."
|
159 |
msgstr ""
|
160 |
"VK_固定ページ本文 - 固定ページのコンテンツ部分をウィジェットに表示します。"
|
161 |
|
162 |
-
#: ../packages.php:
|
163 |
msgid "VK_Profile - display the profile entered in the widget."
|
164 |
msgstr "VK_プロフィール - ウィジェットに入力されたプロフィールを表示します。"
|
165 |
|
166 |
-
#: ../packages.php:
|
167 |
msgid "VK_FB Page Plugin - display the Facebook Page Plugin."
|
168 |
msgstr "VK_FB Page Plugin - Facebook ページプラグインを表示します。"
|
169 |
|
170 |
-
#: ../packages.php:
|
171 |
msgid "VK_3PR area - display the 3PR area."
|
172 |
msgstr "VK_3PR エリア - 3PR エリアを表示します。"
|
173 |
|
174 |
-
#: ../packages.php:
|
175 |
msgid "categories/tags list"
|
176 |
msgstr "カテゴリー/タグ リスト"
|
177 |
|
178 |
-
#: ../packages.php:
|
179 |
msgid "Displays a categories, tags or format list."
|
180 |
msgstr "カテゴリ・タグまたは、フォーマットリストを表示します。"
|
181 |
|
182 |
-
#: ../packages.php:
|
183 |
#: ../plugins/other_widget/old/widget-archive-list.php:14
|
184 |
msgid "archive list"
|
185 |
msgstr "アーカイブリスト"
|
186 |
|
187 |
-
#: ../packages.php:
|
188 |
#: ../plugins/other_widget/old/widget-archive-list.php:12
|
189 |
msgid ""
|
190 |
"Displays a list of archives. You can choose the post type and also to "
|
@@ -193,35 +221,35 @@ msgstr ""
|
|
193 |
"アーカイブの一覧を表示します。月ごともしくは年ごとでの表示。また、ポストタイ"
|
194 |
"プを選択できます。"
|
195 |
|
196 |
-
#: ../packages.php:
|
197 |
msgid "Widgets"
|
198 |
msgstr "ウィジェット"
|
199 |
|
200 |
-
#: ../packages.php:
|
201 |
msgid "CSS customize"
|
202 |
msgstr "CSSカスタマイズ"
|
203 |
|
204 |
-
#: ../packages.php:
|
205 |
msgid "You can set Customize CSS."
|
206 |
msgstr ""
|
207 |
"テーマデザインをカスタマイズする CSS を管理画面より追加できるようになります。"
|
208 |
"追加する CSS コードは「VK Ex Unit」→「CSS カスタマイズ」の画面にて入力して下"
|
209 |
"さい。"
|
210 |
|
211 |
-
#: ../packages.php:
|
212 |
#: ../plugins/insert_ads.php:118
|
213 |
msgid "Insert ads"
|
214 |
msgstr "広告の挿入"
|
215 |
|
216 |
-
#: ../packages.php:
|
217 |
msgid "Insert ads to content."
|
218 |
msgstr "記事に広告を挿入します"
|
219 |
|
220 |
-
#: ../packages.php:
|
221 |
msgid "Automatic Eye Catch insert"
|
222 |
msgstr "アイキャッチ画像自動挿入"
|
223 |
|
224 |
-
#: ../packages.php:
|
225 |
msgid "Display Eye Catch image at before content."
|
226 |
msgstr ""
|
227 |
"アイキャッチ画像を本文の最初に表示します。各記事毎に非表示にする事も出来ま"
|
@@ -231,15 +259,15 @@ msgstr ""
|
|
231 |
msgid "Enable setting"
|
232 |
msgstr "有効化設定"
|
233 |
|
234 |
-
#: ../vkExUnit_admin.php:16 ../vkExUnit_admin.php:
|
235 |
msgid "Select all"
|
236 |
msgstr "全てを選択"
|
237 |
|
238 |
-
#: ../vkExUnit_admin.php:16 ../vkExUnit_admin.php:
|
239 |
msgid "Function"
|
240 |
msgstr "有効化"
|
241 |
|
242 |
-
#: ../vkExUnit_admin.php:16 ../vkExUnit_admin.php:
|
243 |
msgid "Description"
|
244 |
msgstr "説明"
|
245 |
|
@@ -633,6 +661,120 @@ msgstr "お知らせはありません。"
|
|
633 |
msgid "Setting of insert items"
|
634 |
msgstr "挿入アイテムの設定"
|
635 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
636 |
#: ../plugins/child_page_index/child_page_index.php:42
|
637 |
#: ../plugins/other_widget/widget-3pr-area.php:274
|
638 |
#: ../plugins/other_widget/widget-3pr-area.php:316
|
@@ -1423,6 +1565,13 @@ msgstr "BizVektor を使用して OGP タグを出力しない。"
|
|
1423 |
msgid "Page top"
|
1424 |
msgstr "ページ先頭へ"
|
1425 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1426 |
#~ msgid ""
|
1427 |
#~ "To choose your favorite icon, and enter the class. For example, the use "
|
1428 |
#~ "of 「fa-rocket」"
|
@@ -1491,9 +1640,6 @@ msgstr "ページ先頭へ"
|
|
1491 |
#~ msgid "WebClip Setting"
|
1492 |
#~ msgstr "ウェブクリップ設定"
|
1493 |
|
1494 |
-
#~ msgid "Choose image"
|
1495 |
-
#~ msgstr "画像を選択"
|
1496 |
-
|
1497 |
#~ msgid ""
|
1498 |
#~ "Description of meta tags in the search results screen of search sites "
|
1499 |
#~ "such as Google, will be Displayed, such as the bottom of the site title.\n"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: 2015-08-16 20:58+0900\n"
|
5 |
"PO-Revision-Date: \n"
|
6 |
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
|
7 |
"Language-Team: Vektor translate Team <info@vektor-inc.co.jp>\n"
|
107 |
msgid "Archives"
|
108 |
msgstr "アーカイブ"
|
109 |
|
110 |
+
#: ../packages.php:45 ../plugins/contact_section.php:71
|
111 |
msgid "Contact Section"
|
112 |
msgstr "お問い合わせ"
|
113 |
|
114 |
+
#: ../packages.php:46
|
115 |
msgid "Display Contact Section at after content."
|
116 |
msgstr "お問い合わせ情報を本文の下に表示する"
|
117 |
|
118 |
+
#: ../packages.php:49 ../packages.php:94 ../packages.php:128
|
119 |
+
#: ../packages.php:145 ../packages.php:162 ../vkExUnit_admin.php:109
|
120 |
+
#: ../vkExUnit_admin.php:155 ../vkExUnit_admin.php:193
|
121 |
msgid "Setting"
|
122 |
msgstr "設定"
|
123 |
|
124 |
+
#: ../packages.php:63
|
125 |
msgid "Child page index"
|
126 |
msgstr "子ページの一覧表示"
|
127 |
|
128 |
+
#: ../packages.php:64
|
129 |
msgid ""
|
130 |
"At the bottom of the specified page, it will display a list of the child "
|
131 |
"page."
|
133 |
"指定した固定ページの下部へ、その固定ページの下層子ページの「ページタイトル / "
|
134 |
"サムネイル / 抜粋文 / 該当ページへのリンク」をセットで一覧表示します。"
|
135 |
|
136 |
+
#: ../packages.php:74
|
137 |
msgid "Display HTML Site Map"
|
138 |
msgstr "HTMLサイトマップの表示"
|
139 |
|
140 |
+
#: ../packages.php:75
|
141 |
msgid "It displays a HTML Site Map to the specified page."
|
142 |
msgstr "指定した固定ページにHTMLサイトマップを表示します。"
|
143 |
|
144 |
+
#: ../packages.php:82 ../plugins/call_to_action/view.adminsetting.php:10
|
145 |
+
msgid "Display the CTA at the end of the post content."
|
146 |
+
msgstr "投稿内容の最後にCTAを表示します。"
|
147 |
+
|
148 |
+
#: ../packages.php:84 ../plugins/call_to_action/view.adminsetting.php:11
|
149 |
+
msgid ""
|
150 |
+
"The CTA stands for \"Call to action\" and this is the area that prompts the "
|
151 |
+
"user behavior."
|
152 |
+
msgstr ""
|
153 |
+
"CTAは「Call To Action」の略で、ユーザーにとってもらいたい行動へ誘導するための"
|
154 |
+
"情報を表示します。"
|
155 |
+
|
156 |
+
#: ../packages.php:86 ../plugins/call_to_action/view.adminsetting.php:12
|
157 |
+
msgid ""
|
158 |
+
"As an example, text message and a link button for induction to the free "
|
159 |
+
"sample download page."
|
160 |
+
msgstr ""
|
161 |
+
"例えば、無料サンプルのダウンロードページへの誘導のためのテキストやリンクボタ"
|
162 |
+
"ンなどです。"
|
163 |
+
|
164 |
+
#: ../packages.php:90 ../plugins/call_to_action/view.adminsetting.php:6
|
165 |
+
msgid "Call To Action"
|
166 |
+
msgstr "Call To Action"
|
167 |
+
|
168 |
+
#: ../packages.php:99
|
169 |
+
msgid "Contents setting"
|
170 |
+
msgstr "CTA表示内容設定"
|
171 |
+
|
172 |
+
#: ../packages.php:111
|
173 |
msgid "You can use various widgets."
|
174 |
msgstr ""
|
175 |
"以下の機能を持ったウィジェットを追加します。各ウィジェットの設定は「外観」→"
|
176 |
"「ウィジェット」の設定画面より行って下さい。"
|
177 |
|
178 |
+
#: ../packages.php:113
|
179 |
msgid ""
|
180 |
"VK_Recent Posts - display the link text and the date of the latest article "
|
181 |
"title."
|
182 |
msgstr "VK_最新記事 - 最新記事タイトルのリンクテキストと日付を表示します。"
|
183 |
|
184 |
+
#: ../packages.php:114
|
185 |
msgid ""
|
186 |
"VK_Page content to widget - display the contents of the page to the widgets."
|
187 |
msgstr ""
|
188 |
"VK_固定ページ本文 - 固定ページのコンテンツ部分をウィジェットに表示します。"
|
189 |
|
190 |
+
#: ../packages.php:115
|
191 |
msgid "VK_Profile - display the profile entered in the widget."
|
192 |
msgstr "VK_プロフィール - ウィジェットに入力されたプロフィールを表示します。"
|
193 |
|
194 |
+
#: ../packages.php:116
|
195 |
msgid "VK_FB Page Plugin - display the Facebook Page Plugin."
|
196 |
msgstr "VK_FB Page Plugin - Facebook ページプラグインを表示します。"
|
197 |
|
198 |
+
#: ../packages.php:117
|
199 |
msgid "VK_3PR area - display the 3PR area."
|
200 |
msgstr "VK_3PR エリア - 3PR エリアを表示します。"
|
201 |
|
202 |
+
#: ../packages.php:118 ../plugins/other_widget/old/widget-taxonomy-list.php:17
|
203 |
msgid "categories/tags list"
|
204 |
msgstr "カテゴリー/タグ リスト"
|
205 |
|
206 |
+
#: ../packages.php:118 ../plugins/other_widget/old/widget-taxonomy-list.php:11
|
207 |
msgid "Displays a categories, tags or format list."
|
208 |
msgstr "カテゴリ・タグまたは、フォーマットリストを表示します。"
|
209 |
|
210 |
+
#: ../packages.php:119 ../plugins/other_widget/widget-archives.php:14
|
211 |
#: ../plugins/other_widget/old/widget-archive-list.php:14
|
212 |
msgid "archive list"
|
213 |
msgstr "アーカイブリスト"
|
214 |
|
215 |
+
#: ../packages.php:119 ../plugins/other_widget/widget-archives.php:12
|
216 |
#: ../plugins/other_widget/old/widget-archive-list.php:12
|
217 |
msgid ""
|
218 |
"Displays a list of archives. You can choose the post type and also to "
|
221 |
"アーカイブの一覧を表示します。月ごともしくは年ごとでの表示。また、ポストタイ"
|
222 |
"プを選択できます。"
|
223 |
|
224 |
+
#: ../packages.php:124
|
225 |
msgid "Widgets"
|
226 |
msgstr "ウィジェット"
|
227 |
|
228 |
+
#: ../packages.php:141
|
229 |
msgid "CSS customize"
|
230 |
msgstr "CSSカスタマイズ"
|
231 |
|
232 |
+
#: ../packages.php:142
|
233 |
msgid "You can set Customize CSS."
|
234 |
msgstr ""
|
235 |
"テーマデザインをカスタマイズする CSS を管理画面より追加できるようになります。"
|
236 |
"追加する CSS コードは「VK Ex Unit」→「CSS カスタマイズ」の画面にて入力して下"
|
237 |
"さい。"
|
238 |
|
239 |
+
#: ../packages.php:158 ../plugins/insert_ads.php:38
|
240 |
#: ../plugins/insert_ads.php:118
|
241 |
msgid "Insert ads"
|
242 |
msgstr "広告の挿入"
|
243 |
|
244 |
+
#: ../packages.php:159
|
245 |
msgid "Insert ads to content."
|
246 |
msgstr "記事に広告を挿入します"
|
247 |
|
248 |
+
#: ../packages.php:175 ../vkExUnit_admin.php:233
|
249 |
msgid "Automatic Eye Catch insert"
|
250 |
msgstr "アイキャッチ画像自動挿入"
|
251 |
|
252 |
+
#: ../packages.php:176
|
253 |
msgid "Display Eye Catch image at before content."
|
254 |
msgstr ""
|
255 |
"アイキャッチ画像を本文の最初に表示します。各記事毎に非表示にする事も出来ま"
|
259 |
msgid "Enable setting"
|
260 |
msgstr "有効化設定"
|
261 |
|
262 |
+
#: ../vkExUnit_admin.php:16 ../vkExUnit_admin.php:280
|
263 |
msgid "Select all"
|
264 |
msgstr "全てを選択"
|
265 |
|
266 |
+
#: ../vkExUnit_admin.php:16 ../vkExUnit_admin.php:280
|
267 |
msgid "Function"
|
268 |
msgstr "有効化"
|
269 |
|
270 |
+
#: ../vkExUnit_admin.php:16 ../vkExUnit_admin.php:280
|
271 |
msgid "Description"
|
272 |
msgstr "説明"
|
273 |
|
661 |
msgid "Setting of insert items"
|
662 |
msgstr "挿入アイテムの設定"
|
663 |
|
664 |
+
#: ../plugins/call_to_action/class.call_to_action.php:48
|
665 |
+
msgid "Edit CTA"
|
666 |
+
msgstr "CTAの編集"
|
667 |
+
|
668 |
+
#: ../plugins/call_to_action/class.call_to_action.php:49
|
669 |
+
msgid "Add new CTA"
|
670 |
+
msgstr "CTAの新規作成"
|
671 |
+
|
672 |
+
#: ../plugins/call_to_action/class.call_to_action.php:50
|
673 |
+
msgid "New CTA"
|
674 |
+
msgstr ""
|
675 |
+
|
676 |
+
#: ../plugins/call_to_action/class.call_to_action.php:76
|
677 |
+
#: ../plugins/call_to_action/class.call_to_action.php:78
|
678 |
+
#: ../plugins/call_to_action/class.call_to_action.php:79
|
679 |
+
msgid "Call to Action setting"
|
680 |
+
msgstr "CTA設定"
|
681 |
+
|
682 |
+
#: ../plugins/call_to_action/class.call_to_action.php:81
|
683 |
+
msgid "CTA Contents"
|
684 |
+
msgstr "CTA Contents"
|
685 |
+
|
686 |
+
#: ../plugins/call_to_action/class.call_to_action.php:89
|
687 |
+
msgid "Follow common setting"
|
688 |
+
msgstr "共通設定を使用"
|
689 |
+
|
690 |
+
#: ../plugins/call_to_action/class.call_to_action.php:90
|
691 |
+
#: ../plugins/call_to_action/class.call_to_action.php:390
|
692 |
+
msgid "Disable display"
|
693 |
+
msgstr "表示しない"
|
694 |
+
|
695 |
+
#: ../plugins/call_to_action/class.call_to_action.php:101
|
696 |
+
msgid "CTA common setting"
|
697 |
+
msgstr "CTA共通設定"
|
698 |
+
|
699 |
+
#: ../plugins/call_to_action/class.call_to_action.php:102
|
700 |
+
#: ../plugins/call_to_action/view.adminsetting.php:22
|
701 |
+
msgid "Show CTA index page"
|
702 |
+
msgstr "CTAの一覧を表示"
|
703 |
+
|
704 |
+
#: ../plugins/call_to_action/class.call_to_action.php:167
|
705 |
+
msgid "CTA image"
|
706 |
+
msgstr "CTA画像"
|
707 |
+
|
708 |
+
#: ../plugins/call_to_action/class.call_to_action.php:173
|
709 |
+
msgid "Add image"
|
710 |
+
msgstr "画像を追加"
|
711 |
+
|
712 |
+
#: ../plugins/call_to_action/class.call_to_action.php:174
|
713 |
+
msgid "Change image"
|
714 |
+
msgstr "画像を変更"
|
715 |
+
|
716 |
+
#: ../plugins/call_to_action/class.call_to_action.php:175
|
717 |
+
msgid "Remove image"
|
718 |
+
msgstr "画像を削除"
|
719 |
+
|
720 |
+
#: ../plugins/call_to_action/class.call_to_action.php:180
|
721 |
+
msgid "CTA image position"
|
722 |
+
msgstr "CTA画像の位置"
|
723 |
+
|
724 |
+
#: ../plugins/call_to_action/class.call_to_action.php:183
|
725 |
+
msgid "right"
|
726 |
+
msgstr "右寄せ"
|
727 |
+
|
728 |
+
#: ../plugins/call_to_action/class.call_to_action.php:184
|
729 |
+
msgid "center"
|
730 |
+
msgstr "中央"
|
731 |
+
|
732 |
+
#: ../plugins/call_to_action/class.call_to_action.php:185
|
733 |
+
msgid "left"
|
734 |
+
msgstr "左寄せ"
|
735 |
+
|
736 |
+
#: ../plugins/call_to_action/class.call_to_action.php:189
|
737 |
+
msgid "Button text"
|
738 |
+
msgstr "ボタンの表記文言"
|
739 |
+
|
740 |
+
#: ../plugins/call_to_action/class.call_to_action.php:192
|
741 |
+
msgid "Button link url"
|
742 |
+
msgstr "ボタンのリンク先URL"
|
743 |
+
|
744 |
+
#: ../plugins/call_to_action/class.call_to_action.php:195
|
745 |
+
msgid "Text message"
|
746 |
+
msgstr "テキストメッセージ"
|
747 |
+
|
748 |
+
#: ../plugins/call_to_action/class.call_to_action.php:201
|
749 |
+
msgid "CTA setting"
|
750 |
+
msgstr "CTA設定"
|
751 |
+
|
752 |
+
#: ../plugins/call_to_action/view.adminsetting.php:14
|
753 |
+
msgid "How to use"
|
754 |
+
msgstr "使い方"
|
755 |
+
|
756 |
+
#: ../plugins/call_to_action/view.adminsetting.php:17
|
757 |
+
msgid ""
|
758 |
+
"You register the contents on \"CTA\" that you want to display to bottom of "
|
759 |
+
"the content."
|
760 |
+
msgstr "まずは投稿タイプCTAで、本文の最後に表示させたい内容を登録します。"
|
761 |
+
|
762 |
+
#: ../plugins/call_to_action/view.adminsetting.php:18
|
763 |
+
msgid "Choose the CTA to be displayed from the following."
|
764 |
+
msgstr "下記のプルダウンで、投稿タイプ別に表示するCTAを選択して保存します。"
|
765 |
+
|
766 |
+
#: ../plugins/call_to_action/view.adminsetting.php:19
|
767 |
+
msgid ""
|
768 |
+
"If you want to switch the CTA to be displayed on each post, please set in "
|
769 |
+
"the details page of such posting."
|
770 |
+
msgstr ""
|
771 |
+
"投稿毎に表示するCTAを切り替えたい場合は、投稿などの詳細ページで設定してくださ"
|
772 |
+
"い。"
|
773 |
+
|
774 |
+
#: ../plugins/call_to_action/view.adminsetting.php:32
|
775 |
+
msgid "Show index page"
|
776 |
+
msgstr "一覧ページを表示する"
|
777 |
+
|
778 |
#: ../plugins/child_page_index/child_page_index.php:42
|
779 |
#: ../plugins/other_widget/widget-3pr-area.php:274
|
780 |
#: ../plugins/other_widget/widget-3pr-area.php:316
|
1565 |
msgid "Page top"
|
1566 |
msgstr "ページ先頭へ"
|
1567 |
|
1568 |
+
#, fuzzy
|
1569 |
+
#~ msgid "Post each setting."
|
1570 |
+
#~ msgstr "3PR エリア1 設定"
|
1571 |
+
|
1572 |
+
#~ msgid "Master Setting"
|
1573 |
+
#~ msgstr "設定"
|
1574 |
+
|
1575 |
#~ msgid ""
|
1576 |
#~ "To choose your favorite icon, and enter the class. For example, the use "
|
1577 |
#~ "of 「fa-rocket」"
|
1640 |
#~ msgid "WebClip Setting"
|
1641 |
#~ msgstr "ウェブクリップ設定"
|
1642 |
|
|
|
|
|
|
|
1643 |
#~ msgid ""
|
1644 |
#~ "Description of meta tags in the search results screen of search sites "
|
1645 |
#~ "such as Google, will be Displayed, such as the bottom of the site title.\n"
|
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-13
|
5 |
"PO-Revision-Date: \n"
|
6 |
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
|
7 |
"Language-Team: Vektor,Inc. <info@vektor-inc.co.jp>\n"
|
@@ -693,7 +693,7 @@ msgstr ""
|
|
693 |
#: plugins/other_widget/widget-3pr-area.php:132
|
694 |
#: plugins/other_widget/widget-3pr-area.php:166
|
695 |
#: plugins/other_widget/widget-3pr-area.php:183
|
696 |
-
#: plugins/other_widget/widget-pr-blocks.php:
|
697 |
#: plugins/other_widget/widget-profile.php:50
|
698 |
msgid "Select image"
|
699 |
msgstr ""
|
@@ -704,7 +704,7 @@ msgstr ""
|
|
704 |
#: plugins/other_widget/widget-3pr-area.php:133
|
705 |
#: plugins/other_widget/widget-3pr-area.php:167
|
706 |
#: plugins/other_widget/widget-3pr-area.php:184
|
707 |
-
#: plugins/other_widget/widget-pr-blocks.php:
|
708 |
#: plugins/other_widget/widget-profile.php:51
|
709 |
msgid "Clear image"
|
710 |
msgstr ""
|
@@ -718,14 +718,14 @@ msgstr ""
|
|
718 |
#: plugins/other_widget/widget-3pr-area.php:88
|
719 |
#: plugins/other_widget/widget-3pr-area.php:142
|
720 |
#: plugins/other_widget/widget-3pr-area.php:194
|
721 |
-
#: plugins/other_widget/widget-pr-blocks.php:
|
722 |
msgid "Summary Text:"
|
723 |
msgstr ""
|
724 |
|
725 |
#: plugins/other_widget/widget-3pr-area.php:94
|
726 |
#: plugins/other_widget/widget-3pr-area.php:146
|
727 |
#: plugins/other_widget/widget-3pr-area.php:199
|
728 |
-
#: plugins/other_widget/widget-pr-blocks.php:
|
729 |
msgid "Link URL:"
|
730 |
msgstr ""
|
731 |
|
@@ -846,7 +846,7 @@ msgid "PR Block4 title"
|
|
846 |
msgstr ""
|
847 |
|
848 |
#: plugins/other_widget/widget-pr-blocks.php:56
|
849 |
-
msgid "
|
850 |
msgstr ""
|
851 |
|
852 |
#: plugins/other_widget/widget-pr-blocks.php:58
|
@@ -859,38 +859,37 @@ msgstr ""
|
|
859 |
|
860 |
#: plugins/other_widget/widget-pr-blocks.php:61
|
861 |
msgid ""
|
862 |
-
"
|
863 |
-
"is increased or
|
|
|
864 |
msgstr ""
|
865 |
|
866 |
#: plugins/other_widget/widget-pr-blocks.php:68
|
867 |
-
#: plugins/other_widget/widget-pr-blocks.php:
|
868 |
msgid "PR Block"
|
869 |
msgstr ""
|
870 |
|
871 |
#: plugins/other_widget/widget-pr-blocks.php:75
|
872 |
-
msgid "
|
873 |
msgstr ""
|
874 |
|
875 |
#: plugins/other_widget/widget-pr-blocks.php:78
|
876 |
-
msgid ""
|
877 |
-
"To choose your favorite icon, and enter the class. For example, the use of "
|
878 |
-
"「fa-rocket」"
|
879 |
msgstr ""
|
880 |
|
881 |
-
#: plugins/other_widget/widget-pr-blocks.php:
|
882 |
-
msgid "
|
883 |
msgstr ""
|
884 |
|
885 |
-
#: plugins/other_widget/widget-pr-blocks.php:
|
886 |
-
msgid "
|
887 |
msgstr ""
|
888 |
|
889 |
-
#: plugins/other_widget/widget-pr-blocks.php:
|
890 |
msgid "Select image:"
|
891 |
msgstr ""
|
892 |
|
893 |
-
#: plugins/other_widget/widget-pr-blocks.php:
|
894 |
msgid "When you have an image. Image is displayed with priority"
|
895 |
msgstr ""
|
896 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: 2015-08-13 11:50+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"
|
693 |
#: plugins/other_widget/widget-3pr-area.php:132
|
694 |
#: plugins/other_widget/widget-3pr-area.php:166
|
695 |
#: plugins/other_widget/widget-3pr-area.php:183
|
696 |
+
#: plugins/other_widget/widget-pr-blocks.php:93
|
697 |
#: plugins/other_widget/widget-profile.php:50
|
698 |
msgid "Select image"
|
699 |
msgstr ""
|
704 |
#: plugins/other_widget/widget-3pr-area.php:133
|
705 |
#: plugins/other_widget/widget-3pr-area.php:167
|
706 |
#: plugins/other_widget/widget-3pr-area.php:184
|
707 |
+
#: plugins/other_widget/widget-pr-blocks.php:96
|
708 |
#: plugins/other_widget/widget-profile.php:51
|
709 |
msgid "Clear image"
|
710 |
msgstr ""
|
718 |
#: plugins/other_widget/widget-3pr-area.php:88
|
719 |
#: plugins/other_widget/widget-3pr-area.php:142
|
720 |
#: plugins/other_widget/widget-3pr-area.php:194
|
721 |
+
#: plugins/other_widget/widget-pr-blocks.php:107
|
722 |
msgid "Summary Text:"
|
723 |
msgstr ""
|
724 |
|
725 |
#: plugins/other_widget/widget-3pr-area.php:94
|
726 |
#: plugins/other_widget/widget-3pr-area.php:146
|
727 |
#: plugins/other_widget/widget-3pr-area.php:199
|
728 |
+
#: plugins/other_widget/widget-pr-blocks.php:111
|
729 |
msgid "Link URL:"
|
730 |
msgstr ""
|
731 |
|
846 |
msgstr ""
|
847 |
|
848 |
#: plugins/other_widget/widget-pr-blocks.php:56
|
849 |
+
msgid "The choice of the number of columns:"
|
850 |
msgstr ""
|
851 |
|
852 |
#: plugins/other_widget/widget-pr-blocks.php:58
|
859 |
|
860 |
#: plugins/other_widget/widget-pr-blocks.php:61
|
861 |
msgid ""
|
862 |
+
"If you change the number of columns, click to \"Save\" botton and exit the "
|
863 |
+
"edit page. When restart the edit page, the column input form is increased or "
|
864 |
+
"decreased."
|
865 |
msgstr ""
|
866 |
|
867 |
#: plugins/other_widget/widget-pr-blocks.php:68
|
868 |
+
#: plugins/other_widget/widget-pr-blocks.php:166
|
869 |
msgid "PR Block"
|
870 |
msgstr ""
|
871 |
|
872 |
#: plugins/other_widget/widget-pr-blocks.php:75
|
873 |
+
msgid "Class name of the icon font you want to use:"
|
874 |
msgstr ""
|
875 |
|
876 |
#: plugins/other_widget/widget-pr-blocks.php:78
|
877 |
+
msgid "To choose your favorite icon, and enter the class."
|
|
|
|
|
878 |
msgstr ""
|
879 |
|
880 |
+
#: plugins/other_widget/widget-pr-blocks.php:78
|
881 |
+
msgid " ex:fa-rocket"
|
882 |
msgstr ""
|
883 |
|
884 |
+
#: plugins/other_widget/widget-pr-blocks.php:82
|
885 |
+
msgid "Icon bg-color:"
|
886 |
msgstr ""
|
887 |
|
888 |
+
#: plugins/other_widget/widget-pr-blocks.php:86
|
889 |
msgid "Select image:"
|
890 |
msgstr ""
|
891 |
|
892 |
+
#: plugins/other_widget/widget-pr-blocks.php:97
|
893 |
msgid "When you have an image. Image is displayed with priority"
|
894 |
msgstr ""
|
895 |
|
packages.php
CHANGED
@@ -22,7 +22,9 @@ $required_packages[] = array(
|
|
22 |
/*-------------------------------------------*/
|
23 |
/* ChildPageIndex
|
24 |
/*-------------------------------------------*/
|
25 |
-
/*
|
|
|
|
|
26 |
/*-------------------------------------------*/
|
27 |
/* otherWidgets
|
28 |
/*-------------------------------------------*/
|
@@ -65,7 +67,7 @@ $required_packages[] = array(
|
|
65 |
|
66 |
|
67 |
/*-------------------------------------------*/
|
68 |
-
/*
|
69 |
/*-------------------------------------------*/
|
70 |
$required_packages[] = array(
|
71 |
'name' => 'sitemap_page',
|
@@ -74,6 +76,34 @@ $required_packages[] = array(
|
|
74 |
'default' => true,
|
75 |
);
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
/*-------------------------------------------*/
|
78 |
/* otherWidgets
|
79 |
/*-------------------------------------------*/
|
22 |
/*-------------------------------------------*/
|
23 |
/* ChildPageIndex
|
24 |
/*-------------------------------------------*/
|
25 |
+
/* Sitemap_page
|
26 |
+
/*-------------------------------------------*/
|
27 |
+
/* Call To Action
|
28 |
/*-------------------------------------------*/
|
29 |
/* otherWidgets
|
30 |
/*-------------------------------------------*/
|
67 |
|
68 |
|
69 |
/*-------------------------------------------*/
|
70 |
+
/* Sitemap_page
|
71 |
/*-------------------------------------------*/
|
72 |
$required_packages[] = array(
|
73 |
'name' => 'sitemap_page',
|
76 |
'default' => true,
|
77 |
);
|
78 |
|
79 |
+
/*-------------------------------------------*/
|
80 |
+
/* Call To Action
|
81 |
+
/*-------------------------------------------*/
|
82 |
+
$cta_description = __('Display the CTA at the end of the post content.', 'vkExUnit');
|
83 |
+
$cta_description .= '<br>';
|
84 |
+
$cta_description .= __('The CTA stands for "Call to action" and this is the area that prompts the user behavior.', 'vkExUnit');
|
85 |
+
$cta_description .= '<br>';
|
86 |
+
$cta_description .= __('As an example, text message and a link button for induction to the free sample download page.', 'vkExUnit');
|
87 |
+
|
88 |
+
$required_packages[] = array(
|
89 |
+
'name' => 'call_to_action',
|
90 |
+
'title' => __('Call To Action', 'vkExUnit'),
|
91 |
+
'description' => $cta_description,
|
92 |
+
'attr' => array(
|
93 |
+
array(
|
94 |
+
'name'=>__('Setting','vkExUnit'),
|
95 |
+
'url'=> admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings',
|
96 |
+
'enable_only' => 1,
|
97 |
+
),
|
98 |
+
array(
|
99 |
+
'name'=>__('Contents setting','vkExUnit'),
|
100 |
+
'url'=> admin_url().'edit.php?post_type=cta',
|
101 |
+
'enable_only' => 1,
|
102 |
+
)
|
103 |
+
),
|
104 |
+
'default' => true,
|
105 |
+
);
|
106 |
+
|
107 |
/*-------------------------------------------*/
|
108 |
/* otherWidgets
|
109 |
/*-------------------------------------------*/
|
plugins/call_to_action/call_to_action.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* VkExUnit meta_keyword.php
|
4 |
+
* Set meta tag of keyword for single page each
|
5 |
+
*
|
6 |
+
* @package VkExUnit
|
7 |
+
* @author shoji imamura<imamura@vektor-inc.co.jp>
|
8 |
+
* @since 3/Aug/2015
|
9 |
+
* @since 1.6.6
|
10 |
+
*/
|
11 |
+
|
12 |
+
require_once vkExUnit_get_directory() . '/plugins/call_to_action/class.call_to_action.php';
|
13 |
+
|
14 |
+
vExUnit_call_responce::instance();
|
plugins/call_to_action/class.call_to_action.php
ADDED
@@ -0,0 +1,394 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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; }
|
117 |
+
#cta-thumbnail_image { max-width:300px; max-height:300px; }
|
118 |
+
#cta-thumbnail_image.noimage { display:none; }
|
119 |
+
#cta-thumbnail_control.add #media_thumb_url_add { display:inline; }
|
120 |
+
#cta-thumbnail_control.add #media_thumb_url_change,
|
121 |
+
#cta-thumbnail_control.add #media_thumb_url_remove { display:none; }
|
122 |
+
#cta-thumbnail_control.change #media_thumb_url_add { display:none; }
|
123 |
+
#cta-thumbnail_control.change #media_thumb_url_change,
|
124 |
+
#cta-thumbnail_control.change #media_thumb_url_remove { display:inline; }
|
125 |
+
.form-table input[type=text],
|
126 |
+
.form-table input[type=url],
|
127 |
+
.form-table textarea { width:80%; }
|
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" />
|
165 |
+
<table class="form-table">
|
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>
|
190 |
+
<input type="text" name="vkExUnit_cta_button_text" id="vkExUnit_cta_button_text" value="<?php echo get_post_meta(get_the_id(), 'vkExUnit_cta_button_text', true); ?>" />
|
191 |
+
</td></tr><tr><th>
|
192 |
+
<label for="vkExUnit_cta_url"><?php _e('Button link url', 'vkExUnit'); ?></label></th><td>
|
193 |
+
<input type="url" name="vkExUnit_cta_url" id="vkExUnit_cta_url" placeholder="http://" value="<?php echo get_post_meta(get_the_id(), 'vkExUnit_cta_url', true); ?>" />
|
194 |
+
</td></tr>
|
195 |
+
<tr><th><label for="vkExUnit_cta_text"><?php _e('Text message', 'vkExUnit'); ?>
|
196 |
+
</th>
|
197 |
+
<td>
|
198 |
+
<textarea name="vkExUnit_cta_text" id="vkExUnit_cta_text" rows="10em" cols="50em"><?php echo get_post_meta(get_the_id(), 'vkExUnit_cta_text', true); ?></textarea>
|
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 |
+
$content .= self::render_cta_content( $this->is_cta_id() );
|
324 |
+
return $content;
|
325 |
+
}
|
326 |
+
|
327 |
+
|
328 |
+
public function sanitize_config( $input ){
|
329 |
+
$posttypes = array_merge( array( 'post'=>'post', 'page'=>'page' ), get_post_types( array( 'public'=>true, '_builtin'=>false ), 'names' ) );
|
330 |
+
$option = get_option( 'vkExUnit_cta_settings' );
|
331 |
+
if( !$option ) $current_option = self::get_default_option();
|
332 |
+
|
333 |
+
while(list($key, $value) = each($input)){
|
334 |
+
$option[$key] = ( is_numeric( $value ) )? $value : 0 ;
|
335 |
+
}
|
336 |
+
return $option;
|
337 |
+
}
|
338 |
+
|
339 |
+
|
340 |
+
public static function get_default_option(){
|
341 |
+
$option = array();
|
342 |
+
$posttypes = array_merge( array( 'post'=>'post', 'page'=>'page'), get_post_types( array( 'public'=>true, '_builtin'=>false ), 'names' ));
|
343 |
+
while( list($key, $posttype) = each( $posttypes ) ){
|
344 |
+
$option[ $posttype ] = false;
|
345 |
+
}
|
346 |
+
return $option;
|
347 |
+
}
|
348 |
+
|
349 |
+
|
350 |
+
public static function get_option( $show_label=false ){
|
351 |
+
$default = self::get_default_option();
|
352 |
+
$option = get_option( 'vkExUnit_cta_settings' );
|
353 |
+
|
354 |
+
if( !$option || !is_array($option) ) return $default;
|
355 |
+
|
356 |
+
$posttypes = array_merge( array( 'post'=>'post', 'page'=>'page' ), get_post_types( array( 'public'=>true, '_builtin'=>false ), 'names' ));
|
357 |
+
|
358 |
+
$output_option = array();
|
359 |
+
while(list($key, $value) = each($posttypes)){
|
360 |
+
$output_option[$value] = ( isset( $option[$value] ) )? $option[$value] : $default[$value];
|
361 |
+
}
|
362 |
+
|
363 |
+
return $output_option;
|
364 |
+
}
|
365 |
+
|
366 |
+
|
367 |
+
public function get_ctas( $show_label=false, $head='' ){
|
368 |
+
$args = array(
|
369 |
+
'post_type' => self::$posttype_name,
|
370 |
+
);
|
371 |
+
$query = new WP_Query($args);
|
372 |
+
$ctas = array();
|
373 |
+
while( list($key, $post) = each( $query->posts ) ){
|
374 |
+
if($show_label){
|
375 |
+
$ctas[] = array(
|
376 |
+
'key' => $post->ID,
|
377 |
+
'label' => $head . $post->post_title
|
378 |
+
);
|
379 |
+
}else{
|
380 |
+
$ctas[] = $post->ID;
|
381 |
+
}
|
382 |
+
}
|
383 |
+
return $ctas;
|
384 |
+
}
|
385 |
+
|
386 |
+
|
387 |
+
public function render_configPage(){
|
388 |
+
$options = self::get_option();
|
389 |
+
$ctas = self::get_ctas(true, ' - ');
|
390 |
+
array_unshift( $ctas, array( 'key' => 0, 'label' => __('Disable display', 'vkExUnit') ) );
|
391 |
+
|
392 |
+
include vkExUnit_get_directory() . '/plugins/call_to_action/view.adminsetting.php';
|
393 |
+
}
|
394 |
+
}
|
plugins/call_to_action/view.actionbox.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$url_title = get_post_meta( $id, 'vkExUnit_cta_button_text', true );
|
4 |
+
$url = get_post_meta( $id, 'vkExUnit_cta_url', true );
|
5 |
+
$text = get_post_meta( $id, 'vkExUnit_cta_text', true);
|
6 |
+
$text = preg_replace('/\n/', '<br/>', $text);
|
7 |
+
$imgid = get_post_meta( $id, 'vkExUnit_cta_img', true);
|
8 |
+
$cta_image = wp_get_attachment_image_src($imgid,full);
|
9 |
+
$image_position = get_post_meta( $id, 'vkExUnit_cta_img_position', true);
|
10 |
+
if(!$image_position){ $image_position = 'right'; }
|
11 |
+
|
12 |
+
$content = '';
|
13 |
+
$content .= '<section class="vkExUnit_cta">';
|
14 |
+
$content .= '<h1 class="vkExUnit_cta_title">' . $post->post_title . '</h1>';
|
15 |
+
$content .= '<div class="vkExUnit_cta_body">';
|
16 |
+
if( $imgid ){
|
17 |
+
$content .= '<div class="vkExUnit_cta_body_image vkExUnit_cta_body_image_'.$image_position.'">';
|
18 |
+
$content .= '<img src="'. $cta_image[0] .'" />';
|
19 |
+
$content .= '</div>';
|
20 |
+
}
|
21 |
+
$content .= '<div class="vkExUnit_cta_body_txt '.(($imgid)? 'image_exist' : 'image_no').'">';
|
22 |
+
$content .= $text;
|
23 |
+
$content .= '</div>';
|
24 |
+
if( $url ){
|
25 |
+
$content .= '<div class="vkExUnit_cta_body_link">';
|
26 |
+
$content .= '<a href="'.$url.'" class="btn btn-primary btn-block btn-lg" target="_blank">';
|
27 |
+
$content .= $url_title;
|
28 |
+
$content .= '</a>';
|
29 |
+
$content .= '</div>';
|
30 |
+
}
|
31 |
+
$content .= '</div><!-- [ /.vkExUnit_cta_body ] -->';
|
32 |
+
$content .= '</section>';
|
plugins/call_to_action/view.adminsetting.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Main setting Page
|
4 |
+
*/
|
5 |
+
?>
|
6 |
+
<h3><?php _e('Call To Action', 'vkExUnit'); ?></h3>
|
7 |
+
|
8 |
+
<div id="on_setting" class="sectionBox">
|
9 |
+
<p>
|
10 |
+
<?php _e('Display the CTA at the end of the post content.', 'vkExUnit'); ?><br/>
|
11 |
+
<?php _e('The CTA stands for "Call to action" and this is the area that prompts the user behavior.', 'vkExUnit'); ?><br/>
|
12 |
+
<?php _e('As an example, text message and a link button for induction to the free sample download page.', 'vkExUnit'); ?></p>
|
13 |
+
|
14 |
+
<h4><?php _e('How to use','vkExUnit');?></h4>
|
15 |
+
|
16 |
+
<ol>
|
17 |
+
<li><?php _e('You register the contents on "CTA" that you want to display to bottom of the content.', 'vkExUnit'); ?></li>
|
18 |
+
<li><?php _e('Choose the CTA to be displayed from the following.', 'vkExUnit'); ?></li>
|
19 |
+
<li><?php _e('If you want to switch the CTA to be displayed on each post, please set in the details page of such posting.', 'vkExUnit'); ?></li>
|
20 |
+
</ol>
|
21 |
+
|
22 |
+
<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>
|
23 |
+
|
24 |
+
<table class="form-table">
|
25 |
+
<?php while( list($type, $value) = each( $options ) ): ?>
|
26 |
+
<tr><th><label ><?php echo get_post_type_object($type)->label; ?></label></th>
|
27 |
+
<td><select name="vkExUnit_cta_settings[<?php echo $type; ?>]" id="vkExUnit_cta_settings">
|
28 |
+
<?php foreach($ctas as $cta): ?>
|
29 |
+
<option value="<?php echo $cta['key'] ?>" <?php echo($value == $cta['key'])? 'selected':''; ?> ><?php echo $cta['label'] ?></option>
|
30 |
+
<?php endforeach; ?>
|
31 |
+
</select>
|
32 |
+
<a href="<?php echo admin_url('edit.php?post_type=' . $type) ?>" class="button button-default" target="_blank"><?php _e('Show index page', 'vkExUnit'); ?></a>
|
33 |
+
</td></tr>
|
34 |
+
<?php endwhile;?>
|
35 |
+
</table>
|
36 |
+
<?php submit_button(); ?>
|
37 |
+
</div>
|
plugins/related_posts/related_posts.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
add_filter( 'the_content', 'vkExUnit_add_relatedPosts');
|
3 |
|
4 |
function vkExUnit_add_relatedPosts($content){
|
5 |
|
@@ -46,12 +46,12 @@ function vkExUnit_add_relatedPosts($content){
|
|
46 |
endif;
|
47 |
$relatedPostsHtml .= '<div class="media-body">';
|
48 |
$relatedPostsHtml .= '<div class="media-heading"><a href="'.get_the_permalink().'">'.get_the_title().'</a></div>';
|
49 |
-
$relatedPostsHtml .= '<div><i class="fa fa-calendar"></i> '.get_the_date().'</div>';
|
50 |
$relatedPostsHtml .= '</div>';
|
51 |
$relatedPostsHtml .= '</div>';
|
52 |
$relatedPostsHtml .= '</div>'."\n";
|
53 |
$i++;
|
54 |
-
} // foreach
|
55 |
$relatedPostsHtml .= '</div>';
|
56 |
$relatedPostsHtml .= '</aside><!-- [ /.relatedPosts ] -->';
|
57 |
$content .= $relatedPostsHtml;
|
1 |
<?php
|
2 |
+
add_filter( 'the_content', 'vkExUnit_add_relatedPosts' , 800 , 1 );
|
3 |
|
4 |
function vkExUnit_add_relatedPosts($content){
|
5 |
|
46 |
endif;
|
47 |
$relatedPostsHtml .= '<div class="media-body">';
|
48 |
$relatedPostsHtml .= '<div class="media-heading"><a href="'.get_the_permalink().'">'.get_the_title().'</a></div>';
|
49 |
+
$relatedPostsHtml .= '<div><i class="fa fa-calendar"></i> '.get_the_date().'</div>';
|
50 |
$relatedPostsHtml .= '</div>';
|
51 |
$relatedPostsHtml .= '</div>';
|
52 |
$relatedPostsHtml .= '</div>'."\n";
|
53 |
$i++;
|
54 |
+
} // foreach
|
55 |
$relatedPostsHtml .= '</div>';
|
56 |
$relatedPostsHtml .= '</aside><!-- [ /.relatedPosts ] -->';
|
57 |
$content .= $relatedPostsHtml;
|
plugins/sitemap_page/sitemap_page.php
CHANGED
@@ -14,8 +14,8 @@ function vkExUnit_sitemap_options_init() {
|
|
14 |
add_option( 'vkExUnit_sitemap_options', vkExUnit_get_sitemap_options_default() );
|
15 |
|
16 |
vkExUnit_register_setting(
|
17 |
-
__('HTML Sitemap', 'vkExUnit'),
|
18 |
-
'vkExUnit_sitemap_options',
|
19 |
'vkExUnit_sitemap_options_validate',
|
20 |
'vkExUnit_add_sitemap_options_page'
|
21 |
);
|
@@ -55,12 +55,12 @@ function vkExUnit_sitemap_options_validate( $input ) {
|
|
55 |
/*-------------------------------------------*/
|
56 |
/* insert sitemap page
|
57 |
/*-------------------------------------------*/
|
58 |
-
add_filter('the_content', 'show_sitemap', 7);
|
59 |
|
60 |
function show_sitemap($content) {
|
61 |
global $post;
|
62 |
$show_sitemap_value = get_post_meta( $post->ID, 'vkExUnit_sitemap' );
|
63 |
-
|
64 |
if(!empty($show_sitemap_value) && $show_sitemap_value[0] === 'active'){
|
65 |
return $content.do_shortcode('[vkExUnit_sitemap]');
|
66 |
}
|
@@ -78,7 +78,7 @@ function vkExUnit_sitemap($atts) {
|
|
78 |
$exclude = esc_attr($options['excludeId']);
|
79 |
$exclude = str_replace(',',',',$exclude);
|
80 |
$exclude = mb_convert_kana($exclude, 'kvrn');
|
81 |
-
|
82 |
/*-------------------------------------------*/
|
83 |
/* pages
|
84 |
/*-------------------------------------------*/
|
@@ -101,24 +101,24 @@ function vkExUnit_sitemap($atts) {
|
|
101 |
|
102 |
$page_for_posts = vkExUnit_get_page_for_posts();
|
103 |
$allPostTypes = get_post_types(Array('public' => true));
|
104 |
-
|
105 |
foreach ($allPostTypes as $postType) {
|
106 |
-
$post_type_object = get_post_type_object($postType);
|
107 |
-
|
108 |
if($post_type_object){
|
109 |
$postType_name = esc_html($post_type_object->name);
|
110 |
-
// post-type is post
|
111 |
if($postType_name === 'post'){
|
112 |
-
|
113 |
$postTypes = array('post');
|
114 |
$taxonomies = get_taxonomies();
|
115 |
// Loop all post types
|
116 |
foreach ($postTypes as $key => $postType) {
|
117 |
-
|
118 |
$sitemap_html .= '<div class="sectionBox">'.PHP_EOL;
|
119 |
$post_type_object = get_post_type_object($postType);
|
120 |
if($post_type_object){
|
121 |
-
|
122 |
// Post type name
|
123 |
if ( $postType == 'post' && $page_for_posts['post_top_use'] ){
|
124 |
$postTypeName = $page_for_posts['post_top_name'];
|
@@ -128,12 +128,12 @@ function vkExUnit_sitemap($atts) {
|
|
128 |
$postTypeTopUrl = home_url().'/?post_type='.$postType;
|
129 |
}
|
130 |
$sitemap_html .= '<h4><a href="'.$postTypeTopUrl.'">'.esc_html($postTypeName).'</a></h4>'.PHP_EOL;
|
131 |
-
|
132 |
-
|
133 |
// Loop for all taxonomies
|
134 |
foreach ($taxonomies as $key => $taxonomy) {
|
135 |
$taxonomy_info = get_taxonomy( $taxonomy );
|
136 |
-
|
137 |
// Get tax related post type
|
138 |
$taxonomy_postType = $taxonomy_info->object_type[0];
|
139 |
if ( $taxonomy_postType == $postType && ( $taxonomy_info->name != 'post_format')){
|
@@ -152,14 +152,14 @@ function vkExUnit_sitemap($atts) {
|
|
152 |
}
|
153 |
} // end if($post_type_object)
|
154 |
} // end foreach ($postTypes as $key => $postType)
|
155 |
-
} // end post-type is post
|
156 |
// not page_type and post_type
|
157 |
else if($postType_name !== 'page' && $postType_name !== 'attachment'){
|
158 |
$customPost_url = home_url().'/?post_type='.$postType_name;
|
159 |
$sitemap_html .= '<h4><a href="'.$customPost_url.'">'.$post_type_object->labels->name.'</a></h4>'.PHP_EOL;
|
160 |
-
|
161 |
$termNames = get_object_taxonomies($postType_name);
|
162 |
-
|
163 |
foreach ($termNames as $termName) {
|
164 |
$termDate = get_taxonomy( $termName );
|
165 |
$sitemap_html .= '<h5>'.$termDate->label.'</h5>'.PHP_EOL;
|
@@ -172,11 +172,11 @@ function vkExUnit_sitemap($atts) {
|
|
172 |
'show_option_none' => ''
|
173 |
);
|
174 |
$sitemap_html .= wp_list_categories( $args );
|
175 |
-
$sitemap_html .= '</ul>'.PHP_EOL;
|
176 |
}
|
177 |
-
} // end not page_type and post_type
|
178 |
} // end if($post_type_object)
|
179 |
-
} // end foreach ($allPostTypes as $postType)
|
180 |
$sitemap_html .= '</div><!-- [ /.sectionBox ] -->'.PHP_EOL;
|
181 |
$sitemap_html .= '</div><!-- [ /.sitemap-col ] -->'.PHP_EOL;
|
182 |
$sitemap_html .= '</div><!-- [ /.sitemap ] -->'.PHP_EOL;
|
14 |
add_option( 'vkExUnit_sitemap_options', vkExUnit_get_sitemap_options_default() );
|
15 |
|
16 |
vkExUnit_register_setting(
|
17 |
+
__('HTML Sitemap', 'vkExUnit'),
|
18 |
+
'vkExUnit_sitemap_options',
|
19 |
'vkExUnit_sitemap_options_validate',
|
20 |
'vkExUnit_add_sitemap_options_page'
|
21 |
);
|
55 |
/*-------------------------------------------*/
|
56 |
/* insert sitemap page
|
57 |
/*-------------------------------------------*/
|
58 |
+
add_filter('the_content', 'show_sitemap', 7, 1);
|
59 |
|
60 |
function show_sitemap($content) {
|
61 |
global $post;
|
62 |
$show_sitemap_value = get_post_meta( $post->ID, 'vkExUnit_sitemap' );
|
63 |
+
|
64 |
if(!empty($show_sitemap_value) && $show_sitemap_value[0] === 'active'){
|
65 |
return $content.do_shortcode('[vkExUnit_sitemap]');
|
66 |
}
|
78 |
$exclude = esc_attr($options['excludeId']);
|
79 |
$exclude = str_replace(',',',',$exclude);
|
80 |
$exclude = mb_convert_kana($exclude, 'kvrn');
|
81 |
+
|
82 |
/*-------------------------------------------*/
|
83 |
/* pages
|
84 |
/*-------------------------------------------*/
|
101 |
|
102 |
$page_for_posts = vkExUnit_get_page_for_posts();
|
103 |
$allPostTypes = get_post_types(Array('public' => true));
|
104 |
+
|
105 |
foreach ($allPostTypes as $postType) {
|
106 |
+
$post_type_object = get_post_type_object($postType);
|
107 |
+
|
108 |
if($post_type_object){
|
109 |
$postType_name = esc_html($post_type_object->name);
|
110 |
+
// post-type is post
|
111 |
if($postType_name === 'post'){
|
112 |
+
|
113 |
$postTypes = array('post');
|
114 |
$taxonomies = get_taxonomies();
|
115 |
// Loop all post types
|
116 |
foreach ($postTypes as $key => $postType) {
|
117 |
+
|
118 |
$sitemap_html .= '<div class="sectionBox">'.PHP_EOL;
|
119 |
$post_type_object = get_post_type_object($postType);
|
120 |
if($post_type_object){
|
121 |
+
|
122 |
// Post type name
|
123 |
if ( $postType == 'post' && $page_for_posts['post_top_use'] ){
|
124 |
$postTypeName = $page_for_posts['post_top_name'];
|
128 |
$postTypeTopUrl = home_url().'/?post_type='.$postType;
|
129 |
}
|
130 |
$sitemap_html .= '<h4><a href="'.$postTypeTopUrl.'">'.esc_html($postTypeName).'</a></h4>'.PHP_EOL;
|
131 |
+
|
132 |
+
|
133 |
// Loop for all taxonomies
|
134 |
foreach ($taxonomies as $key => $taxonomy) {
|
135 |
$taxonomy_info = get_taxonomy( $taxonomy );
|
136 |
+
|
137 |
// Get tax related post type
|
138 |
$taxonomy_postType = $taxonomy_info->object_type[0];
|
139 |
if ( $taxonomy_postType == $postType && ( $taxonomy_info->name != 'post_format')){
|
152 |
}
|
153 |
} // end if($post_type_object)
|
154 |
} // end foreach ($postTypes as $key => $postType)
|
155 |
+
} // end post-type is post
|
156 |
// not page_type and post_type
|
157 |
else if($postType_name !== 'page' && $postType_name !== 'attachment'){
|
158 |
$customPost_url = home_url().'/?post_type='.$postType_name;
|
159 |
$sitemap_html .= '<h4><a href="'.$customPost_url.'">'.$post_type_object->labels->name.'</a></h4>'.PHP_EOL;
|
160 |
+
|
161 |
$termNames = get_object_taxonomies($postType_name);
|
162 |
+
|
163 |
foreach ($termNames as $termName) {
|
164 |
$termDate = get_taxonomy( $termName );
|
165 |
$sitemap_html .= '<h5>'.$termDate->label.'</h5>'.PHP_EOL;
|
172 |
'show_option_none' => ''
|
173 |
);
|
174 |
$sitemap_html .= wp_list_categories( $args );
|
175 |
+
$sitemap_html .= '</ul>'.PHP_EOL;
|
176 |
}
|
177 |
+
} // end not page_type and post_type
|
178 |
} // end if($post_type_object)
|
179 |
+
} // end foreach ($allPostTypes as $postType)
|
180 |
$sitemap_html .= '</div><!-- [ /.sectionBox ] -->'.PHP_EOL;
|
181 |
$sitemap_html .= '</div><!-- [ /.sitemap-col ] -->'.PHP_EOL;
|
182 |
$sitemap_html .= '</div><!-- [ /.sitemap ] -->'.PHP_EOL;
|
plugins/sns/function_snsBtns.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
add_filter( 'the_content', 'vkExUnit_add_snsBtns');
|
4 |
// is_single()
|
5 |
|
6 |
function vkExUnit_add_snsBtns($content){
|
1 |
<?php
|
2 |
|
3 |
+
add_filter( 'the_content', 'vkExUnit_add_snsBtns', 200, 1);
|
4 |
// is_single()
|
5 |
|
6 |
function vkExUnit_add_snsBtns($content){
|
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.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -41,6 +41,7 @@ Many features can be stopped individually.
|
|
41 |
* Print meta description tag
|
42 |
* Rewrite the title tag
|
43 |
* Insert Related Posts
|
|
|
44 |
* Insert Child page List to page
|
45 |
* Insert Auto HTML Site Map
|
46 |
* Automatic Eye Catch insert
|
@@ -68,6 +69,9 @@ e.g.
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
71 |
= 2.0.0 =
|
72 |
* [ Add functions ] Insert Ads to contents.
|
73 |
* [ Add functions ] New PR Blocks Widget.
|
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.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
41 |
* Print meta description tag
|
42 |
* Rewrite the title tag
|
43 |
* Insert Related Posts
|
44 |
+
* Insert Call to action
|
45 |
* Insert Child page List to page
|
46 |
* Insert Auto HTML Site Map
|
47 |
* Automatic Eye Catch insert
|
69 |
|
70 |
== Changelog ==
|
71 |
|
72 |
+
= 2.1.0 =
|
73 |
+
* [ Add functions ] Insert CTA to contents.
|
74 |
+
|
75 |
= 2.0.0 =
|
76 |
* [ Add functions ] Insert Ads to contents.
|
77 |
* [ Add functions ] New PR Blocks Widget.
|
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.0
|
7 |
Author: Vektor,Inc.
|
8 |
Author URI: http://vektor-inc.co.jp
|
9 |
License: GPL2
|
@@ -134,10 +134,18 @@ if ( vkExUnit_package_is_enable( 'sitemap_page' ) )
|
|
134 |
if ( isset($options['active_contact_section']) && $options['active_contact_section'] )
|
135 |
require vkExUnit_get_directory() . '/plugins/contact_section.php';
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
if ( isset($options['active_insert_ads']) && $options['active_insert_ads'] )
|
138 |
require vkExUnit_get_directory() . '/plugins/insert_ads.php';
|
139 |
|
140 |
|
|
|
141 |
/*-------------------------------------------*/
|
142 |
/* Add vkExUnit css
|
143 |
/*-------------------------------------------*/
|
@@ -148,7 +156,7 @@ function vkExUnit_print_css(){
|
|
148 |
if ( isset($options['active_bootstrap']) && $options['active_bootstrap'] ) {
|
149 |
wp_enqueue_style('vkExUnit_common_style', plugins_url('', __FILE__).'/css/style_in_bs.css', array(), '20150708', 'all');
|
150 |
} else {
|
151 |
-
wp_enqueue_style('vkExUnit_common_style', plugins_url('', __FILE__).'/css/style.css', array(), '20150708', 'all');
|
152 |
}
|
153 |
}
|
154 |
/*-------------------------------------------*/
|
@@ -198,8 +206,8 @@ function vkExUnit_admin_enq(){
|
|
198 |
/* 管理画面_admin_head JavaScriptのデバッグコンソールにhook_suffixの値を出力
|
199 |
/*-------------------------------------------*/
|
200 |
|
201 |
-
// add_action("admin_head", '
|
202 |
-
// function
|
203 |
// global $hook_suffix;
|
204 |
// if (is_user_logged_in()) {
|
205 |
// $str = "<script type=\"text/javascript\">console.log('%s')</script>";
|
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.0
|
7 |
Author: Vektor,Inc.
|
8 |
Author URI: http://vektor-inc.co.jp
|
9 |
License: GPL2
|
134 |
if ( isset($options['active_contact_section']) && $options['active_contact_section'] )
|
135 |
require vkExUnit_get_directory() . '/plugins/contact_section.php';
|
136 |
|
137 |
+
// // page custom field
|
138 |
+
// if ( isset($options['active_childPageIndex']) && $options['active_childPageIndex'] || isset($options['active_sitemap_page']) && $options['active_sitemap_page'] )
|
139 |
+
// require vkExUnit_get_directory() . '/plugins/page_custom_field.php';
|
140 |
+
|
141 |
+
if ( isset($options['active_call_to_action']) && $options['active_call_to_action'] )
|
142 |
+
require vkExUnit_get_directory() . '/plugins/call_to_action/call_to_action.php';
|
143 |
+
|
144 |
if ( isset($options['active_insert_ads']) && $options['active_insert_ads'] )
|
145 |
require vkExUnit_get_directory() . '/plugins/insert_ads.php';
|
146 |
|
147 |
|
148 |
+
|
149 |
/*-------------------------------------------*/
|
150 |
/* Add vkExUnit css
|
151 |
/*-------------------------------------------*/
|
156 |
if ( isset($options['active_bootstrap']) && $options['active_bootstrap'] ) {
|
157 |
wp_enqueue_style('vkExUnit_common_style', plugins_url('', __FILE__).'/css/style_in_bs.css', array(), '20150708', 'all');
|
158 |
} else {
|
159 |
+
wp_enqueue_style('vkExUnit_common_style', plugins_url('', __FILE__).'/css/style.css', array(), '20150708', 'all');
|
160 |
}
|
161 |
}
|
162 |
/*-------------------------------------------*/
|
206 |
/* 管理画面_admin_head JavaScriptのデバッグコンソールにhook_suffixの値を出力
|
207 |
/*-------------------------------------------*/
|
208 |
|
209 |
+
// add_action("admin_head", 'vkExUnit_suffix2console');
|
210 |
+
// function vkExUnit_suffix2console() {
|
211 |
// global $hook_suffix;
|
212 |
// if (is_user_logged_in()) {
|
213 |
// $str = "<script type=\"text/javascript\">console.log('%s')</script>";
|
vkExUnit_admin.php
CHANGED
@@ -237,18 +237,25 @@
|
|
237 |
<td class='plugin-title'>
|
238 |
<strong><?php echo $package['title'] ?></strong>
|
239 |
|
240 |
-
<?php
|
|
|
|
|
|
|
|
|
241 |
foreach($package['attr'] as $att):
|
242 |
if( !$att['enable_only'] || isset($options['active_'.$package['name']]) && $options['active_'.$package['name']]):
|
243 |
?>
|
|
|
244 |
<span>
|
245 |
<a href="<?php echo ( $att['url'] )? $att['url'] : admin_url().'admin.php?page=vkExUnit_main_setting' ;?>">
|
246 |
<?php echo $att['name']; ?>
|
247 |
</a></span>
|
|
|
248 |
<?php
|
249 |
endif;
|
|
|
250 |
endforeach;
|
251 |
-
endif; ?>
|
252 |
</td>
|
253 |
<td class='column-description desc'>
|
254 |
<div class='plugin-description'>
|
237 |
<td class='plugin-title'>
|
238 |
<strong><?php echo $package['title'] ?></strong>
|
239 |
|
240 |
+
<?php
|
241 |
+
$count = '';
|
242 |
+
$count = count($package['attr']);
|
243 |
+
$i = 0;
|
244 |
+
if($count):
|
245 |
foreach($package['attr'] as $att):
|
246 |
if( !$att['enable_only'] || isset($options['active_'.$package['name']]) && $options['active_'.$package['name']]):
|
247 |
?>
|
248 |
+
<?php echo ( $count > 1 && $i >= 1) ? ' | ':''; ?>
|
249 |
<span>
|
250 |
<a href="<?php echo ( $att['url'] )? $att['url'] : admin_url().'admin.php?page=vkExUnit_main_setting' ;?>">
|
251 |
<?php echo $att['name']; ?>
|
252 |
</a></span>
|
253 |
+
|
254 |
<?php
|
255 |
endif;
|
256 |
+
$i++;
|
257 |
endforeach;
|
258 |
+
endif; //if($count): ?>
|
259 |
</td>
|
260 |
<td class='column-description desc'>
|
261 |
<div class='plugin-description'>
|