VK All in One Expansion Unit - Version 5.9.5

Version Description

Download this release

Release Info

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

Code changes from version 5.9.4 to 5.9.5

plugins/call-to-action/class-vk-call-to-action.php CHANGED
@@ -502,9 +502,9 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
502
  );
503
  $option = get_option( 'vkExUnit_cta_settings' );
504
  if ( ! $option ) {
505
- $current_option = self::get_default_option(); }
506
-
507
- while ( list( $key, $value ) = each( $input ) ) {
508
  if ( $value == 'random' ) {
509
  $option[ $key ] = 'random';
510
  } else {
@@ -528,7 +528,7 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
528
  ), 'names'
529
  )
530
  );
531
- while ( list($key, $posttype) = each( $posttypes ) ) {
532
  $option[ $posttype ] = false;
533
  }
534
  return $option;
@@ -539,6 +539,9 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
539
  $default = self::get_default_option();
540
  $option = get_option( 'vkExUnit_cta_settings' );
541
 
 
 
 
542
  if ( ! $option || ! is_array( $option ) ) {
543
  return $default; }
544
 
@@ -555,8 +558,8 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
555
  );
556
 
557
  $output_option = array();
558
- while ( list($key, $value) = each( $posttypes ) ) {
559
- $output_option[ $value ] = ( isset( $option[ $value ] ) ) ? $option[ $value ] : $default[ $value ];
560
  }
561
 
562
  return $output_option;
@@ -571,7 +574,7 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
571
  );
572
  $query = new \WP_Query( $args );
573
  $ctas = array();
574
- while ( list( $key, $post ) = each( $query->posts ) ) {
575
  if ( $show_label ) {
576
  $ctas[] = array(
577
  'key' => $post->ID,
502
  );
503
  $option = get_option( 'vkExUnit_cta_settings' );
504
  if ( ! $option ) {
505
+ $current_option = self::get_default_option();
506
+ }
507
+ foreach ( $input as $key => $value ) {
508
  if ( $value == 'random' ) {
509
  $option[ $key ] = 'random';
510
  } else {
528
  ), 'names'
529
  )
530
  );
531
+ foreach ( $posttypes as $key => $posttype ) {
532
  $option[ $posttype ] = false;
533
  }
534
  return $option;
539
  $default = self::get_default_option();
540
  $option = get_option( 'vkExUnit_cta_settings' );
541
 
542
+ // ↓ これであかんの?
543
+ // $output_option = wp_parse_args( $option, $default );
544
+
545
  if ( ! $option || ! is_array( $option ) ) {
546
  return $default; }
547
 
558
  );
559
 
560
  $output_option = array();
561
+ foreach ( $posttypes as $key => $posttype ) {
562
+ $output_option[ $posttype ] = ( isset( $option[ $posttype ] ) ) ? $option[ $posttype ] : $default[ $posttype ];
563
  }
564
 
565
  return $output_option;
574
  );
575
  $query = new \WP_Query( $args );
576
  $ctas = array();
577
+ foreach ( $query->posts as $key => $post ) {
578
  if ( $show_label ) {
579
  $ctas[] = array(
580
  'key' => $post->ID,
plugins/call-to-action/view-adminsetting.php CHANGED
@@ -20,7 +20,7 @@ global $vk_call_to_action_textdomain;
20
  <?php _e( 'The CTA stands for "Call to action" and this is the area that prompts the user behavior.', $vk_call_to_action_textdomain ); ?><br/>
21
  <?php _e( 'As an example, text message and a link button for induction to the free sample download page.', $vk_call_to_action_textdomain ); ?></p>
22
 
23
- <h4><?php _e( 'How to use',$vk_call_to_action_textdomain );?></h4>
24
 
25
  <ol>
26
  <li><?php _e( 'You register the contents on "CTA" that you want to display to bottom of the content.', $vk_call_to_action_textdomain ); ?></li>
@@ -28,19 +28,19 @@ global $vk_call_to_action_textdomain;
28
  <li><?php _e( 'If you want to switch the CTA to be displayed on each post, please set in the details page of such posting.', $vk_call_to_action_textdomain ); ?></li>
29
  </ol>
30
 
31
- <a href="<?php echo admin_url( 'edit.php?post_type=cta' ) ?>" class="button button-default" target="_blank"><?php _e( 'Show CTA index page', $vk_call_to_action_textdomain ); ?></a>
32
 
33
  <table class="form-table">
34
- <?php while ( list($type, $value) = each( $options ) ) : ?>
35
  <tr><th><label ><?php echo get_post_type_object( $type )->label; ?></label></th>
36
  <td><select name="vkExUnit_cta_settings[<?php echo $type; ?>]" id="vkExUnit_cta_settings">
37
- <?php foreach ( $ctas as $cta ) : ?>
38
- <option value="<?php echo $cta['key'] ?>" <?php echo($value == $cta['key'])? 'selected':''; ?> ><?php echo $cta['label'] ?></option>
39
  <?php endforeach; ?>
40
  </select>
41
-  <a href="<?php echo admin_url( 'edit.php?post_type=' . $type ) ?>" class="button button-default" target="_blank"><?php _e( 'Show index page', $vk_call_to_action_textdomain ); ?></a>
42
  </td></tr>
43
- <?php endwhile;?>
44
  </table>
45
  <?php submit_button(); ?>
46
  </div>
20
  <?php _e( 'The CTA stands for "Call to action" and this is the area that prompts the user behavior.', $vk_call_to_action_textdomain ); ?><br/>
21
  <?php _e( 'As an example, text message and a link button for induction to the free sample download page.', $vk_call_to_action_textdomain ); ?></p>
22
 
23
+ <h4><?php _e( 'How to use', $vk_call_to_action_textdomain ); ?></h4>
24
 
25
  <ol>
26
  <li><?php _e( 'You register the contents on "CTA" that you want to display to bottom of the content.', $vk_call_to_action_textdomain ); ?></li>
28
  <li><?php _e( 'If you want to switch the CTA to be displayed on each post, please set in the details page of such posting.', $vk_call_to_action_textdomain ); ?></li>
29
  </ol>
30
 
31
+ <a href="<?php echo admin_url( 'edit.php?post_type=cta' ); ?>" class="button button-default" target="_blank"><?php _e( 'Show CTA index page', $vk_call_to_action_textdomain ); ?></a>
32
 
33
  <table class="form-table">
34
+ <?php foreach ( $options as $type => $value ) : ?>
35
  <tr><th><label ><?php echo get_post_type_object( $type )->label; ?></label></th>
36
  <td><select name="vkExUnit_cta_settings[<?php echo $type; ?>]" id="vkExUnit_cta_settings">
37
+ <?php foreach ( $ctas as $cta ) : ?>
38
+ <option value="<?php echo $cta['key']; ?>" <?php echo( $value == $cta['key'] ) ? 'selected' : ''; ?> ><?php echo $cta['label']; ?></option>
39
  <?php endforeach; ?>
40
  </select>
41
+  <a href="<?php echo admin_url( 'edit.php?post_type=' . $type ); ?>" class="button button-default" target="_blank"><?php _e( 'Show index page', $vk_call_to_action_textdomain ); ?></a>
42
  </td></tr>
43
+ <?php endforeach; ?>
44
  </table>
45
  <?php submit_button(); ?>
46
  </div>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 4.4
6
  Tested up to: 4.9.2
7
- Stable tag: 5.9.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 4.4
6
  Tested up to: 4.9.2
7
+ Stable tag: 5.9.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: 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: 5.9.4
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
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: 5.9.5
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
9
  * Domain Path: /languages