WP PLUGIN バグ修正 ソートのカスタムフィールドのメタボックス追加
・ソートのカスタムフィールドのメタボックスを追加 ・共通nameタグが更新されないバグ対策としてフォームタグを共通化 ・ファイル名をクラス名に合わせるよう変更
This commit is contained in:
+39
-48
@@ -13,12 +13,12 @@ $submit_type = APOP_UI::input_post_filter( 'submit_type', 'str' );
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="post-order-box-outer" data-submit_type="<?php echo $submit_type; ?>">
|
||||
<div class="post-order-box">
|
||||
<div class="list-orders-outer">
|
||||
<div class="list-orders-inner">
|
||||
<form action="" method="post">
|
||||
<form action="" method="post">
|
||||
<?php wp_nonce_field( 'sh_options' ); ?>
|
||||
<div class="post-order-box">
|
||||
<div class="list-orders-outer">
|
||||
<div class="list-orders-inner">
|
||||
<h3>通常</h3>
|
||||
<?php wp_nonce_field( 'sh_options' ); ?>
|
||||
<?php
|
||||
$order_target_type = '_apop_normal_order';
|
||||
$order_target = APOP_UI::get_order_type( $order_target_type );
|
||||
@@ -43,20 +43,13 @@ $submit_type = APOP_UI::input_post_filter( 'submit_type', 'str' );
|
||||
<?php echo APOP_UI::get_all_search_normal_posts( 'normal' ); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<input type="hidden" name="submit_type" value="0">
|
||||
<p class="submit post-order"><input type="submit" name="Submit" class="button-primary"
|
||||
value="変更を保存"/></p>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-order-box">
|
||||
<div class="list-orders-outer">
|
||||
<div class="list-orders-inner">
|
||||
<form action="" method="post">
|
||||
<div class="post-order-box">
|
||||
<div class="list-orders-outer">
|
||||
<div class="list-orders-inner">
|
||||
<h3>検索</h3>
|
||||
<?php wp_nonce_field( 'sh_options' ); ?>
|
||||
<?php
|
||||
$order_target_type = '_apop_search_order';
|
||||
$order_target = APOP_UI::get_order_type( $order_target_type );
|
||||
@@ -81,42 +74,40 @@ $submit_type = APOP_UI::input_post_filter( 'submit_type', 'str' );
|
||||
<?php echo APOP_UI::get_all_search_normal_posts( 'search' ); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<input type="hidden" name="submit_type" value="1">
|
||||
<p class="submit post-order"><input type="submit" name="Submit" class="button-primary"
|
||||
value="変更を保存"/></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-order-box">
|
||||
<div class="tax_sort_box">
|
||||
<?php
|
||||
$tax_lists = array( 'category' => APOP_UI::get_cat_tag_list( 'cat', 'category' ) );
|
||||
$tax_title_text = 'カテゴリー';
|
||||
$submit_type_number = 2;
|
||||
?>
|
||||
<?php include APOP_PLUGIN_PATH . 'template/order_parts_taxonomy.php'; ?>
|
||||
<div class="post-order-box">
|
||||
<div class="tax_sort_box">
|
||||
<?php
|
||||
$tax_lists = array( 'category' => APOP_UI::get_cat_tag_list( 'cat', 'category' ) );
|
||||
$tax_title_text = 'カテゴリー';
|
||||
$submit_type_number = 2;
|
||||
?>
|
||||
<?php include APOP_PLUGIN_PATH . 'template/order_parts_taxonomy.php'; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-order-box">
|
||||
<div class="tax_sort_box">
|
||||
<?php
|
||||
$tax_lists = array( 'tag_id' => APOP_UI::get_cat_tag_list( 'tag', 'post_tag' ) );
|
||||
$tax_title_text = 'タグ';
|
||||
$submit_type_number = 3;
|
||||
?>
|
||||
<?php include APOP_PLUGIN_PATH . 'template/order_parts_taxonomy.php'; ?>
|
||||
<div class="post-order-box">
|
||||
<div class="tax_sort_box">
|
||||
<?php
|
||||
$tax_lists = array( 'tag_id' => APOP_UI::get_cat_tag_list( 'tag', 'post_tag' ) );
|
||||
$tax_title_text = 'タグ';
|
||||
$submit_type_number = 3;
|
||||
?>
|
||||
<?php include APOP_PLUGIN_PATH . 'template/order_parts_taxonomy.php'; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-order-box">
|
||||
<div class="tax_sort_box">
|
||||
<?php
|
||||
$tax_lists = array( 'taxonomy' => APOP_UI::get_cat_tag_list( 'tax', 'taxonomy' ) );
|
||||
$tax_title_text = 'カスタム分類';
|
||||
$submit_type_number = 4;
|
||||
?>
|
||||
<?php include APOP_PLUGIN_PATH . 'template/order_parts_taxonomy.php'; ?>
|
||||
<div class="post-order-box">
|
||||
<div class="tax_sort_box">
|
||||
<?php
|
||||
$tax_lists = array( 'taxonomy' => APOP_UI::get_cat_tag_list( 'tax', 'taxonomy' ) );
|
||||
$tax_title_text = 'カスタム分類';
|
||||
$submit_type_number = 4;
|
||||
?>
|
||||
<?php include APOP_PLUGIN_PATH . 'template/order_parts_taxonomy.php'; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="apop-submit"><input type="submit" name="submit" class="button-primary" value="変更を保存"/></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user