VK All in One Expansion Unit - Version 6.4.3

Version Description

Download this release

Release Info

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

Code changes from version 6.4.2 to 6.4.3

plugins/font-awesome-config.php CHANGED
@@ -10,4 +10,7 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
10
 
11
  global $vk_font_awesome_version_textdomain;
12
  $vk_font_awesome_version_textdomain = 'vkExUnit';
 
 
 
13
  }
10
 
11
  global $vk_font_awesome_version_textdomain;
12
  $vk_font_awesome_version_textdomain = 'vkExUnit';
13
+
14
+ global $set_enqueue_handle_style;
15
+ $set_enqueue_handle_style = 'vkExUnit_common_style';
16
  }
plugins/font-awesome/class-vk-font-awesome-versions.php CHANGED
@@ -3,11 +3,13 @@
3
  if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
4
 
5
  class Vk_Font_Awesome_Versions {
 
6
  static function init() {
7
  add_action( 'customize_register', array( __CLASS__, 'customize_register' ) );
8
  add_action( 'wp_enqueue_scripts', array( __CLASS__, 'load_font_awesome' ) );
9
  add_action( 'admin_init', array( __CLASS__, 'load_admin_font_awesome' ) );
10
- // add_action( 'wp_head', array( __CLASS__, 'edit_icon_css_change' ), 3 );
 
11
  }
12
 
13
  static function versions() {
@@ -38,14 +40,14 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
38
  return $versions;
39
  }
40
 
41
- static function current_info() {
42
  $versions = self::versions();
43
- $vk_font_awesome_version = get_option( 'vk_font_awesome_version', '4.7' );
44
  $current_info = $versions[ $vk_font_awesome_version ];
45
  return $current_info;
46
  }
47
 
48
- static public function ex_and_link() {
49
  global $vk_font_awesome_version_textdomain;
50
  $current = self::current_info();
51
  if ( $current['version'] == '5.0' ) {
@@ -60,7 +62,7 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
60
  * When use Font Awesome 4,7 then print 'fa '.
61
  * @var strings;
62
  */
63
- static public function print_fa() {
64
  $fa = '';
65
  $font_awesome_current = self::current_info();
66
  if ( $font_awesome_current['version'] == '4.7' ) {
@@ -85,21 +87,46 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
85
  }
86
  }
87
 
88
- static function edit_icon_css_change() {
89
- // $current = self::current_info();
90
- // $dynamic_css = '/* font-awesome */';
91
- // if ( $current['version'] == '5.0' ) {
92
- // $dynamic_css .= '.veu_adminEdit a.btn:before{content:"\f044";font-family:Font Awesome\ 5 Free;}';
93
- // } else {
94
- // $dynamic_css .= '.veu_adminEdit a.btn:before{content:"\f040";font-family:FontAwesome;}';
95
- // }
96
- // // delete before after space
97
- // $dynamic_css = trim( $dynamic_css );
98
- // // convert tab and br to space
99
- // $dynamic_css = preg_replace( '/[\n\r\t]/', '', $dynamic_css );
100
- // // Change multiple spaces to single space
101
- // $dynamic_css = preg_replace( '/\s(?=\s)/', '', $dynamic_css );
102
- // wp_add_inline_style( 'vkExUnit_common_style', $dynamic_css );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  }
104
 
105
  public static function class_switch( $class_v4 = '', $class_v5 = '' ) {
3
  if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
4
 
5
  class Vk_Font_Awesome_Versions {
6
+
7
  static function init() {
8
  add_action( 'customize_register', array( __CLASS__, 'customize_register' ) );
9
  add_action( 'wp_enqueue_scripts', array( __CLASS__, 'load_font_awesome' ) );
10
  add_action( 'admin_init', array( __CLASS__, 'load_admin_font_awesome' ) );
11
+ add_action( 'wp_head', array( __CLASS__, 'dynamic_css' ), 3 );
12
+ // add_filter( 'body_class', array( __CLASS__, 'add_body_class_fa_version' ) );
13
  }
14
 
15
  static function versions() {
40
  return $versions;
41
  }
42
 
43
+ public static function current_info() {
44
  $versions = self::versions();
45
+ $vk_font_awesome_version = get_option( 'vk_font_awesome_version', '5.0_WebFonts_CSS' );
46
  $current_info = $versions[ $vk_font_awesome_version ];
47
  return $current_info;
48
  }
49
 
50
+ public static function ex_and_link() {
51
  global $vk_font_awesome_version_textdomain;
52
  $current = self::current_info();
53
  if ( $current['version'] == '5.0' ) {
62
  * When use Font Awesome 4,7 then print 'fa '.
63
  * @var strings;
64
  */
65
+ public static function print_fa() {
66
  $fa = '';
67
  $font_awesome_current = self::current_info();
68
  if ( $font_awesome_current['version'] == '4.7' ) {
87
  }
88
  }
89
 
90
+ /**
91
+ * body class 端末識別クラス追加
92
+ * @return [type] [description]
93
+ */
94
+ // static function add_body_class_fa_version( $class ) {
95
+ // $current = get_option( 'vk_font_awesome_version', '5.0_WebFonts_CSS' );
96
+ // if ( $current == '4.7' ) {
97
+ // $class[] = 'fa_v4';
98
+ // } elseif ( $current == '5.0_WebFonts_CSS' ) {
99
+ // $class[] = 'fa_v5_css';
100
+ // } elseif ( $current == '5.0_SVG_JS' ) {
101
+ // $class[] = 'fa_v5_svg';
102
+ // }
103
+ // return $class;
104
+ // }
105
+
106
+
107
+ /**
108
+ * Output dynbamic css according to Font Awesome versions
109
+ * @return [type] [description]
110
+ */
111
+ static function dynamic_css() {
112
+ $current = get_option( 'vk_font_awesome_version', '5.0_WebFonts_CSS' );
113
+ $dynamic_css = '';
114
+ if ( $current == '4.7' ) {
115
+ $dynamic_css = '.tagcloud a:before { font-family:FontAwesome;content:"\f02b"; }';
116
+ } elseif ( $current == '5.0_WebFonts_CSS' ) {
117
+ $dynamic_css = '.tagcloud a:before { font-family: "Font Awesome 5 Free";content: "\f02b";font-weight: bold; }';
118
+ } elseif ( $current == '5.0_SVG_JS' ) {
119
+ $dynamic_css = '.tagcloud a:before { content:"" }';
120
+ }
121
+ // delete before after space
122
+ $dynamic_css = trim( $dynamic_css );
123
+ // convert tab and br to space
124
+ $dynamic_css = preg_replace( '/[\n\r\t]/', '', $dynamic_css );
125
+ // Change multiple spaces to single space
126
+ $dynamic_css = preg_replace( '/\s(?=\s)/', '', $dynamic_css );
127
+
128
+ global $set_enqueue_handle_style;
129
+ wp_add_inline_style( $set_enqueue_handle_style, $dynamic_css );
130
  }
131
 
132
  public static function class_switch( $class_v4 = '', $class_v5 = '' ) {
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.5
7
- Stable tag: 6.4.2
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.5
7
+ Stable tag: 6.4.3
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: 6.4.2
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: 6.4.3
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
9
  * Domain Path: /languages