VK All in One Expansion Unit - Version 9.68.3.0

Version Description

  • [ Bug fix ][ smooth scroll ] fix scroll top position on lightning g3
Download this release

Release Info

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

Code changes from version 0.68.1.0 to 9.68.3.0

inc/related_posts/related_posts.php CHANGED
@@ -1,32 +1,23 @@
1
  <?php
 
 
 
 
 
2
 
3
  /*
4
- 非推奨タグ / Deprecated Tag
5
- /*
6
- -------------------------------------------*/
7
- /*
8
- 出力先
9
- /*
10
- -------------------------------------------*/
11
- /*
12
- veu_get_related_posts()
13
- /*
14
- -------------------------------------------*/
15
- /*
16
- veu_add_related_posts_item_html()
17
- /*
18
- -------------------------------------------*/
19
- /*
20
- veu_add_related_posts_html()
21
- /*
22
- -------------------------------------------*/
23
- /*
24
- Customizer
25
- /*-------------------------------------------*/
26
 
27
- /*
28
- 非推奨タグ / Deprecated Tag
29
- /*-------------------------------------------*/
30
  /*
31
  キャメルケースは非推奨なので関数名を変更したが、
32
  プラグイン外で関数が使用されているかもしれないので念の為旧関数でも動作するように
@@ -45,9 +36,10 @@ function vkExUnit_get_relatedPosts( $post_type = 'post', $taxonomy = 'post_tag',
45
  veu_get_related_posts( $post_type, $taxonomy, $max_show_posts );
46
  }
47
 
48
- /*
49
- 出力先
50
- /*-------------------------------------------*/
 
51
  /*
52
  loop_end でも出力出来るように一時期していたが、
53
  コンテンツエリアのタグより外に出力されるなどで、
@@ -66,11 +58,14 @@ function veu_add_related_loopend( $query ) {
66
  echo veu_add_related_posts_html( '' );
67
  }
68
 
69
- /*
70
- veu_get_related_posts()
71
- /*-------------------------------------------*/
72
- /*
73
- 関連記事の投稿データを取得
 
 
 
74
  */
75
  function veu_get_related_posts( $post_type = 'post', $taxonomy = 'post_tag', $max_show_posts = 10 ) {
76
  $posts_array = '';
@@ -137,11 +132,11 @@ function veu_get_related_posts( $post_type = 'post', $taxonomy = 'post_tag', $ma
137
  return $related_posts;
138
  }
139
 
140
- /*
141
- veu_add_related_posts_item_html()
142
- -------------------------------------------*/
143
- /*
144
- 関連記事の1件分のHTML
145
  */
146
  function veu_add_related_posts_item_html( $post ) {
147
  $post_item_html = '<div class="col-sm-6 relatedPosts_item">';
@@ -163,11 +158,11 @@ function veu_add_related_posts_item_html( $post ) {
163
  return $post_item_html;
164
  }
165
 
166
- /*
167
- veu_add_related_posts_html()
168
- /*-------------------------------------------*/
169
- /*
170
- 関連記事のHTML
171
  */
172
  function veu_add_related_posts_html( $content ) {
173
 
@@ -191,7 +186,10 @@ function veu_add_related_posts_html( $content ) {
191
  }
192
 
193
  /**
194
- * since 9.37.0.0
 
 
 
195
  */
196
  function veu_get_related_posts_html() {
197
 
@@ -219,49 +217,48 @@ function veu_get_related_posts_html() {
219
 
220
  // $posts_count = mb_convert_kana($relatedPostCount, "a", "UTF-8");
221
  if ( $related_posts ) {
222
- $relatedPostsHtml = '<!-- [ .relatedPosts ] -->';
223
- $relatedPostsHtml .= '<aside class="veu_relatedPosts veu_contentAddSection">';
224
 
225
  $output = get_option( 'vkExUnit_related_options' );
226
 
227
- // テキストフィールドに値が入っていたら、表示させる。
228
  if ( ! empty( $output['related_title'] ) ) {
229
- $relatedPostTitle = $output['related_title'];
230
  } else {
231
- // 何も入っていなかったら既存のタイトルを表示させる。
232
- $relatedPostTitle = __( 'Related posts', 'vk-all-in-one-expansion-unit' );
233
  }
234
- // 書き換え用フィルターフック(カスタマイザーで変更出来るが、既存ユーザーで使用しているかもしれないため削除不可)
235
- $relatedPostTitle = apply_filters( 'veu_related_post_title', $relatedPostTitle );
236
- $relatedPostsHtml .= '<h1 class="mainSection-title relatedPosts_title">' . $relatedPostTitle . '</h1>';
237
 
238
- $i = 1;
239
- $relatedPostsHtml .= '<div class="row">';
240
  foreach ( $related_posts as $key => $post ) {
241
- $relatedPostsHtml .= veu_add_related_posts_item_html( $post );
242
  $i++;
243
  } // foreach
244
- $relatedPostsHtml .= '</div>';
245
- $relatedPostsHtml .= '</aside><!-- [ /.relatedPosts ] -->';
246
 
247
  }
248
 
249
  wp_reset_postdata();
250
  wp_reset_query();
251
 
252
- return $relatedPostsHtml;
253
  }
254
 
255
- /*
256
- Customizer
257
- /*-------------------------------------------*/
258
-
259
  if ( apply_filters( 'veu_customize_panel_activation', false ) ) {
260
  add_action( 'customize_register', 'veu_customize_register_related' );
261
  }
262
 
263
  function veu_customize_register_related( $wp_customize ) {
264
- // セクション追加
265
  $wp_customize->add_section(
266
  'veu_related_setting',
267
  array(
@@ -270,17 +267,17 @@ function veu_customize_register_related( $wp_customize ) {
270
  'panel' => 'veu_setting',
271
  )
272
  );
273
- // セッティング
274
  $wp_customize->add_setting(
275
  'vkExUnit_related_options[related_title]',
276
  array(
277
  'default' => '',
278
- 'type' => 'option', // 保存先 option or theme_mod
279
  'capability' => 'edit_theme_options',
280
  'sanitize_callback' => 'sanitize_text_field',
281
  )
282
  );
283
- // コントロール
284
  $wp_customize->add_control(
285
  'related_title',
286
  array(
@@ -292,17 +289,17 @@ function veu_customize_register_related( $wp_customize ) {
292
  )
293
  );
294
 
295
- // セッティング _ 表示件数
296
  $wp_customize->add_setting(
297
  'vkExUnit_related_options[related_display_count]',
298
  array(
299
  'default' => '',
300
- 'type' => 'option', // 保存先 option or theme_mod
301
  'capability' => 'edit_theme_options',
302
  'sanitize_callback' => 'vk_sanitize_number',
303
  )
304
  );
305
- // コントロール _ 表示件数
306
  $wp_customize->add_control(
307
  'related_display_count',
308
  array(
@@ -327,7 +324,7 @@ function veu_customize_register_related( $wp_customize ) {
327
  );
328
  }
329
 
330
- /*
331
  hook sample
332
 
333
  add_filter('veu_related_post_types', 'veu_related_post_types_custom');
@@ -347,5 +344,4 @@ function veu_related_post_args_custom( $related_post_args ){
347
  }
348
  return $related_post_args;
349
  }
350
-
351
  */
1
  <?php
2
+ /**
3
+ * Related Posts
4
+ *
5
+ * @package vektor-inc/vk-all-in-pne-expansion-unit
6
+ */
7
 
8
  /*
9
+ 非推奨タグ / Deprecated Tag
10
+ 出力先
11
+ veu_get_related_posts()
12
+ veu_add_related_posts_item_html()
13
+ veu_add_related_posts_html()
14
+ Customizer
15
+ */
16
+
17
+ /**********************************************
18
+ * 非推奨タグ / Deprecated Tag
19
+ */
 
 
 
 
 
 
 
 
 
 
 
20
 
 
 
 
21
  /*
22
  キャメルケースは非推奨なので関数名を変更したが、
23
  プラグイン外で関数が使用されているかもしれないので念の為旧関数でも動作するように
36
  veu_get_related_posts( $post_type, $taxonomy, $max_show_posts );
37
  }
38
 
39
+ /**********************************************
40
+ * 出力先
41
+ */
42
+
43
  /*
44
  loop_end でも出力出来るように一時期していたが、
45
  コンテンツエリアのタグより外に出力されるなどで、
58
  echo veu_add_related_posts_html( '' );
59
  }
60
 
61
+ /**
62
+ * 関連記事の投稿データを取得
63
+ * veu_get_related_posts()
64
+ *
65
+ * @param string $post_type : 投稿タイプ.
66
+ * @param string $taxonomy : 分類.
67
+ * @param integer $max_show_posts : 表示件数.
68
+ * @return array $related_posts : 該当の投稿リスト
69
  */
70
  function veu_get_related_posts( $post_type = 'post', $taxonomy = 'post_tag', $max_show_posts = 10 ) {
71
  $posts_array = '';
132
  return $related_posts;
133
  }
134
 
135
+ /**
136
+ * 関連記事の1件分のHTML
137
+ *
138
+ * @param object $post : post object.
139
+ * @return string : single rerated post item html
140
  */
141
  function veu_add_related_posts_item_html( $post ) {
142
  $post_item_html = '<div class="col-sm-6 relatedPosts_item">';
158
  return $post_item_html;
159
  }
160
 
161
+ /**
162
+ * 関連記事のHTMLが追加された $content を取得
163
+ *
164
+ * @param string $content : post contents.
165
+ * @return string $content added related post html
166
  */
167
  function veu_add_related_posts_html( $content ) {
168
 
186
  }
187
 
188
  /**
189
+ * Get Related Posts HTML
190
+ *
191
+ * @since 9.37.0.0
192
+ * @return string : $related_posts_html
193
  */
194
  function veu_get_related_posts_html() {
195
 
217
 
218
  // $posts_count = mb_convert_kana($relatedPostCount, "a", "UTF-8");
219
  if ( $related_posts ) {
220
+ $related_posts_html = '<!-- [ .relatedPosts ] -->';
221
+ $related_posts_html .= '<aside class="veu_relatedPosts veu_contentAddSection">';
222
 
223
  $output = get_option( 'vkExUnit_related_options' );
224
 
225
+ // テキストフィールドに値が入っていたら、表示させる.
226
  if ( ! empty( $output['related_title'] ) ) {
227
+ $related_post_title = $output['related_title'];
228
  } else {
229
+ // 何も入っていなかったら既存のタイトルを表示させる.
230
+ $related_post_title = __( 'Related posts', 'vk-all-in-one-expansion-unit' );
231
  }
232
+ // 書き換え用フィルターフック(カスタマイザーで変更出来るが、既存ユーザーで使用しているかもしれないため削除不可).
233
+ $related_post_title = apply_filters( 'veu_related_post_title', $related_post_title );
234
+ $related_posts_html .= '<h1 class="mainSection-title relatedPosts_title">' . $related_post_title . '</h1>';
235
 
236
+ $i = 1;
237
+ $related_posts_html .= '<div class="row">';
238
  foreach ( $related_posts as $key => $post ) {
239
+ $related_posts_html .= veu_add_related_posts_item_html( $post );
240
  $i++;
241
  } // foreach
242
+ $related_posts_html .= '</div>';
243
+ $related_posts_html .= '</aside><!-- [ /.relatedPosts ] -->';
244
 
245
  }
246
 
247
  wp_reset_postdata();
248
  wp_reset_query();
249
 
250
+ return $related_posts_html;
251
  }
252
 
253
+ /**********************************************
254
+ * Customizer
255
+ */
 
256
  if ( apply_filters( 'veu_customize_panel_activation', false ) ) {
257
  add_action( 'customize_register', 'veu_customize_register_related' );
258
  }
259
 
260
  function veu_customize_register_related( $wp_customize ) {
261
+ // セクション追加.
262
  $wp_customize->add_section(
263
  'veu_related_setting',
264
  array(
267
  'panel' => 'veu_setting',
268
  )
269
  );
270
+ // セッティング.
271
  $wp_customize->add_setting(
272
  'vkExUnit_related_options[related_title]',
273
  array(
274
  'default' => '',
275
+ 'type' => 'option', // 保存先 option or theme_mod.
276
  'capability' => 'edit_theme_options',
277
  'sanitize_callback' => 'sanitize_text_field',
278
  )
279
  );
280
+ // コントロール.
281
  $wp_customize->add_control(
282
  'related_title',
283
  array(
289
  )
290
  );
291
 
292
+ // セッティング _ 表示件数.
293
  $wp_customize->add_setting(
294
  'vkExUnit_related_options[related_display_count]',
295
  array(
296
  'default' => '',
297
+ 'type' => 'option', // 保存先 option or theme_mod.
298
  'capability' => 'edit_theme_options',
299
  'sanitize_callback' => 'vk_sanitize_number',
300
  )
301
  );
302
+ // コントロール _ 表示件数.
303
  $wp_customize->add_control(
304
  'related_display_count',
305
  array(
324
  );
325
  }
326
 
327
+ /******************************
328
  hook sample
329
 
330
  add_filter('veu_related_post_types', 'veu_related_post_types_custom');
344
  }
345
  return $related_post_args;
346
  }
 
347
  */
inc/smooth-scroll/js/smooth-scroll.js CHANGED
@@ -35,6 +35,20 @@
35
  y = destination.getBoundingClientRect().top + scroll
36
  }
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  window.scrollTo({
39
  top: y,
40
  behavior: 'smooth'
35
  y = destination.getBoundingClientRect().top + scroll
36
  }
37
 
38
+ // G3 の場合要の補正
39
+ // * header_scrolled の方が適切だが、クリック時に header_scrolled が消えて判定に使えないため
40
+ if ( document.body.classList.contains('scrolled') == true ) {
41
+ // ヘッダーを取得
42
+ let siteHeader = document.getElementById('site-header');
43
+ if (siteHeader){
44
+ // ヘッダーの高さを取得
45
+ let headerHeight = siteHeader.clientHeight;
46
+ if (headerHeight){
47
+ y = y - headerHeight;
48
+ }
49
+ }
50
+ }
51
+
52
  window.scrollTo({
53
  top: y,
54
  behavior: 'smooth'
inc/smooth-scroll/js/smooth-scroll.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function polyfill(){var t,l,c,f,e,o,s=window,p=document;function a(t,o){this.scrollLeft=t,this.scrollTop=o}function r(t){if(null===t||"object"!==_typeof(t)||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===_typeof(t)&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function i(t,o){return"Y"===o?t.clientHeight+e<t.scrollHeight:"X"===o?t.clientWidth+e<t.scrollWidth:void 0}function n(t,o){o=s.getComputedStyle(t,null)["overflow"+o];return"auto"===o||"scroll"===o}function d(t){for(;t!==p.body&&!1===(e=void 0,e=i(o=t,"Y")&&n(o,"Y"),o=i(o,"X")&&n(o,"X"),e||o);)t=t.parentNode||t.host;var o,e;return t}function u(t){var o,e=(f()-t.startTime)/l;o=e=1<e?1:e,e=.5*(1-Math.cos(Math.PI*o)),o=t.startX+(t.x-t.startX)*e,e=t.startY+(t.y-t.startY)*e,t.method.call(t.scrollable,o,e),o===t.x&&e===t.y||s.requestAnimationFrame(u.bind(s,t))}function h(t,o,e){var l,r,i,n=f(),t=t===p.body?(r=(l=s).scrollX||s.pageXOffset,i=s.scrollY||s.pageYOffset,c.scroll):(r=(l=t).scrollLeft,i=t.scrollTop,a);u({scrollable:l,method:t,startTime:n,startX:r,startY:i,x:o,y:e})}"scrollBehavior"in p.documentElement.style&&!0!==s.__forceSmoothScrollPolyfill__||(t=s.HTMLElement||s.Element,l=468,c={scroll:s.scroll||s.scrollTo,scrollBy:s.scrollBy,elementScroll:t.prototype.scroll||a,scrollIntoView:t.prototype.scrollIntoView},f=s.performance&&s.performance.now?s.performance.now.bind(s.performance):Date.now,o=s.navigator.userAgent,e=new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(o)?1:0,s.scroll=s.scrollTo=function(){void 0!==arguments[0]&&(!0!==r(arguments[0])?h.call(s,p.body,void 0!==arguments[0].left?~~arguments[0].left:s.scrollX||s.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:s.scrollY||s.pageYOffset):c.scroll.call(s,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:s.scrollX||s.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:s.scrollY||s.pageYOffset))},s.scrollBy=function(){void 0!==arguments[0]&&(r(arguments[0])?c.scrollBy.call(s,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(s,p.body,~~arguments[0].left+(s.scrollX||s.pageXOffset),~~arguments[0].top+(s.scrollY||s.pageYOffset)))},t.prototype.scroll=t.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==r(arguments[0])){var t=arguments[0].left,o=arguments[0].top;h.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===o?this.scrollTop:~~o)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");c.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==_typeof(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},t.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==r(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):c.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},t.prototype.scrollIntoView=function(){var t,o,e;!0!==r(arguments[0])?(o=(t=d(this)).getBoundingClientRect(),e=this.getBoundingClientRect(),t!==p.body?(h.call(this,t,t.scrollLeft+e.left-o.left,t.scrollTop+e.top-o.top),"fixed"!==s.getComputedStyle(t).position&&s.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):s.scrollBy({left:e.left,top:e.top,behavior:"smooth"})):c.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])})}!function(n,c){n.addEventListener("load",function(){function e(t){for(var o=t.path||t.composedPath&&t.composedPath(),e=0;e<o.length&&!o[e].getAttribute("href");e++);var l,r=o[e].getAttribute("href");if(r&&!(0<["tab"].indexOf(o[e].getAttribute("role")))&&"#top__fullcarousel"!==o[e].getAttribute("href")){if(0<["button"].indexOf(o[e].getAttribute("role"))){var i=t.getAttribute("href");if(0==i.indexOf("#")&&"#"===i)return}o[e].getAttribute("data-toggle")||o[e].getAttribute("carousel-control")||(l=0,(i=c.getElementById(r.slice(1)))&&(r=n.pageYOffset||c.documentElement.scrollTop,l=i.getBoundingClientRect().top+r),n.scrollTo({top:l,behavior:"smooth"}),t.preventDefault())}}Array.prototype.forEach.call(c.getElementsByTagName("a"),function(t){var o=t.getAttribute("href");o&&0==o.indexOf("#")&&"#"!==o&&t.addEventListener("click",e)})})}(window,document),"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports={polyfill:polyfill}:polyfill();
1
+ "use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function polyfill(){var t,l,c,s,e,o,f=window,a=document;function p(t,o){this.scrollLeft=t,this.scrollTop=o}function r(t){if(null===t||"object"!==_typeof(t)||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===_typeof(t)&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function i(t,o){return"Y"===o?t.clientHeight+e<t.scrollHeight:"X"===o?t.clientWidth+e<t.scrollWidth:void 0}function n(t,o){o=f.getComputedStyle(t,null)["overflow"+o];return"auto"===o||"scroll"===o}function d(t){for(;t!==a.body&&!1===(e=void 0,e=i(o=t,"Y")&&n(o,"Y"),o=i(o,"X")&&n(o,"X"),e||o);)t=t.parentNode||t.host;var o,e;return t}function u(t){var o,e=(s()-t.startTime)/l;o=e=1<e?1:e,e=.5*(1-Math.cos(Math.PI*o)),o=t.startX+(t.x-t.startX)*e,e=t.startY+(t.y-t.startY)*e,t.method.call(t.scrollable,o,e),o===t.x&&e===t.y||f.requestAnimationFrame(u.bind(f,t))}function h(t,o,e){var l,r,i,n=s(),t=t===a.body?(r=(l=f).scrollX||f.pageXOffset,i=f.scrollY||f.pageYOffset,c.scroll):(r=(l=t).scrollLeft,i=t.scrollTop,p);u({scrollable:l,method:t,startTime:n,startX:r,startY:i,x:o,y:e})}"scrollBehavior"in a.documentElement.style&&!0!==f.__forceSmoothScrollPolyfill__||(t=f.HTMLElement||f.Element,l=468,c={scroll:f.scroll||f.scrollTo,scrollBy:f.scrollBy,elementScroll:t.prototype.scroll||p,scrollIntoView:t.prototype.scrollIntoView},s=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now,o=f.navigator.userAgent,e=new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(o)?1:0,f.scroll=f.scrollTo=function(){void 0!==arguments[0]&&(!0!==r(arguments[0])?h.call(f,a.body,void 0!==arguments[0].left?~~arguments[0].left:f.scrollX||f.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:f.scrollY||f.pageYOffset):c.scroll.call(f,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:f.scrollX||f.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:f.scrollY||f.pageYOffset))},f.scrollBy=function(){void 0!==arguments[0]&&(r(arguments[0])?c.scrollBy.call(f,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(f,a.body,~~arguments[0].left+(f.scrollX||f.pageXOffset),~~arguments[0].top+(f.scrollY||f.pageYOffset)))},t.prototype.scroll=t.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==r(arguments[0])){var t=arguments[0].left,o=arguments[0].top;h.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===o?this.scrollTop:~~o)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");c.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==_typeof(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},t.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==r(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):c.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},t.prototype.scrollIntoView=function(){var t,o,e;!0!==r(arguments[0])?(o=(t=d(this)).getBoundingClientRect(),e=this.getBoundingClientRect(),t!==a.body?(h.call(this,t,t.scrollLeft+e.left-o.left,t.scrollTop+e.top-o.top),"fixed"!==f.getComputedStyle(t).position&&f.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):f.scrollBy({left:e.left,top:e.top,behavior:"smooth"})):c.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])})}!function(n,c){n.addEventListener("load",function(){function e(t){for(var o=t.path||t.composedPath&&t.composedPath(),e=0;e<o.length&&!o[e].getAttribute("href");e++);var l,r=o[e].getAttribute("href");if(r&&!(0<["tab"].indexOf(o[e].getAttribute("role")))&&"#top__fullcarousel"!==o[e].getAttribute("href")){if(0<["button"].indexOf(o[e].getAttribute("role"))){var i=t.getAttribute("href");if(0==i.indexOf("#")&&"#"===i)return}o[e].getAttribute("data-toggle")||o[e].getAttribute("carousel-control")||(i=0,(r=c.getElementById(r.slice(1)))&&(l=n.pageYOffset||c.documentElement.scrollTop,i=r.getBoundingClientRect().top+l),1==c.body.classList.contains("scrolled")&&(!(l=c.getElementById("site-header"))||(l=l.clientHeight)&&(i-=l)),n.scrollTo({top:i,behavior:"smooth"}),t.preventDefault())}}Array.prototype.forEach.call(c.getElementsByTagName("a"),function(t){var o=t.getAttribute("href");o&&0==o.indexOf("#")&&"#"!==o&&t.addEventListener("click",e)})})}(window,document),"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports={polyfill:polyfill}:polyfill();
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Fa
5
  Requires at least: 5.3.0
6
  Tested up to: 5.8.1
7
  Requires PHP: 5.6
8
- Stable tag: 9.68.1.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -82,6 +82,12 @@ e.g.
82
 
83
  == Changelog ==
84
 
 
 
 
 
 
 
85
  = 9.68.1.0 =
86
  * [ Bug fix ] fix wp title php error
87
 
5
  Requires at least: 5.3.0
6
  Tested up to: 5.8.1
7
  Requires PHP: 5.6
8
+ Stable tag: 9.68.3.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
82
 
83
  == Changelog ==
84
 
85
+ = 9.68.3.0 =
86
+ * [ Bug fix ][ smooth scroll ] fix scroll top position on lightning g3
87
+
88
+ = 9.68.2.0 =
89
+ * [ Bug fix ][ smooth scroll ] fix scroll top position on lightning g3
90
+
91
  = 9.68.1.0 =
92
  * [ Bug fix ] fix wp title php error
93
 
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.68.1.0
7
  * Requires PHP: 5.6
8
  * Author: Vektor,Inc.
9
  * Text Domain: vk-all-in-one-expansion-unit
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.68.3.0
7
  * Requires PHP: 5.6
8
  * Author: Vektor,Inc.
9
  * Text Domain: vk-all-in-one-expansion-unit