Version Description
[ Bug fix ] Fix Setting Page Layout bug
Download this release
Release Info
Developer | vektor-inc |
Plugin | VK Block Patterns |
Version | 1.25.1 |
Comparing to | |
See all releases |
Code changes from version 1.25.0 to 1.25.1
- inc/vk-admin/package/_scss/vk_admin.scss +31 -21
- inc/vk-admin/package/class-vk-admin.php +14 -11
- inc/vk-admin/package/css/vk_admin.css +1 -1
- inc/vk-admin/package/js/vk_admin.js +0 -29
- readme.txt +4 -1
- vk-block-patterns.php +1 -1
inc/vk-admin/package/_scss/vk_admin.scss
CHANGED
@@ -5,41 +5,51 @@
|
|
5 |
/*-------------------------------------------*/
|
6 |
.vk_admin_page {
|
7 |
--vk-admin-layout-gap: 30px;
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
-
.
|
10 |
display: grid;
|
11 |
-
grid-template-columns: 70% 1fr;
|
12 |
gap: var(--vk-admin-layout-gap);
|
13 |
}
|
14 |
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
}
|
27 |
-
}
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
}
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
}
|
40 |
}
|
41 |
|
42 |
-
|
43 |
/*-------------------------------------------*/
|
44 |
/* common
|
45 |
/*-------------------------------------------*/
|
5 |
/*-------------------------------------------*/
|
6 |
.vk_admin_page {
|
7 |
--vk-admin-layout-gap: 30px;
|
8 |
+
}
|
9 |
+
|
10 |
+
.adminLayout {
|
11 |
+
display: grid;
|
12 |
+
gap: var(--vk-admin-layout-gap);
|
13 |
|
14 |
+
.adminMain {
|
15 |
display: grid;
|
|
|
16 |
gap: var(--vk-admin-layout-gap);
|
17 |
}
|
18 |
|
19 |
+
@media (min-width: 992px) {
|
20 |
+
.adminMain.column_3 {
|
21 |
+
grid-template-columns: 240px auto;
|
22 |
+
}
|
23 |
+
}
|
24 |
|
25 |
+
@media (min-width: 1400px) {
|
26 |
+
grid-template-columns: auto 300px;
|
27 |
+
}
|
28 |
+
}
|
29 |
|
30 |
+
/*-------------------------------------------*/
|
31 |
+
/* サイドバーの固定処理
|
32 |
+
/*-------------------------------------------*/
|
33 |
+
.adminLayout {
|
|
|
|
|
34 |
|
35 |
+
@media (min-width: 992px) {
|
36 |
+
.adminMain_sub_inner {
|
37 |
+
position: sticky;
|
38 |
+
top: 30px;
|
39 |
}
|
40 |
|
41 |
+
}
|
42 |
+
|
43 |
+
@media (min-width: 1400px) {
|
44 |
+
align-items: end; // end 指定しないと下端吸着しない
|
45 |
+
|
46 |
+
.adminSub {
|
47 |
+
position: sticky;
|
48 |
+
bottom: 30px;
|
49 |
}
|
50 |
}
|
51 |
}
|
52 |
|
|
|
53 |
/*-------------------------------------------*/
|
54 |
/* common
|
55 |
/*-------------------------------------------*/
|
inc/vk-admin/package/class-vk-admin.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/*
|
4 |
このファイルの元ファイルは
|
5 |
https://github.com/vektor-inc/vektor-wp-libraries
|
@@ -11,13 +10,13 @@ https://github.com/vektor-inc/vektor-wp-libraries
|
|
11 |
|
12 |
if ( ! class_exists( 'Vk_Admin' ) ) {
|
13 |
/*
|
14 |
-
congif.phpの方で既に ! class_exists( 'Vk_Admin' )
|
15 |
今後読み込みファイルが増えた時にVk-Adminの中で別のファイルを読み込むために
|
16 |
このファイルにも更にclass_exists( 'Vk_Admin' ) がある。
|
17 |
*/
|
18 |
class Vk_Admin {
|
19 |
|
20 |
-
public static $version = '2.
|
21 |
|
22 |
static function init() {
|
23 |
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_common_css' ) );
|
@@ -407,11 +406,13 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
407 |
return;
|
408 |
}
|
409 |
$adminSub = '<div class="adminSub">' . "\n";
|
|
|
410 |
if ( 'ja' == get_locale() ) {
|
411 |
$adminSub .= '<div class="infoBox">' . self::get_news_body() . '</div>' . "\n";
|
412 |
}
|
413 |
$adminSub .= '<div class="vk-admin-banner">' . self::get_admin_banner() . '</div>' . "\n";
|
414 |
|
|
|
415 |
$adminSub .= '</div><!-- [ /.adminSub ] -->' . "\n";
|
416 |
return $adminSub;
|
417 |
}
|
@@ -434,14 +435,16 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
434 |
|
435 |
<?php if ( $get_layout == 'column_3' ) : ?>
|
436 |
<div id="adminContent_sub" class="scrTracking adminMain_sub">
|
437 |
-
<div class="
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
<
|
443 |
-
|
444 |
-
|
|
|
|
|
445 |
</div>
|
446 |
</div><!-- [ /#adminContent_sub ] -->
|
447 |
<?php endif; ?>
|
1 |
<?php
|
|
|
2 |
/*
|
3 |
このファイルの元ファイルは
|
4 |
https://github.com/vektor-inc/vektor-wp-libraries
|
10 |
|
11 |
if ( ! class_exists( 'Vk_Admin' ) ) {
|
12 |
/*
|
13 |
+
congif.phpの方で既に ! class_exists( 'Vk_Admin' ) しているが
|
14 |
今後読み込みファイルが増えた時にVk-Adminの中で別のファイルを読み込むために
|
15 |
このファイルにも更にclass_exists( 'Vk_Admin' ) がある。
|
16 |
*/
|
17 |
class Vk_Admin {
|
18 |
|
19 |
+
public static $version = '2.5.0';
|
20 |
|
21 |
static function init() {
|
22 |
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_common_css' ) );
|
406 |
return;
|
407 |
}
|
408 |
$adminSub = '<div class="adminSub">' . "\n";
|
409 |
+
$adminSub .= '<div class="adminSub_inner">' . "\n";
|
410 |
if ( 'ja' == get_locale() ) {
|
411 |
$adminSub .= '<div class="infoBox">' . self::get_news_body() . '</div>' . "\n";
|
412 |
}
|
413 |
$adminSub .= '<div class="vk-admin-banner">' . self::get_admin_banner() . '</div>' . "\n";
|
414 |
|
415 |
+
$adminSub .= '</div><!-- [ /.adminSub_inner ] -->' . "\n";
|
416 |
$adminSub .= '</div><!-- [ /.adminSub ] -->' . "\n";
|
417 |
return $adminSub;
|
418 |
}
|
435 |
|
436 |
<?php if ( $get_layout == 'column_3' ) : ?>
|
437 |
<div id="adminContent_sub" class="scrTracking adminMain_sub">
|
438 |
+
<div class="adminMain_sub_inner">
|
439 |
+
<div class="pageLogo"><?php echo $get_logo_html; ?></div>
|
440 |
+
<?php if ( $get_page_title ) : ?>
|
441 |
+
<h2 class="page_title"><?php echo $get_page_title; ?></h2>
|
442 |
+
<?php endif; ?>
|
443 |
+
<div class="vk_option_nav">
|
444 |
+
<ul>
|
445 |
+
<?php echo $get_menu_html; ?>
|
446 |
+
</ul>
|
447 |
+
</div>
|
448 |
</div>
|
449 |
</div><!-- [ /#adminContent_sub ] -->
|
450 |
<?php endif; ?>
|
inc/vk-admin/package/css/vk_admin.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.vk_admin_page{--vk-admin-layout-gap:30px}.
|
1 |
+
.vk_admin_page{--vk-admin-layout-gap:30px}.adminLayout{display:grid;gap:var(--vk-admin-layout-gap)}.adminLayout .adminMain{display:grid;gap:var(--vk-admin-layout-gap)}body{margin:0}.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 li,.vk_admin_page p,.vk_admin_page td{line-height:1.7;font-size:14px}.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 .form-table td p,.vk_admin_page p{margin-bottom:1em;font-size:14px;line-height:1.7}.vk_admin_page .form-table td p:last-child,.vk_admin_page p:last-child{margin-bottom:0}.vk_admin_page input[type=text]{width:50%}.vk_admin_page select{width:50%}.vk_admin_page dl{line-height:1.5}.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 #adminContent_sub .notice{padding-bottom:10px}.vk_admin_page .adminMain #adminContent_sub .button{white-space:normal;margin:5px 0;padding:.5em 1em;line-height:1.4}.vk_admin_page .adminMain #adminContent_main .form_horizontal_item{margin-right:1em}.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 ul.no-style{margin-left:0}.vk_admin_page .adminMain_main ul.no-style ul{margin-left:1.5em}.vk_admin_page .adminMain_main ul.no-style li{list-style:none}.vk_admin_page .adminMain_main_content{margin-bottom:3em}.vk_admin_page .adminMain_main input[type=text]{margin-bottom:5px}.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}.wp-full-overlay-sidebar{font-size:14px}.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}.admin-custom-discription{margin-top:.5em}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}.vk-admin-inline-radio{display:flex;border-radius:3px;overflow:hidden;border:1px solid #b6b6b6}.vk-admin-inline-radio div{position:relative;flex:1}.vk-admin-inline-radio input{width:100%;height:60px;opacity:0}.vk-admin-inline-radio label{position:absolute;top:0;left:0;color:#b6b6b6;width:100%;height:100%;background:#fff;display:flex;align-items:center;justify-content:center;pointer-events:none;border-right:1px solid #b6b6b6}.vk-admin-inline-radio div:last-child label{border-right:0}.vk-admin-inline-radio input:checked+label{background:#d81b60;font-weight:500;color:#fff}@media (min-width:992px){.adminLayout .adminMain.column_3{grid-template-columns:240px auto}.adminLayout .adminMain_sub_inner{position:sticky;top:30px}}@media (min-width:1400px){.adminLayout{grid-template-columns:auto 300px}.adminLayout{align-items:end}.adminLayout .adminSub{position:sticky;bottom:30px}}@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}}
|
inc/vk-admin/package/js/vk_admin.js
CHANGED
@@ -59,32 +59,3 @@ jQuery(document).ready(function($){
|
|
59 |
jQuery(this).next().slideToggle();
|
60 |
});
|
61 |
});
|
62 |
-
|
63 |
-
/*-------------------------------------------*/
|
64 |
-
/* ページ内リンクで頭出しの余白を適切にする
|
65 |
-
/*-------------------------------------------*/
|
66 |
-
jQuery(document).ready(function(){
|
67 |
-
if(!jQuery('body').hasClass('exunit_page_vkExUnit_main_setting')){ return; }
|
68 |
-
// 一つ目のセクションの位置を取得
|
69 |
-
var default_offset = jQuery('.adminMain section:first-child').offset();
|
70 |
-
|
71 |
-
// 全てのセクションの上に余白を追加(頭出しがきれいになるようにするため)
|
72 |
-
jQuery('.adminMain section').each(function(i){
|
73 |
-
if (i != 0){ // 読み込んだ時、一つ目は余白要らない
|
74 |
-
jQuery(this).css({"padding-top":default_offset["top"]});
|
75 |
-
}
|
76 |
-
});
|
77 |
-
|
78 |
-
jQuery(window).scroll(function () {
|
79 |
-
// スクロール量を取得
|
80 |
-
var scroll = jQuery(this).scrollTop();
|
81 |
-
|
82 |
-
if ( scroll < default_offset["top"] ){
|
83 |
-
// スクロールが少ない場合は最初のセクションに余白を入れない
|
84 |
-
jQuery('.adminMain section:first-child').css({"padding-top":0});
|
85 |
-
} else {
|
86 |
-
// ある程度スクロールしている状態ならば余白を入れる
|
87 |
-
jQuery('.adminMain section:first-child').css({"padding-top":default_offset["top"]});
|
88 |
-
}
|
89 |
-
});
|
90 |
-
});
|
59 |
jQuery(this).next().slideToggle();
|
60 |
});
|
61 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: Guternberg, Block Pattern
|
5 |
Requires at least: 5.8
|
6 |
Tested up to: 6.0.2
|
7 |
-
Stable tag: 1.25.
|
8 |
Requires PHP: 7.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -16,6 +16,9 @@ When you activate this plugin that create new custom post type for custom block
|
|
16 |
|
17 |
== Changelog ==
|
18 |
|
|
|
|
|
|
|
19 |
= 1.25.0 =
|
20 |
[ Add ][ Japanese ] Add combination with X-T9 Patterns.
|
21 |
[ Fix ][ Japanese ] Fix API Alert.
|
4 |
Tags: Guternberg, Block Pattern
|
5 |
Requires at least: 5.8
|
6 |
Tested up to: 6.0.2
|
7 |
+
Stable tag: 1.25.1
|
8 |
Requires PHP: 7.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
16 |
|
17 |
== Changelog ==
|
18 |
|
19 |
+
= 1.25.1 =
|
20 |
+
[ Bug fix ] Fix Setting Page Layout bug
|
21 |
+
|
22 |
= 1.25.0 =
|
23 |
[ Add ][ Japanese ] Add combination with X-T9 Patterns.
|
24 |
[ Fix ][ Japanese ] Fix API Alert.
|
vk-block-patterns.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: VK Block Patterns
|
4 |
* Plugin URI: https://github.com/vektor-inc/vk-block-patterns
|
5 |
* Description: You can make and register your original custom block patterns.
|
6 |
-
* Version: 1.25.
|
7 |
* Requires at least: 5.8
|
8 |
* Author: Vektor,Inc.
|
9 |
* Author URI: https://vektor-inc.co.jp
|
3 |
* Plugin Name: VK Block Patterns
|
4 |
* Plugin URI: https://github.com/vektor-inc/vk-block-patterns
|
5 |
* Description: You can make and register your original custom block patterns.
|
6 |
+
* Version: 1.25.1
|
7 |
* Requires at least: 5.8
|
8 |
* Author: Vektor,Inc.
|
9 |
* Author URI: https://vektor-inc.co.jp
|