f07c318f93
・通常、検索、タクソノミーにソート用カスタムフィールドの設定入力欄を追加 ・通常と検索にカスタムフィールド検索処理を実装 ・タクソノミーに通常+カスタムフィールドのメニューを追加 ・タクソノミーに通常+カスタムフィールドとドラッグソートの切り替え用ラジオボタンを追加
113 lines
4.6 KiB
PHP
113 lines
4.6 KiB
PHP
<?php
|
|
$submit_type = APOP_UI::input_post_filter( 'submit_type', 'str' );
|
|
?>
|
|
<div class="post-setting-box">
|
|
<h2>並べ替え</h2>
|
|
<nav class="post-order-nav">
|
|
<ul>
|
|
<li class="en">通常</li>
|
|
<li>検索</li>
|
|
<li>カテゴリー</li>
|
|
<li>タグ</li>
|
|
<li>カスタム分類</li>
|
|
</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">
|
|
<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 );
|
|
?>
|
|
<?php include APOP_PLUGIN_PATH . 'template/order_parts_menu.php'; ?>
|
|
<hr>
|
|
<div class="sort_box">
|
|
<?php list( $list, $alert, $field_metakey_input ) = APOP_UI::create_search_normal_list( 'normal' ); ?>
|
|
<?php echo $alert; ?>
|
|
<ul class="post-order-list search_normal_sort">
|
|
<?php echo $list; ?>
|
|
</ul>
|
|
<?php echo $field_metakey_input; ?>
|
|
</div>
|
|
<div class="sort_box">
|
|
<?php echo APOP_UI::none_registered_alert_msg(); ?>
|
|
<ul class="post-order-list">
|
|
<?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 class="post-order-box">
|
|
<div class="list-orders-outer">
|
|
<div class="list-orders-inner">
|
|
<form action="" method="post">
|
|
<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 );
|
|
?>
|
|
<?php include APOP_PLUGIN_PATH . 'template/order_parts_menu.php'; ?>
|
|
<hr>
|
|
<div class="sort_box">
|
|
<?php list( $list, $alert, $field_metakey_input ) = APOP_UI::create_search_normal_list( 'search' ); ?>
|
|
<?php echo $alert; ?>
|
|
<ul class="post-order-list search_normal_sort">
|
|
<?php echo $list; ?>
|
|
</ul>
|
|
<?php echo $field_metakey_input; ?>
|
|
</div>
|
|
<div class="sort_box">
|
|
<?php echo APOP_UI::none_registered_alert_msg(); ?>
|
|
<ul class="post-order-list">
|
|
<?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 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 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 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>
|
|
</div>
|