VK All in One Expansion Unit - Version 2.3.0

Version Description

  • [ bug fix ] WordPress4.3 bug fix.
  • [ Add functions ] Delete db options.
Download this release

Release Info

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

Code changes from version 2.2.5 to 2.3.0

_scss/style.scss CHANGED
@@ -435,57 +435,57 @@ html { font-size: inherit; } /* reset bootstrap */
435
/*-------------------------------------------*/
436
/* CTA Section
437
/*-------------------------------------------*/
438
- .vkExUnit_cta { display:block; overflow:hidden;background-color: #efefef;margin-top:$section_margin;margin-bottom:$section_margin;
439
- h1.vkExUnit_cta_title { display:block; overflow:hidden;background-color: #333;font-size:22px;color:#fff;padding: 12px 20px 10px;line-height: 1.2em; }
440
- .vkExUnit_cta_body { display:block; overflow:hidden; padding:1.5em 2em 2em;line-height: 170%; }
441
- .vkExUnit_cta_body_image { margin-bottom:1.5em; }
442
- .vkExUnit_cta_body_image img { max-width: 250px; }
443
- .vkExUnit_cta_body_image_right { float:right;margin-left:30px; }
444
- .vkExUnit_cta_body_image_left { float:left;margin-right:30px; }
445
- .vkExUnit_cta_body_image_center { display:block; overflow:hidden;text-align: center;
446
img { display:block; margin:0 auto 15px;max-width: 100%; }
447
}
448
449
- .vkExUnit_cta_body_txt { display:block; overflow:hidden; }
450
- .vkExUnit_cta_body_link { clear:both;margin-top:1.5em; }
451
}
452
@media (max-width: 767px){
453
- .vkExUnit_cta {
454
- .vkExUnit_cta_body_image_right,
455
- .vkExUnit_cta_body_image_left { float:none;margin:auto; }
456
- .vkExUnit_cta_body_image img { display:block; margin:0 auto 1.5em;max-width: 100%; }
457
}
458
}
459
/*-------------------------------------------*/
460
/* Contact Section
461
/*-------------------------------------------*/
462
- .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; }
463
- .vkExUnit_contact_txt_catch,
464
- .vkExUnit_contact_txt_tel,
465
- .vkExUnit_contact_txt_time { display:block; overflow:hidden; }
466
- .vkExUnit_contact_txt_catch,
467
- .vkExUnit_contact_txt_time { line-height: 128.6%;font-size: 14px; }
468
- .vkExUnit_contact_txt_tel { font-size: 28px;line-height: 110%;color:$color_key;padding-top:4px;}
469
- .vkExUnit_contact_bt_txt:before { font-family:FontAwesome;content:"\f003";margin-right:7px; }
470
- .vkExUnit_contact_bt_txt:after { font-family:FontAwesome;content:"\f18e";margin-left:7px; }
471
- .vkExUnit_contact_bt_subTxt { display:block; overflow:hidden;font-size:14px; }
472
473
@media (max-width: 767px){
474
- .vkExUnit_contact_txt { text-align: center; }
475
- .vkExUnit_contact_bt { display: block; }
476
}
477
@media (min-width: 768px){
478
- p.vkExUnit_contact_txt { margin-bottom:0; }
479
- .vkExUnit_contact_txt { float:left; }
480
- .vkExUnit_contact_bt { float:right; }
481
}
482
483
484
/*-------------------------------------------*/
485
/* Insert Ads
486
/*-------------------------------------------*/
487
- .vkExUnit_insertAds { margin-top:1em;margin-bottom:1.5em; }
488
@media (max-width: 971px){
489
- .vkExUnit_insertAds { margin-bottom:0.5em; }
490
- .vkExUnit_insertAds .col-md-6 {margin-bottom:1em; }
491
}
435
/*-------------------------------------------*/
436
/* CTA Section
437
/*-------------------------------------------*/
438
+ .veu_cta { display:block; overflow:hidden;background-color: #efefef;margin-top:$section_margin;margin-bottom:$section_margin;
439
+ h1.veu_cta_title { display:block; overflow:hidden;background-color: #333;font-size:22px;color:#fff;padding: 12px 20px 10px;line-height: 1.2em; }
440
+ .veu_cta_body { display:block; overflow:hidden; padding:1.5em 2em 2em;line-height: 170%; }
441
+ .veu_cta_body_image { margin-bottom:1.5em; }
442
+ .veu_cta_body_image img { max-width: 250px; }
443
+ .veu_cta_body_image_right { float:right;margin-left:30px; }
444
+ .veu_cta_body_image_left { float:left;margin-right:30px; }
445
+ .veu_cta_body_image_center { display:block; overflow:hidden;text-align: center;
446
img { display:block; margin:0 auto 15px;max-width: 100%; }
447
}
448
449
+ .veu_cta_body_txt { display:block; overflow:hidden; }
450
+ .veu_cta_body_link { clear:both;margin-top:1.5em; }
451
}
452
@media (max-width: 767px){
453
+ .veu_cta {
454
+ .veu_cta_body_image_right,
455
+ .veu_cta_body_image_left { float:none;margin:auto; }
456
+ .veu_cta_body_image img { display:block; margin:0 auto 1.5em;max-width: 100%; }
457
}
458
}
459
/*-------------------------------------------*/
460
/* Contact Section
461
/*-------------------------------------------*/
462
+ .veu_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; }
463
+ .veu_contact_txt_catch,
464
+ .veu_contact_txt_tel,
465
+ .veu_contact_txt_time { display:block; overflow:hidden; }
466
+ .veu_contact_txt_catch,
467
+ .veu_contact_txt_time { line-height: 128.6%;font-size: 14px; }
468
+ .veu_contact_txt_tel { font-size: 28px;line-height: 110%;padding-top:4px;}
469
+ .veu_contact_bt_txt:before { font-family:FontAwesome;content:"\f003";margin-right:7px; }
470
+ .veu_contact_bt_txt:after { font-family:FontAwesome;content:"\f18e";margin-left:7px; }
471
+ .veu_contact_bt_subTxt { display:block; overflow:hidden;font-size:14px; }
472
473
@media (max-width: 767px){
474
+ .veu_contact_txt { text-align: center; }
475
+ .veu_contact_bt { display: block; }
476
}
477
@media (min-width: 768px){
478
+ p.veu_contact_txt { margin-bottom:0; }
479
+ .veu_contact_txt { float:left; }
480
+ .veu_contact_bt { float:right; }
481
}
482
483
484
/*-------------------------------------------*/
485
/* Insert Ads
486
/*-------------------------------------------*/
487
+ .veu_insertAds { margin-top:1em;margin-bottom:1.5em; }
488
@media (max-width: 971px){
489
+ .veu_insertAds { margin-bottom:0.5em; }
490
+ .veu_insertAds .col-md-6 {margin-bottom:1em; }
491
}
common_init.php CHANGED
@@ -34,6 +34,8 @@ function vkExUnit_get_common_options_default() {
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
}
@@ -56,5 +58,6 @@ function vkExUnit_common_options_validate( $input ) {
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
}
34
'active_ga' => true,
35
'active_relatedPosts' => true,
36
'active_call_to_action' => false,
37
+ 'delete_options_at_deactivate' => false,
38
+ 'delete_options_with_bizvektors_common' => true,
39
);
40
return apply_filters( 'vkExUnit_common_options_default', $default_options );
41
}
58
$output['active_otherWidgets'] = (isset($input['active_otherWidgets'])) ? true:false;
59
$output['active_css_customize'] = (isset($input['active_css_customize'])) ? true:false;
60
$output['active_call_to_action'] = (isset($input['active_call_to_action'])) ? true:false;
61
+ $output['delete_options_at_deactivate'] = (isset($input['delete_options_at_deactivate'])) ? true:false;
62
return apply_filters( 'vkExUnit_common_options_validate', $output, $input, $defaults );
63
}
css/style.css CHANGED
@@ -273,46 +273,46 @@ html { font-size: inherit; }
273
/*-------------------------------------------*/
274
/* CTA Section
275
/*-------------------------------------------*/
276
- .vkExUnit_cta { display: block; overflow: hidden; background-color: #efefef; margin-top: 20px; margin-bottom: 20px; }
277
- .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; }
278
- .vkExUnit_cta .vkExUnit_cta_body { display: block; overflow: hidden; padding: 1.5em 2em 2em; line-height: 170%; }
279
- .vkExUnit_cta .vkExUnit_cta_body_image { margin-bottom: 1.5em; }
280
- .vkExUnit_cta .vkExUnit_cta_body_image img { max-width: 250px; }
281
- .vkExUnit_cta .vkExUnit_cta_body_image_right { float: right; margin-left: 30px; }
282
- .vkExUnit_cta .vkExUnit_cta_body_image_left { float: left; margin-right: 30px; }
283
- .vkExUnit_cta .vkExUnit_cta_body_image_center { display: block; overflow: hidden; text-align: center; }
284
- .vkExUnit_cta .vkExUnit_cta_body_image_center img { display: block; margin: 0 auto 15px; max-width: 100%; }
285
- .vkExUnit_cta .vkExUnit_cta_body_txt { display: block; overflow: hidden; }
286
- .vkExUnit_cta .vkExUnit_cta_body_link { clear: both; margin-top: 1.5em; }
287
-
288
- @media (max-width: 767px) { .vkExUnit_cta .vkExUnit_cta_body_image_right, .vkExUnit_cta .vkExUnit_cta_body_image_left { float: none; margin: auto; }
289
- .vkExUnit_cta .vkExUnit_cta_body_image img { display: block; margin: 0 auto 1.5em; max-width: 100%; } }
290
/*-------------------------------------------*/
291
/* Contact Section
292
/*-------------------------------------------*/
293
- .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; }
294
295
- .vkExUnit_contact_txt_catch, .vkExUnit_contact_txt_tel, .vkExUnit_contact_txt_time { display: block; overflow: hidden; }
296
297
- .vkExUnit_contact_txt_catch, .vkExUnit_contact_txt_time { line-height: 128.6%; font-size: 14px; }
298
299
- .vkExUnit_contact_txt_tel { font-size: 28px; line-height: 110%; color: #337ab7; padding-top: 4px; }
300
301
- .vkExUnit_contact_bt_txt:before { font-family: FontAwesome; content: "\f003"; margin-right: 7px; }
302
303
- .vkExUnit_contact_bt_txt:after { font-family: FontAwesome; content: "\f18e"; margin-left: 7px; }
304
305
- .vkExUnit_contact_bt_subTxt { display: block; overflow: hidden; font-size: 14px; }
306
307
- @media (max-width: 767px) { .vkExUnit_contact_txt { text-align: center; }
308
- .vkExUnit_contact_bt { display: block; } }
309
- @media (min-width: 768px) { p.vkExUnit_contact_txt { margin-bottom: 0; }
310
- .vkExUnit_contact_txt { float: left; }
311
- .vkExUnit_contact_bt { float: right; } }
312
/*-------------------------------------------*/
313
/* Insert Ads
314
/*-------------------------------------------*/
315
- .vkExUnit_insertAds { margin-top: 1em; margin-bottom: 1.5em; }
316
317
- @media (max-width: 971px) { .vkExUnit_insertAds { margin-bottom: 0.5em; }
318
- .vkExUnit_insertAds .col-md-6 { margin-bottom: 1em; } }
273
/*-------------------------------------------*/
274
/* CTA Section
275
/*-------------------------------------------*/
276
+ .veu_cta { display: block; overflow: hidden; background-color: #efefef; margin-top: 20px; margin-bottom: 20px; }
277
+ .veu_cta h1.veu_cta_title { display: block; overflow: hidden; background-color: #333; font-size: 22px; color: #fff; padding: 12px 20px 10px; line-height: 1.2em; }
278
+ .veu_cta .veu_cta_body { display: block; overflow: hidden; padding: 1.5em 2em 2em; line-height: 170%; }
279
+ .veu_cta .veu_cta_body_image { margin-bottom: 1.5em; }
280
+ .veu_cta .veu_cta_body_image img { max-width: 250px; }
281
+ .veu_cta .veu_cta_body_image_right { float: right; margin-left: 30px; }
282
+ .veu_cta .veu_cta_body_image_left { float: left; margin-right: 30px; }
283
+ .veu_cta .veu_cta_body_image_center { display: block; overflow: hidden; text-align: center; }
284
+ .veu_cta .veu_cta_body_image_center img { display: block; margin: 0 auto 15px; max-width: 100%; }
285
+ .veu_cta .veu_cta_body_txt { display: block; overflow: hidden; }
286
+ .veu_cta .veu_cta_body_link { clear: both; margin-top: 1.5em; }
287
+
288
+ @media (max-width: 767px) { .veu_cta .veu_cta_body_image_right, .veu_cta .veu_cta_body_image_left { float: none; margin: auto; }
289
+ .veu_cta .veu_cta_body_image img { display: block; margin: 0 auto 1.5em; max-width: 100%; } }
290
/*-------------------------------------------*/
291
/* Contact Section
292
/*-------------------------------------------*/
293
+ .veu_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; }
294
295
+ .veu_contact_txt_catch, .veu_contact_txt_tel, .veu_contact_txt_time { display: block; overflow: hidden; }
296
297
+ .veu_contact_txt_catch, .veu_contact_txt_time { line-height: 128.6%; font-size: 14px; }
298
299
+ .veu_contact_txt_tel { font-size: 28px; line-height: 110%; padding-top: 4px; }
300
301
+ .veu_contact_bt_txt:before { font-family: FontAwesome; content: "\f003"; margin-right: 7px; }
302
303
+ .veu_contact_bt_txt:after { font-family: FontAwesome; content: "\f18e"; margin-left: 7px; }
304
305
+ .veu_contact_bt_subTxt { display: block; overflow: hidden; font-size: 14px; }
306
307
+ @media (max-width: 767px) { .veu_contact_txt { text-align: center; }
308
+ .veu_contact_bt { display: block; } }
309
+ @media (min-width: 768px) { p.veu_contact_txt { margin-bottom: 0; }
310
+ .veu_contact_txt { float: left; }
311
+ .veu_contact_bt { float: right; } }
312
/*-------------------------------------------*/
313
/* Insert Ads
314
/*-------------------------------------------*/
315
+ .veu_insertAds { margin-top: 1em; margin-bottom: 1.5em; }
316
317
+ @media (max-width: 971px) { .veu_insertAds { margin-bottom: 0.5em; }
318
+ .veu_insertAds .col-md-6 { margin-bottom: 1em; } }
css/style_in_bs.css CHANGED
@@ -853,46 +853,46 @@ html { font-size: inherit; }
853
/*-------------------------------------------*/
854
/* CTA Section
855
/*-------------------------------------------*/
856
- .vkExUnit_cta { display: block; overflow: hidden; background-color: #efefef; margin-top: 20px; margin-bottom: 20px; }
857
- .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; }
858
- .vkExUnit_cta .vkExUnit_cta_body { display: block; overflow: hidden; padding: 1.5em 2em 2em; line-height: 170%; }
859
- .vkExUnit_cta .vkExUnit_cta_body_image { margin-bottom: 1.5em; }
860
- .vkExUnit_cta .vkExUnit_cta_body_image img { max-width: 250px; }
861
- .vkExUnit_cta .vkExUnit_cta_body_image_right { float: right; margin-left: 30px; }
862
- .vkExUnit_cta .vkExUnit_cta_body_image_left { float: left; margin-right: 30px; }
863
- .vkExUnit_cta .vkExUnit_cta_body_image_center { display: block; overflow: hidden; text-align: center; }
864
- .vkExUnit_cta .vkExUnit_cta_body_image_center img { display: block; margin: 0 auto 15px; max-width: 100%; }
865
- .vkExUnit_cta .vkExUnit_cta_body_txt { display: block; overflow: hidden; }
866
- .vkExUnit_cta .vkExUnit_cta_body_link { clear: both; margin-top: 1.5em; }
867
-
868
- @media (max-width: 767px) { .vkExUnit_cta .vkExUnit_cta_body_image_right, .vkExUnit_cta .vkExUnit_cta_body_image_left { float: none; margin: auto; }
869
- .vkExUnit_cta .vkExUnit_cta_body_image img { display: block; margin: 0 auto 1.5em; max-width: 100%; } }
870
/*-------------------------------------------*/
871
/* Contact Section
872
/*-------------------------------------------*/
873
- .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; }
874
875
- .vkExUnit_contact_txt_catch, .vkExUnit_contact_txt_tel, .vkExUnit_contact_txt_time { display: block; overflow: hidden; }
876
877
- .vkExUnit_contact_txt_catch, .vkExUnit_contact_txt_time { line-height: 128.6%; font-size: 14px; }
878
879
- .vkExUnit_contact_txt_tel { font-size: 28px; line-height: 110%; color: #337ab7; padding-top: 4px; }
880
881
- .vkExUnit_contact_bt_txt:before { font-family: FontAwesome; content: "\f003"; margin-right: 7px; }
882
883
- .vkExUnit_contact_bt_txt:after { font-family: FontAwesome; content: "\f18e"; margin-left: 7px; }
884
885
- .vkExUnit_contact_bt_subTxt { display: block; overflow: hidden; font-size: 14px; }
886
887
- @media (max-width: 767px) { .vkExUnit_contact_txt { text-align: center; }
888
- .vkExUnit_contact_bt { display: block; } }
889
- @media (min-width: 768px) { p.vkExUnit_contact_txt { margin-bottom: 0; }
890
- .vkExUnit_contact_txt { float: left; }
891
- .vkExUnit_contact_bt { float: right; } }
892
/*-------------------------------------------*/
893
/* Insert Ads
894
/*-------------------------------------------*/
895
- .vkExUnit_insertAds { margin-top: 1em; margin-bottom: 1.5em; }
896
897
- @media (max-width: 971px) { .vkExUnit_insertAds { margin-bottom: 0.5em; }
898
- .vkExUnit_insertAds .col-md-6 { margin-bottom: 1em; } }
853
/*-------------------------------------------*/
854
/* CTA Section
855
/*-------------------------------------------*/
856
+ .veu_cta { display: block; overflow: hidden; background-color: #efefef; margin-top: 20px; margin-bottom: 20px; }
857
+ .veu_cta h1.veu_cta_title { display: block; overflow: hidden; background-color: #333; font-size: 22px; color: #fff; padding: 12px 20px 10px; line-height: 1.2em; }
858
+ .veu_cta .veu_cta_body { display: block; overflow: hidden; padding: 1.5em 2em 2em; line-height: 170%; }
859
+ .veu_cta .veu_cta_body_image { margin-bottom: 1.5em; }
860
+ .veu_cta .veu_cta_body_image img { max-width: 250px; }
861
+ .veu_cta .veu_cta_body_image_right { float: right; margin-left: 30px; }
862
+ .veu_cta .veu_cta_body_image_left { float: left; margin-right: 30px; }
863
+ .veu_cta .veu_cta_body_image_center { display: block; overflow: hidden; text-align: center; }
864
+ .veu_cta .veu_cta_body_image_center img { display: block; margin: 0 auto 15px; max-width: 100%; }
865
+ .veu_cta .veu_cta_body_txt { display: block; overflow: hidden; }
866
+ .veu_cta .veu_cta_body_link { clear: both; margin-top: 1.5em; }
867
+
868
+ @media (max-width: 767px) { .veu_cta .veu_cta_body_image_right, .veu_cta .veu_cta_body_image_left { float: none; margin: auto; }
869
+ .veu_cta .veu_cta_body_image img { display: block; margin: 0 auto 1.5em; max-width: 100%; } }
870
/*-------------------------------------------*/
871
/* Contact Section
872
/*-------------------------------------------*/
873
+ .veu_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; }
874
875
+ .veu_contact_txt_catch, .veu_contact_txt_tel, .veu_contact_txt_time { display: block; overflow: hidden; }
876
877
+ .veu_contact_txt_catch, .veu_contact_txt_time { line-height: 128.6%; font-size: 14px; }
878
879
+ .veu_contact_txt_tel { font-size: 28px; line-height: 110%; padding-top: 4px; }
880
881
+ .veu_contact_bt_txt:before { font-family: FontAwesome; content: "\f003"; margin-right: 7px; }
882
883
+ .veu_contact_bt_txt:after { font-family: FontAwesome; content: "\f18e"; margin-left: 7px; }
884
885
+ .veu_contact_bt_subTxt { display: block; overflow: hidden; font-size: 14px; }
886
887
+ @media (max-width: 767px) { .veu_contact_txt { text-align: center; }
888
+ .veu_contact_bt { display: block; } }
889
+ @media (min-width: 768px) { p.veu_contact_txt { margin-bottom: 0; }
890
+ .veu_contact_txt { float: left; }
891
+ .veu_contact_bt { float: right; } }
892
/*-------------------------------------------*/
893
/* Insert Ads
894
/*-------------------------------------------*/
895
+ .veu_insertAds { margin-top: 1em; margin-bottom: 1.5em; }
896
897
+ @media (max-width: 971px) { .veu_insertAds { margin-bottom: 0.5em; }
898
+ .veu_insertAds .col-md-6 { margin-bottom: 1em; } }
images/lightning_bnr_en.jpg CHANGED
Binary file
packages.php CHANGED
@@ -17,6 +17,26 @@ $required_packages[] = array(
17
);
18
19
*/
20
/*-------------------------------------------*/
21
/* Contact Section
22
/*-------------------------------------------*/
@@ -36,6 +56,127 @@ $required_packages[] = array(
36
/*-------------------------------------------*/
37
38
39
40
/*-------------------------------------------*/
41
/* Contact Section
17
);
18
19
*/
20
+
21
+
22
+ /*-------------------------------------------*/
23
+ /* bootstrap
24
+ /*-------------------------------------------*/
25
+ /* fontawesome
26
+ /*-------------------------------------------*/
27
+ /* icon
28
+ /*-------------------------------------------*/
29
+ /* wpTitle
30
+ /*-------------------------------------------*/
31
+ /* metaDescription
32
+ /*-------------------------------------------*/
33
+ /* metaKeyword
34
+ /*-------------------------------------------*/
35
+ /* sns
36
+ /*-------------------------------------------*/
37
+ /* ga
38
+ /*-------------------------------------------*/
39
+ /* relatedPosts
40
/*-------------------------------------------*/
41
/* Contact Section
42
/*-------------------------------------------*/
56
/*-------------------------------------------*/
57
58
59
+ /*-------------------------------------------*/
60
+ /* bootstrap
61
+ /*-------------------------------------------*/
62
+ $required_packages[] = array(
63
+ 'name' => 'bootstrap',
64
+ 'title' => __('Print Bootstrap css and js', 'vkExUnit'),
65
+ 'description' => __('If your using theme has already including Bootstrap, you deactivate this item.', 'vkExUnit'),
66
+ 'default' => false
67
+ );
68
+
69
+ /*-------------------------------------------*/
70
+ /* fontawesome
71
+ /*-------------------------------------------*/
72
+ $required_packages[] = array(
73
+ 'name' => 'fontawesome',
74
+ 'title' => __('Print link fontawesome', 'vkExUnit'),
75
+ 'description' => __('Print fontawesome link tag to html head.', 'vkExUnit'),
76
+ 'default' => false
77
+ );
78
+
79
+ /*-------------------------------------------*/
80
+ /* icon
81
+ /*-------------------------------------------*/
82
+ $required_packages[] = array(
83
+ 'name' => 'icon',
84
+ 'title' => __('Favicon setting', 'vkExUnit'),
85
+ 'description' => __('About favicon.', 'vkExUnit'),
86
+ 'default' => true
87
+ );
88
+
89
+ /*-------------------------------------------*/
90
+ /* wpTitle
91
+ /*-------------------------------------------*/
92
+ $required_packages[] = array(
93
+ 'name' => 'wpTitle',
94
+ 'title' => __('Rewrite the title tag', 'vkExUnit'),
95
+ 'description' => __('Print is rewritten by its own rules to html head.', 'vkExUnit'),
96
+ 'default' => true
97
+ );
98
+
99
+ /*-------------------------------------------*/
100
+ /* metaDescription
101
+ /*-------------------------------------------*/
102
+ $required_packages[] = array(
103
+ 'name' => 'metaDescription',
104
+ 'title' => __('Print meta description', 'vkExUnit'),
105
+ 'description' => __('Print meta description to html head.', 'vkExUnit'),
106
+ 'default' => true
107
+ );
108
+
109
+ /*-------------------------------------------*/
110
+ /* sns
111
+ /*-------------------------------------------*/
112
+ $deskSns = array();
113
+ $settingPage = '<a href="'.admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options">'.__('Main setting page').'</a>';
114
+ $deskSns[] = '<ul>';
115
+ $deskSns[] = '<li>'.__('Print og tags to html head.','vkExUnit').'</li>';
116
+ $deskSns[] = '<li>'.__('Print twitter card tags to html head.','vkExUnit').'</li>';
117
+ $deskSns[] = '<li>'.__('Print social bookmark buttons.','vkExUnit').'</li>';
118
+ $deskSns[] = '<li>'.__('Facebook Page Plugin widget.','vkExUnit').'</li>';
119
+ $deskSns[] = '<li>'.__('Print Follow me box to content bottom.','vkExUnit').'</li>';
120
+ $deskSns[] = '</ul>';
121
+ $deskSns[] = '<p>'.sprintf( __( '* You can stop the function separately from the %s.', 'vkExUnit' ), $settingPage ).'</p>';
122
+
123
+ $required_packages[] = array(
124
+ 'name' => 'sns',
125
+ 'title' => __('Social media cooperation', 'vkExUnit'),
126
+ 'description' => $deskSns,
127
+ 'attr' => array(
128
+ array(
129
+ 'name'=>__('Setting','vkExUnit'),
130
+ 'url'=> admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options',
131
+ 'enable_only' => 1,
132
+ )
133
+ ),
134
+ 'default' => true
135
+ );
136
+
137
+ /*-------------------------------------------*/
138
+ /* metaKeyword
139
+ /*-------------------------------------------*/
140
+ $required_packages[] = array(
141
+ 'name' => 'metaKeyword',
142
+ 'title' => __('Print meta Keyword', 'vkExUnit'),
143
+ 'description' => __('Print meta Keyword to html head.', 'vkExUnit'),
144
+ 'attr' => array(
145
+ array(
146
+ 'name'=>__('Setting','vkExUnit'),
147
+ 'url'=> admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_common_keywords',
148
+ 'enable_only' => 1,
149
+ )
150
+ ),
151
+ 'default' => true
152
+ );
153
+
154
+ /*-------------------------------------------*/
155
+ /* ga
156
+ /*-------------------------------------------*/
157
+ $required_packages[] = array(
158
+ 'name' => 'ga',
159
+ 'title' => 'Google Analytics',
160
+ 'description' => __('Print Google Analytics tracking code.', 'vkExUnit'),
161
+ 'attr' => array(
162
+ array(
163
+ 'name'=>__('Setting','vkExUnit'),
164
+ 'url'=> admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_ga_options',
165
+ 'enable_only' => 1,
166
+ )
167
+ ),
168
+ 'default' => true
169
+ );
170
+
171
+ /*-------------------------------------------*/
172
+ /* relatedPosts
173
+ /*-------------------------------------------*/
174
+ $required_packages[] = array(
175
+ 'name' => 'relatedPosts',
176
+ 'title' => __('Related posts', 'vkExUnit'),
177
+ 'description' => __('Print Related posts lists to post content bottom.', 'vkExUnit'),
178
+ 'default' => true
179
+ );
180
181
/*-------------------------------------------*/
182
/* Contact Section
plugins/call_to_action/view.actionbox.php CHANGED
@@ -11,22 +11,22 @@ $image_position = get_post_meta( $id, 'vkExUnit_cta_img_position', true);
11
if(!$image_position){ $image_position = 'right'; }
12
13
$content = '';
14
- $content .= '<section class="vkExUnit_cta">';
15
- $content .= '<h1 class="vkExUnit_cta_title">' . $post->post_title . '</h1>';
16
- $content .= '<div class="vkExUnit_cta_body">';
17
if( $imgid ){
18
$cta_image = wp_get_attachment_image_src( $imgid, 'full' );
19
- $content .= '<div class="vkExUnit_cta_body_image vkExUnit_cta_body_image_'.$image_position.'">';
20
$content .= ( $url )? '<a href="'.$url.'" target="_blank">':'';
21
$content .= '<img src="'. $cta_image[0] .'" />';
22
$content .= ( $url )? '</a>':'';
23
$content .= '</div>';
24
}
25
- $content .= '<div class="vkExUnit_cta_body_txt '.(($imgid)? 'image_exist' : 'image_no').'">';
26
$content .= $text;
27
$content .= '</div>';
28
if( $url && $btn_text ){
29
- $content .= '<div class="vkExUnit_cta_body_link">';
30
$content .= '<a href="'.$url.'" class="btn btn-primary btn-block btn-lg" target="_blank">';
31
$content .= $btn_text;
32
$content .= '</a>';
11
if(!$image_position){ $image_position = 'right'; }
12
13
$content = '';
14
+ $content .= '<section class="veu_cta">';
15
+ $content .= '<h1 class="veu_cta_title">' . $post->post_title . '</h1>';
16
+ $content .= '<div class="veu_cta_body">';
17
if( $imgid ){
18
$cta_image = wp_get_attachment_image_src( $imgid, 'full' );
19
+ $content .= '<div class="veu_cta_body_image vkExUnit_cta_body_image_'.$image_position.'">';
20
$content .= ( $url )? '<a href="'.$url.'" target="_blank">':'';
21
$content .= '<img src="'. $cta_image[0] .'" />';
22
$content .= ( $url )? '</a>':'';
23
$content .= '</div>';
24
}
25
+ $content .= '<div class="veu_cta_body_txt '.(($imgid)? 'image_exist' : 'image_no').'">';
26
$content .= $text;
27
$content .= '</div>';
28
if( $url && $btn_text ){
29
+ $content .= '<div class="veu_cta_body_link">';
30
$content .= '<a href="'.$url.'" class="btn btn-primary btn-block btn-lg" target="_blank">';
31
$content .= $btn_text;
32
$content .= '</a>';
plugins/contact_section.php CHANGED
@@ -188,23 +188,23 @@ class vExUnit_Contact {
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>';
@@ -212,7 +212,7 @@ class vExUnit_Contact {
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;
188
public function render_contact_html(){
189
$options = self::get_option();
190
$cont = '';
191
+ $cont .= '<section class="veu_contact">';
192
193
+ $cont .= '<p class="veu_contact_txt">';
194
+ $cont .= '<span class="veu_contact_txt_catch">'.nl2br(esc_textarea($options['contact_txt'])).'</span>';
195
+ $cont .= '<span class="veu_contact_txt_tel veu_color_txt_key">'.$options['tel_number'].'</span>';
196
+ $cont .= '<span class="veu_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 veu_contact_bt">';
204
+ $cont .= '<span class="veu_contact_bt_txt">'.$options['button_text'].'</span>';
205
206
if ( isset($options['button_text_small']) && $options['button_text_small'] ){
207
+ $cont .= '<span class="veu_contact_bt_subTxt">'.$options['button_text_small'].'</span>';
208
}
209
210
$cont .= '</a>';
212
213
$cont .= '</section>';
214
if ( current_user_can('edit_theme_options') ) {
215
+ $cont .= '<div class="veu_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;
plugins/insert_ads.php CHANGED
@@ -70,7 +70,7 @@ class vExUnit_Ads {
70
if( isset($ads[1]) && $ads[1] ) $class="col-md-6";
71
72
$content = '';
73
- $content .= '<aside class="row vkExUnit_insertAds '.$area.'">';
74
foreach($ads as $ad){
75
if(!$ad) break;
76
70
if( isset($ads[1]) && $ads[1] ) $class="col-md-6";
71
72
$content = '';
73
+ $content .= '<aside class="row veu_insertAds '.$area.'">';
74
foreach($ads as $ad){
75
if(!$ad) break;
76
plugins/other_widget/widget-3pr-area.php CHANGED
@@ -4,15 +4,17 @@
4
/* PR area widget
5
/*-------------------------------------------*/
6
class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
7
-
8
- function WP_Widget_vkExUnit_3PR_area() {
9
- $widget_ops = array(
10
- 'classname' => 'WP_Widget_vkExUnit_3PR_area',
11
- 'description' => __( "Displays a 3PR area", 'vkExUnit' ),
12
- );
13
$widget_name = vkExUnit_get_short_name(). '_' . __( "3PR area", 'vkExUnit' );
14
- $this->WP_Widget('WP_Widget_vkExUnit_3PR_area', $widget_name, $widget_ops);
15
}
16
function form($instance){
17
$defaults = array(
18
'label_1' => __( '3PR area1 title', 'vkExUnit' ),
4
/* PR area widget
5
/*-------------------------------------------*/
6
class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
7
+
8
+ function __construct() {
9
$widget_name = vkExUnit_get_short_name(). '_' . __( "3PR area", 'vkExUnit' );
10
+
11
+ parent::__construct(
12
+ 'WP_Widget_vkExUnit_3PR_area',
13
+ $widget_name,
14
+ array( 'description' => __( "Displays a 3PR area", 'vkExUnit' ) )
15
+ );
16
}
17
+
18
function form($instance){
19
$defaults = array(
20
'label_1' => __( '3PR area1 title', 'vkExUnit' ),
plugins/other_widget/widget-archives.php CHANGED
@@ -5,14 +5,14 @@
5
/*-------------------------------------------*/
6
class WP_Widget_VK_archive_list extends WP_Widget {
7
// ウィジェット定義
8
- function WP_Widget_VK_archive_list() {
9
- global $bizvektor_works_unit;
10
- $widget_ops = array(
11
- 'classname' => 'WP_Widget_VK_archive_list',
12
- 'description' => __( 'Displays a list of archives. You can choose the post type and also to display archives by month or by year.' , 'vkExUnit' ),
13
- );
14
$widget_name = 'VK_' . __( 'archive list', 'vkExUnit' );
15
- $this->WP_Widget('WP_Widget_VK_archive_list', $widget_name, $widget_ops);
16
}
17
18
function widget($args, $instance) {
5
/*-------------------------------------------*/
6
class WP_Widget_VK_archive_list extends WP_Widget {
7
// ウィジェット定義
8
+ function __construct() {
9
$widget_name = 'VK_' . __( 'archive list', 'vkExUnit' );
10
+
11
+ parent::__construct(
12
+ 'WP_Widget_VK_archive_list',
13
+ $widget_name,
14
+ array( 'description' => __( 'Displays a list of archives. You can choose the post type and also to display archives by month or by year.' , 'vkExUnit' ) )
15
+ );
16
}
17
18
function widget($args, $instance) {
plugins/other_widget/widget-new-posts.php CHANGED
@@ -5,13 +5,14 @@
5
/*-------------------------------------------*/
6
class WP_Widget_vkExUnit_post_list extends WP_Widget {
7
8
- function WP_Widget_vkExUnit_post_list() {
9
- $widget_ops = array(
10
- 'classname' => 'WP_Widget_vkExUnit_post_list',
11
- 'description' => __( 'Displays a list of your most recent posts', 'vkExUnit' ),
12
- );
13
$widget_name = vkExUnit_get_short_name(). '_' . __( 'Recent Posts', 'vkExUnit' );
14
- $this->WP_Widget('vkExUnit_post_list', $widget_name, $widget_ops);
15
}
16
17
function widget($args, $instance) {
5
/*-------------------------------------------*/
6
class WP_Widget_vkExUnit_post_list extends WP_Widget {
7
8
+ function __construct() {
9
$widget_name = vkExUnit_get_short_name(). '_' . __( 'Recent Posts', 'vkExUnit' );
10
+
11
+ parent::__construct(
12
+ 'vkExUnit_post_list',
13
+ $widget_name,
14
+ array( 'description' => __( 'Displays a list of your most recent posts', 'vkExUnit' ) )
15
+ );
16
}
17
18
function widget($args, $instance) {
plugins/other_widget/widget-page.php CHANGED
@@ -4,16 +4,17 @@
4
/* page widget
5
/*-------------------------------------------*/
6
class WP_Widget_vkExUnit_widget_page extends WP_Widget {
7
-
8
- function WP_Widget_vkExUnit_widget_page() {
9
- $widget_ops = array(
10
- 'classname' => 'WP_Widget_vkExUnit_widget_page',
11
- 'description' => __( 'Displays a page contents to widget.', 'vkExUnit' ),
12
- );
13
$widget_name = vkExUnit_get_short_name() . '_' . __( 'page content to widget', 'vkExUnit' );
14
- $this->WP_Widget('pudge', $widget_name, $widget_ops);
15
}
16
-
17
function widget($args, $instance){
18
global $is_pagewidget;
19
$is_pagewidget = true;
4
/* page widget
5
/*-------------------------------------------*/
6
class WP_Widget_vkExUnit_widget_page extends WP_Widget {
7
+
8
+ function __construct() {
9
$widget_name = vkExUnit_get_short_name() . '_' . __( 'page content to widget', 'vkExUnit' );
10
+
11
+ parent::__construct(
12
+ 'pudge',
13
+ $widget_name,
14
+ array( 'description' => __( 'Displays a page contents to widget.', 'vkExUnit' ) )
15
+ );
16
}
17
+
18
function widget($args, $instance){
19
global $is_pagewidget;
20
$is_pagewidget = true;
plugins/other_widget/widget-pr-blocks.php CHANGED
@@ -3,15 +3,17 @@
3
/* VK PR Blocks
4
/*-------------------------------------------*/
5
class WP_Widget_vkExUnit_PR_Blocks extends WP_Widget {
6
-
7
- function WP_Widget_vkExUnit_PR_Blocks() {
8
- $widget_ops = array(
9
- 'classname' => 'WP_Widget_vkExUnit_PR_Blocks',
10
- 'description' => __( "Displays a circle image or icon font for pr blocks", 'vkExUnit' ),
11
- );
12
$widget_name = vkExUnit_get_short_name(). '_' . __( "PR Blocks", 'vkExUnit' );
13
- $this->WP_Widget('WP_Widget_vkExUnit_PR_Blocks', $widget_name, $widget_ops);
14
}
15
function form($instance){
16
$defaults = array(
17
'block_count' => 3,
3
/* VK PR Blocks
4
/*-------------------------------------------*/
5
class WP_Widget_vkExUnit_PR_Blocks extends WP_Widget {
6
+
7
+ function __construct() {
8
$widget_name = vkExUnit_get_short_name(). '_' . __( "PR Blocks", 'vkExUnit' );
9
+
10
+ parent::__construct(
11
+ 'WP_Widget_vkExUnit_PR_Blocks',
12
+ $widget_name,
13
+ array( 'description' => __( 'Displays a circle image or icon font for pr blocks', 'vkExUnit' ) )
14
+ );
15
}
16
+
17
function form($instance){
18
$defaults = array(
19
'block_count' => 3,
plugins/other_widget/widget-profile.php CHANGED
@@ -4,16 +4,17 @@
4
/* Side Profile widget
5
/*-------------------------------------------*/
6
class WP_Widget_vkExUnit_profile extends WP_Widget {
7
-
8
- function WP_Widget_vkExUnit_profile() {
9
- $widget_ops = array(
10
- 'classname' => 'WP_Widget_vkExUnit_profile',
11
- 'description' => __( "Displays a your profile", 'vkExUnit' ),
12
- );
13
$widget_name = vkExUnit_get_short_name(). '_' . __( "Profile", 'vkExUnit' );
14
- $this->WP_Widget('WP_Widget_vkExUnit_profile', $widget_name, $widget_ops);
15
}
16
-
17
function form($instance){
18
$defaults = array(
19
'label' => __('Profile', 'vkExUnit' ),
4
/* Side Profile widget
5
/*-------------------------------------------*/
6
class WP_Widget_vkExUnit_profile extends WP_Widget {
7
+
8
+ function __construct() {
9
$widget_name = vkExUnit_get_short_name(). '_' . __( "Profile", 'vkExUnit' );
10
+
11
+ parent::__construct(
12
+ 'WP_Widget_vkExUnit_profile',
13
+ $widget_name,
14
+ array( 'description' => __( 'Displays a your profile', 'biz-vektor' ) )
15
+ );
16
}
17
+
18
function form($instance){
19
$defaults = array(
20
'label' => __('Profile', 'vkExUnit' ),
plugins/other_widget/widget-taxonomies.php CHANGED
@@ -5,14 +5,14 @@
5
/*-------------------------------------------*/
6
class WP_Widget_VK_taxonomy_list extends WP_Widget {
7
// ウィジェット定義
8
- function WP_Widget_VK_taxonomy_list() {
9
- global $bizvektor_works_unit;
10
- $widget_ops = array(
11
- 'classname' => 'WP_Widget_VK_taxonomy_list',
12
- 'description' => __( 'Displays a categories and custom taxonomies list.', 'vkExUnit' ),
13
- );
14
$widget_name = vkExUnit_get_short_name().'_'. __( 'Categories/Custom taxonomies list', 'vkExUnit' );
15
- $this->WP_Widget('WP_Widget_VK_taxonomy_list', $widget_name, $widget_ops);
16
}
17
18
5
/*-------------------------------------------*/
6
class WP_Widget_VK_taxonomy_list extends WP_Widget {
7
// ウィジェット定義
8
+ function __construct() {
9
$widget_name = vkExUnit_get_short_name().'_'. __( 'Categories/Custom taxonomies list', 'vkExUnit' );
10
+
11
+ parent::__construct(
12
+ 'WP_Widget_VK_taxonomy_list',
13
+ $widget_name,
14
+ array( 'description' => __( 'Displays a categories and custom taxonomies list.', 'vkExUnit' ) )
15
+ );
16
}
17
18
plugins/sns/function_fbPagePlugin.php CHANGED
@@ -4,13 +4,14 @@
4
/*-------------------------------------------*/
5
class WP_Widget_vkExUnit_fbPagePlugin extends WP_Widget {
6
7
- function WP_Widget_vkExUnit_fbPagePlugin() {
8
- $widget_ops = array(
9
- 'classname' => 'WP_Widget_vkExUnit_fbPagePlugin',
10
- 'description' => __( 'Displays a Facebook Page Plugin', 'vkExUnit' ),
11
- );
12
$widget_name = vkExUnit_get_short_name(). '_' . 'FB Page Plugin';
13
- $this->WP_Widget('vkExUnit_fbPagePlugin', $widget_name, $widget_ops);
14
}
15
16
function widget($args, $instance) {
4
/*-------------------------------------------*/
5
class WP_Widget_vkExUnit_fbPagePlugin extends WP_Widget {
6
7
+ function __construct() {
8
$widget_name = vkExUnit_get_short_name(). '_' . 'FB Page Plugin';
9
+
10
+ parent::__construct(
11
+ 'vkExUnit_fbPagePlugin',
12
+ $widget_name,
13
+ array( 'description' => __( "Displays a Facebook Page Plugin", 'vkExUnit' ) )
14
+ );
15
}
16
17
function widget($args, $instance) {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: vektor-inc,bizvektor,kurudrive,nc30,SaoriMiyazaki
3
Donate link:
4
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
Requires at least: 4.2
6
- Tested up to: 4.2
7
- Stable tag: 2.2.5
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -69,6 +69,10 @@ e.g.
69
70
== Changelog ==
71
72
= 2.2.0 =
73
* [ Desgin tuning ] Change Child Page Index design.
74
3
Donate link:
4
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
Requires at least: 4.2
6
+ Tested up to: 4.3
7
+ Stable tag: 2.3.0
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
69
70
== Changelog ==
71
72
+ = 2.3.0 =
73
+ * [ bug fix ] WordPress4.3 bug fix.
74
+ * [ Add functions ] Delete db options.
75
+
76
= 2.2.0 =
77
* [ Desgin tuning ] Change Child Page Index design.
78
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.2.5
7
Author: Vektor,Inc.
8
Author URI: http://vektor-inc.co.jp
9
License: GPL2
@@ -41,8 +41,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
41
load_plugin_textdomain('vkExUnit', false, basename( dirname( __FILE__ ) ) . '/languages' );
42
43
44
- function vkExUnit_get_directory(){
45
- return $dirctory = dirname( __FILE__ );
46
}
47
48
function vkExUnit_get_directory_uri($path=''){
@@ -154,9 +154,9 @@ add_action('wp_enqueue_scripts','vkExUnit_print_css');
154
function vkExUnit_print_css(){
155
$options = vkExUnit_get_common_options();
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
/*-------------------------------------------*/
@@ -214,3 +214,13 @@ function vkExUnit_admin_enq(){
214
// printf($str, $hook_suffix);
215
// }
216
// }
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.3.0
7
Author: Vektor,Inc.
8
Author URI: http://vektor-inc.co.jp
9
License: GPL2
41
load_plugin_textdomain('vkExUnit', false, basename( dirname( __FILE__ ) ) . '/languages' );
42
43
44
+ function vkExUnit_get_directory($path=''){
45
+ return $dirctory = dirname( __FILE__ ) . $path;
46
}
47
48
function vkExUnit_get_directory_uri($path=''){
154
function vkExUnit_print_css(){
155
$options = vkExUnit_get_common_options();
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(), '20150819', 'all');
158
} else {
159
+ wp_enqueue_style('vkExUnit_common_style', plugins_url('', __FILE__).'/css/style.css', array(), '20150819', 'all');
160
}
161
}
162
/*-------------------------------------------*/
214
// printf($str, $hook_suffix);
215
// }
216
// }
217
+
218
+
219
+ if (function_exists('register_deactivation_hook')){
220
+ register_deactivation_hook(__FILE__, 'vkExUnit_uninstall_function');
221
+ }
222
+
223
+ function vkExUnit_uninstall_function()
224
+ {
225
+ include vkExUnit_get_directory( '/uninstaller.php' );
226
+ }
vkExUnit_admin.php CHANGED
@@ -18,209 +18,6 @@
18
</thead>
19
20
<tbody id="the-list">
21
-
22
- <!-- [ active_bootstrap ] -->
23
- <tr<?php echo (isset($options['active_bootstrap']) && $options['active_bootstrap'])? ' class="active"': ' class="inactive"'; ?>>
24
- <th scope='row' class='check-column'>
25
- <label class='screen-reader-text' for='checkbox_active_bootstrap' >
26
- <?php _e('Choose Print Bootstrap css', 'vkExUnit'); ?>
27
- </label>
28
- <input type="checkbox" name="vkExUnit_common_options[active_bootstrap]" id="checkbox_active_bootstrap" value="true" <?php echo (isset($options['active_bootstrap']) && $options['active_bootstrap'])? 'checked': ''; ?> />
29
- </th>
30
- <td class='plugin-title'>
31
- <strong><?php _e('Print Bootstrap css and js', 'vkExUnit'); ?></strong>
32
- </td>
33
- <td class='column-description desc'>
34
- <div class='plugin-description'>
35
- <p><?php _e('If your using theme has already including Bootstrap, you deactivate this item.','vkExUnit'); ?></p>
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'>
43
- <label class='screen-reader-text' for='checkbox_active_fontawesome' >
44
- <?php _e('Choose Print link fontawesome.', 'vkExUnit'); ?>
45
- </label>
46
- <input type="checkbox" name="vkExUnit_common_options[active_fontawesome]" id="checkbox_active_fontawesome" value="true" <?php echo (isset($options['active_fontawesome']) && $options['active_fontawesome'])? 'checked': ''; ?> />
47
- </th>
48
- <td class='plugin-title'>
49
- <strong><?php _e('Print link fontawesome.', 'vkExUnit'); ?></strong>
50
- </td>
51
- <td class='column-description desc'>
52
- <div class='plugin-description'>
53
- <p><?php _e('Print fontawesome link tag to html head.', 'vkExUnit'); ?></p>
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'>
61
- <label class='screen-reader-text' for='checkbox_active_icon' >
62
- <?php _e('Choose Print meta description.', 'vkExUnit'); ?>
63
- </label>
64
- <input type="checkbox" name="vkExUnit_common_options[active_icon]" id="checkbox_active_icon" value="true" <?php echo (isset($options['active_icon']) && $options['active_icon'])? 'checked': ''; ?> />
65
- </th>
66
- <td class='plugin-title'>
67
- <strong><?php _e('Favicon setting', 'vkExUnit'); ?></strong>
68
- </td>
69
- <td class='column-description desc'>
70
- <div class='plugin-description'>
71
- <p><?php _e('About favicon.', 'vkExUnit'); ?></p>
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'>
79
- <label class='screen-reader-text' for='checkbox_active_wpTitle' >
80
- <?php _e('Choose Rewrite the title tag', 'vkExUnit'); ?>
81
- </label>
82
- <input type="checkbox" name="vkExUnit_common_options[active_wpTitle]" id="checkbox_active_wpTitle" value="true" <?php echo (isset($options['active_wpTitle']) && $options['active_wpTitle'])? 'checked': ''; ?> />
83
- </th>
84
- <td class='plugin-title'>
85
- <strong><?php _e('Rewrite the title tag', 'vkExUnit'); ?></strong>
86
- </td>
87
- <td class='column-description desc'>
88
- <div class='plugin-description'>
89
- <p><?php _e('Print is rewritten by its own rules to html head.', 'vkExUnit'); ?></p>
90
- </div><!-- [ /.plugin-wpTitle ] -->
91
- </td>
92
- </tr>
93
-
94
- <!-- [ active_metaKeyword ] -->
95
- <tr<?php echo (isset($options['active_metaKeyword']) && $options['active_metaKeyword'])? ' class="active"': ' class="inactive"'; ?>>
96
- <th scope='row' class='check-column'>
97
- <label class='screen-reader-text' for='checkbox_active_metaKeyword' >
98
- <?php _e('Choose Print meta Keyword.', 'vkExUnit'); ?>
99
- </label>
100
- <input type="checkbox" name="vkExUnit_common_options[active_metaKeyword]" id="checkbox_active_metaKeyword" value="true" <?php echo (isset($options['active_metaKeyword']) && $options['active_metaKeyword'])? 'checked': ''; ?> />
101
- </th>
102
- <td class='plugin-title'>
103
- <strong><?php _e('Print meta Keyword', 'vkExUnit'); ?></strong>
104
-
105
- <?php if (isset($options['active_metaKeyword']) && $options['active_metaKeyword']) : ?>
106
- <div class="row-actions visible">
107
- <span class="0">
108
- <a href="<?php echo admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_common_keywords';?>">
109
- <?php _e('Setting','vkExUnit');?>
110
- </a></span>
111
- </div>
112
- <?php endif; ?>
113
-
114
- </td>
115
- <td class='column-Keyword desc'>
116
- <div class='plugin-Keyword'>
117
- <p><?php _e('Print meta Keyword to html head.', 'vkExUnit'); ?></p>
118
- </div><!-- [ /.plugin-Keyword ] -->
119
- </td>
120
- </tr>
121
-
122
- <!-- [ active_metaDescription ] -->
123
- <tr<?php echo (isset($options['active_metaDescription']) && $options['active_metaDescription'])? ' class="active"': ' class="inactive"'; ?>>
124
- <th scope='row' class='check-column'>
125
- <label class='screen-reader-text' for='checkbox_active_metaDescription' >
126
- <?php _e('Choose Print meta description.', 'vkExUnit'); ?>
127
- </label>
128
- <input type="checkbox" name="vkExUnit_common_options[active_metaDescription]" id="checkbox_active_metaDescription" value="true" <?php echo (isset($options['active_metaDescription']) && $options['active_metaDescription'])? 'checked': ''; ?> />
129
- </th>
130
- <td class='plugin-title'>
131
- <strong><?php _e('Print meta description', 'vkExUnit'); ?></strong>
132
- </td>
133
- <td class='column-description desc'>
134
- <div class='plugin-description'>
135
- <p><?php _e('Print meta description to html head.', 'vkExUnit'); ?></p>
136
- </div><!-- [ /.plugin-description ] -->
137
- </td>
138
- </tr>
139
-
140
- <!-- [ active_sns ] -->
141
- <tr<?php echo (isset($options['active_sns']) && $options['active_sns']) ? ' class="active"': ' class="inactive"'; ?>>
142
- <th scope='row' class='check-column'>
143
- <label class='screen-reader-text' for='checkbox_active_sns' >
144
- <?php _e('Choose Social media cooperation.', 'vkExUnit'); ?>
145
- </label>
146
- <input type="checkbox" name="vkExUnit_common_options[active_sns]" id="checkbox_active_sns" value="true" <?php echo (isset($options['active_sns']) && $options['active_sns'])? 'checked': ''; ?> />
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">
154
- <a href="<?php echo admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options';?>">
155
- <?php _e('Setting','vkExUnit');?>
156
- </a></span>
157
- </div>
158
- <?php endif; ?>
159
-
160
- </td>
161
- <td class='column-description desc'>
162
- <div class='plugin-description'>
163
- <ul>
164
- <li><?php _e('Print og tags to html head.','vkExUnit');?></li>
165
- <li><?php _e('Print twitter card tags to html head.','vkExUnit');?></li>
166
- <li><?php _e('Print social bookmark buttons.','vkExUnit');?></li>
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>
174
- </div><!-- [ /.plugin-description ] -->
175
- </td>
176
- </tr>
177
-
178
- <!-- [ active_ga ] -->
179
- <tr<?php echo (isset($options['active_ga']) && $options['active_ga'])? ' class="active"': ' class="inactive"'; ?>>
180
- <th scope='row' class='check-column'>
181
- <label class='screen-reader-text' for='checkbox_active_ga' >
182
- <?php _e('Choose Print Google Analytics tracking code.', 'vkExUnit'); ?>
183
- </label>
184
- <input type="checkbox" name="vkExUnit_common_options[active_ga]" id="checkbox_active_ga" value="true" <?php echo (isset($options['active_ga']) && $options['active_ga'])? 'checked': ''; ?> />
185
- </th>
186
- <td class='plugin-title'>
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');?>
194
- </a></span>
195
-
196
- <?php endif; ?>
197
-
198
- </td>
199
- <td class='column-description desc'>
200
- <div class='plugin-description'>
201
- <p><?php _e('Print Google Analytics tracking code.', 'vkExUnit'); ?></p>
202
- </div><!-- [ /.plugin-description ] -->
203
- </td>
204
- </tr>
205
-
206
- <!-- [ active_relatedPosts ] -->
207
- <tr<?php echo (isset($options['active_relatedPosts']) && $options['active_relatedPosts'])? ' class="active"': ' class="inactive"'; ?>>
208
- <th scope='row' class='check-column'>
209
- <label class='screen-reader-text' for='checkbox_active_relatedPosts' >
210
- <?php _e('Choose Related posts.', 'vkExUnit'); ?>
211
- </label>
212
- <input type="checkbox" name="vkExUnit_common_options[active_relatedPosts]" id="checkbox_active_relatedPosts" value="true" <?php echo (isset($options['active_relatedPosts']) && $options['active_relatedPosts'])? 'checked': ''; ?> />
213
- </th>
214
- <td class='plugin-title'>
215
- <strong><?php _e('Related posts', 'vkExUnit');?></strong>
216
- </td>
217
- <td class='column-description desc'>
218
- <div class='plugin-description'>
219
- <p><?php _e('Print Related posts lists to post content bottom.', 'vkExUnit'); ?></p>
220
- </div><!-- [ /.plugin-description ] -->
221
- </td>
222
- </tr>
223
-
224
<?php
225
226
@@ -282,6 +79,15 @@
282
</tfoot>
283
284
</table>
285
<?php submit_button(); ?>
286
</form>
287
</div><!-- [ /.adminMain ] -->
18
</thead>
19
20
<tbody id="the-list">
21
<?php
22
23
79
</tfoot>
80
81
</table>
82
+
83
+ <button onclick="javascript:jQuery('#vkEx_extention').toggle(); return false;"><?php _e('Extension Setting', 'vkExUnit'); ?></button>
84
+ <table class="form-table" id="vkEx_extention" style="display:none;">
85
+ <tr>
86
+ <th><?php _e('Plugin setting options','vkExUnit'); ?></th>
87
+ <td><label><input type="checkbox" name="vkExUnit_common_options[delete_options_at_deactivate]" value="true" <?php echo (isset($options['delete_options_at_deactivate']) && $options['delete_options_at_deactivate'])? 'checked':''; ?> />
88
+ <?php _e('Delete myOptions when deactivate me.', 'vkExUnit'); ?></label></td>
89
+ </tr>
90
+ </table>
91
<?php submit_button(); ?>
92
</form>
93
</div><!-- [ /.adminMain ] -->