ARCHIVE POST ORDER PLUS

翻訳対応
検索のカスタムフィールド選択バグ修正
This commit is contained in:
2021-07-11 17:40:23 +09:00
parent ae93196007
commit b8dcf1c44c
16 changed files with 388 additions and 105 deletions
+19 -19
View File
@@ -1,15 +1,15 @@
<?php
$submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
?>
<div class="post-setting-box">
<h2>並べ替え</h2>
<div class="post-setting-box <?php _e( 'apop-lang-en', APOP_DOMAIN ); ?>">
<h2><?php _e( 'Sorting', APOP_DOMAIN ); ?></h2>
<nav class="post-order-nav">
<ul>
<li class="en">最新の投稿</li>
<li>検索</li>
<li>カテゴリー</li>
<li>タグ</li>
<li>カスタム分類</li>
<li class="en"><?php _e( 'Your latest posts', APOP_DOMAIN ); ?></li>
<li><?php _e( 'Search', APOP_DOMAIN ); ?></li>
<li><?php _e( 'Category', APOP_DOMAIN ); ?></li>
<li><?php _e( 'Tag', APOP_DOMAIN ); ?></li>
<li><?php _e( 'Custom taxonomy', APOP_DOMAIN ); ?></li>
</ul>
</nav>
<form action="" method="post">
@@ -20,23 +20,23 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
<div class="post-order-box">
<div class="list-orders-outer">
<div class="list-orders-inner">
<h3>最新の投稿(設定-表示設定ーホームページの表示)</h3>
<h3><?php _e( 'Your latest posts / Settings - Reading Settings', APOP_DOMAIN ); ?></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>
<p><?php _e( 'Click "Save Changes" to register the sort.', APOP_DOMAIN ); ?></p>
<div class="sort_box">
<div class="enable-box">
<h4>有効</h4>
<h4><?php _e( 'Enabled', APOP_DOMAIN ); ?></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>
<h4><?php _e( 'Disabled', APOP_DOMAIN ); ?></h4>
<ul class="disable-normal-list"></ul>
</div>
</div>
@@ -51,23 +51,23 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
<div class="post-order-box">
<div class="list-orders-outer">
<div class="list-orders-inner">
<h3>検索</h3>
<h3><?php _e( 'Search', APOP_DOMAIN ); ?></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>
<p><?php _e( 'Click "Save Changes" to register the sort.', APOP_DOMAIN ); ?></p>
<div class="sort_box">
<div class="enable-box">
<h4>有効</h4>
<h4><?php _e( 'Enabled', APOP_DOMAIN ); ?></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>
<h4><?php _e( 'Disabled', APOP_DOMAIN ); ?></h4>
<ul class="disable-normal-list"></ul>
</div>
</div>
@@ -83,7 +83,7 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
<div class="tax_sort_box">
<?php
$tax_lists = array( 'category' => APOP_UI::get_cat_tag_list( 'cat', 'category' ) );
$tax_title_text = 'カテゴリー';
$tax_title_text = __('Category', APOP_DOMAIN);
?>
<?php include APOP_PLUGIN_PATH . 'template/order_parts_taxonomy.php'; ?>
</div>
@@ -92,7 +92,7 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
<div class="tax_sort_box">
<?php
$tax_lists = array( 'tag_id' => APOP_UI::get_cat_tag_list( 'tag', 'post_tag' ) );
$tax_title_text = 'タグ';
$tax_title_text = __('Tag', APOP_DOMAIN);
?>
<?php include APOP_PLUGIN_PATH . 'template/order_parts_taxonomy.php'; ?>
</div>
@@ -101,12 +101,12 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
<div class="tax_sort_box">
<?php
$tax_lists = array( 'taxonomy' => APOP_UI::get_cat_tag_list( 'tax', 'taxonomy' ) );
$tax_title_text = 'カスタム分類';
$tax_title_text = __('Custom taxonomy', APOP_DOMAIN);
?>
<?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>
<p class="apop-submit"><input type="submit" name="submit" class="button-primary" value="<?php _e( 'Save changes', APOP_DOMAIN ); ?>"/></p>
</form>
</div>