f6d64404a7
・カスタムフィールドの必須チェック漏れの修正 ・既存カスタムフィールド選択も可能なよう修正 ・ソートのリストに背景色を設定 ・並べ替え設定ページの更新ボタン位置を修正 ・カテゴリー、タグ、カスタム分類のソート対象選択のラジオボタン並び順を標準、検索と同一になるよう修正
61 lines
3.1 KiB
PHP
61 lines
3.1 KiB
PHP
<?php if ( isset( $tax_lists, $tax_title_text ) ): ?>
|
|
<?php foreach ( $tax_lists as $tax_key => $tax_list ) : ?>
|
|
<div class="list-orders-outer">
|
|
<?php if ( count( $tax_list ) > 0 ): ?>
|
|
<?php foreach ( $tax_list as $tax_data ): ?>
|
|
<div class="list-orders-inner">
|
|
<h3><?php echo esc_html( $tax_data->name ); ?></h3>
|
|
<?php
|
|
$order_target_data = get_option( '_apop_tax_sort_type' );
|
|
if ( isset( $order_target_data[ $tax_data->term_id ] ) ) {
|
|
$order_target = $order_target_data[ $tax_data->term_id ];
|
|
} else {
|
|
$order_target = 2;
|
|
}
|
|
?>
|
|
<ul class="sort-menu-list"
|
|
data-order_target="<?php echo esc_attr( $order_target ); ?>">
|
|
<li>
|
|
<label>
|
|
<input class="sort_menu" type="radio"
|
|
name="_apop_tax_sort_type[<?php echo esc_attr( $tax_data->term_id ); ?>]"
|
|
value="2"<?php checked( $order_target, 2 ); ?>>標準+カスタムフィールドソート</label>
|
|
</li>
|
|
<li>
|
|
<label>
|
|
<input class="sort_menu" type="radio"
|
|
name="_apop_tax_sort_type[<?php echo esc_attr( $tax_data->term_id ); ?>]"
|
|
value="1"<?php checked( $order_target, 1 ); ?>>ドラッグソート</label>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="sort_box">
|
|
<hr>
|
|
<p>並べ替えを登録するには「変更を保存」をクリックしてください</p>
|
|
<ul class="post-order-list drag-sort">
|
|
<?php echo APOP_UI::create_order_list( $tax_data, $tax_key ); ?>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="sort_box">
|
|
<hr>
|
|
<p>並べ替えを登録するには「変更を保存」をクリックしてください</p>
|
|
<div class="enable-box">
|
|
<h4>有効</h4>
|
|
<ul class="post-order-list search-normal-sort">
|
|
<?php APOP_UI::create_search_normal_list( 'tax', $tax_data->term_id ); ?>
|
|
</ul>
|
|
</div>
|
|
<div class="disable-box">
|
|
<h4>無効</h4>
|
|
<ul class="disable-normal-list"></ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<?php else: ?>
|
|
<p class="no-registered-exp">並べ替えをカスタマイズする<?php echo esc_html( $tax_title_text ); ?>は選択されていません。</p>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<?php endif;
|