f6d64404a7
・カスタムフィールドの必須チェック漏れの修正 ・既存カスタムフィールド選択も可能なよう修正 ・ソートのリストに背景色を設定 ・並べ替え設定ページの更新ボタン位置を修正 ・カテゴリー、タグ、カスタム分類のソート対象選択のラジオボタン並び順を標準、検索と同一になるよう修正
112 lines
4.7 KiB
PHP
112 lines
4.7 KiB
PHP
<?php
|
|
$submit_type = APOP_UI::input_post_filter( 'apop_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>
|
|
<form action="" method="post">
|
|
<div class="post-order-box-outer">
|
|
<?php wp_nonce_field( 'sh_options' ); ?>
|
|
<input id="apop_submit_type" type="hidden" name="apop_submit_type"
|
|
value="<?php echo esc_attr( $submit_type ); ?>">
|
|
<div class="post-order-box">
|
|
<div class="list-orders-outer">
|
|
<div class="list-orders-inner">
|
|
<h3>通常</h3>
|
|
<?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>
|
|
<p>並べ替えを登録するには「変更を保存」をクリックしてください</p>
|
|
<div class="sort_box">
|
|
<div class="enable-box">
|
|
<h4>有効</h4>
|
|
<ul class="post-order-list search-normal-sort">
|
|
<?php APOP_UI::create_search_normal_list( 'normal' ); ?>
|
|
</ul>
|
|
</div>
|
|
<div class="disable-box">
|
|
<h4>無効</h4>
|
|
<ul class="disable-normal-list"></ul>
|
|
</div>
|
|
</div>
|
|
<div class="sort_box">
|
|
<ul class="post-order-list drag-sort">
|
|
<?php APOP_UI::get_all_search_normal_posts( 'normal' ); ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="post-order-box">
|
|
<div class="list-orders-outer">
|
|
<div class="list-orders-inner">
|
|
<h3>検索</h3>
|
|
<?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>
|
|
<p>並べ替えを登録するには「変更を保存」をクリックしてください</p>
|
|
<div class="sort_box">
|
|
<div class="enable-box">
|
|
<h4>有効</h4>
|
|
<ul class="post-order-list search-normal-sort">
|
|
<?php APOP_UI::create_search_normal_list( 'search' ); ?>
|
|
</ul>
|
|
</div>
|
|
<div class="disable-box">
|
|
<h4>無効</h4>
|
|
<ul class="disable-normal-list"></ul>
|
|
</div>
|
|
</div>
|
|
<div class="sort_box">
|
|
<ul class="post-order-list drag-sort">
|
|
<?php APOP_UI::get_all_search_normal_posts( 'search' ); ?>
|
|
</ul>
|
|
</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 = 'カテゴリー';
|
|
?>
|
|
<?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 = 'タグ';
|
|
?>
|
|
<?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 = 'カスタム分類';
|
|
?>
|
|
<?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>
|