Version Description
[ bug fix ][ Default thumbnail ] fix OGP don't refrect
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 9.31.8.0 |
Comparing to | |
See all releases |
Code changes from version 9.31.7.0 to 9.31.8.0
- admin/vk-admin/package/_scss/vk_admin.scss +38 -1
- admin/vk-admin/package/class-vk-admin.php +12 -2
- admin/vk-admin/package/css/vk_admin.css +1 -1
- admin/vk-admin/package/images/vk-block-patterns_bnr.jpg +0 -0
- inc/add_menu_to_block_reuse.php +22 -18
- inc/sns/function_og.php +19 -5
- readme.txt +6 -2
- vkExUnit.php +1 -1
admin/vk-admin/package/_scss/vk_admin.scss
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
@charset "utf-8";
|
2 |
// @import "compass";
|
3 |
-
|
4 |
.text-left {
|
5 |
text-align: left;
|
6 |
}
|
@@ -171,6 +170,10 @@
|
|
171 |
border-left: 5px solid #e50000;
|
172 |
border-radius: 4px;
|
173 |
}
|
|
|
|
|
|
|
|
|
174 |
input[type="text"] {
|
175 |
width: 50%;
|
176 |
}
|
@@ -217,12 +220,36 @@
|
|
217 |
.form_horizontal_item {
|
218 |
margin-right: 1em;
|
219 |
}
|
|
|
|
|
|
|
|
|
220 |
}
|
221 |
&.column_2 {
|
222 |
#adminContent_main {
|
223 |
width: 100%;
|
224 |
}
|
225 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
}
|
227 |
|
228 |
.adminSub {
|
@@ -265,6 +292,16 @@
|
|
265 |
}
|
266 |
}
|
267 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
}
|
269 |
|
270 |
/*-------------------------------------------*/
|
1 |
@charset "utf-8";
|
2 |
// @import "compass";
|
|
|
3 |
.text-left {
|
4 |
text-align: left;
|
5 |
}
|
170 |
border-left: 5px solid #e50000;
|
171 |
border-radius: 4px;
|
172 |
}
|
173 |
+
h5{
|
174 |
+
font-size:16px;
|
175 |
+
margin-bottom:1em;
|
176 |
+
}
|
177 |
input[type="text"] {
|
178 |
width: 50%;
|
179 |
}
|
220 |
.form_horizontal_item {
|
221 |
margin-right: 1em;
|
222 |
}
|
223 |
+
.setting-content{
|
224 |
+
|
225 |
+
}
|
226 |
+
|
227 |
}
|
228 |
&.column_2 {
|
229 |
#adminContent_main {
|
230 |
width: 100%;
|
231 |
}
|
232 |
}
|
233 |
+
&_main {
|
234 |
+
ul,ol {
|
235 |
+
margin-top:0;
|
236 |
+
margin-left:1.5em;
|
237 |
+
padding-top:0;
|
238 |
+
}
|
239 |
+
ol > li{
|
240 |
+
list-style: decimal;
|
241 |
+
}
|
242 |
+
ul > li {
|
243 |
+
list-style: disc;
|
244 |
+
}
|
245 |
+
li ul,
|
246 |
+
li ol {
|
247 |
+
margin-top:0.5em;
|
248 |
+
}
|
249 |
+
&_content {
|
250 |
+
margin-bottom:3em;
|
251 |
+
}
|
252 |
+
}
|
253 |
}
|
254 |
|
255 |
.adminSub {
|
292 |
}
|
293 |
}
|
294 |
}
|
295 |
+
.alert {
|
296 |
+
border-radius: 4px;
|
297 |
+
padding:0.8em;
|
298 |
+
font-weight: normal;
|
299 |
+
&-danger{
|
300 |
+
border: 1px solid #ebccd1;
|
301 |
+
background-color: #f2dede;
|
302 |
+
color: #a94442;
|
303 |
+
}
|
304 |
+
}
|
305 |
}
|
306 |
|
307 |
/*-------------------------------------------*/
|
admin/vk-admin/package/class-vk-admin.php
CHANGED
@@ -72,6 +72,16 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
72 |
|
73 |
$banner .= '<div class="vk-admin-banner-grid">';
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
// プラグイン Link Target Controller を有効化していない人にバナーを表示
|
76 |
if ( ! is_plugin_active( 'vk-link-target-controller/vk-link-target-controller.php' ) ) {
|
77 |
if ( $lang == 'ja' ) {
|
@@ -384,7 +394,7 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
384 |
<div class="adminMain <?php echo $get_layout; ?>">
|
385 |
|
386 |
<?php if ( $get_layout == 'column_3' ) : ?>
|
387 |
-
<div id="adminContent_sub" class="scrTracking">
|
388 |
<div class="pageLogo"><?php echo $get_logo_html; ?></div>
|
389 |
<?php if ( $get_page_title ) : ?>
|
390 |
<h2 class="page_title"><?php echo $get_page_title; ?></h2>
|
@@ -404,7 +414,7 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
404 |
<?php endif; ?>
|
405 |
<?php endif; ?>
|
406 |
|
407 |
-
<div id="adminContent_main">
|
408 |
<?php call_user_func_array( $the_body_callback, array() ); ?>
|
409 |
</div><!-- [ /#adminContent_main ] -->
|
410 |
|
72 |
|
73 |
$banner .= '<div class="vk-admin-banner-grid">';
|
74 |
|
75 |
+
// プラグイン VK Block Patterns を有効化していない人にバナーを表示
|
76 |
+
if ( ! is_plugin_active( 'vk-block-patterns/vk-block-patterns.php' ) ) {
|
77 |
+
if ( $lang == 'ja' ) {
|
78 |
+
$bnr_file_name = 'vk-block-patterns_bnr.jpg';
|
79 |
+
} else {
|
80 |
+
$bnr_file_name = 'vk-block-patterns_bnr.jpg';
|
81 |
+
}
|
82 |
+
$banner .= '<a href="//wordpress.org/plugins/vk-block-patterns/" target="_blank" class="admin_banner"><img src="' . $dir_url . 'images/' . $bnr_file_name . '" alt="VK Block Patterns" /></a>';
|
83 |
+
}
|
84 |
+
|
85 |
// プラグイン Link Target Controller を有効化していない人にバナーを表示
|
86 |
if ( ! is_plugin_active( 'vk-link-target-controller/vk-link-target-controller.php' ) ) {
|
87 |
if ( $lang == 'ja' ) {
|
394 |
<div class="adminMain <?php echo $get_layout; ?>">
|
395 |
|
396 |
<?php if ( $get_layout == 'column_3' ) : ?>
|
397 |
+
<div id="adminContent_sub" class="scrTracking adminMain_sub">
|
398 |
<div class="pageLogo"><?php echo $get_logo_html; ?></div>
|
399 |
<?php if ( $get_page_title ) : ?>
|
400 |
<h2 class="page_title"><?php echo $get_page_title; ?></h2>
|
414 |
<?php endif; ?>
|
415 |
<?php endif; ?>
|
416 |
|
417 |
+
<div id="adminContent_main" class="adminMain_main">
|
418 |
<?php call_user_func_array( $the_body_callback, array() ); ?>
|
419 |
</div><!-- [ /#adminContent_main ] -->
|
420 |
|
admin/vk-admin/package/css/vk_admin.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-warning{color:#a94442}#dashboard-widgets .vk-metabox-sub-title,.vk-metabox-sub-title{display:block;overflow:hidden;border-bottom:1px solid #e5e5e5;margin-top:1em;padding-bottom:.3em}#dashboard-widgets .vk-metabox-sub-title .dashicons,.vk-metabox-sub-title .dashicons{position:relative;top:-2px;margin-left:3px}.vk-metabox-more-link{float:right;font-size:12px}.vk-metabox-post-list{margin-bottom:2em}.vk-metabox-post-list li{border-bottom:1px dotted #ccc;padding-bottom:3px;display:flex}.vk-metabox-post-list li .date{font-size:11px;margin-right:1em;width:75px;white-space:nowrap}.vk-metabox-post-list li a{width:100%}.vk-admin-banner{display:block;overflow:hidden}.vk-admin-banner a.admin_banner{display:block;margin-bottom:1em;border:1px solid #ccc;box-shadow:inset 0 0 0 1px #fff}.vk-admin-banner a.admin_banner img{max-width:100%;height:auto;display:block}.vk-admin-banner a.admin_banner img:hover{opacity:.7}.vk-admin-banner .vektor_logo{margin-top:1em}.vk-admin-banner .vektor_logo img{width:150px;float:right}#vk_dashboard_widget .vk-admin-banner-grid{width:100%;display:flex;flex-wrap:wrap;justify-content:space-between}#vk_dashboard_widget .vk-admin-banner-grid a.admin_banner{width:48%}.wp-core-ui .button-block{display:block;width:100%;text-align:center}.logo_exUnit{display:block;overflow:hidden;text-align:center;margin-bottom:10px;border-bottom:1px solid #ccc}.logo_exUnit img{width:150px;max-width:100%}.vk_option_nav{display:block!important;overflow:hidden}.vk_option_nav ul{display:block;overflow:hidden;margin:0;padding:0}.vk_option_nav ul li{display:block;border:1px solid #ccc;margin-bottom:0;border-bottom:none;background-color:#fff}.vk_option_nav ul li:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.vk_option_nav ul li:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-bottom:1px solid #ccc}.vk_option_nav ul li:hover{background-color:#666}.vk_option_nav ul li a{display:block;overflow:hidden;padding:.5em;text-decoration:none;color:#666;font-size:12px}.vk_option_nav ul li:hover a{color:#fff;border:none}.vk_option_nav ul li.current{background-color:#333;color:#fff}.vk_option_nav ul li.current a{color:#fff}.vk_admin_page{padding-top:1em}.vk_admin_page h2.page_title{font-size:16px;text-align:center;line-height:140%;margin:10px 0 20px}.vk_admin_page h3{background-color:#333;color:#fff;padding:10px 15px;font-size:150%;margin-top:0;border-left:5px solid #e50000;border-radius:4px}.vk_admin_page input[type=text]{width:50%}.vk_admin_page select{width:50%}.vk_admin_page dl dt{font-weight:700;margin-bottom:5px}.vk_admin_page dl dd{margin-left:0}.vk_admin_page tr.dev_object{display:none}.vk_admin_page .pageLogo{text-align:center}.vk_admin_page .pageLogo img{max-width:150px;margin:0 auto}.vk_admin_page .adminMain{display:block;overflow:hidden;width:74%;float:left}.vk_admin_page .adminMain #adminContent_sub{display:block;overflow:hidden;width:23%;float:left;padding-bottom:10px}.vk_admin_page .adminMain #adminContent_main{display:block;overflow:hidden;width:74%;float:right;min-height:300px}.vk_admin_page .adminMain #adminContent_main .form_horizontal_item{margin-right:1em}.vk_admin_page .adminMain.column_2 #adminContent_main{width:100%}.vk_admin_page .adminSub{display:block;overflow:hidden;width:24%;float:right;padding-bottom:10px}.vk_admin_page .adminSub .infoBox{display:block;overflow:hidden;padding:1em;margin-bottom:1em;background-color:#fff;border-radius:4px}.vk_admin_page .adminSub .vk-metabox-sub-title{background-color:#ccc;width:auto;padding:5px 10px;border-radius:3px;margin-top:0;margin-bottom:15px}.vk_admin_page .adminSub .vk-metabox-more-link{display:none}.admin-custom-section,.admin_widget_section{display:block;overflow:hidden;margin:1.5em 0}.admin-custom-section p,.admin_widget_section p{margin-top:.5em}.admin-custom-h2,.admin_widget_h2{box-sizing:border-box;margin:1em 0 1em;padding:.8em 1em;width:100%;border:solid 1px #ddd;border-radius:5px;background:#555;color:#fff;font-size:1.1em}.admin-custom-h3,.admin_widget_h3{box-sizing:border-box;padding:.4em 0;margin-bottom:.3em;width:100%;border-bottom:solid 1px #ddd;font-size:1em}input[type=checkbox].admin-custom-input,input[type=checkbox].admin_widget_input,input[type=color].admin-custom-input,input[type=color].admin_widget_input,input[type=date].admin-custom-input,input[type=date].admin_widget_input,input[type=datetime-local].admin-custom-input,input[type=datetime-local].admin_widget_input,input[type=datetime].admin-custom-input,input[type=datetime].admin_widget_input,input[type=email].admin-custom-input,input[type=email].admin_widget_input,input[type=month].admin-custom-input,input[type=month].admin_widget_input,input[type=number].admin-custom-input,input[type=number].admin_widget_input,input[type=password].admin-custom-input,input[type=password].admin_widget_input,input[type=radio].admin-custom-input,input[type=radio].admin_widget_input,input[type=search].admin-custom-input,input[type=search].admin_widget_input,input[type=tel].admin-custom-input,input[type=tel].admin_widget_input,input[type=text].admin-custom-input,input[type=text].admin_widget_input,input[type=time].admin-custom-input,input[type=time].admin_widget_input,input[type=url].admin-custom-input,input[type=url].admin_widget_input,input[type=week].admin-custom-input,input[type=week].admin_widget_input,select.admin-custom-input,select.admin_widget_input,textarea.admin-custom-input,textarea.admin_widget_input{width:100%;margin:.3em 0}.admin-custom-thumb-outer,.admin_widget_thumb_outer{position:relative;overflow:hidden;z-index:2;margin:3px 0;min-height:70px;border:1px solid #e5e5e5;background-color:#f5f5f5;width:100%}.admin-custom-thumb-outer:before,.admin_widget_thumb_outer:before{position:absolute;top:50%;left:50%;z-index:1;margin:-8px 0 0 -30px;color:#999;content:"No Image"}.admin-custom-thumb,.admin_widget_thumb{position:relative;z-index:3;display:block;width:100%;height:auto}.vk_checklist_item-style-vertical{display:flex}.vk_checklist_item .vk_checklist_item_input{margin-top:0}@media (max-width:991px){.vk_admin_page .adminSub .adminMain table.form-table td,.vk_admin_page .adminSub .adminMain table.form-table th{display:block}.vk_admin_page .adminSub .adminMain table.form-table th{background-color:#ccc;width:auto;padding:10px;border-radius:3px}}
|
1 |
+
.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-warning{color:#a94442}#dashboard-widgets .vk-metabox-sub-title,.vk-metabox-sub-title{display:block;overflow:hidden;border-bottom:1px solid #e5e5e5;margin-top:1em;padding-bottom:.3em}#dashboard-widgets .vk-metabox-sub-title .dashicons,.vk-metabox-sub-title .dashicons{position:relative;top:-2px;margin-left:3px}.vk-metabox-more-link{float:right;font-size:12px}.vk-metabox-post-list{margin-bottom:2em}.vk-metabox-post-list li{border-bottom:1px dotted #ccc;padding-bottom:3px;display:flex}.vk-metabox-post-list li .date{font-size:11px;margin-right:1em;width:75px;white-space:nowrap}.vk-metabox-post-list li a{width:100%}.vk-admin-banner{display:block;overflow:hidden}.vk-admin-banner a.admin_banner{display:block;margin-bottom:1em;border:1px solid #ccc;box-shadow:inset 0 0 0 1px #fff}.vk-admin-banner a.admin_banner img{max-width:100%;height:auto;display:block}.vk-admin-banner a.admin_banner img:hover{opacity:.7}.vk-admin-banner .vektor_logo{margin-top:1em}.vk-admin-banner .vektor_logo img{width:150px;float:right}#vk_dashboard_widget .vk-admin-banner-grid{width:100%;display:flex;flex-wrap:wrap;justify-content:space-between}#vk_dashboard_widget .vk-admin-banner-grid a.admin_banner{width:48%}.wp-core-ui .button-block{display:block;width:100%;text-align:center}.logo_exUnit{display:block;overflow:hidden;text-align:center;margin-bottom:10px;border-bottom:1px solid #ccc}.logo_exUnit img{width:150px;max-width:100%}.vk_option_nav{display:block!important;overflow:hidden}.vk_option_nav ul{display:block;overflow:hidden;margin:0;padding:0}.vk_option_nav ul li{display:block;border:1px solid #ccc;margin-bottom:0;border-bottom:none;background-color:#fff}.vk_option_nav ul li:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.vk_option_nav ul li:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-bottom:1px solid #ccc}.vk_option_nav ul li:hover{background-color:#666}.vk_option_nav ul li a{display:block;overflow:hidden;padding:.5em;text-decoration:none;color:#666;font-size:12px}.vk_option_nav ul li:hover a{color:#fff;border:none}.vk_option_nav ul li.current{background-color:#333;color:#fff}.vk_option_nav ul li.current a{color:#fff}.vk_admin_page{padding-top:1em}.vk_admin_page h2.page_title{font-size:16px;text-align:center;line-height:140%;margin:10px 0 20px}.vk_admin_page h3{background-color:#333;color:#fff;padding:10px 15px;font-size:150%;margin-top:0;border-left:5px solid #e50000;border-radius:4px}.vk_admin_page h5{font-size:16px;margin-bottom:1em}.vk_admin_page input[type=text]{width:50%}.vk_admin_page select{width:50%}.vk_admin_page dl dt{font-weight:700;margin-bottom:5px}.vk_admin_page dl dd{margin-left:0}.vk_admin_page tr.dev_object{display:none}.vk_admin_page .pageLogo{text-align:center}.vk_admin_page .pageLogo img{max-width:150px;margin:0 auto}.vk_admin_page .adminMain{display:block;overflow:hidden;width:74%;float:left}.vk_admin_page .adminMain #adminContent_sub{display:block;overflow:hidden;width:23%;float:left;padding-bottom:10px}.vk_admin_page .adminMain #adminContent_main{display:block;overflow:hidden;width:74%;float:right;min-height:300px}.vk_admin_page .adminMain #adminContent_main .form_horizontal_item{margin-right:1em}.vk_admin_page .adminMain.column_2 #adminContent_main{width:100%}.vk_admin_page .adminMain_main ol,.vk_admin_page .adminMain_main ul{margin-top:0;margin-left:1.5em;padding-top:0}.vk_admin_page .adminMain_main ol>li{list-style:decimal}.vk_admin_page .adminMain_main ul>li{list-style:disc}.vk_admin_page .adminMain_main li ol,.vk_admin_page .adminMain_main li ul{margin-top:.5em}.vk_admin_page .adminMain_main_content{margin-bottom:3em}.vk_admin_page .adminSub{display:block;overflow:hidden;width:24%;float:right;padding-bottom:10px}.vk_admin_page .adminSub .infoBox{display:block;overflow:hidden;padding:1em;margin-bottom:1em;background-color:#fff;border-radius:4px}.vk_admin_page .adminSub .vk-metabox-sub-title{background-color:#ccc;width:auto;padding:5px 10px;border-radius:3px;margin-top:0;margin-bottom:15px}.vk_admin_page .adminSub .vk-metabox-more-link{display:none}.vk_admin_page .alert{border-radius:4px;padding:.8em;font-weight:400}.vk_admin_page .alert-danger{border:1px solid #ebccd1;background-color:#f2dede;color:#a94442}.admin-custom-section,.admin_widget_section{display:block;overflow:hidden;margin:1.5em 0}.admin-custom-section p,.admin_widget_section p{margin-top:.5em}.admin-custom-h2,.admin_widget_h2{box-sizing:border-box;margin:1em 0 1em;padding:.8em 1em;width:100%;border:solid 1px #ddd;border-radius:5px;background:#555;color:#fff;font-size:1.1em}.admin-custom-h3,.admin_widget_h3{box-sizing:border-box;padding:.4em 0;margin-bottom:.3em;width:100%;border-bottom:solid 1px #ddd;font-size:1em}input[type=checkbox].admin-custom-input,input[type=checkbox].admin_widget_input,input[type=color].admin-custom-input,input[type=color].admin_widget_input,input[type=date].admin-custom-input,input[type=date].admin_widget_input,input[type=datetime-local].admin-custom-input,input[type=datetime-local].admin_widget_input,input[type=datetime].admin-custom-input,input[type=datetime].admin_widget_input,input[type=email].admin-custom-input,input[type=email].admin_widget_input,input[type=month].admin-custom-input,input[type=month].admin_widget_input,input[type=number].admin-custom-input,input[type=number].admin_widget_input,input[type=password].admin-custom-input,input[type=password].admin_widget_input,input[type=radio].admin-custom-input,input[type=radio].admin_widget_input,input[type=search].admin-custom-input,input[type=search].admin_widget_input,input[type=tel].admin-custom-input,input[type=tel].admin_widget_input,input[type=text].admin-custom-input,input[type=text].admin_widget_input,input[type=time].admin-custom-input,input[type=time].admin_widget_input,input[type=url].admin-custom-input,input[type=url].admin_widget_input,input[type=week].admin-custom-input,input[type=week].admin_widget_input,select.admin-custom-input,select.admin_widget_input,textarea.admin-custom-input,textarea.admin_widget_input{width:100%;margin:.3em 0}.admin-custom-thumb-outer,.admin_widget_thumb_outer{position:relative;overflow:hidden;z-index:2;margin:3px 0;min-height:70px;border:1px solid #e5e5e5;background-color:#f5f5f5;width:100%}.admin-custom-thumb-outer:before,.admin_widget_thumb_outer:before{position:absolute;top:50%;left:50%;z-index:1;margin:-8px 0 0 -30px;color:#999;content:"No Image"}.admin-custom-thumb,.admin_widget_thumb{position:relative;z-index:3;display:block;width:100%;height:auto}.vk_checklist_item-style-vertical{display:flex}.vk_checklist_item .vk_checklist_item_input{margin-top:0}@media (max-width:991px){.vk_admin_page .adminSub .adminMain table.form-table td,.vk_admin_page .adminSub .adminMain table.form-table th{display:block}.vk_admin_page .adminSub .adminMain table.form-table th{background-color:#ccc;width:auto;padding:10px;border-radius:3px}}
|
admin/vk-admin/package/images/vk-block-patterns_bnr.jpg
ADDED
Binary file
|
inc/add_menu_to_block_reuse.php
CHANGED
@@ -4,25 +4,29 @@ if ( is_admin() ) {
|
|
4 |
global $wp_version;
|
5 |
|
6 |
if ( version_compare( $wp_version, '5.3', '>=' ) ) {
|
7 |
-
add_action(
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
27 |
}
|
28 |
}
|
4 |
global $wp_version;
|
5 |
|
6 |
if ( version_compare( $wp_version, '5.3', '>=' ) ) {
|
7 |
+
add_action(
|
8 |
+
'admin_menu',
|
9 |
+
function() {
|
10 |
+
global $menu;
|
11 |
+
$position = 20;
|
12 |
+
$menu_slug = 'edit.php?post_type=wp_block';
|
13 |
+
$menu_title = __( 'Manage all reusable blocks', 'vk-all-in-one-expansion-unit' );
|
14 |
|
15 |
+
while ( isset( $menu[ $position ] ) ) {
|
16 |
+
$position++;
|
17 |
+
}
|
18 |
|
19 |
+
$menu[ $position ] = array(
|
20 |
+
$menu_title,
|
21 |
+
'edit_posts',
|
22 |
+
$menu_slug,
|
23 |
+
'',
|
24 |
+
'menu-top ',
|
25 |
+
'',
|
26 |
+
'dashicons-controls-repeat',
|
27 |
+
);
|
28 |
+
},
|
29 |
+
10
|
30 |
+
);
|
31 |
}
|
32 |
}
|
inc/sns/function_og.php
CHANGED
@@ -42,7 +42,13 @@ function vkExUnit_print_og() {
|
|
42 |
|
43 |
if ( is_singular() && has_post_thumbnail() ) {
|
44 |
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
$image_url = wp_get_attachment_image_src( $image_id, 'large', true );
|
47 |
$vkExUnitOGP .= '<meta property="og:image" content="' . $image_url[0] . '" />' . "\n";
|
48 |
|
@@ -52,10 +58,7 @@ function vkExUnit_print_og() {
|
|
52 |
'width' => $image_url[1],
|
53 |
'height' => $image_url[2],
|
54 |
);
|
55 |
-
|
56 |
-
} else {
|
57 |
-
|
58 |
-
if ( isset( $vkExUnit_sns_options['ogImage'] ) && $vkExUnit_sns_options['ogImage'] ) {
|
59 |
$vkExUnitOGP .= '<meta property="og:image" content="' . esc_url( $vkExUnit_sns_options['ogImage'] ) . '" />' . "\n";
|
60 |
|
61 |
//image:width,image:height INSERT
|
@@ -63,7 +66,18 @@ function vkExUnit_print_og() {
|
|
63 |
'type' => 'url',
|
64 |
'url' => $vkExUnit_sns_options['ogImage'],
|
65 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
}
|
|
|
67 |
}
|
68 |
|
69 |
//image:width,image:height INSERT
|
42 |
|
43 |
if ( is_singular() && has_post_thumbnail() ) {
|
44 |
|
45 |
+
$image_id = get_post_thumbnail_id();
|
46 |
+
|
47 |
+
$image_option = get_option( 'veu_defualt_thumbnail' );
|
48 |
+
|
49 |
+
$image_default_id = ! empty( $image_option['default_thumbnail_image'] ) ? $image_option['default_thumbnail_image'] : '';
|
50 |
+
|
51 |
+
if ( $image_id ) {
|
52 |
$image_url = wp_get_attachment_image_src( $image_id, 'large', true );
|
53 |
$vkExUnitOGP .= '<meta property="og:image" content="' . $image_url[0] . '" />' . "\n";
|
54 |
|
58 |
'width' => $image_url[1],
|
59 |
'height' => $image_url[2],
|
60 |
);
|
61 |
+
} elseif ( isset( $vkExUnit_sns_options['ogImage'] ) && $vkExUnit_sns_options['ogImage'] ) {
|
|
|
|
|
|
|
62 |
$vkExUnitOGP .= '<meta property="og:image" content="' . esc_url( $vkExUnit_sns_options['ogImage'] ) . '" />' . "\n";
|
63 |
|
64 |
//image:width,image:height INSERT
|
66 |
'type' => 'url',
|
67 |
'url' => $vkExUnit_sns_options['ogImage'],
|
68 |
);
|
69 |
+
} elseif ( $image_default_id ) {
|
70 |
+
$image_url = wp_get_attachment_image_src( $image_default_id, 'large', true );
|
71 |
+
$vkExUnitOGP .= '<meta property="og:image" content="' . $image_url[0] . '" />' . "\n";
|
72 |
+
|
73 |
+
//image:width,image:height INSERT
|
74 |
+
$addImageTag = array(
|
75 |
+
'type' => 'id',
|
76 |
+
'width' => $image_url[1],
|
77 |
+
'height' => $image_url[2],
|
78 |
+
);
|
79 |
}
|
80 |
+
|
81 |
}
|
82 |
|
83 |
//image:width,image:height INSERT
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: vektor-inc,kurudrive,nc30,SaoriMiyazaki,catherine8007,naoki0h,rick
|
|
3 |
Donate link:
|
4 |
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
|
5 |
Requires at least: 5.0.0
|
6 |
-
Tested up to: 5.5.
|
7 |
-
Stable tag: 9.31.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -99,6 +99,10 @@ e.g.
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
|
|
102 |
= 9.31.7.0 =
|
103 |
Only Change Version Number
|
104 |
|
3 |
Donate link:
|
4 |
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
|
5 |
Requires at least: 5.0.0
|
6 |
+
Tested up to: 5.5.1
|
7 |
+
Stable tag: 9.31.8.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 9.31.8.0 =
|
103 |
+
[ bug fix ][ Default thumbnail ] fix OGP don't refrect
|
104 |
+
|
105 |
+
|
106 |
= 9.31.7.0 =
|
107 |
Only Change Version Number
|
108 |
|
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.31.
|
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.31.8.0
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vk-all-in-one-expansion-unit
|
9 |
* Domain Path: /languages
|