WP PLUGIN バグ修正 ソートのカスタムフィールドのメタボックス追加
・ソートのカスタムフィールドのメタボックスを追加 ・共通nameタグが更新されないバグ対策としてフォームタグを共通化 ・ファイル名をクラス名に合わせるよう変更
This commit is contained in:
@@ -5,56 +5,48 @@
|
||||
<?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>
|
||||
<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 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 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>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
|
||||
Reference in New Issue
Block a user