Version Description
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 9.15.1.0 |
Comparing to | |
See all releases |
Code changes from version 9.14.0.0 to 9.15.1.0
- admin/disable-guide.php +33 -20
- assets/{js → _js}/jquery.flatheights.js +0 -0
- assets/_js/master.js +57 -0
- assets/js/all.js +0 -241
- assets/js/all.min.js +1 -5
- assets/js/master.js +0 -107
- gulpfile.js +36 -43
- inc/contactform7-asset-optimize.php +28 -0
- inc/pagetop-btn/js/pagetop-btn.js +10 -14
- inc/smooth-scroll/js/smooth-scroll.js +26 -49
- inc/smooth-scroll/js/smooth-scroll.min.js +0 -11
- inc/smooth-scroll/smooth-scroll.php +5 -9
- inc/sns/function_snsBtns.php +44 -15
- inc/sns/sns.php +72 -37
- inc/sns/widget-fb-page-plugin.php +1 -0
- inc/sns/widget-twitter.php +4 -5
- initialize.php +3 -1
- package-lock.json +115 -124
- package.json +1 -1
- readme.txt +4 -0
- veu-packages.php +26 -1
- vkExUnit.php +1 -1
admin/disable-guide.php
CHANGED
@@ -8,30 +8,43 @@
|
|
8 |
* @since 28/Aug/2015
|
9 |
*/
|
10 |
|
11 |
-
|
12 |
add_action( 'admin_bar_menu', 'vkExUnit_adminbar_disable', 999 );
|
13 |
function vkExUnit_adminbar_disable( $wp_admin_bar ) {
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
}
|
23 |
|
24 |
-
|
25 |
-
|
26 |
add_action( 'wp_head','vkExUnit_adminbar_edit_header' );
|
27 |
function vkExUnit_adminbar_edit_header() {
|
28 |
-
|
29 |
-
<style
|
30 |
-
#
|
31 |
-
#
|
32 |
-
#
|
33 |
-
#
|
34 |
-
#
|
35 |
-
#
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
8 |
* @since 28/Aug/2015
|
9 |
*/
|
10 |
|
|
|
11 |
add_action( 'admin_bar_menu', 'vkExUnit_adminbar_disable', 999 );
|
12 |
function vkExUnit_adminbar_disable( $wp_admin_bar ) {
|
13 |
+
if ( is_user_logged_in() && ! is_admin() && current_user_can( 'administrator' ) || current_user_can( 'editor' ) ) {
|
14 |
+
$args = array(
|
15 |
+
'id' => 'veu_disable_admin_edit',
|
16 |
+
'title' => __( 'Edit Guide', 'vk-all-in-one-expansion-unit' ).' : <span class="_show">SHOW</span><span class="_hide">HIDE</span>',
|
17 |
+
'meta' => array( 'class' => 'veu_admin_bar_disable_button' ),
|
18 |
+
);
|
19 |
+
$wp_admin_bar->add_node( $args );
|
20 |
+
}
|
21 |
}
|
22 |
|
|
|
|
|
23 |
add_action( 'wp_head','vkExUnit_adminbar_edit_header' );
|
24 |
function vkExUnit_adminbar_edit_header() {
|
25 |
+
if ( is_user_logged_in() && ! is_admin() && current_user_can( 'administrator' ) || current_user_can( 'editor' ) ) { ?>
|
26 |
+
<style>
|
27 |
+
#wp-admin-bar-veu_disable_admin_edit .ab-item { background-color: #0085C8; cursor: pointer; }
|
28 |
+
#wp-admin-bar-veu_disable_admin_edit .ab-item ._hide { display: none; }
|
29 |
+
#wp-admin-bar-veu_disable_admin_edit.active .ab-item { background-color: #17A686; color: #555; }
|
30 |
+
#wp-admin-bar-veu_disable_admin_edit.active .ab-item ._show { display: none; }
|
31 |
+
#wp-admin-bar-veu_disable_admin_edit.active .ab-item ._hide { display: inline; }
|
32 |
+
#wp-admin-bar-veu_disable_admin_edit .ab-item:hover { background-color: #17A686; color: #555; }
|
33 |
+
#wp-admin-bar-veu_disable_admin_edit.active .ab-item:hover { background-color: #0085C8; color: #fff; }
|
34 |
+
body.vew_hide_edit_guide .veu_adminEdit { display: none; }
|
35 |
+
</style>
|
36 |
+
<script type="text/javascript">
|
37 |
+
(function(w,d,i,c,f){
|
38 |
+
w.addEventListener('load', function(){
|
39 |
+
var e=document.getElementById(i);
|
40 |
+
e.addEventListener('click', function(){
|
41 |
+
if(e.classList.contains(c)){
|
42 |
+
e.classList.remove(c);d.body.classList.remove(f);
|
43 |
+
}else{
|
44 |
+
e.classList.add(c);d.body.classList.add(f);
|
45 |
+
}
|
46 |
+
})})
|
47 |
+
})(window,document,'wp-admin-bar-veu_disable_admin_edit','active','vew_hide_edit_guide')
|
48 |
+
</script>
|
49 |
+
<?php }
|
50 |
}
|
assets/{js → _js}/jquery.flatheights.js
RENAMED
File without changes
|
assets/_js/master.js
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*-------------------------------------------*/
|
2 |
+
/* jquery.flatheights.js
|
3 |
+
/*-------------------------------------------*/
|
4 |
+
/* snsCount
|
5 |
+
/*-------------------------------------------*/
|
6 |
+
|
7 |
+
/*-------------------------------------------*/
|
8 |
+
/* jquery.flatheights.js
|
9 |
+
/*-------------------------------------------*/
|
10 |
+
var a = null;
|
11 |
+
(function($) {
|
12 |
+
$(function() {
|
13 |
+
$('.prArea > .subSection-title').flatHeights();
|
14 |
+
$('.prArea > .summary').flatHeights();
|
15 |
+
// $('.childPage_list_title').flatHeights();
|
16 |
+
});
|
17 |
+
// window.onload は複数使うと一つしか動作しなくなるので使用しない
|
18 |
+
window.addEventListener('DOMContentLoaded', function() {
|
19 |
+
$('.childPage_list_text').flatHeights();
|
20 |
+
// $('.childPage_list_box').flatHeights();
|
21 |
+
})
|
22 |
+
})(jQuery);
|
23 |
+
|
24 |
+
/*-------------------------------------------*/
|
25 |
+
/* snsCount
|
26 |
+
/*-------------------------------------------*/
|
27 |
+
((window, document, parent_class) => {
|
28 |
+
window.addEventListener('load', () => {
|
29 |
+
let elements = document.getElementsByClassName('veu_count_sns_hb')
|
30 |
+
if (elements.length == 0) {
|
31 |
+
return
|
32 |
+
}
|
33 |
+
let linkurl = encodeURIComponent(location.href);
|
34 |
+
|
35 |
+
fetch(
|
36 |
+
vkExOpt.hatena_entry + linkurl,
|
37 |
+
{
|
38 |
+
method: 'GET',
|
39 |
+
}
|
40 |
+
).then((r)=>{
|
41 |
+
if (r.ok) {
|
42 |
+
r.json().then((body)=>{
|
43 |
+
if (body.count === undefined) {
|
44 |
+
return
|
45 |
+
}
|
46 |
+
Array.prototype.forEach.call(
|
47 |
+
elements,
|
48 |
+
(elm) => elm.innerHTML = body.count
|
49 |
+
)
|
50 |
+
|
51 |
+
})
|
52 |
+
}
|
53 |
+
})
|
54 |
+
.catch((x)=>{})
|
55 |
+
}, false)
|
56 |
+
|
57 |
+
})(window, document, 'veu_socialSet');
|
assets/js/all.js
DELETED
@@ -1,241 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
======================================================================
|
3 |
-
jquery.flatheights.js
|
4 |
-
Version: 2010-09-15
|
5 |
-
http://www.akatsukinishisu.net/itazuragaki/js/i20070801.html
|
6 |
-
======================================================================
|
7 |
-
/*-------------------------------------------*/
|
8 |
-
/* $.changeLetterSize.addHandler(func)
|
9 |
-
/* 文字の大きさが変化した時に実行する処理を追加
|
10 |
-
/*-------------------------------------------*/
|
11 |
-
jQuery.changeLetterSize = {
|
12 |
-
handlers : [],
|
13 |
-
interval : 1000,
|
14 |
-
currentSize: 0
|
15 |
-
};
|
16 |
-
|
17 |
-
(function($) {
|
18 |
-
|
19 |
-
var self = $.changeLetterSize;
|
20 |
-
|
21 |
-
/* 文字の大きさを確認するためのins要素 */
|
22 |
-
var ins = $('<ins>M</ins>').css({
|
23 |
-
display: 'block',
|
24 |
-
visibility: 'hidden',
|
25 |
-
position: 'absolute',
|
26 |
-
padding: '0',
|
27 |
-
top: '0'
|
28 |
-
});
|
29 |
-
|
30 |
-
/* 文字の大きさが変わったか */
|
31 |
-
var isChanged = function() {
|
32 |
-
ins.appendTo('body');
|
33 |
-
var size = ins[0].offsetHeight;
|
34 |
-
ins.remove();
|
35 |
-
if (self.currentSize == size) return false;
|
36 |
-
self.currentSize = size;
|
37 |
-
return true;
|
38 |
-
};
|
39 |
-
|
40 |
-
/* 文書を読み込んだ時点で
|
41 |
-
文字の大きさを確認しておく */
|
42 |
-
$(isChanged);
|
43 |
-
|
44 |
-
/* 文字の大きさが変わっていたら、
|
45 |
-
handlers中の関数を順に実行 */
|
46 |
-
var observer = function() {
|
47 |
-
if (!isChanged()) return;
|
48 |
-
$.each(self.handlers, function(i, handler) {
|
49 |
-
handler();
|
50 |
-
});
|
51 |
-
};
|
52 |
-
|
53 |
-
/* ハンドラを登録し、
|
54 |
-
最初の登録であれば、定期処理を開始 */
|
55 |
-
self.addHandler = function(func) {
|
56 |
-
self.handlers.push(func);
|
57 |
-
if (self.handlers.length == 1) {
|
58 |
-
// 文字サイズが変わった時に定期的に実行されてしまうが、高さなんてそう細かく直さなくていいから停止
|
59 |
-
// setInterval(observer, self.interval);
|
60 |
-
}
|
61 |
-
};
|
62 |
-
|
63 |
-
})(jQuery);
|
64 |
-
|
65 |
-
|
66 |
-
/*-------------------------------------------*/
|
67 |
-
/* $(expr).flatHeights()
|
68 |
-
/* $(expr)で選択した複数の要素について、それぞれ高さを
|
69 |
-
/* 一番高いものに揃える
|
70 |
-
/*-------------------------------------------*/
|
71 |
-
|
72 |
-
(function($) {
|
73 |
-
|
74 |
-
/* 対象となる要素群の集合 */
|
75 |
-
var sets = [];
|
76 |
-
|
77 |
-
/* 高さ揃えの処理本体 */
|
78 |
-
var flatHeights = function(set) {
|
79 |
-
var maxHeight = 0;
|
80 |
-
set.each(function(){
|
81 |
-
var height = this.offsetHeight;
|
82 |
-
if (height > maxHeight) maxHeight = height;
|
83 |
-
});
|
84 |
-
set.css('height', maxHeight + 'px');
|
85 |
-
};
|
86 |
-
|
87 |
-
/* 要素群の高さを揃え、setsに追加 */
|
88 |
-
jQuery.fn.flatHeights = function() {
|
89 |
-
if (this.length > 1) {
|
90 |
-
flatHeights(this);
|
91 |
-
sets.push(this);
|
92 |
-
}
|
93 |
-
return this;
|
94 |
-
};
|
95 |
-
|
96 |
-
/* 高さ揃えを再実行する処理 */
|
97 |
-
var reflatting = function() {
|
98 |
-
$.each(sets, function() {
|
99 |
-
this.height('auto');
|
100 |
-
flatHeights(this);
|
101 |
-
});
|
102 |
-
};
|
103 |
-
|
104 |
-
/* 文字の大きさが変わった時に高さ揃えを再実行 */
|
105 |
-
$.changeLetterSize.addHandler(reflatting);
|
106 |
-
|
107 |
-
/* ウィンドウの大きさが変わった時に高さ揃えを再実行 */
|
108 |
-
$(window).resize(reflatting);
|
109 |
-
|
110 |
-
})(jQuery);
|
111 |
-
|
112 |
-
jQuery(document).ready(function($){
|
113 |
-
// .topPrTitには高さのpaddingを入れる事もあるので a に対して指定
|
114 |
-
jQuery('.topPrTit a').flatHeights();
|
115 |
-
jQuery('.topPrDescription').flatHeights();
|
116 |
-
// jQuery('.child_page_block').flatHeights();
|
117 |
-
// jQuery('.child_page_block p').flatHeights();
|
118 |
-
jQuery('.child_page_block h4 a').flatHeights();
|
119 |
-
});
|
120 |
-
/*-------------------------------------------*/
|
121 |
-
/* jquery.flatheights.js
|
122 |
-
/*-------------------------------------------*/
|
123 |
-
/* snsCount
|
124 |
-
/*-------------------------------------------*/
|
125 |
-
|
126 |
-
/*-------------------------------------------*/
|
127 |
-
/* jquery.flatheights.js
|
128 |
-
/*-------------------------------------------*/
|
129 |
-
(function($) {
|
130 |
-
$(function() {
|
131 |
-
$('.prArea > .subSection-title').flatHeights();
|
132 |
-
$('.prArea > .summary').flatHeights();
|
133 |
-
// $('.childPage_list_title').flatHeights();
|
134 |
-
});
|
135 |
-
// window.onload は複数使うと一つしか動作しなくなるので使用しない
|
136 |
-
window.addEventListener('DOMContentLoaded', function() {
|
137 |
-
$('.childPage_list_text').flatHeights();
|
138 |
-
// $('.childPage_list_box').flatHeights();
|
139 |
-
})
|
140 |
-
})(jQuery);
|
141 |
-
|
142 |
-
/*-------------------------------------------*/
|
143 |
-
/* snsCount
|
144 |
-
/*-------------------------------------------*/
|
145 |
-
(function($) {
|
146 |
-
var socials = $('.veu_socialSet');
|
147 |
-
if (typeof socials[0] === "undefined") return;
|
148 |
-
var linkurl = encodeURIComponent((typeof vkExOpt !== "undefined" && vkExOpt.sns_linkurl) || location.href);
|
149 |
-
var facebook = {
|
150 |
-
init: function() {
|
151 |
-
var url = 'https://graph.facebook.com/?id=' + linkurl;
|
152 |
-
$.ajax({
|
153 |
-
url: url,
|
154 |
-
dataType: 'jsonp',
|
155 |
-
success: function(response) {
|
156 |
-
if (!response.share || response.share.share_count === undefined) return;
|
157 |
-
socials.find('.veu_count_sns_fb').html(response.share.share_count);
|
158 |
-
}
|
159 |
-
});
|
160 |
-
}
|
161 |
-
}
|
162 |
-
|
163 |
-
var hatena = {
|
164 |
-
init: function() {
|
165 |
-
var url = (location.protocol === 'https:' ? 'https://b.hatena.ne.jp' : 'http://api.b.st-hatena.com') +
|
166 |
-
'/entry.count?url=' + linkurl;
|
167 |
-
$.ajax({
|
168 |
-
url: url,
|
169 |
-
dataType: 'jsonp',
|
170 |
-
success: function(response) {
|
171 |
-
var count = response ? response : 0;
|
172 |
-
socials.find('.veu_count_sns_hb').html(count);
|
173 |
-
|
174 |
-
if (typeof(count) == 'undefined') {
|
175 |
-
count = 0;
|
176 |
-
}
|
177 |
-
}
|
178 |
-
});
|
179 |
-
}
|
180 |
-
}
|
181 |
-
// var pocket = {
|
182 |
-
// init: function() {
|
183 |
-
// $.ajax({
|
184 |
-
// url: vkExOpt.ajax_url,
|
185 |
-
// type: 'POST',
|
186 |
-
// data: {
|
187 |
-
// 'action': 'vkex_pocket_tunnel',
|
188 |
-
// 'linkurl': linkurl
|
189 |
-
// },
|
190 |
-
// dataType: 'html',
|
191 |
-
// success: function(response) {
|
192 |
-
// var count = $(response).find("#cnt").html();
|
193 |
-
// if (count === undefined) return;
|
194 |
-
// socials.find('.veu_count_sns_pocket').html(count);
|
195 |
-
// }
|
196 |
-
// })
|
197 |
-
// }
|
198 |
-
// }
|
199 |
-
facebook.init();
|
200 |
-
hatena.init();
|
201 |
-
// pocket.init();
|
202 |
-
})(jQuery);
|
203 |
-
|
204 |
-
|
205 |
-
/// master.jsのも同じコードがあるので注意
|
206 |
-
;
|
207 |
-
(function($, d) {
|
208 |
-
var a = false,
|
209 |
-
b = '',
|
210 |
-
c = '',
|
211 |
-
f = function() {
|
212 |
-
if (a) {
|
213 |
-
a = false;
|
214 |
-
c.show();
|
215 |
-
b.removeClass('active');
|
216 |
-
} else {
|
217 |
-
a = true;
|
218 |
-
c.hide();
|
219 |
-
b.addClass('active');
|
220 |
-
}
|
221 |
-
};
|
222 |
-
$(d).ready(function() {
|
223 |
-
b = $('#wp-admin-bar-veu_disable_admin_edit .ab-item').on('click', f);
|
224 |
-
c = $('.veu_adminEdit');
|
225 |
-
});
|
226 |
-
})(jQuery, document);
|
227 |
-
|
228 |
-
/*----------------------------------------------------------*/
|
229 |
-
/* scroll
|
230 |
-
/*----------------------------------------------------------*/
|
231 |
-
// Scroll function
|
232 |
-
(function($) {
|
233 |
-
$(window).scroll(function() {
|
234 |
-
var scroll = $(this).scrollTop();
|
235 |
-
if ($(this).scrollTop() > 1) {
|
236 |
-
$('body').addClass('scrolled');
|
237 |
-
} else {
|
238 |
-
$('body').removeClass('scrolled');
|
239 |
-
}
|
240 |
-
});
|
241 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/js/all.min.js
CHANGED
@@ -1,5 +1 @@
|
|
1 |
-
|
2 |
-
jQuery.changeLetterSize={handlers:[],interval:1000,currentSize:0};(function($){var self=$.changeLetterSize;var ins=$('<ins>M</ins>').css({display:'block',visibility:'hidden',position:'absolute',padding:'0',top:'0'});var isChanged=function(){ins.appendTo('body');var size=ins[0].offsetHeight;ins.remove();if(self.currentSize==size)return false;self.currentSize=size;return true;};$(isChanged);var observer=function(){if(!isChanged())return;$.each(self.handlers,function(i,handler){handler();});};self.addHandler=function(func){self.handlers.push(func);if(self.handlers.length==1){}};})(jQuery);(function($){var sets=[];var flatHeights=function(set){var maxHeight=0;set.each(function(){var height=this.offsetHeight;if(height>maxHeight)maxHeight=height;});set.css('height',maxHeight+'px');};jQuery.fn.flatHeights=function(){if(this.length>1){flatHeights(this);sets.push(this);}
|
3 |
-
return this;};var reflatting=function(){$.each(sets,function(){this.height('auto');flatHeights(this);});};$.changeLetterSize.addHandler(reflatting);$(window).resize(reflatting);})(jQuery);jQuery(document).ready(function($){jQuery('.topPrTit a').flatHeights();jQuery('.topPrDescription').flatHeights();jQuery('.child_page_block h4 a').flatHeights();});(function($){$(function(){$('.prArea > .subSection-title').flatHeights();$('.prArea > .summary').flatHeights();});window.addEventListener('DOMContentLoaded',function(){$('.childPage_list_text').flatHeights();})})(jQuery);(function($){var socials=$('.veu_socialSet');if(typeof socials[0]==="undefined")return;var linkurl=encodeURIComponent((typeof vkExOpt!=="undefined"&&vkExOpt.sns_linkurl)||location.href);var facebook={init:function(){var url='https://graph.facebook.com/?id='+linkurl;$.ajax({url:url,dataType:'jsonp',success:function(response){if(!response.share||response.share.share_count===undefined)return;socials.find('.veu_count_sns_fb').html(response.share.share_count);}});}}
|
4 |
-
var hatena={init:function(){var url=(location.protocol==='https:'?'https://b.hatena.ne.jp':'http://api.b.st-hatena.com')+'/entry.count?url='+linkurl;$.ajax({url:url,dataType:'jsonp',success:function(response){var count=response?response:0;socials.find('.veu_count_sns_hb').html(count);if(typeof(count)=='undefined'){count=0;}}});}}
|
5 |
-
facebook.init();hatena.init();})(jQuery);;(function($,d){var a=false,b='',c='',f=function(){if(a){a=false;c.show();b.removeClass('active');}else{a=true;c.hide();b.addClass('active');}};$(d).ready(function(){b=$('#wp-admin-bar-veu_disable_admin_edit .ab-item').on('click',f);c=$('.veu_adminEdit');});})(jQuery,document);(function($){$(window).scroll(function(){var scroll=$(this).scrollTop();if($(this).scrollTop()>1){$('body').addClass('scrolled');}else{$('body').removeClass('scrolled');}});})(jQuery);
|
1 |
+
"use strict";jQuery.changeLetterSize={handlers:[],interval:1e3,currentSize:0},function(t){function e(){i.appendTo("body");var t=i[0].offsetHeight;return i.remove(),n.currentSize!=t&&(n.currentSize=t,!0)}var n=t.changeLetterSize,i=t("<ins>M</ins>").css({display:"block",visibility:"hidden",position:"absolute",padding:"0",top:"0"});t(e);n.addHandler=function(t){n.handlers.push(t),n.handlers.length}}(jQuery),function(t){function e(t){var e=0;t.each(function(){var t=this.offsetHeight;e<t&&(e=t)}),t.css("height",e+"px")}var n=[];jQuery.fn.flatHeights=function(){return 1<this.length&&(e(this),n.push(this)),this};function i(){t.each(n,function(){this.height("auto"),e(this)})}t.changeLetterSize.addHandler(i),t(window).resize(i)}(jQuery),jQuery(document).ready(function(t){jQuery(".topPrTit a").flatHeights(),jQuery(".topPrDescription").flatHeights(),jQuery(".child_page_block h4 a").flatHeights()});var a=null;!function(t){t(function(){t(".prArea > .subSection-title").flatHeights(),t(".prArea > .summary").flatHeights()}),window.addEventListener("DOMContentLoaded",function(){t(".childPage_list_text").flatHeights()})}(jQuery),function(t,e){t.addEventListener("load",function(){var n=e.getElementsByClassName("veu_count_sns_hb");if(0!=n.length){var t=encodeURIComponent(location.href);fetch(vkExOpt.hatena_entry+t,{method:"GET"}).then(function(t){t.ok&&t.json().then(function(e){void 0!==e.count&&Array.prototype.forEach.call(n,function(t){return t.innerHTML=e.count})})}).catch(function(t){})}},!1)}(window,document),function(o,r){vkExOpt.enable_smooth_scroll&&o.addEventListener("load",function(){function n(t){var e,n=t.toElement.getAttribute("href"),i=r.getElementById(n.slice(1));e=null==i?0:i.getBoundingClientRect().top,o.scrollTo({top:e-o.pageYOffset,behavior:"smooth"}),t.preventDefault()}Array.prototype.forEach.call(r.getElementsByTagName("a"),function(t){var e=t.getAttribute("href");e&&0==e.indexOf("#")&&t.addEventListener("click",n)})})}(window,document),function(t,e,n){t.addEventListener("scroll",function(){0<t.pageYOffset?e.body.classList.add(n):e.body.classList.remove(n)})}(window,document,"scrolled");
|
|
|
|
|
|
|
|
assets/js/master.js
DELETED
@@ -1,107 +0,0 @@
|
|
1 |
-
/*-------------------------------------------*/
|
2 |
-
/* jquery.flatheights.js
|
3 |
-
/*-------------------------------------------*/
|
4 |
-
/* snsCount
|
5 |
-
/*-------------------------------------------*/
|
6 |
-
|
7 |
-
/*-------------------------------------------*/
|
8 |
-
/* jquery.flatheights.js
|
9 |
-
/*-------------------------------------------*/
|
10 |
-
(function($) {
|
11 |
-
$(function() {
|
12 |
-
$('.prArea > .subSection-title').flatHeights();
|
13 |
-
$('.prArea > .summary').flatHeights();
|
14 |
-
// $('.childPage_list_title').flatHeights();
|
15 |
-
});
|
16 |
-
// window.onload は複数使うと一つしか動作しなくなるので使用しない
|
17 |
-
window.addEventListener('DOMContentLoaded', function() {
|
18 |
-
$('.childPage_list_text').flatHeights();
|
19 |
-
// $('.childPage_list_box').flatHeights();
|
20 |
-
})
|
21 |
-
})(jQuery);
|
22 |
-
|
23 |
-
/*-------------------------------------------*/
|
24 |
-
/* snsCount
|
25 |
-
/*-------------------------------------------*/
|
26 |
-
(function($) {
|
27 |
-
var socials = $('.veu_socialSet');
|
28 |
-
if (typeof socials[0] === "undefined") return;
|
29 |
-
var linkurl = encodeURIComponent((typeof vkExOpt !== "undefined" && vkExOpt.sns_linkurl) || location.href);
|
30 |
-
var facebook = {
|
31 |
-
init: function() {
|
32 |
-
var url = 'https://graph.facebook.com/?id=' + linkurl;
|
33 |
-
$.ajax({
|
34 |
-
url: url,
|
35 |
-
dataType: 'jsonp',
|
36 |
-
success: function(response) {
|
37 |
-
if (!response.share || response.share.share_count === undefined) return;
|
38 |
-
socials.find('.veu_count_sns_fb').html(response.share.share_count);
|
39 |
-
}
|
40 |
-
});
|
41 |
-
}
|
42 |
-
}
|
43 |
-
|
44 |
-
var hatena = {
|
45 |
-
init: function() {
|
46 |
-
var url = (location.protocol === 'https:' ? 'https://b.hatena.ne.jp' : 'http://api.b.st-hatena.com') +
|
47 |
-
'/entry.count?url=' + linkurl;
|
48 |
-
$.ajax({
|
49 |
-
url: url,
|
50 |
-
dataType: 'jsonp',
|
51 |
-
success: function(response) {
|
52 |
-
var count = response ? response : 0;
|
53 |
-
socials.find('.veu_count_sns_hb').html(count);
|
54 |
-
|
55 |
-
if (typeof(count) == 'undefined') {
|
56 |
-
count = 0;
|
57 |
-
}
|
58 |
-
}
|
59 |
-
});
|
60 |
-
}
|
61 |
-
}
|
62 |
-
// var pocket = {
|
63 |
-
// init: function() {
|
64 |
-
// $.ajax({
|
65 |
-
// url: vkExOpt.ajax_url,
|
66 |
-
// type: 'POST',
|
67 |
-
// data: {
|
68 |
-
// 'action': 'vkex_pocket_tunnel',
|
69 |
-
// 'linkurl': linkurl
|
70 |
-
// },
|
71 |
-
// dataType: 'html',
|
72 |
-
// success: function(response) {
|
73 |
-
// var count = $(response).find("#cnt").html();
|
74 |
-
// if (count === undefined) return;
|
75 |
-
// socials.find('.veu_count_sns_pocket').html(count);
|
76 |
-
// }
|
77 |
-
// })
|
78 |
-
// }
|
79 |
-
// }
|
80 |
-
facebook.init();
|
81 |
-
hatena.init();
|
82 |
-
// pocket.init();
|
83 |
-
})(jQuery);
|
84 |
-
|
85 |
-
|
86 |
-
/// master.jsのも同じコードがあるので注意
|
87 |
-
;
|
88 |
-
(function($, d) {
|
89 |
-
var a = false,
|
90 |
-
b = '',
|
91 |
-
c = '',
|
92 |
-
f = function() {
|
93 |
-
if (a) {
|
94 |
-
a = false;
|
95 |
-
c.show();
|
96 |
-
b.removeClass('active');
|
97 |
-
} else {
|
98 |
-
a = true;
|
99 |
-
c.hide();
|
100 |
-
b.addClass('active');
|
101 |
-
}
|
102 |
-
};
|
103 |
-
$(d).ready(function() {
|
104 |
-
b = $('#wp-admin-bar-veu_disable_admin_edit .ab-item').on('click', f);
|
105 |
-
c = $('.veu_adminEdit');
|
106 |
-
});
|
107 |
-
})(jQuery, document);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gulpfile.js
CHANGED
@@ -6,7 +6,8 @@ var rename = require('gulp-rename');
|
|
6 |
// ファイル結合
|
7 |
var concat = require('gulp-concat');
|
8 |
// js最小化
|
9 |
-
var jsmin = require('gulp-
|
|
|
10 |
// エラーでも監視を続行させる
|
11 |
var plumber = require('gulp-plumber');
|
12 |
// sass compiler
|
@@ -18,25 +19,17 @@ var cmq = require('gulp-merge-media-queries');
|
|
18 |
// add vender prifix
|
19 |
var autoprefixer = require('gulp-autoprefixer');
|
20 |
|
21 |
-
// var path = require('path');
|
22 |
-
// var fs = require('fs');
|
23 |
-
// var pkg = JSON.parse(fs.readFileSync('./package.json'));
|
24 |
-
// var assetsPath = path.resolve(pkg.path.assetsDir);
|
25 |
var cleanCss = require('gulp-clean-css');
|
26 |
|
27 |
-
// sudo npm install gulp.spritesmith --save-dev
|
28 |
-
// var spritesmith = require('gulp.spritesmith');
|
29 |
-
// http://blog.e-riverstyle.com/2014/02/gulpspritesmithcss-spritegulp.html
|
30 |
-
|
31 |
// 同期的に処理してくれる( distで使用している )
|
32 |
var runSequence = require('run-sequence');
|
33 |
-
|
34 |
var replace = require('gulp-replace');
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
40 |
.pipe(babel({
|
41 |
plugins: ['transform-react-jsx']
|
42 |
}))
|
@@ -45,7 +38,6 @@ gulp.task('block', function () {
|
|
45 |
.pipe(gulp.dest('./inc/sns/package'));
|
46 |
});
|
47 |
|
48 |
-
|
49 |
gulp.task('text-domain', function () {
|
50 |
return gulp.src(['./inc/font-awesome/**/*'])
|
51 |
.pipe(replace('vk_font_awesome_version_textdomain', 'vk-all-in-one-expansion-unit' ))
|
@@ -56,48 +48,49 @@ gulp.task('sass', function() {
|
|
56 |
return gulp.src('./assets/_scss/*.scss',{ base: './assets/_scss' })
|
57 |
.pipe(plumber())
|
58 |
.pipe(sass())
|
59 |
-
.pipe(cmq({log:true}))
|
60 |
.pipe(autoprefixer())
|
61 |
.pipe(cleanCss())
|
62 |
.pipe(gulp.dest('./assets/css/'));
|
63 |
});
|
64 |
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
66 |
gulp.task('scripts', function() {
|
67 |
-
return gulp.src(
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
.pipe(jsmin())
|
77 |
-
.pipe(rename({suffix: '.min'}))
|
78 |
-
.pipe(gulp.dest('./assets/js'));
|
79 |
-
});
|
80 |
-
|
81 |
-
// js最小化
|
82 |
-
gulp.task('jsmin_scroll', function () {
|
83 |
-
return gulp.src(['./inc/smooth-scroll/js/smooth-scroll.js'])
|
84 |
-
.pipe(plumber()) // エラーでも監視を続行
|
85 |
.pipe(jsmin())
|
86 |
-
.pipe(
|
87 |
-
|
88 |
-
});
|
89 |
|
90 |
// Watch
|
91 |
gulp.task('watch', function() {
|
92 |
-
gulp.watch(
|
93 |
-
|
94 |
-
|
95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
});
|
97 |
|
98 |
// gulp.task('default', ['scripts','watch','sprite']);
|
99 |
gulp.task('default', gulp.series('text-domain','watch'))
|
100 |
-
gulp.task('compile', gulp.series('scripts','text-domain','scripts', '
|
101 |
|
102 |
// copy dist ////////////////////////////////////////////////
|
103 |
|
6 |
// ファイル結合
|
7 |
var concat = require('gulp-concat');
|
8 |
// js最小化
|
9 |
+
var jsmin = require('gulp-uglify');
|
10 |
+
var babel = require('gulp-babel');
|
11 |
// エラーでも監視を続行させる
|
12 |
var plumber = require('gulp-plumber');
|
13 |
// sass compiler
|
19 |
// add vender prifix
|
20 |
var autoprefixer = require('gulp-autoprefixer');
|
21 |
|
|
|
|
|
|
|
|
|
22 |
var cleanCss = require('gulp-clean-css');
|
23 |
|
|
|
|
|
|
|
|
|
24 |
// 同期的に処理してくれる( distで使用している )
|
25 |
var runSequence = require('run-sequence');
|
|
|
26 |
var replace = require('gulp-replace');
|
27 |
|
28 |
+
/*
|
29 |
+
* transpile block editor js
|
30 |
+
*/
|
31 |
+
gulp.task('block', function () {
|
32 |
+
return gulp.src('./inc/sns/package/block.js')
|
33 |
.pipe(babel({
|
34 |
plugins: ['transform-react-jsx']
|
35 |
}))
|
38 |
.pipe(gulp.dest('./inc/sns/package'));
|
39 |
});
|
40 |
|
|
|
41 |
gulp.task('text-domain', function () {
|
42 |
return gulp.src(['./inc/font-awesome/**/*'])
|
43 |
.pipe(replace('vk_font_awesome_version_textdomain', 'vk-all-in-one-expansion-unit' ))
|
48 |
return gulp.src('./assets/_scss/*.scss',{ base: './assets/_scss' })
|
49 |
.pipe(plumber())
|
50 |
.pipe(sass())
|
51 |
+
.pipe(cmq({log: true}))
|
52 |
.pipe(autoprefixer())
|
53 |
.pipe(cleanCss())
|
54 |
.pipe(gulp.dest('./assets/css/'));
|
55 |
});
|
56 |
|
57 |
+
/*
|
58 |
+
* create all.min.js
|
59 |
+
*
|
60 |
+
* including /assets/_js/*.js
|
61 |
+
* and transpile from ES6
|
62 |
+
*/
|
63 |
gulp.task('scripts', function() {
|
64 |
+
return gulp.src([
|
65 |
+
'./assets/_js/*.js',
|
66 |
+
'./inc/smooth-scroll/js/smooth-scroll.js',
|
67 |
+
'./inc/pagetop-btn/js/pagetop-btn.js'
|
68 |
+
])
|
69 |
+
.pipe(concat('all.min.js'))
|
70 |
+
.pipe(babel({
|
71 |
+
presets: ['@babel/env']
|
72 |
+
}))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
.pipe(jsmin())
|
74 |
+
.pipe(gulp.dest('./assets/js'))
|
75 |
+
})
|
|
|
76 |
|
77 |
// Watch
|
78 |
gulp.task('watch', function() {
|
79 |
+
gulp.watch(
|
80 |
+
[
|
81 |
+
'./assets/_js/*.js',
|
82 |
+
'./inc/smooth-scroll/js/smooth-scroll.js',
|
83 |
+
'./inc/pagetop-btn/js/pagetop-btn.js'
|
84 |
+
],
|
85 |
+
gulp.series('scripts')
|
86 |
+
)
|
87 |
+
gulp.watch('./assets/_scss/**/*.scss', gulp.series('sass'))
|
88 |
+
gulp.watch('./inc/pagetop-btn/assets/_scss/*.scss', gulp.series('sass'))
|
89 |
});
|
90 |
|
91 |
// gulp.task('default', ['scripts','watch','sprite']);
|
92 |
gulp.task('default', gulp.series('text-domain','watch'))
|
93 |
+
gulp.task('compile', gulp.series('scripts','text-domain','scripts', 'sass'))
|
94 |
|
95 |
// copy dist ////////////////////////////////////////////////
|
96 |
|
inc/contactform7-asset-optimize.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* VkExUnit contactform7-asset-optimize.php
|
4 |
+
*
|
5 |
+
* @package VkExUnit
|
6 |
+
* @author shoji imamura<imamura@vektor-inc.co.jp>
|
7 |
+
* @since 19/March/2020
|
8 |
+
*/
|
9 |
+
|
10 |
+
add_action( 'wp_print_styles', function() {
|
11 |
+
wp_dequeue_style( 'contact-form-7' );
|
12 |
+
}, 0 );
|
13 |
+
|
14 |
+
add_action( 'wp_print_scripts', function() {
|
15 |
+
wp_dequeue_script( 'contact-form-7' );
|
16 |
+
}, 0 );
|
17 |
+
|
18 |
+
function veu_reregister_contact_form_assets() {
|
19 |
+
wp_enqueue_style( 'contact-form-7' );
|
20 |
+
wp_enqueue_script( 'contact-form-7' );
|
21 |
+
}
|
22 |
+
|
23 |
+
add_filter( 'do_shortcode_tag', function( $output, $tag, $attr, $m ){
|
24 |
+
if ( $tag == 'contact-form-7' ) {
|
25 |
+
add_action( 'wp_footer', 'veu_reregister_contact_form_assets' );
|
26 |
+
}
|
27 |
+
return $output;
|
28 |
+
}, 10, 4 );
|
inc/pagetop-btn/js/pagetop-btn.js
CHANGED
@@ -1,14 +1,10 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
(
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
$('body').removeClass('scrolled');
|
12 |
-
}
|
13 |
-
});
|
14 |
-
})(jQuery);
|
1 |
+
|
2 |
+
((window, document, cls) => {
|
3 |
+
window.addEventListener('scroll', () => {
|
4 |
+
if(window.pageYOffset > 0){
|
5 |
+
document.body.classList.add(cls)
|
6 |
+
}else{
|
7 |
+
document.body.classList.remove(cls)
|
8 |
+
}
|
9 |
+
})
|
10 |
+
})(window, document, 'scrolled');
|
|
|
|
|
|
|
|
inc/smooth-scroll/js/smooth-scroll.js
CHANGED
@@ -1,53 +1,30 @@
|
|
1 |
-
|
2 |
/*-------------------------------------------*/
|
3 |
/* ページ内するするスクロール
|
4 |
/*-------------------------------------------*/
|
5 |
-
(
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
var speed = 400;
|
30 |
-
var href= $(this).attr("href");
|
31 |
-
var target = $(href == "#" || href == "" ? 'html' : href);
|
32 |
-
var id = jQuery(this).attr('id');
|
33 |
-
if ( id == 'page_top' ){
|
34 |
-
var position = 0;
|
35 |
-
} else {
|
36 |
-
// ヘッダ-固定の時用オフセット
|
37 |
-
var header_height = 0;
|
38 |
-
if ( jQuery('body').hasClass('headfix') ){
|
39 |
-
header_height = jQuery('body > header').outerHeight();
|
40 |
-
// console.log(header_height);
|
41 |
-
}
|
42 |
-
// 管理バー分オフセット
|
43 |
-
var admin_bar_height = 0;
|
44 |
-
if ( jQuery('body').hasClass('admin-bar') ){
|
45 |
-
admin_bar_height = jQuery('#wpadminbar').outerHeight();
|
46 |
-
}
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
$('body,html').animate({scrollTop:position}, speed, 'swing');
|
51 |
-
return;
|
52 |
-
})
|
53 |
-
})(jQuery);
|
|
|
1 |
/*-------------------------------------------*/
|
2 |
/* ページ内するするスクロール
|
3 |
/*-------------------------------------------*/
|
4 |
+
((window, document) => {
|
5 |
+
if (!vkExOpt.enable_smooth_scroll) {
|
6 |
+
return
|
7 |
+
}
|
8 |
+
window.addEventListener('load', () =>{
|
9 |
+
function smooth_link(e) {
|
10 |
+
let href = e.toElement.getAttribute('href')
|
11 |
+
let y, destination = document.getElementById(href.slice(1));
|
12 |
+
y = destination == null? 0: destination.getBoundingClientRect().top;
|
13 |
+
window.scrollTo({
|
14 |
+
top: y - window.pageYOffset,
|
15 |
+
behavior: 'smooth'
|
16 |
+
})
|
17 |
+
e.preventDefault()
|
18 |
+
}
|
19 |
+
Array.prototype.forEach.call(
|
20 |
+
document.getElementsByTagName('a'),
|
21 |
+
(elem) => {
|
22 |
+
let href = elem.getAttribute('href')
|
23 |
+
if(href && href.indexOf('#') == 0){
|
24 |
+
elem.addEventListener('click', smooth_link)
|
25 |
+
}
|
26 |
+
}
|
27 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
+
})
|
30 |
+
})(window, document);
|
|
|
|
|
|
|
|
inc/smooth-scroll/js/smooth-scroll.min.js
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
|
2 |
-
(function($){$('a[href^="#"]').click(function(){if(jQuery(this).attr("href")==="#"){return;}
|
3 |
-
if(jQuery(this).attr("role")==="tab"){return;}
|
4 |
-
if(jQuery(this).attr("role")==="button"){return;}
|
5 |
-
if(jQuery(this).attr("data-toggle")){return;}
|
6 |
-
if(jQuery(this).hasClass('carousel-control')){return;}
|
7 |
-
if(id)
|
8 |
-
var speed=400;var href=$(this).attr("href");var target=$(href=="#"||href==""?'html':href);var id=jQuery(this).attr('id');if(id=='page_top'){var position=0;}else{var header_height=0;if(jQuery('body').hasClass('headfix')){header_height=jQuery('body > header').outerHeight();}
|
9 |
-
var admin_bar_height=0;if(jQuery('body').hasClass('admin-bar')){admin_bar_height=jQuery('#wpadminbar').outerHeight();}
|
10 |
-
var position=target.offset().top-header_height-admin_bar_height;}
|
11 |
-
$('body,html').animate({scrollTop:position},speed,'swing');return;})})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/smooth-scroll/smooth-scroll.php
CHANGED
@@ -1,10 +1,6 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
global $vkExUnit_version;
|
8 |
-
wp_register_script( 'vkExUnit_smooth-js', plugins_url( '', __FILE__ ) . '/js/smooth-scroll.min.js', array( 'jquery' ), $vkExUnit_version, true );
|
9 |
-
wp_enqueue_script( 'vkExUnit_smooth-js' );
|
10 |
-
}
|
1 |
<?php
|
2 |
+
|
3 |
+
add_filter( 'vkExUnit_master_js_options', function( $options ){
|
4 |
+
$options['enable_smooth_scroll'] = true;
|
5 |
+
return $options;
|
6 |
+
}, 10, 1 );
|
|
|
|
|
|
|
|
inc/sns/function_snsBtns.php
CHANGED
@@ -219,18 +219,47 @@ function veu_add_sns_btns( $content ) {
|
|
219 |
return $content;
|
220 |
}
|
221 |
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
return $content;
|
220 |
}
|
221 |
|
222 |
+
add_action( 'rest_api_init', function () {
|
223 |
+
register_rest_route(
|
224 |
+
'vk_ex_unit/v1',
|
225 |
+
'/hatena_entry/(?P<linkurl>[a-zA-Z0-9\-\._%]+)',
|
226 |
+
array(
|
227 |
+
'methods' => 'GET',
|
228 |
+
'callback' => 'vew_sns_hatena_restapi_callback',
|
229 |
+
)
|
230 |
+
);
|
231 |
+
});
|
232 |
+
|
233 |
+
add_filter( 'vkExUnit_master_js_options', function( $options ){
|
234 |
+
$options['hatena_entry'] = get_rest_url(0, 'vk_ex_unit/v1/hatena_entry/');
|
235 |
+
return $options;
|
236 |
+
}, 10, 1 );
|
237 |
+
|
238 |
+
function vew_sns_hatena_restapi_callback( $data ) {
|
239 |
+
$linkurl = $data['linkurl'];
|
240 |
+
$siteurl = get_site_url();
|
241 |
+
|
242 |
+
if ( $siteurl !== substr( urldecode( $linkurl ), 0, strlen( $siteurl ) ) ) {
|
243 |
+
$response = new WP_REST_Response(array());
|
244 |
+
$response->set_status(403);
|
245 |
+
return $response;
|
246 |
+
}
|
247 |
+
|
248 |
+
$r = wp_safe_remote_get('https://bookmark.hatenaapis.com/count/entry?url=' . $linkurl);
|
249 |
+
|
250 |
+
if ( ! is_wp_error( $r ) ) {
|
251 |
+
$response = new WP_REST_Response(array('count' => $r['body']));
|
252 |
+
if ( empty($r['headers']['cache-control']) ) {
|
253 |
+
$cache_control = 'Cache-Control: public, max-age=3600, s-maxage=3600';
|
254 |
+
}else{
|
255 |
+
$cache_control = $r['headers']['cache-control'];
|
256 |
+
}
|
257 |
+
$response->header('Cache-Control', $r['headers']['cache-control']);
|
258 |
+
$response->set_status(200);
|
259 |
+
return $response;
|
260 |
+
}
|
261 |
+
$response = new WP_REST_Response(array());
|
262 |
+
$response->set_status(500);
|
263 |
+
|
264 |
+
return $response;
|
265 |
+
}
|
inc/sns/sns.php
CHANGED
@@ -9,34 +9,37 @@
|
|
9 |
Add Customize Panel
|
10 |
/*-------------------------------------------*/
|
11 |
|
12 |
-
require_once
|
13 |
-
|
14 |
-
add_action(
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
}
|
|
|
26 |
|
27 |
add_action( 'init', 'vew_sns_block_setup', 15 );
|
28 |
function vew_sns_block_setup() {
|
29 |
register_block_type(
|
30 |
'vk-blocks/share-button',
|
31 |
array(
|
32 |
-
'attributes'
|
33 |
'position' => array(
|
34 |
-
'type'
|
35 |
-
'default' => 'after'
|
36 |
-
)
|
37 |
),
|
38 |
-
'editor_style'
|
39 |
-
'editor_script'
|
40 |
'render_callback' => 'vew_sns_block_callback',
|
41 |
)
|
42 |
);
|
@@ -179,23 +182,55 @@ function vkExUnit_set_sns_options() {
|
|
179 |
/*
|
180 |
Add facebook aprication id
|
181 |
/*-------------------------------------------*/
|
182 |
-
|
|
|
|
|
|
|
183 |
function exUnit_print_fbId_script() {
|
184 |
-
?>
|
185 |
<div id="fb-root"></div>
|
186 |
-
<?php
|
187 |
-
$options = veu_get_sns_options();
|
188 |
-
$fbAppId = ( isset( $options['fbAppId'] ) ) ? $options['fbAppId'] : '';
|
189 |
-
?>
|
190 |
-
<script>(function(d, s, id) {
|
191 |
-
var js, fjs = d.getElementsByTagName(s)[0];
|
192 |
-
if (d.getElementById(id)) return;
|
193 |
-
js = d.createElement(s); js.id = id;
|
194 |
-
js.src = "//connect.facebook.net/<?php echo esc_attr( _x( 'en_US', 'facebook language code', 'vk-all-in-one-expansion-unit' ) ); ?>/sdk.js#xfbml=1&version=v2.9&appId=<?php echo esc_html( $fbAppId ); ?>";
|
195 |
-
fjs.parentNode.insertBefore(js, fjs);
|
196 |
-
}(document, 'script', 'facebook-jssdk'));</script>
|
197 |
<?php
|
198 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
}
|
200 |
|
201 |
$vkExUnit_sns_options = veu_get_sns_options();
|
@@ -210,7 +245,8 @@ VEU_Metabox 内の get_post_type が実行タイミングによっては
|
|
210 |
admin_menu のタイミングで読み込んでいる
|
211 |
*/
|
212 |
add_action(
|
213 |
-
'admin_menu',
|
|
|
214 |
require dirname( __FILE__ ) . '/class-veu-metabox-sns-title.php';
|
215 |
}
|
216 |
);
|
@@ -227,7 +263,8 @@ if ( $vkExUnit_sns_options['enableSnsBtns'] == true ) {
|
|
227 |
admin_menu のタイミングで読み込んでいる
|
228 |
*/
|
229 |
add_action(
|
230 |
-
'admin_menu',
|
|
|
231 |
require dirname( __FILE__ ) . '/class-veu-metabox-sns-button.php';
|
232 |
}
|
233 |
);
|
@@ -240,8 +277,6 @@ if ( $vkExUnit_sns_options['enableFollowMe'] == true ) {
|
|
240 |
}
|
241 |
|
242 |
|
243 |
-
|
244 |
-
|
245 |
/*
|
246 |
Add setting page
|
247 |
/*-------------------------------------------*/
|
9 |
Add Customize Panel
|
10 |
/*-------------------------------------------*/
|
11 |
|
12 |
+
require_once dirname( __FILE__ ) . '/sns_customizer.php';
|
13 |
+
|
14 |
+
add_action(
|
15 |
+
'init',
|
16 |
+
function() {
|
17 |
+
wp_register_script(
|
18 |
+
'vew-sns-block',
|
19 |
+
veu_get_directory_uri( '/inc/sns/package/block.min.js' ),
|
20 |
+
array(),
|
21 |
+
VEU_FONT_AWESOME_DEFAULT_VERSION,
|
22 |
+
true
|
23 |
+
);
|
24 |
|
25 |
+
global $vkExUnit_version;
|
26 |
+
wp_register_style( 'vkExUnit_sns_editor_style', veu_get_directory_uri( '/assets/css/vkExUnit_sns_editor_style.css' ), array(), $vkExUnit_version, 'all' );
|
27 |
+
}
|
28 |
+
);
|
29 |
|
30 |
add_action( 'init', 'vew_sns_block_setup', 15 );
|
31 |
function vew_sns_block_setup() {
|
32 |
register_block_type(
|
33 |
'vk-blocks/share-button',
|
34 |
array(
|
35 |
+
'attributes' => array(
|
36 |
'position' => array(
|
37 |
+
'type' => 'string',
|
38 |
+
'default' => 'after',
|
39 |
+
),
|
40 |
),
|
41 |
+
'editor_style' => 'vkExUnit_sns_editor_style',
|
42 |
+
'editor_script' => 'vew-sns-block',
|
43 |
'render_callback' => 'vew_sns_block_callback',
|
44 |
)
|
45 |
);
|
182 |
/*
|
183 |
Add facebook aprication id
|
184 |
/*-------------------------------------------*/
|
185 |
+
function veu_set_facebook_script() {
|
186 |
+
add_action( 'wp_footer', 'exUnit_print_fbId_script', 100 );
|
187 |
+
}
|
188 |
+
|
189 |
function exUnit_print_fbId_script() {
|
190 |
+
?>
|
191 |
<div id="fb-root"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
<?php
|
193 |
+
$options = veu_get_sns_options();
|
194 |
+
$fbAppId = ( isset( $options['fbAppId'] ) ) ? $options['fbAppId'] : '';
|
195 |
+
?>
|
196 |
+
<script>
|
197 |
+
;(function(w,d){
|
198 |
+
var f=function(){
|
199 |
+
(function(d, s, id) {
|
200 |
+
var js, fjs = d.getElementsByTagName(s)[0];
|
201 |
+
if (d.getElementById(id)) return;
|
202 |
+
js = d.createElement(s); js.id = id;
|
203 |
+
js.src = "//connect.facebook.net/<?php echo esc_attr( _x( 'en_US', 'facebook language code', 'vk-all-in-one-expansion-unit' ) ); ?>/sdk.js#xfbml=1&version=v2.9&appId=<?php echo esc_html( $fbAppId ); ?>";
|
204 |
+
fjs.parentNode.insertBefore(js, fjs);
|
205 |
+
}(d, 'script', 'facebook-jssdk'));
|
206 |
+
w.removeEventListener('scroll',f,true);
|
207 |
+
};
|
208 |
+
w.addEventListener('scroll',f,true);
|
209 |
+
})(window,document);
|
210 |
+
</script>
|
211 |
+
<?php
|
212 |
+
}
|
213 |
+
|
214 |
+
function veu_set_twitter_script() {
|
215 |
+
add_action( 'wp_footer', 'veu_print_twitter_script', 100 );
|
216 |
+
}
|
217 |
+
|
218 |
+
function veu_print_twitter_script() {
|
219 |
+
?>
|
220 |
+
<script type="text/javascript">
|
221 |
+
;(function(w,d){
|
222 |
+
var f=function(){
|
223 |
+
var s=d.createElement('script');
|
224 |
+
s.async='async';
|
225 |
+
s.charset='utf-8';
|
226 |
+
s.src='//platform.twitter.com/widgets.js';
|
227 |
+
d.body.appendChild(s);
|
228 |
+
w.removeEventListener('scroll',f,true);
|
229 |
+
};
|
230 |
+
w.addEventListener('scroll',f,true);
|
231 |
+
})(window,document);
|
232 |
+
</script>
|
233 |
+
<?php
|
234 |
}
|
235 |
|
236 |
$vkExUnit_sns_options = veu_get_sns_options();
|
245 |
admin_menu のタイミングで読み込んでいる
|
246 |
*/
|
247 |
add_action(
|
248 |
+
'admin_menu',
|
249 |
+
function() {
|
250 |
require dirname( __FILE__ ) . '/class-veu-metabox-sns-title.php';
|
251 |
}
|
252 |
);
|
263 |
admin_menu のタイミングで読み込んでいる
|
264 |
*/
|
265 |
add_action(
|
266 |
+
'admin_menu',
|
267 |
+
function() {
|
268 |
require dirname( __FILE__ ) . '/class-veu-metabox-sns-button.php';
|
269 |
}
|
270 |
);
|
277 |
}
|
278 |
|
279 |
|
|
|
|
|
280 |
/*
|
281 |
Add setting page
|
282 |
/*-------------------------------------------*/
|
inc/sns/widget-fb-page-plugin.php
CHANGED
@@ -45,6 +45,7 @@ class WP_Widget_vkExUnit_fbPagePlugin extends WP_Widget {
|
|
45 |
echo '</div>';
|
46 |
echo $args['after_widget'];
|
47 |
|
|
|
48 |
} // widget($args, $instance)
|
49 |
|
50 |
|
45 |
echo '</div>';
|
46 |
echo $args['after_widget'];
|
47 |
|
48 |
+
veu_set_facebook_script();
|
49 |
} // widget($args, $instance)
|
50 |
|
51 |
|
inc/sns/widget-twitter.php
CHANGED
@@ -42,14 +42,13 @@ class VK_Twitter_Widget extends WP_Widget {
|
|
42 |
$height = 400;
|
43 |
}
|
44 |
?>
|
45 |
-
|
46 |
<a class="twitter-timeline" href="<?php echo esc_url( $account ); ?>" data-height="<?php echo $height; ?>" data-theme="<?php echo wp_kses_post( $instance['bg_color'] ); ?>" data-link-color="<?php echo sanitize_hex_color( $instance['link_color'] ); ?>" data-chrome=”noheader nofooter”>
|
47 |
-
<script async="" src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
|
48 |
</a>
|
49 |
-
|
50 |
<?php
|
51 |
-
|
52 |
-
|
|
|
|
|
53 |
}
|
54 |
|
55 |
/**
|
42 |
$height = 400;
|
43 |
}
|
44 |
?>
|
|
|
45 |
<a class="twitter-timeline" href="<?php echo esc_url( $account ); ?>" data-height="<?php echo $height; ?>" data-theme="<?php echo wp_kses_post( $instance['bg_color'] ); ?>" data-link-color="<?php echo sanitize_hex_color( $instance['link_color'] ); ?>" data-chrome=”noheader nofooter”>
|
|
|
46 |
</a>
|
|
|
47 |
<?php
|
48 |
+
echo '</div>'; // .vk-twitter-plugin
|
49 |
+
echo $args['after_widget'];
|
50 |
+
|
51 |
+
veu_set_twitter_script();
|
52 |
}
|
53 |
|
54 |
/**
|
initialize.php
CHANGED
@@ -56,8 +56,10 @@ add_action( 'after_setup_theme', 'veu_print_editor_css' );
|
|
56 |
add_action( 'wp_head', 'veu_print_js' );
|
57 |
function veu_print_js() {
|
58 |
global $vkExUnit_version;
|
|
|
|
|
59 |
wp_register_script( 'vkExUnit_master-js', plugins_url( '', __FILE__ ) . '/assets/js/all.min.js', array( 'jquery' ), $vkExUnit_version, true );
|
60 |
-
wp_localize_script( 'vkExUnit_master-js', 'vkExOpt', apply_filters( 'vkExUnit_localize_options',
|
61 |
wp_enqueue_script( 'vkExUnit_master-js' );
|
62 |
}
|
63 |
|
56 |
add_action( 'wp_head', 'veu_print_js' );
|
57 |
function veu_print_js() {
|
58 |
global $vkExUnit_version;
|
59 |
+
$options = apply_filters( 'vkExUnit_master_js_options', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
|
60 |
+
|
61 |
wp_register_script( 'vkExUnit_master-js', plugins_url( '', __FILE__ ) . '/assets/js/all.min.js', array( 'jquery' ), $vkExUnit_version, true );
|
62 |
+
wp_localize_script( 'vkExUnit_master-js', 'vkExOpt', apply_filters( 'vkExUnit_localize_options', $options ) );
|
63 |
wp_enqueue_script( 'vkExUnit_master-js' );
|
64 |
}
|
65 |
|
package-lock.json
CHANGED
@@ -65,9 +65,9 @@
|
|
65 |
}
|
66 |
},
|
67 |
"@babel/generator": {
|
68 |
-
"version": "7.8.
|
69 |
-
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.8.
|
70 |
-
"integrity": "sha512-
|
71 |
"dev": true,
|
72 |
"requires": {
|
73 |
"@babel/types": "^7.8.7",
|
@@ -120,14 +120,14 @@
|
|
120 |
}
|
121 |
},
|
122 |
"@babel/helper-create-regexp-features-plugin": {
|
123 |
-
"version": "7.8.
|
124 |
-
"resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.
|
125 |
-
"integrity": "sha512-
|
126 |
"dev": true,
|
127 |
"requires": {
|
128 |
"@babel/helper-annotate-as-pure": "^7.8.3",
|
129 |
"@babel/helper-regex": "^7.8.3",
|
130 |
-
"regexpu-core": "^4.
|
131 |
}
|
132 |
},
|
133 |
"@babel/helper-define-map": {
|
@@ -316,9 +316,9 @@
|
|
316 |
}
|
317 |
},
|
318 |
"@babel/parser": {
|
319 |
-
"version": "7.8.
|
320 |
-
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.
|
321 |
-
"integrity": "sha512-
|
322 |
"dev": true
|
323 |
},
|
324 |
"@babel/plugin-proposal-async-generator-functions": {
|
@@ -393,12 +393,12 @@
|
|
393 |
}
|
394 |
},
|
395 |
"@babel/plugin-proposal-unicode-property-regex": {
|
396 |
-
"version": "7.8.
|
397 |
-
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.8.
|
398 |
-
"integrity": "sha512-
|
399 |
"dev": true,
|
400 |
"requires": {
|
401 |
-
"@babel/helper-create-regexp-features-plugin": "^7.8.
|
402 |
"@babel/helper-plugin-utils": "^7.8.3"
|
403 |
}
|
404 |
},
|
@@ -539,9 +539,9 @@
|
|
539 |
}
|
540 |
},
|
541 |
"@babel/plugin-transform-destructuring": {
|
542 |
-
"version": "7.8.
|
543 |
-
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.8.
|
544 |
-
"integrity": "sha512-
|
545 |
"dev": true,
|
546 |
"requires": {
|
547 |
"@babel/helper-plugin-utils": "^7.8.3"
|
@@ -687,9 +687,9 @@
|
|
687 |
}
|
688 |
},
|
689 |
"@babel/plugin-transform-parameters": {
|
690 |
-
"version": "7.8.
|
691 |
-
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.8.
|
692 |
-
"integrity": "sha512-
|
693 |
"dev": true,
|
694 |
"requires": {
|
695 |
"@babel/helper-call-delegate": "^7.8.7",
|
@@ -1559,12 +1559,6 @@
|
|
1559 |
"supports-color": "^5.3.0"
|
1560 |
}
|
1561 |
},
|
1562 |
-
"char-props": {
|
1563 |
-
"version": "0.1.5",
|
1564 |
-
"resolved": "https://registry.npmjs.org/char-props/-/char-props-0.1.5.tgz",
|
1565 |
-
"integrity": "sha1-W5UvniDqIc0Iyn/hNaEPb+kcEJ4=",
|
1566 |
-
"dev": true
|
1567 |
-
},
|
1568 |
"chokidar": {
|
1569 |
"version": "2.1.8",
|
1570 |
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz",
|
@@ -3412,38 +3406,6 @@
|
|
3412 |
}
|
3413 |
}
|
3414 |
},
|
3415 |
-
"gulp-jsmin": {
|
3416 |
-
"version": "0.1.5",
|
3417 |
-
"resolved": "https://registry.npmjs.org/gulp-jsmin/-/gulp-jsmin-0.1.5.tgz",
|
3418 |
-
"integrity": "sha1-Uqa9ASkf+NDhoSJaPLX3Aj+O+Yc=",
|
3419 |
-
"dev": true,
|
3420 |
-
"requires": {
|
3421 |
-
"filesize": "~2.0.0",
|
3422 |
-
"graceful-fs": "~2.0.0",
|
3423 |
-
"gulp-rename": "~1.1.0",
|
3424 |
-
"gulp-util": "~2.2.0",
|
3425 |
-
"jsmin-sourcemap": "~0.16.0",
|
3426 |
-
"map-stream": "0.0.4",
|
3427 |
-
"temp-write": "~0.1.0"
|
3428 |
-
},
|
3429 |
-
"dependencies": {
|
3430 |
-
"graceful-fs": {
|
3431 |
-
"version": "2.0.3",
|
3432 |
-
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-2.0.3.tgz",
|
3433 |
-
"integrity": "sha1-fNLNsiiko/Nule+mzBQt59GhNtA=",
|
3434 |
-
"dev": true
|
3435 |
-
},
|
3436 |
-
"gulp-rename": {
|
3437 |
-
"version": "1.1.0",
|
3438 |
-
"resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-1.1.0.tgz",
|
3439 |
-
"integrity": "sha1-kwkKqvTThsB/IFOKaIjxXvunJ6E=",
|
3440 |
-
"dev": true,
|
3441 |
-
"requires": {
|
3442 |
-
"map-stream": ">=0.0.4"
|
3443 |
-
}
|
3444 |
-
}
|
3445 |
-
}
|
3446 |
-
},
|
3447 |
"gulp-merge-media-queries": {
|
3448 |
"version": "0.2.1",
|
3449 |
"resolved": "https://registry.npmjs.org/gulp-merge-media-queries/-/gulp-merge-media-queries-0.2.1.tgz",
|
@@ -3655,6 +3617,24 @@
|
|
3655 |
}
|
3656 |
}
|
3657 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3658 |
"gulp-util": {
|
3659 |
"version": "2.2.20",
|
3660 |
"resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-2.2.20.tgz",
|
@@ -3816,6 +3796,15 @@
|
|
3816 |
"integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
|
3817 |
"dev": true
|
3818 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3819 |
"has-symbols": {
|
3820 |
"version": "1.0.1",
|
3821 |
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",
|
@@ -4206,22 +4195,6 @@
|
|
4206 |
"integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",
|
4207 |
"dev": true
|
4208 |
},
|
4209 |
-
"jsmin-sourcemap": {
|
4210 |
-
"version": "0.16.0",
|
4211 |
-
"resolved": "https://registry.npmjs.org/jsmin-sourcemap/-/jsmin-sourcemap-0.16.0.tgz",
|
4212 |
-
"integrity": "sha1-1Z6Iobc7umcPw7OYzZ+Wf0v8zKo=",
|
4213 |
-
"dev": true,
|
4214 |
-
"requires": {
|
4215 |
-
"jsmin2": "~1.1.1",
|
4216 |
-
"source-map-index-generator": "~0.1.1"
|
4217 |
-
}
|
4218 |
-
},
|
4219 |
-
"jsmin2": {
|
4220 |
-
"version": "1.1.9",
|
4221 |
-
"resolved": "https://registry.npmjs.org/jsmin2/-/jsmin2-1.1.9.tgz",
|
4222 |
-
"integrity": "sha1-qHyr7GatsX9RwMLvIkrvDGloaE8=",
|
4223 |
-
"dev": true
|
4224 |
-
},
|
4225 |
"json-schema": {
|
4226 |
"version": "0.2.3",
|
4227 |
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
|
@@ -4247,18 +4220,18 @@
|
|
4247 |
"dev": true
|
4248 |
},
|
4249 |
"json5": {
|
4250 |
-
"version": "2.1.
|
4251 |
-
"resolved": "https://registry.npmjs.org/json5/-/json5-2.1.
|
4252 |
-
"integrity": "sha512-
|
4253 |
"dev": true,
|
4254 |
"requires": {
|
4255 |
-
"minimist": "^1.2.
|
4256 |
},
|
4257 |
"dependencies": {
|
4258 |
"minimist": {
|
4259 |
-
"version": "1.2.
|
4260 |
-
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.
|
4261 |
-
"integrity": "sha512
|
4262 |
"dev": true
|
4263 |
}
|
4264 |
}
|
@@ -4542,6 +4515,21 @@
|
|
4542 |
"yallist": "^2.1.2"
|
4543 |
}
|
4544 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4545 |
"make-iterator": {
|
4546 |
"version": "1.0.1",
|
4547 |
"resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz",
|
@@ -5421,24 +5409,24 @@
|
|
5421 |
"dev": true
|
5422 |
},
|
5423 |
"regenerate-unicode-properties": {
|
5424 |
-
"version": "8.
|
5425 |
-
"resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.
|
5426 |
-
"integrity": "sha512-
|
5427 |
"dev": true,
|
5428 |
"requires": {
|
5429 |
"regenerate": "^1.4.0"
|
5430 |
}
|
5431 |
},
|
5432 |
"regenerator-runtime": {
|
5433 |
-
"version": "0.13.
|
5434 |
-
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.
|
5435 |
-
"integrity": "sha512-
|
5436 |
"dev": true
|
5437 |
},
|
5438 |
"regenerator-transform": {
|
5439 |
-
"version": "0.14.
|
5440 |
-
"resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.
|
5441 |
-
"integrity": "sha512-
|
5442 |
"dev": true,
|
5443 |
"requires": {
|
5444 |
"@babel/runtime": "^7.8.4",
|
@@ -5456,17 +5444,17 @@
|
|
5456 |
}
|
5457 |
},
|
5458 |
"regexpu-core": {
|
5459 |
-
"version": "4.
|
5460 |
-
"resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.
|
5461 |
-
"integrity": "sha512-
|
5462 |
"dev": true,
|
5463 |
"requires": {
|
5464 |
"regenerate": "^1.4.0",
|
5465 |
-
"regenerate-unicode-properties": "^8.
|
5466 |
-
"regjsgen": "^0.5.
|
5467 |
-
"regjsparser": "^0.6.
|
5468 |
"unicode-match-property-ecmascript": "^1.0.4",
|
5469 |
-
"unicode-match-property-value-ecmascript": "^1.
|
5470 |
}
|
5471 |
},
|
5472 |
"regjsgen": {
|
@@ -5979,27 +5967,6 @@
|
|
5979 |
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
|
5980 |
"dev": true
|
5981 |
},
|
5982 |
-
"source-map-index-generator": {
|
5983 |
-
"version": "0.1.2",
|
5984 |
-
"resolved": "https://registry.npmjs.org/source-map-index-generator/-/source-map-index-generator-0.1.2.tgz",
|
5985 |
-
"integrity": "sha1-e5IeTty3CG5IDcXNZKMshvnv+r0=",
|
5986 |
-
"dev": true,
|
5987 |
-
"requires": {
|
5988 |
-
"char-props": "~0.1.3",
|
5989 |
-
"source-map": "~0.1.8"
|
5990 |
-
},
|
5991 |
-
"dependencies": {
|
5992 |
-
"source-map": {
|
5993 |
-
"version": "0.1.43",
|
5994 |
-
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz",
|
5995 |
-
"integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=",
|
5996 |
-
"dev": true,
|
5997 |
-
"requires": {
|
5998 |
-
"amdefine": ">=0.0.4"
|
5999 |
-
}
|
6000 |
-
}
|
6001 |
-
}
|
6002 |
-
},
|
6003 |
"source-map-resolve": {
|
6004 |
"version": "0.5.3",
|
6005 |
"resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz",
|
@@ -6386,6 +6353,30 @@
|
|
6386 |
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
|
6387 |
"dev": true
|
6388 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6389 |
"unc-path-regex": {
|
6390 |
"version": "0.1.2",
|
6391 |
"resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz",
|
@@ -6432,15 +6423,15 @@
|
|
6432 |
}
|
6433 |
},
|
6434 |
"unicode-match-property-value-ecmascript": {
|
6435 |
-
"version": "1.
|
6436 |
-
"resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.
|
6437 |
-
"integrity": "sha512-
|
6438 |
"dev": true
|
6439 |
},
|
6440 |
"unicode-property-aliases-ecmascript": {
|
6441 |
-
"version": "1.0
|
6442 |
-
"resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.
|
6443 |
-
"integrity": "sha512-
|
6444 |
"dev": true
|
6445 |
},
|
6446 |
"union-value": {
|
65 |
}
|
66 |
},
|
67 |
"@babel/generator": {
|
68 |
+
"version": "7.8.8",
|
69 |
+
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.8.8.tgz",
|
70 |
+
"integrity": "sha512-HKyUVu69cZoclptr8t8U5b6sx6zoWjh8jiUhnuj3MpZuKT2dJ8zPTuiy31luq32swhI0SpwItCIlU8XW7BZeJg==",
|
71 |
"dev": true,
|
72 |
"requires": {
|
73 |
"@babel/types": "^7.8.7",
|
120 |
}
|
121 |
},
|
122 |
"@babel/helper-create-regexp-features-plugin": {
|
123 |
+
"version": "7.8.8",
|
124 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.8.tgz",
|
125 |
+
"integrity": "sha512-LYVPdwkrQEiX9+1R29Ld/wTrmQu1SSKYnuOk3g0CkcZMA1p0gsNxJFj/3gBdaJ7Cg0Fnek5z0DsMULePP7Lrqg==",
|
126 |
"dev": true,
|
127 |
"requires": {
|
128 |
"@babel/helper-annotate-as-pure": "^7.8.3",
|
129 |
"@babel/helper-regex": "^7.8.3",
|
130 |
+
"regexpu-core": "^4.7.0"
|
131 |
}
|
132 |
},
|
133 |
"@babel/helper-define-map": {
|
316 |
}
|
317 |
},
|
318 |
"@babel/parser": {
|
319 |
+
"version": "7.8.8",
|
320 |
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.8.tgz",
|
321 |
+
"integrity": "sha512-mO5GWzBPsPf6865iIbzNE0AvkKF3NE+2S3eRUpE+FE07BOAkXh6G+GW/Pj01hhXjve1WScbaIO4UlY1JKeqCcA==",
|
322 |
"dev": true
|
323 |
},
|
324 |
"@babel/plugin-proposal-async-generator-functions": {
|
393 |
}
|
394 |
},
|
395 |
"@babel/plugin-proposal-unicode-property-regex": {
|
396 |
+
"version": "7.8.8",
|
397 |
+
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.8.8.tgz",
|
398 |
+
"integrity": "sha512-EVhjVsMpbhLw9ZfHWSx2iy13Q8Z/eg8e8ccVWt23sWQK5l1UdkoLJPN5w69UA4uITGBnEZD2JOe4QOHycYKv8A==",
|
399 |
"dev": true,
|
400 |
"requires": {
|
401 |
+
"@babel/helper-create-regexp-features-plugin": "^7.8.8",
|
402 |
"@babel/helper-plugin-utils": "^7.8.3"
|
403 |
}
|
404 |
},
|
539 |
}
|
540 |
},
|
541 |
"@babel/plugin-transform-destructuring": {
|
542 |
+
"version": "7.8.8",
|
543 |
+
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.8.8.tgz",
|
544 |
+
"integrity": "sha512-eRJu4Vs2rmttFCdhPUM3bV0Yo/xPSdPw6ML9KHs/bjB4bLA5HXlbvYXPOD5yASodGod+krjYx21xm1QmL8dCJQ==",
|
545 |
"dev": true,
|
546 |
"requires": {
|
547 |
"@babel/helper-plugin-utils": "^7.8.3"
|
687 |
}
|
688 |
},
|
689 |
"@babel/plugin-transform-parameters": {
|
690 |
+
"version": "7.8.8",
|
691 |
+
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.8.8.tgz",
|
692 |
+
"integrity": "sha512-hC4Ld/Ulpf1psQciWWwdnUspQoQco2bMzSrwU6TmzRlvoYQe4rQFy9vnCZDTlVeCQj0JPfL+1RX0V8hCJvkgBA==",
|
693 |
"dev": true,
|
694 |
"requires": {
|
695 |
"@babel/helper-call-delegate": "^7.8.7",
|
1559 |
"supports-color": "^5.3.0"
|
1560 |
}
|
1561 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
1562 |
"chokidar": {
|
1563 |
"version": "2.1.8",
|
1564 |
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz",
|
3406 |
}
|
3407 |
}
|
3408 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3409 |
"gulp-merge-media-queries": {
|
3410 |
"version": "0.2.1",
|
3411 |
"resolved": "https://registry.npmjs.org/gulp-merge-media-queries/-/gulp-merge-media-queries-0.2.1.tgz",
|
3617 |
}
|
3618 |
}
|
3619 |
},
|
3620 |
+
"gulp-uglify": {
|
3621 |
+
"version": "3.0.2",
|
3622 |
+
"resolved": "https://registry.npmjs.org/gulp-uglify/-/gulp-uglify-3.0.2.tgz",
|
3623 |
+
"integrity": "sha512-gk1dhB74AkV2kzqPMQBLA3jPoIAPd/nlNzP2XMDSG8XZrqnlCiDGAqC+rZOumzFvB5zOphlFh6yr3lgcAb/OOg==",
|
3624 |
+
"dev": true,
|
3625 |
+
"requires": {
|
3626 |
+
"array-each": "^1.0.1",
|
3627 |
+
"extend-shallow": "^3.0.2",
|
3628 |
+
"gulplog": "^1.0.0",
|
3629 |
+
"has-gulplog": "^0.1.0",
|
3630 |
+
"isobject": "^3.0.1",
|
3631 |
+
"make-error-cause": "^1.1.1",
|
3632 |
+
"safe-buffer": "^5.1.2",
|
3633 |
+
"through2": "^2.0.0",
|
3634 |
+
"uglify-js": "^3.0.5",
|
3635 |
+
"vinyl-sourcemaps-apply": "^0.2.0"
|
3636 |
+
}
|
3637 |
+
},
|
3638 |
"gulp-util": {
|
3639 |
"version": "2.2.20",
|
3640 |
"resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-2.2.20.tgz",
|
3796 |
"integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
|
3797 |
"dev": true
|
3798 |
},
|
3799 |
+
"has-gulplog": {
|
3800 |
+
"version": "0.1.0",
|
3801 |
+
"resolved": "https://registry.npmjs.org/has-gulplog/-/has-gulplog-0.1.0.tgz",
|
3802 |
+
"integrity": "sha1-ZBTIKRNpfaUVkDl9r7EvIpZ4Ec4=",
|
3803 |
+
"dev": true,
|
3804 |
+
"requires": {
|
3805 |
+
"sparkles": "^1.0.0"
|
3806 |
+
}
|
3807 |
+
},
|
3808 |
"has-symbols": {
|
3809 |
"version": "1.0.1",
|
3810 |
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",
|
4195 |
"integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",
|
4196 |
"dev": true
|
4197 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4198 |
"json-schema": {
|
4199 |
"version": "0.2.3",
|
4200 |
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
|
4220 |
"dev": true
|
4221 |
},
|
4222 |
"json5": {
|
4223 |
+
"version": "2.1.2",
|
4224 |
+
"resolved": "https://registry.npmjs.org/json5/-/json5-2.1.2.tgz",
|
4225 |
+
"integrity": "sha512-MoUOQ4WdiN3yxhm7NEVJSJrieAo5hNSLQ5sj05OTRHPL9HOBy8u4Bu88jsC1jvqAdN+E1bJmsUcZH+1HQxliqQ==",
|
4226 |
"dev": true,
|
4227 |
"requires": {
|
4228 |
+
"minimist": "^1.2.5"
|
4229 |
},
|
4230 |
"dependencies": {
|
4231 |
"minimist": {
|
4232 |
+
"version": "1.2.5",
|
4233 |
+
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
|
4234 |
+
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
|
4235 |
"dev": true
|
4236 |
}
|
4237 |
}
|
4515 |
"yallist": "^2.1.2"
|
4516 |
}
|
4517 |
},
|
4518 |
+
"make-error": {
|
4519 |
+
"version": "1.3.6",
|
4520 |
+
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
|
4521 |
+
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
|
4522 |
+
"dev": true
|
4523 |
+
},
|
4524 |
+
"make-error-cause": {
|
4525 |
+
"version": "1.2.2",
|
4526 |
+
"resolved": "https://registry.npmjs.org/make-error-cause/-/make-error-cause-1.2.2.tgz",
|
4527 |
+
"integrity": "sha1-3wOI/NCzeBbf8KX7gQiTl3fcvJ0=",
|
4528 |
+
"dev": true,
|
4529 |
+
"requires": {
|
4530 |
+
"make-error": "^1.2.0"
|
4531 |
+
}
|
4532 |
+
},
|
4533 |
"make-iterator": {
|
4534 |
"version": "1.0.1",
|
4535 |
"resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz",
|
5409 |
"dev": true
|
5410 |
},
|
5411 |
"regenerate-unicode-properties": {
|
5412 |
+
"version": "8.2.0",
|
5413 |
+
"resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz",
|
5414 |
+
"integrity": "sha512-F9DjY1vKLo/tPePDycuH3dn9H1OTPIkVD9Kz4LODu+F2C75mgjAJ7x/gwy6ZcSNRAAkhNlJSOHRe8k3p+K9WhA==",
|
5415 |
"dev": true,
|
5416 |
"requires": {
|
5417 |
"regenerate": "^1.4.0"
|
5418 |
}
|
5419 |
},
|
5420 |
"regenerator-runtime": {
|
5421 |
+
"version": "0.13.5",
|
5422 |
+
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz",
|
5423 |
+
"integrity": "sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==",
|
5424 |
"dev": true
|
5425 |
},
|
5426 |
"regenerator-transform": {
|
5427 |
+
"version": "0.14.3",
|
5428 |
+
"resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.3.tgz",
|
5429 |
+
"integrity": "sha512-zXHNKJspmONxBViAb3ZUmFoFPnTBs3zFhCEZJiwp/gkNzxVbTqNJVjYKx6Qk1tQ1P4XLf4TbH9+KBB7wGoAaUw==",
|
5430 |
"dev": true,
|
5431 |
"requires": {
|
5432 |
"@babel/runtime": "^7.8.4",
|
5444 |
}
|
5445 |
},
|
5446 |
"regexpu-core": {
|
5447 |
+
"version": "4.7.0",
|
5448 |
+
"resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.7.0.tgz",
|
5449 |
+
"integrity": "sha512-TQ4KXRnIn6tz6tjnrXEkD/sshygKH/j5KzK86X8MkeHyZ8qst/LZ89j3X4/8HEIfHANTFIP/AbXakeRhWIl5YQ==",
|
5450 |
"dev": true,
|
5451 |
"requires": {
|
5452 |
"regenerate": "^1.4.0",
|
5453 |
+
"regenerate-unicode-properties": "^8.2.0",
|
5454 |
+
"regjsgen": "^0.5.1",
|
5455 |
+
"regjsparser": "^0.6.4",
|
5456 |
"unicode-match-property-ecmascript": "^1.0.4",
|
5457 |
+
"unicode-match-property-value-ecmascript": "^1.2.0"
|
5458 |
}
|
5459 |
},
|
5460 |
"regjsgen": {
|
5967 |
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
|
5968 |
"dev": true
|
5969 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5970 |
"source-map-resolve": {
|
5971 |
"version": "0.5.3",
|
5972 |
"resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz",
|
6353 |
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
|
6354 |
"dev": true
|
6355 |
},
|
6356 |
+
"uglify-js": {
|
6357 |
+
"version": "3.8.0",
|
6358 |
+
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.8.0.tgz",
|
6359 |
+
"integrity": "sha512-ugNSTT8ierCsDHso2jkBHXYrU8Y5/fY2ZUprfrJUiD7YpuFvV4jODLFmb3h4btQjqr5Nh4TX4XtgDfCU1WdioQ==",
|
6360 |
+
"dev": true,
|
6361 |
+
"requires": {
|
6362 |
+
"commander": "~2.20.3",
|
6363 |
+
"source-map": "~0.6.1"
|
6364 |
+
},
|
6365 |
+
"dependencies": {
|
6366 |
+
"commander": {
|
6367 |
+
"version": "2.20.3",
|
6368 |
+
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
|
6369 |
+
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
|
6370 |
+
"dev": true
|
6371 |
+
},
|
6372 |
+
"source-map": {
|
6373 |
+
"version": "0.6.1",
|
6374 |
+
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
6375 |
+
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
6376 |
+
"dev": true
|
6377 |
+
}
|
6378 |
+
}
|
6379 |
+
},
|
6380 |
"unc-path-regex": {
|
6381 |
"version": "0.1.2",
|
6382 |
"resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz",
|
6423 |
}
|
6424 |
},
|
6425 |
"unicode-match-property-value-ecmascript": {
|
6426 |
+
"version": "1.2.0",
|
6427 |
+
"resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz",
|
6428 |
+
"integrity": "sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ==",
|
6429 |
"dev": true
|
6430 |
},
|
6431 |
"unicode-property-aliases-ecmascript": {
|
6432 |
+
"version": "1.1.0",
|
6433 |
+
"resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz",
|
6434 |
+
"integrity": "sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==",
|
6435 |
"dev": true
|
6436 |
},
|
6437 |
"union-value": {
|
package.json
CHANGED
@@ -13,12 +13,12 @@
|
|
13 |
"gulp-clean-css": "^4.2.0",
|
14 |
"gulp-concat": "^2.6.1",
|
15 |
"gulp-cssmin": "^0.2.0",
|
16 |
-
"gulp-jsmin": "^0.1.5",
|
17 |
"gulp-merge-media-queries": "^0.2.1",
|
18 |
"gulp-plumber": "^1.2.1",
|
19 |
"gulp-rename": "^2.0.0",
|
20 |
"gulp-replace": "^1.0.0",
|
21 |
"gulp-sass": "^4.0.2",
|
|
|
22 |
"run-sequence": "^2.2.1"
|
23 |
},
|
24 |
"scripts": {
|
13 |
"gulp-clean-css": "^4.2.0",
|
14 |
"gulp-concat": "^2.6.1",
|
15 |
"gulp-cssmin": "^0.2.0",
|
|
|
16 |
"gulp-merge-media-queries": "^0.2.1",
|
17 |
"gulp-plumber": "^1.2.1",
|
18 |
"gulp-rename": "^2.0.0",
|
19 |
"gulp-replace": "^1.0.0",
|
20 |
"gulp-sass": "^4.0.2",
|
21 |
+
"gulp-uglify": "^3.0.2",
|
22 |
"run-sequence": "^2.2.1"
|
23 |
},
|
24 |
"scripts": {
|
readme.txt
CHANGED
@@ -93,6 +93,10 @@ e.g.
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
|
|
96 |
= 9.14.0.0 =
|
97 |
[ Add function ][ post list widget ] Cope with multi post types
|
98 |
[ Add function ] Add share button block
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 9.15.0.0 =
|
97 |
+
[ Add function ][ Contactform7 Asset Optimize ] Contact Form Speeding up
|
98 |
+
[ Specification change ] JacaScript refactaring ( Speeding up )
|
99 |
+
|
100 |
= 9.14.0.0 =
|
101 |
[ Add function ][ post list widget ] Cope with multi post types
|
102 |
[ Add function ] Add share button block
|
veu-packages.php
CHANGED
@@ -45,6 +45,7 @@ function veu_get_packages() {
|
|
45 |
TinyMCE Style Tags
|
46 |
bootstrap
|
47 |
icon
|
|
|
48 |
/*-------------------------------------------*/
|
49 |
|
50 |
/*
|
@@ -361,7 +362,7 @@ function veu_get_packages() {
|
|
361 |
'enable_only' => 1,
|
362 |
),
|
363 |
),
|
364 |
-
'default' =>
|
365 |
'include' => 'post-type-manager/post-type-manager-config.php',
|
366 |
);
|
367 |
|
@@ -409,6 +410,18 @@ function veu_get_packages() {
|
|
409 |
'include' => 'nav-menu-class-custom.php',
|
410 |
);
|
411 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
412 |
/*
|
413 |
auto_eyecatch
|
414 |
/*-------------------------------------------*/
|
@@ -471,6 +484,18 @@ function veu_get_packages() {
|
|
471 |
'include' => 'icons.php',
|
472 |
);
|
473 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
474 |
return $required_packages;
|
475 |
} // function veu_get_packages(){
|
476 |
|
45 |
TinyMCE Style Tags
|
46 |
bootstrap
|
47 |
icon
|
48 |
+
Contactform7AssetOptimize
|
49 |
/*-------------------------------------------*/
|
50 |
|
51 |
/*
|
362 |
'enable_only' => 1,
|
363 |
),
|
364 |
),
|
365 |
+
'default' => true,
|
366 |
'include' => 'post-type-manager/post-type-manager-config.php',
|
367 |
);
|
368 |
|
410 |
'include' => 'nav-menu-class-custom.php',
|
411 |
);
|
412 |
|
413 |
+
/*
|
414 |
+
Contactform7AssetOptimize
|
415 |
+
/*-------------------------------------------*/
|
416 |
+
$required_packages[] = array(
|
417 |
+
'name' => 'Contactform7AssetOptimize',
|
418 |
+
'title' => __( 'Contact Form 7 Asset Optimize', 'vk-all-in-one-expansion-unit' ),
|
419 |
+
'description' => __( 'Unqueue Contact Form 7 assets at page of unuse form.', 'vk-all-in-one-expansion-unit' ) . '<br/>* ' . __( 'Do not activate if you using css/js optimize plugin like "Autoptimize".', 'vk-all-in-one-expansion-unit' ),
|
420 |
+
'attr' => array(),
|
421 |
+
'default' => false,
|
422 |
+
'include' => '/contactform7-asset-optimize.php',
|
423 |
+
);
|
424 |
+
|
425 |
/*
|
426 |
auto_eyecatch
|
427 |
/*-------------------------------------------*/
|
484 |
'include' => 'icons.php',
|
485 |
);
|
486 |
|
487 |
+
/*
|
488 |
+
Contactform7AssetOptimize
|
489 |
+
/*-------------------------------------------*/
|
490 |
+
$required_packages[] = array(
|
491 |
+
'name' => 'Contactform7AssetOptimize',
|
492 |
+
'title' => __( 'Contactform7 Asset Optimize', 'vk-all-in-one-expansion-unit' ),
|
493 |
+
'description' => __( 'unqueue Contact Form 7 assets at page of unuse form.', 'vk-all-in-one-expansion-unit' ) . '<br/>* ' . __( 'Do not activate if you using css/js optimize plugin like "Autoptimize".', 'vk-all-in-one-expansion-unit' ),
|
494 |
+
'attr' => array(),
|
495 |
+
'default' => false,
|
496 |
+
'include' => '/contactform7-asset-optimize.php',
|
497 |
+
);
|
498 |
+
|
499 |
return $required_packages;
|
500 |
} // function veu_get_packages(){
|
501 |
|
vkExUnit.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: VK All in One Expansion Unit
|
4 |
* Plugin URI: https://ex-unit.nagoya
|
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: 9.
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vk-all-in-one-expansion-unit
|
9 |
* Domain Path: /languages
|
3 |
* Plugin Name: VK All in One Expansion Unit
|
4 |
* Plugin URI: https://ex-unit.nagoya
|
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: 9.15.1.0
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vk-all-in-one-expansion-unit
|
9 |
* Domain Path: /languages
|