From 5ae4c89c70b4c498c269e233b001a873130d6c1c Mon Sep 17 00:00:00 2001 From: kurudrive Date: Tue, 9 Aug 2022 14:27:30 +0900 Subject: [PATCH 1/4] =?UTF-8?q?CSS=E8=AA=BF=E6=95=B4=E3=81=AE=E3=81=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/style.scss | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/admin/style.scss b/src/admin/style.scss index 712bf87..69ee053 100644 --- a/src/admin/style.scss +++ b/src/admin/style.scss @@ -15,4 +15,19 @@ section { margin-left: 1em; } } +} + +/* 2022.08.09 */ +/* VK Admin のバージョンn 2.2.0 以降が浸透したら削除可 */ +#adminContent_sub { + .notice { + padding-bottom: 10px; + } + + .button { + white-space: normal; + margin: 5px 0; + padding: 0.5em 1em; + line-height: 1.4; + } } \ No newline at end of file From c2a72ad2d63bf41d627700aad4a968825a75e90b Mon Sep 17 00:00:00 2001 From: kurudrive Date: Tue, 9 Aug 2022 14:37:07 +0900 Subject: [PATCH 2/4] [ VK Admin ] 2.2.0 --- inc/vk-admin/package/_scss/vk_admin.scss | 210 ++++++++++++++++++++- inc/vk-admin/package/class-vk-admin.php | 221 +++++++++++++---------- inc/vk-admin/package/css/vk_admin.css | 2 +- 3 files changed, 340 insertions(+), 93 deletions(-) diff --git a/inc/vk-admin/package/_scss/vk_admin.scss b/inc/vk-admin/package/_scss/vk_admin.scss index 7d593d5..3b72ee1 100644 --- a/inc/vk-admin/package/_scss/vk_admin.scss +++ b/inc/vk-admin/package/_scss/vk_admin.scss @@ -1,15 +1,25 @@ @charset "utf-8"; // @import "compass"; +$text-size : 14px; +$line-height : 1.7; + +body { + margin: 0; +} + .text-left { text-align: left; } + .text-center { text-align: center; } + .text-right { text-align: right; } + .text-warning { color: #a94442; } @@ -21,28 +31,34 @@ border-bottom: 1px solid #e5e5e5; margin-top: 1em; padding-bottom: 0.3em; + .dashicons { position: relative; top: -2px; margin-left: 3px; } } + .vk-metabox-more-link { float: right; font-size: 12px; } + .vk-metabox-post-list { margin-bottom: 2em; + li { border-bottom: 1px dotted #ccc; padding-bottom: 3px; display: flex; + .date { font-size: 11px; margin-right: 1em; width: 75px; white-space: nowrap; } + a { width: 100%; } @@ -52,22 +68,27 @@ .vk-admin-banner { display: block; overflow: hidden; + a.admin_banner { display: block; margin-bottom: 1em; border: 1px solid #ccc; box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 1); + img { max-width: 100%; height: auto; display: block; + &:hover { opacity: 0.7; } } } + .vektor_logo { margin-top: 1em; + img { width: 150px; float: right; @@ -81,6 +102,7 @@ display: flex; flex-wrap: wrap; justify-content: space-between; + a.admin_banner { width: 48%; } @@ -99,6 +121,7 @@ text-align: center; margin-bottom: 10px; border-bottom: 1px solid #ccc; + img { width: 150px; max-width: 100%; @@ -109,12 +132,14 @@ 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; @@ -122,18 +147,22 @@ 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; @@ -142,13 +171,16 @@ 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; + a { color: #fff; } @@ -156,12 +188,21 @@ .vk_admin_page { padding-top: 1em; + + p, + li, + td { + line-height: $line-height; + font-size: $text-size; + } + h2.page_title { font-size: 16px; text-align: center; line-height: 140%; margin: 10px 0 20px; } + h3 { background-color: #333; color: #fff; @@ -171,58 +212,145 @@ border-left: 5px solid #e50000; border-radius: 4px; } + + h5 { + font-size: 16px; + margin-bottom: 1em; + } + + .form-table td p, + p { + margin-bottom: 1em; + font-size: $text-size; + line-height: $line-height; + + &:last-child { + margin-bottom: 0; + } + } + input[type="text"] { width: 50%; } + select { width: 50%; } + dl { + line-height: 1.5; + dt { font-weight: bold; margin-bottom: 5px; } + dd { margin-left: 0; } } + tr.dev_object { display: none; } + .pageLogo { text-align: center; + img { max-width: 150px; margin: 0 auto; } } + .adminMain { display: block; overflow: hidden; width: 74%; float: left; + #adminContent_sub { display: block; overflow: hidden; width: 23%; float: left; padding-bottom: 10px; + + .notice { + padding-bottom: 10px; + } + + .button { + white-space: normal; + margin: 5px 0; + padding: 0.5em 1em; + line-height: 1.4; + } } + #adminContent_main { display: block; overflow: hidden; width: 74%; float: right; min-height: 300px; + .form_horizontal_item { margin-right: 1em; } + + .setting-content {} + } + &.column_2 { #adminContent_main { width: 100%; } } + + &_main { + + ul, + ol { + margin-top: 0; + margin-left: 1.5em; + padding-top: 0; + } + + ol>li { + list-style: decimal; + } + + ul>li { + list-style: disc; + } + + li ul, + li ol { + margin-top: 0.5em; + } + + ul.no-style { + margin-left: 0; + + ul { + margin-left: 1.5em; + } + + li { + list-style: none; + } + } + + &_content { + margin-bottom: 3em; + } + + input[type=text] { + margin-bottom: 5px; + } + } } .adminSub { @@ -231,6 +359,7 @@ width: 24%; float: right; padding-bottom: 10px; + .infoBox { display: block; overflow: hidden; @@ -239,6 +368,7 @@ background-color: #fff; border-radius: 4px; } + .vk-metabox-sub-title { background-color: #ccc; width: auto; @@ -247,15 +377,19 @@ margin-top: 0; margin-bottom: 15px; } + .vk-metabox-more-link { display: none; } + @media (max-width: 991px) { .adminMain table.form-table { + th, td { display: block; } + th { background-color: #ccc; width: auto; @@ -265,10 +399,27 @@ } } } + + .alert { + border-radius: 4px; + padding: 0.8em; + font-weight: normal; + + &-danger { + border: 1px solid #ebccd1; + background-color: #f2dede; + color: #a94442; + } + } +} + +// カスタマイズパネル用CSS +.wp-full-overlay-sidebar { + font-size: 14px; } /*-------------------------------------------*/ -/* Widget css +/* カスタマイズパネル & Widget css /*-------------------------------------------*/ /* .admin_widget_ は pr-content ウィジェットなどで利用されているので、 @@ -280,10 +431,12 @@ display: block; overflow: hidden; margin: 1.5em 0; + p { margin-top: 0.5em; } } + .admin_widget_h2, .admin-custom-h2 { box-sizing: border-box; @@ -296,6 +449,7 @@ color: #fff; font-size: 1.1em; } + .admin_widget_h3, .admin-custom-h3 { box-sizing: border-box; @@ -306,6 +460,11 @@ // background: #EDEDED; font-size: 1em; } + +.admin-custom-discription { + margin-top: 0.5em; +} + input[type="text"], input[type="search"], input[type="radio"], @@ -324,6 +483,7 @@ input[type="month"], input[type="number"], select, textarea { + &.admin_widget_input, &.admin-custom-input { width: 100%; @@ -342,6 +502,7 @@ textarea { background-color: #f5f5f5; width: 100%; } + .admin_widget_thumb_outer:before, .admin-custom-thumb-outer:before { position: absolute; @@ -352,6 +513,7 @@ textarea { color: #999; content: "No Image"; } + .admin_widget_thumb, .admin-custom-thumb { position: relative; @@ -365,8 +527,54 @@ textarea { &-style-vertical { display: flex; } + // & & にしないと指定が負けるため特別 & &_input { margin-top: 0; } } + +/*トグル風ラジオボタン*/ +.vk-admin-inline-radio { + display: flex; + border-radius: 3px; + overflow: hidden; + border: 1px solid #b6b6b6; + + + div { + position: relative; + flex: 1; + } + + input { + width: 100%; + height: 60px; + opacity: 0; + } + + 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; + } + + div:last-child label { + border-right: 0; + } + + input:checked+label { + background: #d81b60; + font-weight: 500; + color: #fff; + } +} \ No newline at end of file diff --git a/inc/vk-admin/package/class-vk-admin.php b/inc/vk-admin/package/class-vk-admin.php index 902d7af..dd42fe3 100644 --- a/inc/vk-admin/package/class-vk-admin.php +++ b/inc/vk-admin/package/class-vk-admin.php @@ -1,7 +1,4 @@ '; - if ( $lang == 'ja' ) { - // $banner .= ''; - // $banner .= '[ Vektor,Inc. 採用情報 ]'; - // $banner .= ''; - } else { - $banner .= 'Lightning Copyright Customizer (opens in a new tab)'; - } + $banner_html = ''; + $dir_url = plugin_dir_url( __FILE__ ); + $lang = ( get_locale() == 'ja' ) ? 'ja' : 'en'; - $banner .= '
'; + // 画像を配置したディレクトリの URL + $img_base_url = 'https://raw.githubusercontent.com/vektor-inc/vk-admin-banners/main/images/'; - // プラグイン Link Target Controller を有効化していない人にバナーを表示 - if ( ! is_plugin_active( 'vk-link-target-controller/vk-link-target-controller.php' ) ) { - if ( $lang == 'ja' ) { - $bnr_file_name = 'vk-link-target-controller_bnr.jpg'; - } else { - $bnr_file_name = 'vk-link-target-controller_notxt_bnr.jpg'; - } - $banner .= 'Link Target Controller'; - } + // 変数の初期化 + $product_array = array(); - // プラグイン VK Aost Author Display を有効化していない人にバナーを表示 - if ( ! is_plugin_active( 'vk-post-author-display/post-author-display.php' ) ) { - if ( $lang == 'ja' ) { - $bnr_file_name = 'post_author_display_bnr_ja.jpg'; - } else { - $bnr_file_name = 'post_author_display_bnr_en.jpg'; - } - $banner .= 'VK Post Author
-			Display'; - } + // WP File System で JSON ファイルを読み込み + require_once ABSPATH . 'wp-admin/includes/file.php'; + if ( WP_Filesystem() ) { + global $wp_filesystem; - // プラグイン VK Job Posting Manager を有効化していない人にバナーを表示 - if ( ! is_plugin_active( 'vk-google-job-posting-manager/vk-google-job-posting-manager.php' ) ) { - if ( $lang == 'ja' ) { - $bnr_file_name = 'job_banner-336_280-ja.jpg'; - } else { - $bnr_file_name = 'job_banner-336_280-en.jpg'; - } - $banner .= 'VK Post Author
-			Display'; - } + // プロダクトの配列を取得・生成 + $product_json_url = 'https://raw.githubusercontent.com/vektor-inc/vk-admin-banners/main/vk-admin-banners.json'; + $product_json = $wp_filesystem->get_contents( $product_json_url ); + $product_json = mb_convert_encoding( $product_json, 'UTF8', 'ASCII,JIS,UTF-8,EUC-JP,SJIS-WIN' ); + $product_array = json_decode( $product_json, true ); - // テーマがLightningじゃない場合にLighntingのバナーを表示 - if ( ! function_exists( 'lightning_get_theme_name' ) ) { - if ( $lang == 'ja' ) { - $banner .= 'lightning_bnr_ja'; - } else { - $banner .= 'lightning_bnr_en'; - } // if ( $lang == 'ja' ) { - } // if ( $theme != 'lightning' ) { - - $theme = get_template(); - if ( $lang == 'ja' && $theme != 'bill-vektor' && $theme != 'bill-vektor-master' ) { - $banner .= '見積書・請求書管理用WordPressテーマ'; } - if ( - $lang == 'ja' && - $theme != 'Lightning-pro' && - $theme != 'lightning-pro' - ) { - $banner .= ''; - } + $banner_html .= '
'; - if ( $lang == 'ja' && ! is_plugin_active( 'lightning-skin-jpnstyle/lightning_skin_jpnstyle.php' ) ) { - $banner .= ''; + if ( $lang == 'ja' ) { + // $banner_html .= ''; + // $banner_html .= '[ Vektor,Inc. 採用情報 ]'; + // $banner_html .= ''; + } else { + $banner_html .= 'Lightning Copyright Customizer (opens in a new tab)'; } - if ( $lang == 'ja' && ! is_plugin_active( 'lightning-skin-fort/lightning-skin-fort.php' ) ) { - $banner .= ''; - } + $banner_html .= '
'; + + if ( ! empty( $product_array ) ) { + + // テーマのバナーを設置 + foreach ( $product_array as $product ) { + // include パラメーターが存在する場合 + if ( ! empty( $product['include'] ) ) { + // include パラメーターをカンマで区切って配列化 + $includes = explode( ',', $product['include'] ); + // include パラメーター が配列の場合 + if ( is_array( $includes ) ) { + // 該当するものがあった時点で continue を2回発動 + foreach ( $includes as $include ) { + if ( self::theme_exists( $include ) || self::plugin_exists( $include ) ) { + continue 2; + } + } + } else { + // 該当するものがあった時点で continue を発動 + if ( self::theme_exists( $includes ) || self::plugin_exists( $includes ) ) { + continue; + } + } + } - if ( $lang == 'ja' && ! is_plugin_active( 'lightning-skin-pale/lightning-skin-pale.php' ) ) { - $banner .= ''; - } + if ( 'theme' === $product['type'] ) { + if ( ! self::theme_exists( $product['slug'] ) ) { + if ( $lang === $product['language'] ) { - if ( $lang == 'ja' && ! is_plugin_active( 'lightning-skin-pale/lightning-skin-variety.php' ) ) { - $banner .= ''; - } + // プラグインの検索結果に飛ばす場合 URL を変換する必要がある + $product_url = true === $product['admin_url'] ? admin_url( $product['link_url'] ) : $product['link_url']; - if ( $lang == 'ja' && ! is_plugin_active( 'vk-all-in-one-expansion-unit/vkExUnit.php' ) ) { - $banner .= ''; + // バナーを追加 + $banner_html .= ''; + $banner_html .= '' . $product['alt'] . ''; + $banner_html .= ''; + + } + } + } + + if ( 'plugin' === $product['type'] ) { + if ( ! self::plugin_exists( $product['slug'] ) ) { + if ( $lang === $product['language'] ) { + + // プラグインの検索結果に飛ばす場合 URL を変換する必要がある + $product_url = true === $product['admin_url'] ? admin_url( $product['link_url'] ) : $product['link_url']; + + // バナーを追加 + $banner_html .= ''; + $banner_html .= '' . $product['alt'] . ''; + $banner_html .= ''; + + } + } + } + } } - $banner .= '
'; + $banner_html .= '
'; - $banner .= ''; + $banner_html .= ''; - $banner .= '
'; + $banner_html .= ''; - return apply_filters( 'vk_admin_banner_html', $banner ); + return apply_filters( 'vk_admin_banner_html', $banner_html ); } /* @@ -178,8 +198,14 @@ public static function get_news_body() { public static function get_news_from_rest_api() { $html = '

'; - $html .= 'Vektor WordPress Information'; - $html .= '記事一覧'; + $html .= 'Vektor製品更新情報'; + $html .= '記事一覧'; + $html .= '

'; + $html .= ''; + + $html .= '

'; + $html .= 'ベクトルからのお知らせ'; + $html .= '記事一覧'; $html .= '

'; $html .= ''; @@ -215,7 +241,7 @@ public static function load_rest_api_js() { jQuery(document).ready(function($){ // お知らせ - $.getJSON( "https://vektor-inc.co.jp/wp-json/wp/v2/info?info-cat=111&per_page=5", + $.getJSON( "https://vektor-inc.co.jp/wp-json/wp/v2/info/?per_page=3", function(results) { // 取得したJSONの内容をループする $.each(results, function(i, item) { @@ -227,6 +253,19 @@ function(results) { }); }); + // 製品更新情報 + $.getJSON( "https://vektor-inc.co.jp/wp-json/wp/v2/product-update/?per_page=5", + function(results) { + // 取得したJSONの内容をループする + $.each(results, function(i, item) { + // 日付のデータを取得 + var date = new Date(item.date_gmt); + var formate_date = date.toLocaleDateString(); + // JSONの内容の要素をの前に出力する + $("ul#vk-product-update").append('
  • '+ formate_date +'' + item.title.rendered + '
  • '); + }); + }); + // ブログ $.getJSON( "https://www.vektor-inc.co.jp/wp-json/wp/v2/posts/?categories=55&per_page=3", function(results) { @@ -261,6 +300,7 @@ function(results) { /* RSS方針で現在は日本語以外でのみ使用 /*--------------------------------------------------*/ public static function get_news_from_rss() { + $output = ''; include_once ABSPATH . WPINC . '/feed.php'; @@ -290,7 +330,7 @@ public static function get_news_from_rss() { if ( $maxitems == 0 ) { $output .= '
  • '; - $output .= __( 'Sorry, there is no post', 'vk-block-patterns' ); + $output .= __( 'Sorry, there is no post', 'vk_admin_textdomain' ); $output .= '
  • '; } else { foreach ( $rss_items as $item ) { @@ -323,10 +363,10 @@ public static function is_dashboard_active() { if ( 'ja' == get_locale() ) { $flag = true; } - if ( is_plugin_active( 'vk-all-in-one-expansion-unit/vkExUnit.php' ) ) { + if ( self::plugin_exists( 'vk-all-in-one-expansion-unit/vkExUnit.php' ) ) { $flag = true; } - if ( ! is_plugin_active( 'vk-post-author-display/post-author-display.php' ) ) { + if ( ! self::plugin_exists( 'vk-post-author-display/post-author-display.php' ) ) { $flag = true; } $theme = wp_get_theme()->get( 'Template' ); @@ -344,7 +384,7 @@ public static function dashboard_widget() { if ( self::is_dashboard_active() ) { wp_add_dashboard_widget( 'vk_dashboard_widget', - __( 'Vektor WordPress Information', 'vk-block-patterns' ), + __( 'Vektor WordPress Information', 'vk_admin_textdomain' ), array( __CLASS__, 'dashboard_widget_body' ) ); } @@ -386,7 +426,7 @@ public static function admin_page_frame( $get_page_title, $the_body_callback, $g
    -
    +

    @@ -406,7 +446,7 @@ public static function admin_page_frame( $get_page_title, $the_body_callback, $g -
    +
    @@ -425,4 +465,3 @@ public function __construct() { } // if ( ! class_exists( 'Vk_Admin' ) ) Vk_Admin::init(); -$Vk_Admin = new Vk_Admin(); diff --git a/inc/vk-admin/package/css/vk_admin.css b/inc/vk-admin/package/css/vk_admin.css index af80fea..0540115 100644 --- a/inc/vk-admin/package/css/vk_admin.css +++ b/inc/vk-admin/package/css/vk_admin.css @@ -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}} \ No newline at end of file +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{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_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{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 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{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}.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 (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}} \ No newline at end of file From c5cdd203c9d49d497b43a51be40aeeefc27311f0 Mon Sep 17 00:00:00 2001 From: kurudrive Date: Tue, 9 Aug 2022 14:38:28 +0900 Subject: [PATCH 3/4] [ Othe ] Update admin library --- readme.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.txt b/readme.txt index a69d696..9e74ff0 100644 --- a/readme.txt +++ b/readme.txt @@ -16,6 +16,8 @@ When you activate this plugin that create new custom post type for custom block == Changelog == +[ Othe ] Update admin library + = 1.23.0 = [ Update ] Update CTA Pattern [ Othe ] Add Pattern Lib notice From d0d8e9ce8716308a564019c328b2681a108a2023 Mon Sep 17 00:00:00 2001 From: kurudrive Date: Tue, 9 Aug 2022 14:43:16 +0900 Subject: [PATCH 4/4] [ Change version ] 1.24.0 --- readme.txt | 3 ++- vk-block-patterns.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index 9e74ff0..96fc5b3 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: Tags: Guternberg, Block Pattern Requires at least: 5.8 Tested up to: 6.0.1 -Stable tag: 1.23.0 +Stable tag: 1.24.0 Requires PHP: 7.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -16,6 +16,7 @@ When you activate this plugin that create new custom post type for custom block == Changelog == += 1.24.0 = [ Othe ] Update admin library = 1.23.0 = diff --git a/vk-block-patterns.php b/vk-block-patterns.php index a84bded..2752068 100644 --- a/vk-block-patterns.php +++ b/vk-block-patterns.php @@ -3,7 +3,7 @@ * Plugin Name: VK Block Patterns * Plugin URI: https://github.com/vektor-inc/vk-block-patterns * Description: You can make and register your original custom block patterns. - * Version: 1.23.0 + * Version: 1.24.0 * Requires at least: 5.8 * Author: Vektor,Inc. * Author URI: https://vektor-inc.co.jp