VK All in One Expansion Unit - Version 9.64.2.0

Version Description

  • [ Bug fix ][ Call To Action ] Fix comment bug.
Download this release

Release Info

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

Code changes from version 9.64.1.0 to 9.64.2.0

inc/call-to-action/package/class-vk-call-to-action.php CHANGED
@@ -71,13 +71,13 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
71
  }
72
 
73
  public static function set_posttype() {
74
- global $vk_call_to_action_textdomain;
75
  $labels = array(
76
  'name' => 'CTA',
77
  'singular_name' => 'CTA',
78
- 'edit_item' => __( 'Edit CTA', $vk_call_to_action_textdomain ),
79
- 'add_new_item' => __( 'Add new CTA', $vk_call_to_action_textdomain ),
80
- 'new_item' => __( 'New CTA', $vk_call_to_action_textdomain ),
81
  );
82
 
83
  $args = array(
@@ -102,9 +102,9 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
102
 
103
 
104
  public static function add_metabox_cta_register() {
105
- global $vk_call_to_action_textdomain;
106
  // Meta box of CTA edit and register page
107
- add_meta_box( 'vkExUnit_cta_url', __( 'CTA Contents', $vk_call_to_action_textdomain ), array( __CLASS__, 'render_meta_box_cta' ), self::POST_TYPE, 'normal', 'high' );
108
  }
109
 
110
 
@@ -140,7 +140,7 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
140
  return $post_id;
141
  } elseif ( $_POST['_vkExUnit_cta_switch'] == 'cta_content' ) {
142
 
143
- // カスタムフィールドの設定
144
  $custom_fields = array(
145
  'vkExUnit_cta_use_type' => array(
146
  'escape_type' => '',
@@ -174,7 +174,7 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
174
  ),
175
  );
176
 
177
- // カスタムフィールドの保存
178
  foreach ( $custom_fields as $custom_field_name => $custom_field_options ) {
179
 
180
  if ( isset( $_POST[ $custom_field_name ] ) ) {
@@ -227,7 +227,6 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
227
 
228
  public static function render_meta_box_cta() {
229
 
230
- global $vk_call_to_action_textdomain;
231
  echo '<input type="hidden" name="_nonce_vkExUnit_custom_cta" id="_nonce_vkExUnit__custom_field_metaKeyword" value="' . wp_create_nonce( plugin_basename( __FILE__ ) ) . '" />';
232
  $imgid = get_post_meta( get_the_id(), 'vkExUnit_cta_img', true );
233
  $cta_image = wp_get_attachment_image_src( $imgid, 'large' );
@@ -284,15 +283,15 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
284
  });
285
  </script>
286
  <input type="hidden" name="_vkExUnit_cta_switch" value="cta_content" />
287
- <p><?php _e( 'You can create it with a free layout in the content field using, such as Outer block and PR Content block in VK Blocks.', $vk_call_to_action_textdomain ); ?><br>
288
- <?php _e( 'If the contents field is entered, the contents of the body will be displayed with priority, so the following contents will be ignored.', $vk_call_to_action_textdomain ); ?><br>
289
- * <?php _e( 'The entered contents are displayed directly. You can not use Dynamic blocks, reuse blocks, etc.', $vk_call_to_action_textdomain ); ?>
290
  </p>
291
  <table class="form-table">
292
 
293
  <tr>
294
  <th>
295
- <label for="vkExUnit_cta_use_type"><?php _e( 'Use Classic layout', $vk_call_to_action_textdomain ); ?></label>
296
  </th>
297
  <td>
298
  <?php
@@ -309,42 +308,42 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
309
  </tr>
310
 
311
  <tr>
312
- <th><?php _e( 'CTA image', $vk_call_to_action_textdomain ); ?></th>
313
  <td>
314
  <div id="cta-thumbnail_box" >
315
  <img id="cta-thumbnail_image" src="<?php echo ( $cta_image ) ? $cta_image[0] : ''; ?>" class="<?php echo ( $cta_image ) ? '' : 'noimage'; ?>" />
316
  </div>
317
  <div id="cta-thumbnail_control" class="<?php echo ( $cta_image ) ? 'change' : 'add'; ?>">
318
- <button id="media_thumb_url_add" class="cta-media_btn button button-default"><?php _e( 'Add image', $vk_call_to_action_textdomain ); ?></button>
319
- <button id="media_thumb_url_change" class="cta-media_btn button button-default"><?php _e( 'Change image', $vk_call_to_action_textdomain ); ?></button>
320
- <button id="media_thumb_url_remove" class="button button-default"><?php _e( 'Remove image', $vk_call_to_action_textdomain ); ?></button>
321
  </div>
322
  <input type="hidden" name="vkExUnit_cta_img" class="vkExUnit_cta_img" value="<?php echo $imgid; ?>" />
323
  </td>
324
  </tr>
325
- <tr><th><label for="vkExUnit_cta_img_position"><?php _e( 'CTA image position', $vk_call_to_action_textdomain ); ?></label></th>
326
  <td>
327
  <select name="vkExUnit_cta_img_position" id="vkExUnit_cta_img_position">
328
- <option value="right" <?php echo ( $image_position == 'right' ) ? 'selected' : ''; ?> ><?php _e( 'right', $vk_call_to_action_textdomain ); ?></option>
329
- <option value="center" <?php echo ( $image_position == 'center' ) ? 'selected' : ''; ?> ><?php _e( 'center', $vk_call_to_action_textdomain ); ?></option>
330
- <option value="left" <?php echo ( $image_position == 'left' ) ? 'selected' : ''; ?> ><?php _e( 'left', $vk_call_to_action_textdomain ); ?></option>
331
  </select>
332
  </td></tr>
333
  <tr><th>
334
- <label for="vkExUnit_cta_button_text"><?php _e( 'Button text', $vk_call_to_action_textdomain ); ?></label></th><td>
335
  <input type="text" name="vkExUnit_cta_button_text" id="vkExUnit_cta_button_text" value="<?php echo esc_html( get_post_meta( get_the_id(), 'vkExUnit_cta_button_text', true ) ); ?>" />
336
  </td></tr>
337
  <tr><th>
338
- <label for="vkExUnit_cta_button_icon"><?php _e( 'Button icon', $vk_call_to_action_textdomain ); ?></label></th>
339
  <td>
340
- <p><?php _e( 'To choose your favorite icon, and enter the class.', $vk_call_to_action_textdomain ); ?></p>
341
  <div class="vkExUnit_cta_button_icon_inputset">
342
  <dl>
343
- <dt><label for="icon_before"><?php _e( 'Before :', $vk_call_to_action_textdomain ); ?></label></dt>
344
  <dd><input type="text" name="vkExUnit_cta_button_icon_before" id="vkExUnit_cta_button_icon_before" value="<?php echo get_post_meta( get_the_id(), 'vkExUnit_cta_button_icon_before', true ); ?>" /></dd>
345
  </dl>
346
  <dl>
347
- <dt><label for="icon_after"><?php _e( 'After :', $vk_call_to_action_textdomain ); ?></label></dt>
348
  <dd><input type="text" name="vkExUnit_cta_button_icon_after" id="vkExUnit_cta_button_icon_after" value="<?php echo get_post_meta( get_the_id(), 'vkExUnit_cta_button_icon_after', true ); ?>" /></dd>
349
  </dl>
350
  </div>
@@ -358,7 +357,7 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
358
  </p>
359
  </td></tr>
360
  <tr><th>
361
- <label for="vkExUnit_cta_url"><?php _e( 'Button link url', $vk_call_to_action_textdomain ); ?></label></th><td>
362
  <input type="url" name="vkExUnit_cta_url" id="vkExUnit_cta_url" placeholder="https://" value="<?php echo get_post_meta( get_the_id(), 'vkExUnit_cta_url', true ); ?>" />
363
  </td></tr>
364
  <tr><th>
@@ -371,17 +370,17 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
371
  $checked = '';
372
  }
373
  ?>
374
- <label for="vkExUnit_cta_url_blank"><?php _e( 'Target window', $vk_call_to_action_textdomain ); ?></label></th><td>
375
  <input type="checkbox" id="vkExUnit_cta_url_blank" name="vkExUnit_cta_url_blank" value="window_self"<?php echo $checked; ?> />
376
  <label for="vkExUnit_cta_url_blank"><?php _e( 'Open in a self window', 'vk-all-in-one-expansion-unit' ); ?></label>
377
  </td></tr>
378
- <tr><th><label for="vkExUnit_cta_text"><?php _e( 'Text message', $vk_call_to_action_textdomain ); ?>
379
  </th>
380
  <td>
381
  <textarea name="vkExUnit_cta_text" id="vkExUnit_cta_text" rows="10em" cols="50em"><?php echo get_post_meta( get_the_id(), 'vkExUnit_cta_text', true ); ?></textarea>
382
  </td></tr>
383
  </table>
384
- <a href="<?php echo admin_url( 'admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings' ); ?>" class="button button-default" target="_blank"><?php _e( 'CTA setting', $vk_call_to_action_textdomain ); ?></a>
385
  <?php
386
  }
387
 
@@ -415,12 +414,10 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
415
  */
416
  public static function render_cta_content( $id ) {
417
 
418
- global $vk_call_to_action_textdomain;
419
-
420
  global $post;
421
 
422
- // 各記事で非表示指定されてたら表示しない
423
- if ( is_singular() ){
424
  $post_config = get_post_meta( $post->ID, 'vkexunit_cta_each_option', true );
425
  if ( 'disable' === $post_config ) {
426
  return;
@@ -428,27 +425,33 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
428
  }
429
 
430
  if ( ! $id ) {
431
- return ''; }
 
432
  $post = self::get_cta_post( $id );
433
 
434
- // たぶん何か必ず $post にはデータが返ってくるので事実上不要
435
  if ( ! $post ) {
436
  return ''; }
437
 
438
- // 本文に入力がある場合は本文を表示
439
  $cta_content = $post->post_content;
440
- if ( $cta_content && $post->vkExUnit_cta_use_type != 'veu_cta_normal' ) {
441
  $content = $cta_content;
442
  } else {
443
- // 旧 CTA レイアウト
444
  include dirname( __FILE__ ) . '/view-actionbox.php';
445
  }
446
 
447
- // Display Edit Button
448
- if ( $url = get_edit_post_link( $post->ID ) ) {
449
- $content .= '<div class="veu_adminEdit"><a href="' . $url . '" class="btn btn-default" target="_blank">' . __( 'Edit CTA', $vk_call_to_action_textdomain ) . '</a></div>';
 
450
  }
451
- // wp_kses_post でエスケープすると outerブロックが出力するstyle属性を無効化される
 
 
 
 
452
  return do_blocks( do_shortcode( $content ) );
453
  }
454
 
@@ -482,11 +485,11 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
482
  if ( $post_config ) {
483
 
484
  // 「表示しない」が選択されていたら $id には nullを返す( CTAは表示されない )
485
- if ( $post_config == 'disable' ) {
486
  return null; }
487
 
488
  // 「表示しない」が選択されていたら $id には nullを返す( CTAは表示されない )
489
- if ( $post_config == 'random' ) {
490
  return self::cta_id_random();
491
  }
492
  return $post_config;
@@ -505,7 +508,6 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
505
  if (
506
  isset( $option[ $post_type ] ) &&
507
  is_numeric( $option[ $post_type ] )
508
- // $option[ $post_type ] > 0
509
  ) {
510
  // その数字(表示するCTAの投稿ID)を返す
511
  return $option[ $post_type ];
@@ -663,7 +665,7 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
663
 
664
 
665
  public static function render_configPage() {
666
- global $vk_call_to_action_textdomain;
667
  $options = self::get_option();
668
  $ctas = self::get_ctas( true, ' - ' );
669
 
@@ -672,7 +674,7 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
672
  $ctas,
673
  array(
674
  'key' => 'random',
675
- 'label' => __( 'Random', $vk_call_to_action_textdomain ),
676
  )
677
  );
678
  // 表示しないを先頭に追加
@@ -680,7 +682,7 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
680
  $ctas,
681
  array(
682
  'key' => 0,
683
- 'label' => __( 'Disable display', $vk_call_to_action_textdomain ),
684
  )
685
  );
686
 
71
  }
72
 
73
  public static function set_posttype() {
74
+
75
  $labels = array(
76
  'name' => 'CTA',
77
  'singular_name' => 'CTA',
78
+ 'edit_item' => __( 'Edit CTA', 'vk-all-in-one-expansion-unit' ),
79
+ 'add_new_item' => __( 'Add new CTA', 'vk-all-in-one-expansion-unit' ),
80
+ 'new_item' => __( 'New CTA', 'vk-all-in-one-expansion-unit' ),
81
  );
82
 
83
  $args = array(
102
 
103
 
104
  public static function add_metabox_cta_register() {
105
+
106
  // Meta box of CTA edit and register page
107
+ add_meta_box( 'vkExUnit_cta_url', __( 'CTA Contents', 'vk-all-in-one-expansion-unit' ), array( __CLASS__, 'render_meta_box_cta' ), self::POST_TYPE, 'normal', 'high' );
108
  }
109
 
110
 
140
  return $post_id;
141
  } elseif ( $_POST['_vkExUnit_cta_switch'] == 'cta_content' ) {
142
 
143
+ // カスタムフィールドの設定.
144
  $custom_fields = array(
145
  'vkExUnit_cta_use_type' => array(
146
  'escape_type' => '',
174
  ),
175
  );
176
 
177
+ // カスタムフィールドの保存.
178
  foreach ( $custom_fields as $custom_field_name => $custom_field_options ) {
179
 
180
  if ( isset( $_POST[ $custom_field_name ] ) ) {
227
 
228
  public static function render_meta_box_cta() {
229
 
 
230
  echo '<input type="hidden" name="_nonce_vkExUnit_custom_cta" id="_nonce_vkExUnit__custom_field_metaKeyword" value="' . wp_create_nonce( plugin_basename( __FILE__ ) ) . '" />';
231
  $imgid = get_post_meta( get_the_id(), 'vkExUnit_cta_img', true );
232
  $cta_image = wp_get_attachment_image_src( $imgid, 'large' );
283
  });
284
  </script>
285
  <input type="hidden" name="_vkExUnit_cta_switch" value="cta_content" />
286
+ <p><?php _e( 'You can create it with a free layout in the content field using, such as Outer block and PR Content block in VK Blocks.', 'vk-all-in-one-expansion-unit' ); ?><br>
287
+ <?php _e( 'If the contents field is entered, the contents of the body will be displayed with priority, so the following contents will be ignored.', 'vk-all-in-one-expansion-unit' ); ?><br>
288
+ * <?php _e( 'The entered contents are displayed directly. You can not use Dynamic blocks, reuse blocks, etc.', 'vk-all-in-one-expansion-unit' ); ?>
289
  </p>
290
  <table class="form-table">
291
 
292
  <tr>
293
  <th>
294
+ <label for="vkExUnit_cta_use_type"><?php _e( 'Use Classic layout', 'vk-all-in-one-expansion-unit' ); ?></label>
295
  </th>
296
  <td>
297
  <?php
308
  </tr>
309
 
310
  <tr>
311
+ <th><?php _e( 'CTA image', 'vk-all-in-one-expansion-unit' ); ?></th>
312
  <td>
313
  <div id="cta-thumbnail_box" >
314
  <img id="cta-thumbnail_image" src="<?php echo ( $cta_image ) ? $cta_image[0] : ''; ?>" class="<?php echo ( $cta_image ) ? '' : 'noimage'; ?>" />
315
  </div>
316
  <div id="cta-thumbnail_control" class="<?php echo ( $cta_image ) ? 'change' : 'add'; ?>">
317
+ <button id="media_thumb_url_add" class="cta-media_btn button button-default"><?php _e( 'Add image', 'vk-all-in-one-expansion-unit' ); ?></button>
318
+ <button id="media_thumb_url_change" class="cta-media_btn button button-default"><?php _e( 'Change image', 'vk-all-in-one-expansion-unit' ); ?></button>
319
+ <button id="media_thumb_url_remove" class="button button-default"><?php _e( 'Remove image', 'vk-all-in-one-expansion-unit' ); ?></button>
320
  </div>
321
  <input type="hidden" name="vkExUnit_cta_img" class="vkExUnit_cta_img" value="<?php echo $imgid; ?>" />
322
  </td>
323
  </tr>
324
+ <tr><th><label for="vkExUnit_cta_img_position"><?php _e( 'CTA image position', 'vk-all-in-one-expansion-unit' ); ?></label></th>
325
  <td>
326
  <select name="vkExUnit_cta_img_position" id="vkExUnit_cta_img_position">
327
+ <option value="right" <?php echo ( $image_position == 'right' ) ? 'selected' : ''; ?> ><?php _e( 'right', 'vk-all-in-one-expansion-unit' ); ?></option>
328
+ <option value="center" <?php echo ( $image_position == 'center' ) ? 'selected' : ''; ?> ><?php _e( 'center', 'vk-all-in-one-expansion-unit' ); ?></option>
329
+ <option value="left" <?php echo ( $image_position == 'left' ) ? 'selected' : ''; ?> ><?php _e( 'left', 'vk-all-in-one-expansion-unit' ); ?></option>
330
  </select>
331
  </td></tr>
332
  <tr><th>
333
+ <label for="vkExUnit_cta_button_text"><?php _e( 'Button text', 'vk-all-in-one-expansion-unit' ); ?></label></th><td>
334
  <input type="text" name="vkExUnit_cta_button_text" id="vkExUnit_cta_button_text" value="<?php echo esc_html( get_post_meta( get_the_id(), 'vkExUnit_cta_button_text', true ) ); ?>" />
335
  </td></tr>
336
  <tr><th>
337
+ <label for="vkExUnit_cta_button_icon"><?php _e( 'Button icon', 'vk-all-in-one-expansion-unit' ); ?></label></th>
338
  <td>
339
+ <p><?php _e( 'To choose your favorite icon, and enter the class.', 'vk-all-in-one-expansion-unit' ); ?></p>
340
  <div class="vkExUnit_cta_button_icon_inputset">
341
  <dl>
342
+ <dt><label for="icon_before"><?php _e( 'Before :', 'vk-all-in-one-expansion-unit' ); ?></label></dt>
343
  <dd><input type="text" name="vkExUnit_cta_button_icon_before" id="vkExUnit_cta_button_icon_before" value="<?php echo get_post_meta( get_the_id(), 'vkExUnit_cta_button_icon_before', true ); ?>" /></dd>
344
  </dl>
345
  <dl>
346
+ <dt><label for="icon_after"><?php _e( 'After :', 'vk-all-in-one-expansion-unit' ); ?></label></dt>
347
  <dd><input type="text" name="vkExUnit_cta_button_icon_after" id="vkExUnit_cta_button_icon_after" value="<?php echo get_post_meta( get_the_id(), 'vkExUnit_cta_button_icon_after', true ); ?>" /></dd>
348
  </dl>
349
  </div>
357
  </p>
358
  </td></tr>
359
  <tr><th>
360
+ <label for="vkExUnit_cta_url"><?php _e( 'Button link url', 'vk-all-in-one-expansion-unit' ); ?></label></th><td>
361
  <input type="url" name="vkExUnit_cta_url" id="vkExUnit_cta_url" placeholder="https://" value="<?php echo get_post_meta( get_the_id(), 'vkExUnit_cta_url', true ); ?>" />
362
  </td></tr>
363
  <tr><th>
370
  $checked = '';
371
  }
372
  ?>
373
+ <label for="vkExUnit_cta_url_blank"><?php _e( 'Target window', 'vk-all-in-one-expansion-unit' ); ?></label></th><td>
374
  <input type="checkbox" id="vkExUnit_cta_url_blank" name="vkExUnit_cta_url_blank" value="window_self"<?php echo $checked; ?> />
375
  <label for="vkExUnit_cta_url_blank"><?php _e( 'Open in a self window', 'vk-all-in-one-expansion-unit' ); ?></label>
376
  </td></tr>
377
+ <tr><th><label for="vkExUnit_cta_text"><?php _e( 'Text message', 'vk-all-in-one-expansion-unit' ); ?>
378
  </th>
379
  <td>
380
  <textarea name="vkExUnit_cta_text" id="vkExUnit_cta_text" rows="10em" cols="50em"><?php echo get_post_meta( get_the_id(), 'vkExUnit_cta_text', true ); ?></textarea>
381
  </td></tr>
382
  </table>
383
+ <a href="<?php echo admin_url( 'admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings' ); ?>" class="button button-default" target="_blank"><?php _e( 'CTA setting', 'vk-all-in-one-expansion-unit' ); ?></a>
384
  <?php
385
  }
386
 
414
  */
415
  public static function render_cta_content( $id ) {
416
 
 
 
417
  global $post;
418
 
419
+ // 各記事で非表示指定されてたら表示しない.
420
+ if ( is_singular() ) {
421
  $post_config = get_post_meta( $post->ID, 'vkexunit_cta_each_option', true );
422
  if ( 'disable' === $post_config ) {
423
  return;
425
  }
426
 
427
  if ( ! $id ) {
428
+ return '';
429
+ }
430
  $post = self::get_cta_post( $id );
431
 
432
+ // たぶん何か必ず $post にはデータが返ってくるので事実上不要.
433
  if ( ! $post ) {
434
  return ''; }
435
 
436
+ // 本文に入力がある場合は本文を表示.
437
  $cta_content = $post->post_content;
438
+ if ( $cta_content && 'veu_cta_normal' !== $post->vkExUnit_cta_use_type ) {
439
  $content = $cta_content;
440
  } else {
441
+ // 旧 CTA レイアウト.
442
  include dirname( __FILE__ ) . '/view-actionbox.php';
443
  }
444
 
445
+ // Display Edit Button.
446
+ $url = get_edit_post_link( $post->ID );
447
+ if ( $url ) {
448
+ $content .= '<div class="veu_adminEdit"><a href="' . $url . '" class="btn btn-default" target="_blank">' . __( 'Edit CTA', 'vk-all-in-one-expansion-unit' ) . '</a></div>';
449
  }
450
+
451
+ // リセットしないと$postが改変されたままでコメント欄が表示されなくなるなどの弊害が発生する
452
+ wp_reset_postdata();
453
+
454
+ // wp_kses_post でエスケープすると outerブロックが出力するstyle属性を無効化される.
455
  return do_blocks( do_shortcode( $content ) );
456
  }
457
 
485
  if ( $post_config ) {
486
 
487
  // 「表示しない」が選択されていたら $id には nullを返す( CTAは表示されない )
488
+ if ( 'disable' === $post_config ) {
489
  return null; }
490
 
491
  // 「表示しない」が選択されていたら $id には nullを返す( CTAは表示されない )
492
+ if ( 'random' === $post_config ) {
493
  return self::cta_id_random();
494
  }
495
  return $post_config;
508
  if (
509
  isset( $option[ $post_type ] ) &&
510
  is_numeric( $option[ $post_type ] )
 
511
  ) {
512
  // その数字(表示するCTAの投稿ID)を返す
513
  return $option[ $post_type ];
665
 
666
 
667
  public static function render_configPage() {
668
+
669
  $options = self::get_option();
670
  $ctas = self::get_ctas( true, ' - ' );
671
 
674
  $ctas,
675
  array(
676
  'key' => 'random',
677
+ 'label' => __( 'Random', 'vk-all-in-one-expansion-unit' ),
678
  )
679
  );
680
  // 表示しないを先頭に追加
682
  $ctas,
683
  array(
684
  'key' => 0,
685
+ 'label' => __( 'Disable display', 'vk-all-in-one-expansion-unit' ),
686
  )
687
  );
688
 
inc/call-to-action/package/view-actionbox.php CHANGED
@@ -1,10 +1,9 @@
1
  <?php
2
-
3
- /*
4
- このファイルの元ファイルは
5
- https://github.com/vektor-inc/vektor-wp-libraries
6
- にあります。修正の際は上記リポジトリのデータを修正してください。
7
- */
8
 
9
  global $vk_call_to_action_textdomain;
10
 
@@ -38,19 +37,19 @@ $content .= '<h1 class="cta_title">' . $post->post_title . '</h1>';
38
  $content .= '<div class="cta_body">';
39
 
40
 
41
- // 別ウィンドウで開くかどうかのカスタムフィールドの値を取得 //////
42
  $target_blank = get_post_meta( $id, 'vkExUnit_cta_url_blank', true );
43
- if ( $target_blank != 'window_self' ) {
44
  $target = ' target="_blank"';
45
  } else {
46
  $target = '';
47
  }
48
  if ( $imgid ) {
49
- $content .= '<div class="cta_body_image cta_body_image_' . $image_position . '">';
50
- $content .= ( $url ) ? '<a href="' . $url . '"' . $target . '>' : '';
51
- $content .= wp_get_attachment_image( $imgid, 'large' );
52
- $content .= ( $url ) ? '</a>' : '';
53
- $content .= '</div>';
54
  }
55
  $content .= '<div class="cta_body_txt ' . ( ( $imgid ) ? 'image_exist' : 'image_no' ) . '">';
56
  $content .= wp_kses_post( do_shortcode( $text ) );
1
  <?php
2
+ /**
3
+ * View call to action ( classic style )
4
+ *
5
+ * @package ExUnit Call To Action
6
+ */
 
7
 
8
  global $vk_call_to_action_textdomain;
9
 
37
  $content .= '<div class="cta_body">';
38
 
39
 
40
+ // 別ウィンドウで開くかどうかのカスタムフィールドの値を取得 //////.
41
  $target_blank = get_post_meta( $id, 'vkExUnit_cta_url_blank', true );
42
+ if ( 'window_self' !== $target_blank ) {
43
  $target = ' target="_blank"';
44
  } else {
45
  $target = '';
46
  }
47
  if ( $imgid ) {
48
+ $content .= '<div class="cta_body_image cta_body_image_' . $image_position . '">';
49
+ $content .= ( $url ) ? '<a href="' . $url . '"' . $target . '>' : '';
50
+ $content .= wp_get_attachment_image( $imgid, 'large' );
51
+ $content .= ( $url ) ? '</a>' : '';
52
+ $content .= '</div>';
53
  }
54
  $content .= '<div class="cta_body_txt ' . ( ( $imgid ) ? 'image_exist' : 'image_no' ) . '">';
55
  $content .= wp_kses_post( do_shortcode( $text ) );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.3.0
6
  Tested up to: 5.8.0
7
- Stable tag: 9.64.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -81,6 +81,9 @@ e.g.
81
 
82
  == Changelog ==
83
 
 
 
 
84
  = 9.64.1.0 =
85
  * [ Bug fix ][ Banner Widget ] Fix change banner image on widget setting page
86
 
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.3.0
6
  Tested up to: 5.8.0
7
+ Stable tag: 9.64.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
81
 
82
  == Changelog ==
83
 
84
+ = 9.64.2.0 =
85
+ * [ Bug fix ][ Call To Action ] Fix comment bug.
86
+
87
  = 9.64.1.0 =
88
  * [ Bug fix ][ Banner Widget ] Fix change banner image on widget setting page
89
 
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.64.1.0
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.64.2.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages