c8f482a02d
・ファイル名の綴りが間違っていたので修正 ・通常ソートのリスト表示位置が、有効/無効切り替えで変わるようJSとテンプレートのPHPファイルを修正
65 lines
3.4 KiB
PHP
65 lines
3.4 KiB
PHP
<?php if ( isset( $tax_lists, $tax_title_text, $submit_type_number ) ): ?>
|
|
<?php foreach ( $tax_lists as $tax_key => $tax_list ) : ?>
|
|
<div class="list-orders-outer">
|
|
<?php if ( count( $tax_list ) > 0 ): ?>
|
|
<?php echo APOP_UI::none_registered_alert_msg(); ?>
|
|
<?php foreach ( $tax_list as $tax_data ): ?>
|
|
<div class="list-orders-inner">
|
|
<form action="" method="post">
|
|
<?php wp_nonce_field( 'sh_options' ); ?>
|
|
<h3><?php echo $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 = 1;
|
|
}
|
|
?>
|
|
<ul class="sort_menu_list"
|
|
data-order_target="<?php echo $order_target; ?>">
|
|
<li>
|
|
<label>
|
|
<input class="sort_menu" type="radio"
|
|
name="_apop_tax_sort_type[<?php echo $tax_data->term_id; ?>]"
|
|
value="1"<?php checked( $order_target, 1 ); ?>>ドラッグソート</label>
|
|
</li>
|
|
<li>
|
|
<label>
|
|
<input class="sort_menu" type="radio"
|
|
name="_apop_tax_sort_type[<?php echo $tax_data->term_id; ?>]"
|
|
value="2"<?php checked( $order_target, 2 ); ?>>標準+カスタムフィールドソート</label>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="sort_box">
|
|
<ul class="post-order-list">
|
|
<?php echo APOP_UI::create_order_list( $tax_data, $tax_key ); ?>
|
|
</ul>
|
|
</div>
|
|
<div class="sort_box">
|
|
<?php list( $list, $alert ) = APOP_UI::create_search_normal_list( 'tax', $tax_data->term_id ); ?>
|
|
<?php echo $alert; ?>
|
|
<h4>有効</h4>
|
|
<ul class="post-order-list search_normal_sort">
|
|
<?php echo $list; ?>
|
|
</ul>
|
|
<div class="disable_box">
|
|
<h4>無効</h4>
|
|
<ul class="disable_normal_list"></ul>
|
|
</div>
|
|
</div>
|
|
<input type="hidden" name="submit_type" value="<?php echo $submit_type_number; ?>">
|
|
<p class="submit post-order"><input type="submit" name="Submit"
|
|
class="button-primary"
|
|
value="変更を保存"/></p>
|
|
<input type="hidden" name="sort_type[cat]" value="1">
|
|
</form>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<?php else: ?>
|
|
<?php echo APOP_UI::create_none_select_msg( $tax_title_text ); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<?php endif;
|