28c02ebce2
・echoのエスケープ ・メソッドの変数をエスケープ
116 lines
5.1 KiB
PHP
116 lines
5.1 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>
|
|
<div class="post-order-box-outer">
|
|
<form action="" method="post">
|
|
<?php wp_nonce_field( 'sh_options' ); ?>
|
|
<input id="apop_submit_type" type="hidden" name="apop_submit_type"
|
|
value="<?php echo esc_html( $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>
|
|
<div class="sort_box">
|
|
<?php list( $list, $alert) = APOP_UI::create_search_normal_list( 'normal' ); ?>
|
|
<p><?php echo esc_html( $alert ); ?></p>
|
|
<div class="enable_box">
|
|
<h4>有効</h4>
|
|
<ul class="post-order-list search_normal_sort">
|
|
<?php echo $list; ?>
|
|
</ul>
|
|
</div>
|
|
<div class="disable_box">
|
|
<h4>無効</h4>
|
|
<ul class="disable_normal_list"></ul>
|
|
</div>
|
|
</div>
|
|
<div class="sort_box">
|
|
<div class="no_registered_exp">■は未登録項目です。ドラッグして並び順を変更後に「変更を保存」をクリックしてください。</div>
|
|
<ul class="post-order-list drag_sort">
|
|
<?php echo 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>
|
|
<div class="sort_box">
|
|
<?php list( $list, $alert) = APOP_UI::create_search_normal_list( 'search' ); ?>
|
|
<p><?php echo esc_html( $alert ); ?></p>
|
|
<div class="enable_box">
|
|
<h4>有効</h4>
|
|
<ul class="post-order-list search_normal_sort">
|
|
<?php echo $list; ?>
|
|
</ul>
|
|
</div>
|
|
<div class="disable_box">
|
|
<h4>無効</h4>
|
|
<ul class="disable_normal_list"></ul>
|
|
</div>
|
|
</div>
|
|
<div class="sort_box">
|
|
<div class="no_registered_exp">■は未登録項目です。ドラッグして並び順を変更後に「変更を保存」をクリックしてください。</div>
|
|
<ul class="post-order-list drag_sort">
|
|
<?php echo 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>
|
|
<p class="apop-submit"><input type="submit" name="submit" class="button-primary" value="変更を保存"/></p>
|
|
</form>
|
|
</div>
|
|
</div>
|