Version Description
[ Specification Change ] Update VK Admin Library.
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 9.61.4.0 |
Comparing to | |
See all releases |
Code changes from version 9.61.3.0 to 9.61.4.0
- admin/vk-admin/package/class-vk-admin.php +27 -24
- readme.txt +4 -1
- vkExUnit.php +1 -1
admin/vk-admin/package/class-vk-admin.php
CHANGED
@@ -113,37 +113,40 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
113 |
|
114 |
$banner_html .= '<div class="vk-admin-banner-grid">';
|
115 |
|
116 |
-
|
117 |
-
foreach( $product_array as $product ) {
|
118 |
|
119 |
-
|
120 |
-
|
121 |
-
if ( $lang === $product['language'] ) {
|
122 |
|
123 |
-
|
124 |
-
|
|
|
125 |
|
126 |
-
|
127 |
-
|
128 |
-
$banner_html .= '<img src="' . $img_base_url . $product['image_file'] . '" alt="' . $product['alt'] . '" />';
|
129 |
-
$banner_html .= '</a>';
|
130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
}
|
133 |
-
}
|
134 |
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
|
139 |
-
|
140 |
-
|
141 |
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
|
|
|
147 |
}
|
148 |
}
|
149 |
}
|
@@ -151,7 +154,7 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
151 |
|
152 |
$banner_html .= '</div>';
|
153 |
|
154 |
-
$banner_html .= '<a href="//www.vektor-inc.co.jp" class="vektor_logo" target="_blank" class="admin_banner"><img src="' . $img_base_url . '
|
155 |
|
156 |
$banner_html .= '</div>';
|
157 |
|
@@ -310,7 +313,7 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
310 |
|
311 |
if ( $maxitems == 0 ) {
|
312 |
$output .= '<li>';
|
313 |
-
$output .= __( 'Sorry, there is no post', '
|
314 |
$output .= '</li>';
|
315 |
} else {
|
316 |
foreach ( $rss_items as $item ) {
|
@@ -364,7 +367,7 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
364 |
if ( self::is_dashboard_active() ) {
|
365 |
wp_add_dashboard_widget(
|
366 |
'vk_dashboard_widget',
|
367 |
-
__( 'Vektor WordPress Information', '
|
368 |
array( __CLASS__, 'dashboard_widget_body' )
|
369 |
);
|
370 |
}
|
113 |
|
114 |
$banner_html .= '<div class="vk-admin-banner-grid">';
|
115 |
|
116 |
+
if( ! empty( $product_array ) ) {
|
|
|
117 |
|
118 |
+
// テーマのバナーを設置
|
119 |
+
foreach( $product_array as $product ) {
|
|
|
120 |
|
121 |
+
if ( 'theme' === $product['type'] ) {
|
122 |
+
if ( ! self::theme_exists( $product['slug'] ) ) {
|
123 |
+
if ( $lang === $product['language'] ) {
|
124 |
|
125 |
+
// プラグインの検索結果に飛ばす場合 URL を変換する必要がある
|
126 |
+
$product_url = true === $product['admin_url'] ? admin_url( $product['link_url'] ) : $product['link_url'];
|
|
|
|
|
127 |
|
128 |
+
// バナーを追加
|
129 |
+
$banner_html .= '<a href="' . $product_url . '" target="_blank" class="admin_banner">';
|
130 |
+
$banner_html .= '<img src="' . $img_base_url . $product['image_file'] . '" alt="' . $product['alt'] . '" />';
|
131 |
+
$banner_html .= '</a>';
|
132 |
+
|
133 |
+
}
|
134 |
}
|
135 |
}
|
|
|
136 |
|
137 |
+
if ( 'plugin' === $product['type'] ) {
|
138 |
+
if ( ! self::plugin_exists( $product['slug'] ) ) {
|
139 |
+
if ( $lang === $product['language'] ) {
|
140 |
|
141 |
+
// プラグインの検索結果に飛ばす場合 URL を変換する必要がある
|
142 |
+
$product_url = true === $product['admin_url'] ? admin_url( $product['link_url'] ) : $product['link_url'];
|
143 |
|
144 |
+
// バナーを追加
|
145 |
+
$banner_html .= '<a href="' . $product_url . '" target="_blank" class="admin_banner">';
|
146 |
+
$banner_html .= '<img src="' . $img_base_url . $product['image_file'] . '" alt="' . $product['alt'] . '" />';
|
147 |
+
$banner_html .= '</a>';
|
148 |
|
149 |
+
}
|
150 |
}
|
151 |
}
|
152 |
}
|
154 |
|
155 |
$banner_html .= '</div>';
|
156 |
|
157 |
+
$banner_html .= '<a href="//www.vektor-inc.co.jp" class="vektor_logo" target="_blank" class="admin_banner"><img src="' . $img_base_url . 'vektor_logo-2020.png" alt="Vektor,Inc." /></a>';
|
158 |
|
159 |
$banner_html .= '</div>';
|
160 |
|
313 |
|
314 |
if ( $maxitems == 0 ) {
|
315 |
$output .= '<li>';
|
316 |
+
$output .= __( 'Sorry, there is no post', 'vk_admin_textdomain' );
|
317 |
$output .= '</li>';
|
318 |
} else {
|
319 |
foreach ( $rss_items as $item ) {
|
367 |
if ( self::is_dashboard_active() ) {
|
368 |
wp_add_dashboard_widget(
|
369 |
'vk_dashboard_widget',
|
370 |
+
__( 'Vektor WordPress Information', 'vk_admin_textdomain' ),
|
371 |
array( __CLASS__, 'dashboard_widget_body' )
|
372 |
);
|
373 |
}
|
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.7.2
|
7 |
-
Stable tag: 9.61.
|
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.61.3.0 =
|
85 |
[ Specification Change ] Update VK Admin Library.
|
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.7.2
|
7 |
+
Stable tag: 9.61.4.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.61.4.0 =
|
85 |
+
[ Specification Change ] Update VK Admin Library.
|
86 |
+
|
87 |
= 9.61.3.0 =
|
88 |
[ Specification Change ] Update VK Admin Library.
|
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.61.
|
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.61.4.0
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vk-all-in-one-expansion-unit
|
9 |
* Domain Path: /languages
|