WP PLUGIN アーカイブページの投稿表示順設定

・不要な初期化を削除
・カスタムタクソノミー対応
・設定画面のタブ化
・設定画面各タクソノミーの投稿リスト表示をメソッド化
・name属性の閉じ忘れ修正
・不要なreturn削除
・APOP_UI::create_product_none_order_list() returnに変数が未設定の場合の条件を追加
・readmeに若干加筆
This commit is contained in:
2021-05-05 17:48:32 +09:00
parent 7722f53f10
commit 05b5fa91aa
12 changed files with 280 additions and 173 deletions
+35 -20
View File
@@ -5,32 +5,35 @@
margin-bottom: 0;
}
.post-order-box {
width: 95%;
margin: 2em 0;
}
.post-order-nav li {
width: 20em;
margin-right: .5em;
margin-bottom: 0;
padding: .5em;
margin-bottom: -1px;
font-size: 18px;
text-align: center;
background: #2c2c2e;
color: #fff;
background: #ababab;
border: 1px solid #999;
cursor: pointer;
border-top-right-radius: 6px;
border-top-left-radius: 6px;
opacity: .5;
}
.post-order-nav li.en {
background: #fff;
border-bottom: 1px solid #fff;
opacity: 1;
}
.post-order-nav li:first-child {
margin-right: .3em;
.post-order-nav li:last-child {
margin-right: 0;
}
.post-order-box-outer {
width: 95%;
margin: -1px 0 2em;
border-top: 1px solid #999;
}
.post-order-box:not(:first-child) {
display: none;
}
h3 {
@@ -47,10 +50,17 @@ h3 {
}
.list-orders-inner {
width: calc((100% - 10px) / 3);
border: 1px solid #999;
background: #fff;
width: calc((100% - 10px) / 5);
margin-right: .5em;
padding: .5em;
border: 1px solid #999;
position: relative;
}
p.submit.post-order .button-primary {
position: absolute;
bottom: 1em;
right: 1.5em;
}
.post-order-list {
@@ -60,9 +70,14 @@ h3 {
.product-list {
padding: .5em;
border-radius: 4px;
background: #2271B1;
background: #fff;
cursor: move;
color: #fff;
color: #4b4b4b;
border: 1px solid #ababab;
}
.product-list.no_order {
background: #ababab;
}
.list_order {