VK All in One Expansion Unit - Version 5.8.1

Version Description

Download this release

Release Info

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

Code changes from version 5.8.0 to 5.8.1

plugins/other_widget/js/admin-widget.js ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*-------------------------------------------*/
2
+ /* 画像登録処理
3
+ /*-------------------------------------------*/
4
+ /* 画像削除処理
5
+ /*-------------------------------------------*/
6
+
7
+ // 画像登録処理( ボタンに直接 onclick="javascript:vk_title_bg_image_addiditional(this);return false;" を記述している )
8
+ if ( vk_widget_image_add == undefined ){
9
+ var vk_widget_image_add = function(e){
10
+ // プレビュー画像を表示するdiv
11
+ var thumb_outer=jQuery(e).parent().children("._display");
12
+ // 画像IDを保存するinputタグ
13
+ var thumb_url=jQuery(e).parent().children("._form").children('._url')[0];
14
+ var thumb_alt=jQuery(e).parent().children("._form").children('._alt')[0];
15
+ var u=wp.media({library:{type:'image'},multiple:false}).on('select', function(e){
16
+ u.state().get('selection').each(function(file){
17
+ // プレビュー画像の枠の中の要素を一旦削除
18
+ thumb_outer.children().remove();
19
+ // ウィジェットフォームでのプレビュー画像を設定
20
+ // thumb_outer.append(jQuery('<img class="admin_widget_thumb">').attr('src',f.toJSON().url).attr('alt',f.toJSON().url));
21
+ thumb_outer.append('<img class="admin_widget_thumb" src="'+ file.toJSON().url +'" alt="'+ file.toJSON().title +'" />');
22
+ /*
23
+ file.toJSON().id で id
24
+ file.toJSON().title で titleが返せる
25
+ */
26
+ // hiddeになってるinputタグのvalueも変更
27
+ jQuery(thumb_url).val(file.toJSON().url);
28
+ jQuery(thumb_alt).val(file.toJSON().title).change();
29
+ });
30
+ });
31
+ u.open();
32
+ };
33
+ }
34
+
35
+ // 画像削除処理( ボタンに直接 onclick="javascript:vk_title_bg_image_delete(this);return false;" を記述している )
36
+ if ( vk_widget_image_del == undefined ){
37
+ var vk_widget_image_del = function(e){
38
+ // プレビュー画像を表示するdiv
39
+ var thumb_outer=jQuery(e).parent().children("._display");
40
+ // 画像IDを保存するinputタグ
41
+ var thumb_input=jQuery(e).parent().children("._form").children('._url')[0];
42
+ // プレビュー画像のimgタグを削除
43
+ thumb_outer.children().remove();
44
+ // w.attr("value","");
45
+ jQuery(e).parent().children("._form").children('._alt').attr("value","");
46
+ jQuery(e).parent().children("._form").children('._url').attr("value","").change();
47
+ };
48
+ }
plugins/sns/icons/demo-files/demo.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if (!('boxShadow' in document.body.style)) {
2
+ document.body.setAttribute('class', 'noBoxShadow');
3
+ }
4
+
5
+ document.body.addEventListener("click", function(e) {
6
+ var target = e.target;
7
+ if (target.tagName === "INPUT" &&
8
+ target.getAttribute('class').indexOf('liga') === -1) {
9
+ target.select();
10
+ }
11
+ });
12
+
13
+ (function() {
14
+ var fontSize = document.getElementById('fontSize'),
15
+ testDrive = document.getElementById('testDrive'),
16
+ testText = document.getElementById('testText');
17
+ function updateTest() {
18
+ testDrive.innerHTML = testText.value || String.fromCharCode(160);
19
+ if (window.icomoonLiga) {
20
+ window.icomoonLiga(testDrive);
21
+ }
22
+ }
23
+ function updateSize() {
24
+ testDrive.style.fontSize = fontSize.value + 'px';
25
+ }
26
+ fontSize.addEventListener('change', updateSize, false);
27
+ testText.addEventListener('input', updateTest, false);
28
+ testText.addEventListener('change', updateTest, false);
29
+ updateSize();
30
+ }());
plugins/sns/icons/demo.html ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>IcoMoon Demo</title>
6
+ <meta name="description" content="An Icon Font Generated By IcoMoon.io">
7
+ <meta name="viewport" content="width=device-width">
8
+ <link rel="stylesheet" href="demo-files/demo.css">
9
+ <link rel="stylesheet" href="style.css"></head>
10
+ <body>
11
+ <div class="bgc1 clearfix">
12
+ <h1 class="mhmm mvm"><span class="fgc1">Font Name:</span> vk_sns <small class="fgc1">(Glyphs:&nbsp;5)</small></h1>
13
+ </div>
14
+ <div class="clearfix mhl ptl">
15
+ <h1 class="mvm mtn bshadow fgc1">Grid Size: Unknown</h1>
16
+ <div class="glyph fs1">
17
+ <div class="clearfix bshadow0 pbs">
18
+ <span class="icon-vk_w_r_sns_twitter"></span><span class="mls"> icon-vk_w_r_sns_twitter</span>
19
+ </div>
20
+ <fieldset class="fs0 size1of1 clearfix">
21
+ <input type="text" readonly value="e600" class="unit size1of2" />
22
+ <input type="text" maxlength="1" readonly value="&#xe600;" class="unitRight size1of2 talign-right" />
23
+ </fieldset>
24
+ <div class="fs0 bshadow0 clearfix noLiga-true">
25
+ <span class="unit pvs fgc1">liga: </span>
26
+ <input type="text" readonly value="" class="liga unitRight" />
27
+ </div>
28
+ </div>
29
+ <div class="glyph fs1">
30
+ <div class="clearfix bshadow0 pbs">
31
+ <span class="icon-vk_w_r_sns_line"></span><span class="mls"> icon-vk_w_r_sns_line</span>
32
+ </div>
33
+ <fieldset class="fs0 size1of1 clearfix">
34
+ <input type="text" readonly value="e601" class="unit size1of2" />
35
+ <input type="text" maxlength="1" readonly value="&#xe601;" class="unitRight size1of2 talign-right" />
36
+ </fieldset>
37
+ <div class="fs0 bshadow0 clearfix noLiga-true">
38
+ <span class="unit pvs fgc1">liga: </span>
39
+ <input type="text" readonly value="" class="liga unitRight" />
40
+ </div>
41
+ </div>
42
+ <div class="glyph fs1">
43
+ <div class="clearfix bshadow0 pbs">
44
+ <span class="icon-vk_w_r_sns_hatena"></span><span class="mls"> icon-vk_w_r_sns_hatena</span>
45
+ </div>
46
+ <fieldset class="fs0 size1of1 clearfix">
47
+ <input type="text" readonly value="e602" class="unit size1of2" />
48
+ <input type="text" maxlength="1" readonly value="&#xe602;" class="unitRight size1of2 talign-right" />
49
+ </fieldset>
50
+ <div class="fs0 bshadow0 clearfix noLiga-true">
51
+ <span class="unit pvs fgc1">liga: </span>
52
+ <input type="text" readonly value="" class="liga unitRight" />
53
+ </div>
54
+ </div>
55
+ <div class="glyph fs1">
56
+ <div class="clearfix bshadow0 pbs">
57
+ <span class="icon-vk_w_r_sns_google"></span><span class="mls"> icon-vk_w_r_sns_google</span>
58
+ </div>
59
+ <fieldset class="fs0 size1of1 clearfix">
60
+ <input type="text" readonly value="e603" class="unit size1of2" />
61
+ <input type="text" maxlength="1" readonly value="&#xe603;" class="unitRight size1of2 talign-right" />
62
+ </fieldset>
63
+ <div class="fs0 bshadow0 clearfix noLiga-true">
64
+ <span class="unit pvs fgc1">liga: </span>
65
+ <input type="text" readonly value="" class="liga unitRight" />
66
+ </div>
67
+ </div>
68
+ <div class="glyph fs1">
69
+ <div class="clearfix bshadow0 pbs">
70
+ <span class="icon-vk_w_r_sns_fb"></span><span class="mls"> icon-vk_w_r_sns_fb</span>
71
+ </div>
72
+ <fieldset class="fs0 size1of1 clearfix">
73
+ <input type="text" readonly value="e604" class="unit size1of2" />
74
+ <input type="text" maxlength="1" readonly value="&#xe604;" class="unitRight size1of2 talign-right" />
75
+ </fieldset>
76
+ <div class="fs0 bshadow0 clearfix noLiga-true">
77
+ <span class="unit pvs fgc1">liga: </span>
78
+ <input type="text" readonly value="" class="liga unitRight" />
79
+ </div>
80
+ </div>
81
+ </div>
82
+
83
+ <!--[if gt IE 8]><!-->
84
+ <div class="mhl clearfix mbl">
85
+ <h1>Font Test Drive</h1>
86
+ <label>
87
+ Font Size: <input id="fontSize" type="number" class="textbox0 mbm"
88
+ min="8" value="48" />
89
+ px
90
+ </label>
91
+ <input id="testText" type="text" class="phl size1of1 mvl"
92
+ placeholder="Type some text to test..." value=""/>
93
+ </label>
94
+ <div id="testDrive" class="icon-">&nbsp;
95
+ </div>
96
+ </div>
97
+ <!--<![endif]-->
98
+ <div class="bgc1 clearfix">
99
+ <p class="mhl">Generated by <a href="http://icomoon.io/app">IcoMoon</a></p>
100
+ </div>
101
+
102
+ <script src="demo-files/demo.js"></script>
103
+ </body>
104
+ </html>
plugins/sns/icons/selection.json ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "IcoMoonType": "selection",
3
+ "icons": [
4
+ {
5
+ "icon": {
6
+ "paths": [
7
+ "M873.408 0h-722.816c-83.157 0-150.592 67.435-150.592 150.592v722.816c0 83.179 67.435 150.592 150.592 150.592h722.816c83.179 0 150.592-67.413 150.592-150.592v-722.816c0-83.157-67.413-150.592-150.592-150.592zM824.427 376.192c0.299 6.699 0.448 13.461 0.448 20.267 0 206.955-157.568 445.568-445.568 445.568-88.448 0-170.752-25.941-240.043-70.379 12.245 1.451 24.725 2.197 37.355 2.197 73.365 0 140.885-25.045 194.496-67.029-68.523-1.323-126.357-46.571-146.283-108.779 9.557 1.856 19.371 2.816 29.461 2.816 14.272 0 28.096-1.899 41.259-5.504-71.637-14.4-125.632-77.675-125.632-153.536 0-0.661 0-1.323 0-1.984 21.099 11.733 45.269 18.773 70.933 19.584-42.027-28.075-69.675-76.011-69.675-130.347 0-28.693 7.723-55.595 21.205-78.741 77.248 94.763 192.619 157.099 322.773 163.627-2.667-11.456-4.032-23.403-4.032-35.669 0-86.485 70.101-156.608 156.587-156.608 45.035 0 85.781 19.029 114.304 49.451 35.669-7.019 69.163-20.053 99.413-37.995-11.669 36.565-36.501 67.264-68.864 86.656 31.68-3.776 61.845-12.181 89.984-24.661-21.056 31.403-47.573 58.987-78.123 81.067z"
8
+ ],
9
+ "grid": 0,
10
+ "tags": [
11
+ "vk_w_r_sns_twitter"
12
+ ]
13
+ },
14
+ "properties": {
15
+ "order": 1,
16
+ "id": 4,
17
+ "prevSize": 32,
18
+ "code": 58880,
19
+ "name": "vk_w_r_sns_twitter",
20
+ "ligatures": ""
21
+ },
22
+ "setIdx": 0,
23
+ "iconIdx": 0
24
+ },
25
+ {
26
+ "icon": {
27
+ "paths": [
28
+ "M385.749 546.667c0 10.816-8.747 19.584-19.563 19.584h-74.069c-10.773 0-19.541-8.768-19.541-19.584v-148.139c0-10.773 8.768-19.541 19.541-19.541s19.541 8.768 19.541 19.541v128.619h54.528c10.816 0 19.563 8.747 19.563 19.52zM601.6 378.987c-10.773 0-19.563 8.768-19.563 19.541v91.691l-75.925-103.424c-3.648-4.907-9.515-7.829-15.616-7.829-2.091 0-4.181 0.363-6.187 0.981-8 2.667-13.376 10.133-13.376 18.56v148.139c0 10.816 8.789 19.584 19.563 19.584 10.795 0 19.563-8.768 19.563-19.584v-91.605l75.925 103.381c3.691 4.885 9.493 7.829 15.616 7.829 2.091 0 4.139-0.341 6.187-1.024 8.021-2.645 13.397-10.112 13.397-18.56v-148.139c-0.021-10.773-8.789-19.541-19.584-19.541zM423.275 378.987c-10.773 0-19.541 8.768-19.541 19.541v148.139c0 10.816 8.768 19.584 19.541 19.584s19.541-8.768 19.541-19.584v-148.139c0-10.773-8.768-19.541-19.541-19.541zM1024 150.592v722.816c0 83.179-67.413 150.592-150.592 150.592h-722.816c-83.157 0-150.592-67.413-150.592-150.592v-722.816c0-83.157 67.435-150.592 150.592-150.592h722.816c83.179 0 150.592 67.435 150.592 150.592zM884.949 466.987c0-166.805-167.253-302.549-372.821-302.549-205.525 0-372.821 135.723-372.821 302.549 0 149.547 132.651 274.837 311.808 298.539 12.139 2.581 28.651 8.021 32.853 18.368 3.755 9.387 2.453 24.171 1.195 33.707 0 0-4.352 26.261-5.291 31.936-1.664 9.408-7.509 36.821 32.299 20.075 39.765-16.789 214.677-126.485 292.885-216.469 54.037-59.221 79.893-119.381 79.893-186.155zM741.035 418.112c10.773 0 19.499-8.789 19.499-19.584 0-10.773-8.725-19.541-19.499-19.541h-74.133c-10.773 0-19.541 8.768-19.541 19.541 0 0.021 0 0.043 0 0.085v73.963c0 0.021 0 0.043 0 0.043 0 0.021 0 0.021 0 0.043v74.005c0 10.816 8.789 19.584 19.541 19.584h74.133c10.709 0 19.499-8.768 19.499-19.584 0-10.773-8.789-19.52-19.499-19.52h-54.528v-35.008h54.549c10.795 0 19.541-8.768 19.541-19.541 0-10.795-8.747-19.563-19.541-19.563h-54.549v-34.965l54.549 0.043z"
29
+ ],
30
+ "grid": 0,
31
+ "tags": [
32
+ "vk_w_r_sns_line"
33
+ ]
34
+ },
35
+ "properties": {
36
+ "order": 2,
37
+ "id": 3,
38
+ "prevSize": 32,
39
+ "code": 58881,
40
+ "name": "vk_w_r_sns_line",
41
+ "ligatures": ""
42
+ },
43
+ "setIdx": 0,
44
+ "iconIdx": 1
45
+ },
46
+ {
47
+ "icon": {
48
+ "paths": [
49
+ "M378.645 477.248h-24.363v-89.813h26.197c30.272 0 50.624 3.413 61.12 10.219 10.368 6.848 15.637 18.645 15.637 35.456 0 16.192-5.611 27.584-16.747 34.261-11.264 6.549-31.787 9.877-61.845 9.877zM459.712 568.427c-10.901-7.467-31.36-11.136-60.949-11.136h-44.48v97.792h42.645c28.821 0 49.365-3.605 61.291-10.944 12.032-7.253 17.984-19.392 17.984-36.267 0-18.923-5.44-32.043-16.491-39.445zM1024 150.592v722.816c0 83.179-67.413 150.592-150.592 150.592h-722.816c-83.157 0-150.592-67.413-150.592-150.592v-722.816c0-83.157 67.435-150.592 150.592-150.592h722.816c83.179 0 150.592 67.435 150.592 150.592zM662.635 587.285h105.387v-301.163h-105.387v301.163zM591.829 607.701c0-33.216-8.939-59.883-26.837-79.744-17.877-19.947-42.667-31.147-74.453-33.557 28.309-7.723 48.853-19.008 61.824-34.091 12.949-14.891 19.349-35.093 19.349-60.501 0-20.117-4.395-37.931-12.885-53.312-8.725-15.275-21.333-27.52-37.803-36.672-14.421-7.957-31.595-13.547-51.584-16.853-20.096-3.2-55.275-4.821-105.771-4.821h-122.731v447.637h126.464c50.816 0 87.445-1.771 109.845-5.184 22.379-3.499 41.173-9.429 56.384-17.536 18.795-9.92 33.131-24.043 43.115-42.197 10.091-18.155 15.083-39.168 15.083-63.168zM775.552 677.675c0-33.301-26.987-60.245-60.203-60.245-33.301 0-60.224 26.987-60.224 60.245 0 33.259 26.987 60.203 60.224 60.203 33.216 0 60.203-26.965 60.203-60.203z"
50
+ ],
51
+ "grid": 0,
52
+ "tags": [
53
+ "vk_w_r_sns_hatena"
54
+ ]
55
+ },
56
+ "properties": {
57
+ "order": 3,
58
+ "id": 2,
59
+ "prevSize": 32,
60
+ "code": 58882,
61
+ "name": "vk_w_r_sns_hatena",
62
+ "ligatures": ""
63
+ },
64
+ "setIdx": 0,
65
+ "iconIdx": 2
66
+ },
67
+ {
68
+ "icon": {
69
+ "paths": [
70
+ "M238.677 538.923c-127.936 0-180.459-147.904-180.459-247.872 0-38.891 3.904-79.125 29.184-110.507 23.851-29.845 65.451-49.259 104.171-49.259 123.413 0 185.728 167.189 185.728 274.688 0 21.525-10.944 63.616-38.848 95.573-24.512 27.904-62.613 37.376-99.776 37.376zM291.584 798.635c-11.861-1.515-19.307-1.515-34.091-1.515-13.44 0-93.781 3.008-156.267 23.936-21.333 7.787-69.739 26.24-100.48 67.328 7.509 76.117 71.723 135.616 149.845 135.616h329.749c2.219-7.573 6.4-12.16 6.229-26.965-0.832-76.267-81.877-117.739-194.987-198.4zM835.413 538.923h-80.853v-190.293h-188.651v-79.189h188.651v-188.651h80.853v188.651h188.587v-118.848c0-83.157-67.413-150.592-150.592-150.592h-722.816c-83.157 0-150.592 67.435-150.592 150.592v24.512c3.733-3.584 8.021-7.552 12.011-10.987 84.8-70.187 177.813-81.899 255.829-83.349h314.389l-83.52 67.371c0 0-78.891 0-91.136 0 36.501 31.659 90.987 88.277 90.987 189.12 0 110.443-58.219 162.795-120.683 211.989-19.328 19.328-41.643 40.32-41.643 73.216 0 32.811 22.293 50.709 38.635 64.171l53.611 41.749c65.408 55.253 150.912 119.211 150.912 222.251 0 27.627-3.029 52.416-11.989 73.344h306.005c83.179 0.021 150.592-67.392 150.592-150.571v-524.779h-188.587v190.293zM196.437 653.781c0-25.365 7.445-40.341 14.869-58.24-16.405 1.451-32.704 3.008-47.595 3.008-67.52 0-122.923-25.707-163.691-59.627v264.448c67.371-53.888 184.192-44.224 241.045-48.064-20.864-26.923-44.629-55.275-44.629-101.525zM1024.725 269.44h-0.725v79.189h0.725v-79.189zM0 889.259c0.235-0.32 0.512-0.555 0.747-0.875-0.469-4.949-0.747-9.92-0.747-14.976v15.851z"
71
+ ],
72
+ "grid": 0,
73
+ "tags": [
74
+ "vk_w_r_sns_google"
75
+ ]
76
+ },
77
+ "properties": {
78
+ "order": 4,
79
+ "id": 1,
80
+ "prevSize": 32,
81
+ "code": 58883,
82
+ "name": "vk_w_r_sns_google",
83
+ "ligatures": ""
84
+ },
85
+ "setIdx": 0,
86
+ "iconIdx": 3
87
+ },
88
+ {
89
+ "icon": {
90
+ "paths": [
91
+ "M873.408 0h-722.816c-83.157 0-150.592 67.435-150.592 150.592v722.816c0 83.179 67.435 150.592 150.592 150.592h370.901c0 0 0-238.379 0-432.896h-87.061v-149.909h87.061c0-45.781 0-79.445 0-92.117 0-75.989 23.317-192.405 182.251-192.405 117.525 0 135.701 0 135.701 0v148.843c0 0-74.965 0-92.16 0-17.173 0-42.475 5.077-42.475 53.696 0 9.259 0 39.445 0 81.984h134.72l-15.253 149.909h-119.509c0 192.405 0 432.896 0 432.896h168.576c83.243 0 150.656-67.413 150.656-150.592v-722.816c0-83.157-67.413-150.592-150.592-150.592z"
92
+ ],
93
+ "grid": 0,
94
+ "tags": [
95
+ "vk_w_r_sns_fb"
96
+ ]
97
+ },
98
+ "properties": {
99
+ "order": 5,
100
+ "id": 0,
101
+ "prevSize": 32,
102
+ "code": 58884,
103
+ "name": "vk_w_r_sns_fb",
104
+ "ligatures": ""
105
+ },
106
+ "setIdx": 0,
107
+ "iconIdx": 4
108
+ }
109
+ ],
110
+ "height": 1024,
111
+ "metadata": {
112
+ "name": "vk_sns"
113
+ },
114
+ "preferences": {
115
+ "showGlyphs": true,
116
+ "showQuickUse": true,
117
+ "fontPref": {
118
+ "prefix": "icon-",
119
+ "metadata": {
120
+ "fontFamily": "vk_sns"
121
+ },
122
+ "metrics": {
123
+ "emSize": 512,
124
+ "baseline": 6.25,
125
+ "whitespace": 50
126
+ }
127
+ },
128
+ "imagePref": {},
129
+ "historySize": 100,
130
+ "showCodes": true
131
+ }
132
+ }
plugins_admin/vk-admin/images/jpnstyle-bnr.jpg ADDED
Binary file
plugins_admin/vk-admin/images/lightning_bnr_en.jpg ADDED
Binary file
plugins_admin/vk-admin/images/lightning_bnr_ja.jpg ADDED
Binary file
plugins_admin/vk-admin/images/post_author_display_bnr_en.jpg ADDED
Binary file
plugins_admin/vk-admin/images/post_author_display_bnr_ja.jpg ADDED
Binary file
plugins_admin/vk-admin/images/vk-link-target-controller_bnr.jpg ADDED
Binary file
plugins_admin/vk-admin/images/vk-link-target-controller_notxt_bnr.jpg ADDED
Binary file
plugins_admin/vk-admin/js/vk_admin.js ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*-------------------------------------------*/
2
+ /* メディアアップローダー
3
+ /*-------------------------------------------*/
4
+ jQuery(document).ready(function($){
5
+ var custom_uploader;
6
+ // var media_id = new Array(2); //配列の宣言
7
+ // media_id[0] = "head_logo";
8
+ // media_id[1] = "foot_logo";
9
+
10
+ //for (i = 0; i < media_id.length; i++) { //iという変数に0をいれループ一回ごとに加算する
11
+
12
+ // var media_btn = '#media_' + media_id[i];
13
+ // var media_target = '#' + media_id[i];
14
+ jQuery('.media_btn').click(function(e) {
15
+
16
+ // 画像URLで値を返す場合
17
+ media_target_src = jQuery(this).attr('id').replace(/media_src_/g,'#');
18
+ // id で値を返す場合
19
+ media_target = jQuery(this).attr('id').replace(/media_/g,'#');
20
+ thumb_src = jQuery(this).attr('id').replace(/media_/g,'#thumb_');
21
+
22
+ e.preventDefault();
23
+ if (custom_uploader) {
24
+ custom_uploader.open();
25
+ return;
26
+ }
27
+ custom_uploader = wp.media({
28
+ title: 'Choose Image',
29
+ // 以下のコメントアウトを解除すると画像のみに限定される。 → されないみたい
30
+ library: {
31
+ type: 'image'
32
+ },
33
+ button: {
34
+ text: 'Choose Image'
35
+ },
36
+ multiple: false, // falseにすると画像を1つしか選択できなくなる
37
+ });
38
+ custom_uploader.on('select', function() {
39
+ var images = custom_uploader.state().get('selection');
40
+ images.each(function(file){
41
+ // urlを返す場合
42
+ jQuery(media_target_src).attr('value', file.toJSON().url );
43
+ // idを返す場合
44
+ jQuery(media_target).attr('value', file.toJSON().id );
45
+ jQuery(thumb_src).attr('src', file.toJSON().url );
46
+ });
47
+ });
48
+ custom_uploader.open();
49
+ });
50
+ //}
51
+
52
+ });
53
+
54
+ /*-------------------------------------------*/
55
+ /* ページ内の表示/非表示切り替えセクションの追加
56
+ /*-------------------------------------------*/
57
+ jQuery(document).ready(function($){
58
+ jQuery('.showHideSection .showHideBtn').on("click", function() {
59
+ jQuery(this).next().slideToggle();
60
+ });
61
+ });
62
+
63
+ /*-------------------------------------------*/
64
+ /* スクロール時の位置固定
65
+ /*-------------------------------------------*/
66
+ jQuery(document).ready(function(){
67
+
68
+ // サイドバー要素のデフォルトの絶対位置
69
+ var default_offset = jQuery('.scrTracking').offset();
70
+
71
+ // コンテンツエリアの高さを取得
72
+ var contentHeight = jQuery('.adminMain').height();
73
+
74
+ navMove( default_offset, contentHeight );
75
+
76
+ // スクロールしたら
77
+ jQuery(window).scroll(function () {
78
+ navMove( default_offset, contentHeight );
79
+ });
80
+ jQuery(window).resize(function(){
81
+ navMove( default_offset, contentHeight );
82
+ });
83
+ });
84
+
85
+ function navMove( default_offset, contentHeight ){
86
+
87
+ // ウィンドウの高さを取得
88
+ var windowHeight = jQuery(window).height();
89
+
90
+ // スクロール量
91
+ var scrollHeight = jQuery(this).scrollTop();
92
+
93
+ var marginBottom = 15;
94
+
95
+ jQuery('.scrTracking').each(function(i){
96
+
97
+ // サイドバー要素の高さ
98
+ var itemHeight = jQuery(this).height();
99
+
100
+ // ウィンドウサイズからはみ出すサイズ
101
+ if ( itemHeight < windowHeight ){
102
+ var overHeight = 0;
103
+ } else {
104
+ var overHeight = itemHeight - windowHeight;
105
+ }
106
+
107
+ if ( scrollHeight < contentHeight ){ // これがないと延々とスクロールする
108
+
109
+ if ( windowHeight < itemHeight ) {
110
+ // アイテムがウィンドウサイズより高い場合
111
+
112
+ if ( scrollHeight > overHeight ) {
113
+ // はみ出してる高さよりスクロールが大きい場合
114
+ // スクロール量からはみ出してる高さを引いた余白を追加
115
+ var marginTop = scrollHeight - overHeight - default_offset['top'] - marginBottom;
116
+ jQuery(this).css({"margin-top":marginTop});
117
+ } else {
118
+ // はみ出してる高さよりスクロールが小さい場合
119
+ jQuery(this).css({"margin-top":0});
120
+ }
121
+
122
+ } else {
123
+ // アイテムがウィンドウサイズより低い場合
124
+ jQuery(this).css({ "margin-top" : scrollHeight });
125
+ }
126
+ }
127
+
128
+ });
129
+ }
130
+
131
+
132
+ /*-------------------------------------------*/
133
+ /* ページ内リンクで頭出しの余白を適切にする
134
+ /*-------------------------------------------*/
135
+ jQuery(document).ready(function(){
136
+ if(!jQuery('body').hasClass('vk-exunit_page_vkExUnit_main_setting')){ return; }
137
+ // 一つ目のセクションの位置を取得
138
+ var default_offset = jQuery('.adminMain section:first-child').offset();
139
+
140
+ // 全てのセクションの上に余白を追加(頭出しがきれいになるようにするため)
141
+ jQuery('.adminMain section').each(function(i){
142
+ if (i != 0){ // 読み込んだ時、一つ目は余白要らない
143
+ jQuery(this).css({"padding-top":default_offset["top"]});
144
+ }
145
+ });
146
+
147
+ jQuery(window).scroll(function () {
148
+ // スクロール量を取得
149
+ var scroll = jQuery(this).scrollTop();
150
+
151
+ if ( scroll < default_offset["top"] ){
152
+ // スクロールが少ない場合は最初のセクションに余白を入れない
153
+ jQuery('.adminMain section:first-child').css({"padding-top":0});
154
+ } else {
155
+ // ある程度スクロールしている状態ならば余白を入れる
156
+ jQuery('.adminMain section:first-child').css({"padding-top":default_offset["top"]});
157
+ }
158
+ });
159
+ });
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 4.4
6
  Tested up to: 4.9.2
7
- Stable tag: 5.8.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 4.4
6
  Tested up to: 4.9.2
7
+ Stable tag: 5.8.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: http://ex-unit.vektor-inc.co.jp
5
  * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
- * Version: 5.8.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
9
  * Domain Path: /languages
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: http://ex-unit.vektor-inc.co.jp
5
  * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
+ * Version: 5.8.1
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
9
  * Domain Path: /languages