diff --git a/archive-post-order-plus.php b/archive-post-order-plus.php index a283a13..346de52 100644 --- a/archive-post-order-plus.php +++ b/archive-post-order-plus.php @@ -5,7 +5,7 @@ Plugin URI: https://develop.n-k-y.net/wordpress/wp_plugin/apop/ Author: NBK45 Author URI: https://develop.n-k-y.net Description: 通常表示、検索表示、タクソノミー毎に投稿の表示順を設定するプラグイン -Version: 1.1.1 +Version: 1.1.2 License: GPLv2 */ diff --git a/css/apop-style.css b/css/apop-style.css index 050c0f2..15989b2 100644 --- a/css/apop-style.css +++ b/css/apop-style.css @@ -109,15 +109,25 @@ dl.apop-setting-list-dd dd ul { margin-bottom: 1em; } -dl.apop-setting-list-dd dd label { - display: block; - margin-bottom: .3em; +dl.apop-setting-list-dd dd li { + display: flex; + justify-content: space-between; } -dl.apop-setting-list-dd dd input { +dl.apop-setting-list-dd dd label { + width: 25%; + margin-bottom: .3em; + cursor: inherit; +} + +dl.apop-setting-list-dd input { width: 100%; } +dl.apop-setting-list-dd .sort-custom-field-input { + width: 75%; +} + .form-table tr { border-bottom: 1px solid #ccc; } diff --git a/readme.txt b/readme.txt index 19ba789..1d988a8 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: 投稿,表示順,投稿表示順,カテゴリー,タグ,カスタム分類 Requires at least: 4.9 Tested up to: 5.7.2 Requires PHP: 7.0 -Stable tag: 1.1.1 +Stable tag: 1.1.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -66,5 +66,8 @@ License URI: https://www.gnu.org/licenses/gpl-2.0.html = 1.1.1 = バグ修正:カスタムフィールドのselected属性の追加漏れ修正 += 1.1.2 = +選択カスタムフィールドを読み取り専用表示するよう修正 + == Upgrade Notice == No information \ No newline at end of file diff --git a/template/setting_post_custom_field.php b/template/setting_post_custom_field.php index 8f38bee..5aada64 100644 --- a/template/setting_post_custom_field.php +++ b/template/setting_post_custom_field.php @@ -10,19 +10,23 @@ custom_field_type[ $type ][ $idx ] == '2' ) { $custom_field_prefix = APOP_CUSTOM_FIELD_PREFIX; + $disabled = ''; + $read_only_class = ''; } else { $custom_field_prefix = ''; + $disabled = ' disabled'; + $read_only_class = ' ※カスタムフィールドから変更してください'; } ?> - -
  • +
  • + +
    -
  • - - [ ]はカスタムフィールドから設定してください - + value="get_custom_field_data( $item, $custom_field_prefix ) ); ?>"/> + + +