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
+5 -1
View File
@@ -5,8 +5,10 @@ Plugin URI: https://develop.n-k-y.net/wordpress/wp_plugin/apop/
Author: NBK45 Author: NBK45
Author URI: https://develop.n-k-y.net Author URI: https://develop.n-k-y.net
Description: Archive Post Order Plus は「最新の投稿」「検索結果」「カテゴリー」「タグ」「カスタム分類」の投稿記事の表示順をドラッグで並べ替えて設定するプラグインです。 Description: Archive Post Order Plus は「最新の投稿」「検索結果」「カテゴリー」「タグ」「カスタム分類」の投稿記事の表示順をドラッグで並べ替えて設定するプラグインです。
Version: 1.1.6 Version: 1.1.7
License: GPLv2 License: GPLv2
Text Domain: ArchivePostOrderPlus
Domain Path: /languages
*/ */
/* Copyright 2021 Nobuhiro Kimura (email : big-me@n-k-y.net) /* Copyright 2021 Nobuhiro Kimura (email : big-me@n-k-y.net)
@@ -25,6 +27,8 @@ License: GPLv2
define( 'APOP_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); define( 'APOP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'APOP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); define( 'APOP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'APOP_CUSTOM_FIELD_PREFIX', '_apop_postorder_' ); define( 'APOP_CUSTOM_FIELD_PREFIX', '_apop_postorder_' );
define( 'APOP_DOMAIN', 'ArchivePostOrderPlus' );
load_plugin_textdomain( APOP_DOMAIN, false, basename( dirname( __FILE__ ) ) . '/languages' );
//メイン処理のクラスをインスタンス化 //メイン処理のクラスをインスタンス化
require_once __DIR__ . '/class/class.apop.order.php'; require_once __DIR__ . '/class/class.apop.order.php';
+6 -5
View File
@@ -30,7 +30,7 @@ if ( ! class_exists( 'APOP_POST' ) ) {
public function add_meta_fields() { public function add_meta_fields() {
$target_posts = $this->set_post_types(); $target_posts = $this->set_post_types();
foreach ( $target_posts as $target_post ) { foreach ( $target_posts as $target_post ) {
add_meta_box( 'apo_custom_fields', 'APO+カスタムフィールド', array( add_meta_box( 'apo_custom_fields', __( 'APO + custom field settings', APOP_DOMAIN ), array(
$this, $this,
'insert_meta_fields' 'insert_meta_fields'
), $target_post, 'normal' ); ), $target_post, 'normal' );
@@ -43,16 +43,17 @@ if ( ! class_exists( 'APOP_POST' ) ) {
$this->create_order_field_data( get_option( '_apop_normal_order_param' ), 'normal' ); $this->create_order_field_data( get_option( '_apop_normal_order_param' ), 'normal' );
} }
//検索ソート //検索ソート
if ( get_option( '_apop_tax_sort_type' ) == '1' ) { if ( get_option( '_apop_search_order' ) == '1' ) {
$this->create_order_field_data( get_option( '_apop_search_order_param' ), 'search' ); $this->create_order_field_data( get_option( '_apop_search_order_param' ), 'search' );
} }
//カテゴリー、タグ、カスタム分類 //カテゴリー、タグ、カスタム分類
$this->create_order_tax_field_data( get_option( '_apop_tax_order_param' ) ); $this->create_order_tax_field_data( get_option( '_apop_tax_order_param' ) );
$this->labels = array( $this->labels = array(
'normal' => '最新の投稿', 'normal' => __('Your latest posts', APOP_DOMAIN),
'search' => '検索', 'search' => __('Search', APOP_DOMAIN),
'tax' => 'カテゴリー、タグ、カスタム分類', 'tax' => __('Category, Tag, Custom Taxonomy', APOP_DOMAIN),
); );
require_once self::TEMPLATE_DIR . 'setting_post_custom_field.php'; require_once self::TEMPLATE_DIR . 'setting_post_custom_field.php';
+16 -16
View File
@@ -249,7 +249,7 @@ value="' . esc_html( $sort_num ) . '">
if ( count( $tax_data ) > 0 ) { if ( count( $tax_data ) > 0 ) {
$order_name = $order_name; $order_name = $order_name;
$order_tax = $key == 'post_tag' ? 'tag' : $key; $order_tax = $key == 'post_tag' ? 'tag' : $key;
echo '<tr><th scope="row">' . esc_html( $title ) . '設定</th><td>'; echo '<tr><th scope="row">' . esc_html( $title ) . '</th><td>';
include APOP_PLUGIN_PATH . 'template/setting_parts_taxonomy.php'; include APOP_PLUGIN_PATH . 'template/setting_parts_taxonomy.php';
echo '</td></tr>'; echo '</td></tr>';
} }
@@ -289,14 +289,14 @@ value="' . esc_html( $sort_num ) . '">
} }
$target_keys = self::set_search_normal_target_keys( $order_param ); $target_keys = self::set_search_normal_target_keys( $order_param );
$target_values = array( $target_values = array(
'date' => '登録日', 'date' => __( 'Published', APOP_DOMAIN ),
'title' => 'タイトル', 'title' => __( 'Post Title', APOP_DOMAIN ),
'ID' => 'ID', 'ID' => 'ID',
'modified' => '更新日', 'modified' => __( 'Modified', APOP_DOMAIN ),
'custom_field' => 'カスタムフィールド1', 'custom_field' => __( 'Custom filed 1', APOP_DOMAIN ),
'custom_field_2' => 'カスタムフィールド2', 'custom_field_2' => __( 'Custom filed 2', APOP_DOMAIN ),
'custom_field_3' => 'カスタムフィールド3', 'custom_field_3' => __( 'Custom filed 3', APOP_DOMAIN ),
'custom_field_4' => 'カスタムフィールド4', 'custom_field_4' => __( 'Custom filed 4', APOP_DOMAIN ),
); );
$list = array(); $list = array();
foreach ( $target_keys as $target_key ) { foreach ( $target_keys as $target_key ) {
@@ -318,17 +318,17 @@ value="' . esc_html( $sort_num ) . '">
<label> <label>
<input type="hidden" name="' . esc_attr( $name_use_key ) . '" <input type="hidden" name="' . esc_attr( $name_use_key ) . '"
value="0"' . esc_attr( self::set_search_normal_checked( $use, 0 ) ) . '> value="0"' . esc_attr( self::set_search_normal_checked( $use, 0 ) ) . '>
<span class="en_dis_label">有効</span><input class="' . esc_html( $target_key_check_class ) . '" <span class="en_dis_label">' . __( 'Enabled', APOP_DOMAIN ) . '</span><input class="' . esc_html( $target_key_check_class ) . '"
type="checkbox" name="' . esc_attr( $name_use_key ) . '" value="1"' . esc_attr( self::set_search_normal_checked( $use, 1 ) ) . '> type="checkbox" name="' . esc_attr( $name_use_key ) . '" value="1"' . esc_attr( self::set_search_normal_checked( $use, 1 ) ) . '>
</label> </label>
<label> <label>
<input class="order_param" type="radio" <input class="order_param" type="radio"
name="' . esc_attr( $name_sort_key ) . '" name="' . esc_attr( $name_sort_key ) . '"
value="1"' . esc_attr( self::set_search_normal_checked( $sort, 1 ) ) . '>昇順</label> value="1"' . esc_attr( self::set_search_normal_checked( $sort, 1 ) ) . '>' . __( 'Asc', APOP_DOMAIN ) . '</label>
<label> <label>
<input class="order_param" type="radio" <input class="order_param" type="radio"
name="' . esc_attr( $name_sort_key ) . '" name="' . esc_attr( $name_sort_key ) . '"
value="2"' . esc_attr( self::set_search_normal_checked( $sort, 2 ) ) . '>降順</label>'; value="2"' . esc_attr( self::set_search_normal_checked( $sort, 2 ) ) . '>' . __( 'Desc', APOP_DOMAIN ) . '</label>';
if ( strpos( $target_key, 'custom_field' ) !== false ) { if ( strpos( $target_key, 'custom_field' ) !== false ) {
self::create_custom_field_sort_type( $name_key, $target_key, $cnv_order_params ); self::create_custom_field_sort_type( $name_key, $target_key, $cnv_order_params );
@@ -355,28 +355,28 @@ value="' . esc_html( $sort_num ) . '">
<input type="radio" <input type="radio"
class="custom-field-type" class="custom-field-type"
name="' . esc_attr( $name_custom_field_type ) . '" name="' . esc_attr( $name_custom_field_type ) . '"
value="1"' . esc_attr( self::set_search_normal_checked( $custom_field_type, '1' ) ) . '>選択</label> value="1"' . esc_attr( self::set_search_normal_checked( $custom_field_type, '1' ) ) . '>' . __( 'Select', APOP_DOMAIN ) . '</label>
<label> <label>
<input type="radio" <input type="radio"
class="custom-field-type" class="custom-field-type"
name="' . esc_attr( $name_custom_field_type ) . '" name="' . esc_attr( $name_custom_field_type ) . '"
value="2"' . esc_attr( self::set_search_normal_checked( $custom_field_type, '2' ) ) . '>追加</label> value="2"' . esc_attr( self::set_search_normal_checked( $custom_field_type, '2' ) ) . '>' . __( 'Add', APOP_DOMAIN ) . '</label>
</div>'; </div>';
echo '<input type="text" class="select-custom-field-input custom_field_key_select" name="' . esc_attr( $name_meta_key ) . '" . value="' . esc_attr( $custom_field_val_1 ) . '" required> echo '<input type="text" class="select-custom-field-input custom_field_key_select" name="' . esc_attr( $name_meta_key ) . '" . value="' . esc_attr( $custom_field_val_1 ) . '" required>
<input type="text" class="custom_field_key" name="' . esc_attr( $name_meta_key ) . '" value="' . esc_attr( $custom_field_val_2 ) . '" required> <input type="text" class="custom_field_key" name="' . esc_attr( $name_meta_key ) . '" value="' . esc_attr( $custom_field_val_2 ) . '" required>
</div> </div>
<div class="custom-field-select-alert"></div> <div class="custom-field-select-alert"></div>
<div class="sort-custom-field-inner"> <div class="sort-custom-field-inner">
<div class="sort-custom-field-inner-label">値タイプ</div> <div class="sort-custom-field-inner-label">' . __( 'Type', APOP_DOMAIN ) . '</div>
<label class="sort-custom-field-text-label"> <label class="sort-custom-field-text-label">
<input type="radio" <input type="radio"
class="custom-field-meta-value" class="custom-field-meta-value"
name="' . esc_attr( $name_value_type ) . '" name="' . esc_attr( $name_value_type ) . '"
value="meta_value"' . esc_attr( self::set_search_normal_checked( $value_type, 'meta_value' ) ) . '>テキスト</label> value="meta_value"' . esc_attr( self::set_search_normal_checked( $value_type, 'meta_value' ) ) . '>' . __( 'Text', APOP_DOMAIN ) . '</label>
<label><input type="radio" <label><input type="radio"
class="custom-field-meta-value" class="custom-field-meta-value"
name="' . esc_attr( $name_value_type ) . '" name="' . esc_attr( $name_value_type ) . '"
value="meta_value_num"' . esc_attr( self::set_search_normal_checked( $value_type, 'meta_value_num' ) ) . '>数値</label> value="meta_value_num"' . esc_attr( self::set_search_normal_checked( $value_type, 'meta_value_num' ) ) . '>' . __( 'Number', APOP_DOMAIN ) . '</label>
</div> </div>
</div>'; </div>';
} }
+3 -2
View File
@@ -29,10 +29,11 @@ if ( ! class_exists( 'APOP' ) ) {
array( $this, 'display_setting_page' ), array( $this, 'display_setting_page' ),
'' ''
); );
//
add_submenu_page( add_submenu_page(
'apop_post_sort', // parent_slug 'apop_post_sort', // parent_slug
'Sort taxonomy', // page_title 'Sort taxonomy', // page_title
'表示件数・対象設定', // menu_title __( 'Display number / target setting', APOP_DOMAIN ), // menu_title
'administrator', // capability 'administrator', // capability
'apop_post_sort', // menu_slug 'apop_post_sort', // menu_slug
array( $this, 'display_setting_page' ) // function array( $this, 'display_setting_page' ) // function
@@ -40,7 +41,7 @@ if ( ! class_exists( 'APOP' ) ) {
add_submenu_page( add_submenu_page(
'apop_post_sort', // parent_slug 'apop_post_sort', // parent_slug
'Select taxonomy', // page_title 'Select taxonomy', // page_title
'並べ替え', // menu_title __( 'Sorting', APOP_DOMAIN ), // menu_title
'administrator', // capability 'administrator', // capability
'apop_post_sort_setting', // menu_slug 'apop_post_sort_setting', // menu_slug
array( $this, 'show_option_page' ) // function array( $this, 'show_option_page' ) // function
+4 -1
View File
@@ -187,10 +187,13 @@ dl.apop-setting-list-dd .sort-custom-field-input {
} }
.search-normal-sort .product-list-sort-type label:first-of-type { .search-normal-sort .product-list-sort-type label:first-of-type {
width: 5em;
margin-right: 3em; margin-right: 3em;
} }
.disable-box ul.disable-normal-list li.product-list.no-order .product-list-sort-type {
width: 40%;
}
.product-list.no-order { .product-list.no-order {
background: #ababab; background: #ababab;
} }
+8 -2
View File
@@ -222,14 +222,20 @@ jQuery(function ($) {
} }
function en_dis_list(obj, type) { function en_dis_list(obj, type) {
let select_msg = 'Select from existing custom fields';
let add_msg = 'Added custom field for APOP';
if ($('.post-setting-box').hasClass('apop-lang-ja')) {
select_msg = '既存のカスタムフィールドから選択';
add_msg = 'APOP専用カスタムフィールドを追加';
}
if (type == 1) { if (type == 1) {
obj.parents('.product-list-sort-type').find('.custom_field_key_select').prop('disabled', false).show(); obj.parents('.product-list-sort-type').find('.custom_field_key_select').prop('disabled', false).show();
obj.parents('.product-list-sort-type').find('.custom_field_key').prop('disabled', true).hide(); obj.parents('.product-list-sort-type').find('.custom_field_key').prop('disabled', true).hide();
obj.parents('.product-list-sort-type').find('.custom-field-select-alert').text('既存のカスタムフィールドから選択'); obj.parents('.product-list-sort-type').find('.custom-field-select-alert').text(select_msg);
} else if (type == 2) { } else if (type == 2) {
obj.parents('.product-list-sort-type').find('.custom_field_key').prop('disabled', false).show(); obj.parents('.product-list-sort-type').find('.custom_field_key').prop('disabled', false).show();
obj.parents('.product-list-sort-type').find('.custom_field_key_select').prop('disabled', true).hide(); obj.parents('.product-list-sort-type').find('.custom_field_key_select').prop('disabled', true).hide();
obj.parents('.product-list-sort-type').find('.custom-field-select-alert').text('APOP専用カスタムフィールドを追加'); obj.parents('.product-list-sort-type').find('.custom-field-select-alert').text(add_msg);
} }
} }
} }
Binary file not shown.
+220
View File
@@ -0,0 +1,220 @@
# Blank WordPress Pot
# Copyright 2014 ...
# This file is distributed under the GNU General Public License v3 or later.
msgid ""
msgstr ""
"Project-Id-Version: Archive Post Order Plus\n"
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
"POT-Creation-Date: 2021-07-11 17:11+0900\n"
"PO-Revision-Date: \n"
"Last-Translator: NBK45 <nbk.develop@gmail.com>\n"
"Language-Team: NBK45 <nbk.develop@gmail.com>\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;"
"esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
"_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
"X-Poedit-Basepath: ..\n"
"X-Generator: Poedit 3.0\n"
"X-Poedit-SearchPath-0: .\n"
#: class/class.apop.apop_post.php:33
msgid "APO + custom field settings"
msgstr "APO+カスタムフィールド"
#: class/class.apop.apop_post.php:54 template/order.php:8
msgid "Your latest posts"
msgstr "最新の投稿"
#: class/class.apop.apop_post.php:55 template/order.php:9 template/order.php:54
msgid "Search"
msgstr "検索"
#: class/class.apop.apop_post.php:56
msgid "Category, Tag, Custom Taxonomy"
msgstr "カテゴリー、タグ、カスタム分類"
#: class/class.apop.apop_ui.php:292
msgid "Published"
msgstr "投稿日"
#: class/class.apop.apop_ui.php:293
msgid "Post Title"
msgstr "タイトル"
#: class/class.apop.apop_ui.php:295
msgid "Modified"
msgstr "更新日"
#: class/class.apop.apop_ui.php:296
msgid "Custom filed 1"
msgstr "カスタムフィールド1"
#: class/class.apop.apop_ui.php:297
msgid "Custom filed 2"
msgstr "カスタムフィールド2"
#: class/class.apop.apop_ui.php:298
msgid "Custom filed 3"
msgstr "カスタムフィールド3"
#: class/class.apop.apop_ui.php:299
msgid "Custom filed 4"
msgstr "カスタムフィールド4"
#: class/class.apop.apop_ui.php:321 template/order.php:33 template/order.php:64
#: template/order_parts_taxonomy.php:46
msgid "Enabled"
msgstr "有効"
#: class/class.apop.apop_ui.php:327
msgid "Asc"
msgstr "昇順"
#: class/class.apop.apop_ui.php:331
msgid "Desc"
msgstr "降順"
#: class/class.apop.apop_ui.php:358
msgid "Select"
msgstr "選択"
#: class/class.apop.apop_ui.php:363
msgid "Add"
msgstr "追加"
#: class/class.apop.apop_ui.php:370
msgid "Type"
msgstr "値タイプ"
#: class/class.apop.apop_ui.php:375
msgid "Text"
msgstr "テキスト"
#: class/class.apop.apop_ui.php:379
msgid "Number"
msgstr "数値"
#: class/class.apop.order.php:36
msgid "Display number / target setting"
msgstr "表示件数・対象設定"
#: class/class.apop.order.php:44 template/order.php:5
msgid "Sorting"
msgstr "並べ替え"
#: template/order.php:4
msgid "apop-lang-en"
msgstr "apop-lang-ja"
#: template/order.php:10 template/order.php:86
msgid "Category"
msgstr "カテゴリー"
#: template/order.php:11 template/order.php:95
msgid "Tag"
msgstr "タグ"
#: template/order.php:12 template/order.php:104
msgid "Custom taxonomy"
msgstr "カスタム分類"
#: template/order.php:23
msgid "Your latest posts / Settings - Reading Settings"
msgstr "最新の投稿(設定-表示設定ーホームページの表示)"
#: template/order.php:30 template/order.php:61
#: template/order_parts_taxonomy.php:36 template/order_parts_taxonomy.php:44
msgid "Click \"Save Changes\" to register the sort."
msgstr "並べ替えを登録するには「変更を保存」をクリックしてください。"
#: template/order.php:39 template/order.php:70
#: template/order_parts_taxonomy.php:52
msgid "Disabled"
msgstr "無効"
#: template/order.php:110 template/setting.php:45
msgid "Save changes"
msgstr "変更を保存"
#: template/order_parts_menu.php:6 template/order_parts_taxonomy.php:22
msgid "Standard + custom field sort"
msgstr "標準+カスタムフィールドソート"
#: template/order_parts_menu.php:9 template/order_parts_taxonomy.php:29
msgid "Drag sort"
msgstr "ドラッグソート"
#: template/order_parts_taxonomy.php:59
msgid "No"
msgstr "並べ替えをカスタマイズする「"
#: template/order_parts_taxonomy.php:59
msgid "has been selected."
msgstr "」は選択されていません。"
#: template/setting.php:4
msgid "Settings"
msgstr "設定"
#: template/setting.php:7
msgid "Global settings"
msgstr "全体設定"
#: template/setting.php:10
msgid "Displayed per page"
msgstr "1ページ表示件数"
#: template/setting.php:16 template/setting_parts_taxonomy.php:31
msgid "Follow display settings"
msgstr "表示設定に従う"
#: template/setting.php:18 template/setting_parts_taxonomy.php:32
msgid "Posts"
msgstr "件"
#: template/setting.php:22 template/setting_parts_taxonomy.php:42
msgid "All posts"
msgstr "全件"
#: template/setting.php:28 template/setting_parts_taxonomy.php:47
msgid "Set the number posts"
msgstr "表示数設定"
#: template/setting.php:40
msgid "Categories setting"
msgstr "カテゴリー設定"
#: template/setting.php:41
msgid "Tags setting"
msgstr "タグ設定"
#: template/setting.php:42
msgid "Custom Taxonomies setting"
msgstr "カスタム分類設定"
#: template/setting_parts_taxonomy.php:3
msgid "Targets"
msgstr "対象"
#: template/setting_parts_taxonomy.php:37
msgid "Follow global settings"
msgstr "全体設定に従う"
#: template/setting_post_custom_field.php:18
msgid "* Change from custom field"
msgstr "※カスタムフィールドから変更してください"
#: template/success.php:2
msgid "Saved the setting"
msgstr "設定を保存しました"
#, fuzzy
#~| msgid "Search"
#~ msgid "Search!!!"
#~ msgstr "検索"
+73 -31
View File
@@ -4,13 +4,20 @@ Tags: latest posts order,categories post order,tags post order,custom taxonomy p
Requires at least: 4.9 Requires at least: 4.9
Tested up to: 5.7.2 Tested up to: 5.7.2
Requires PHP: 7.0 Requires PHP: 7.0
Stable tag: 1.1.6 Stable tag: 1.1.7
License: GPLv2 or later License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html License URI: https://www.gnu.org/licenses/gpl-2.0.html
A plugin that sets the display order of posts.
投稿の表示順を設定するプラグイン。 投稿の表示順を設定するプラグイン。
== Description == == Description ==
This plugin is a plugin that customizes the posting order below.
- Your latest posts / Settings - Reading Settings
- Search results
- Category
- Tag
- Custom Taxonomy
このプラグインは、下記の投稿表示順をカスタマイズするプラグインです。 このプラグインは、下記の投稿表示順をカスタマイズするプラグインです。
・[設定]-[表示設定]の「最新の投稿」 ・[設定]-[表示設定]の「最新の投稿」
@@ -19,11 +26,19 @@ License URI: https://www.gnu.org/licenses/gpl-2.0.html
・タグ ・タグ
・カスタム分類 ・カスタム分類
= 仕様 = = Specification =
Select either 1) standard + custom field sort or 2) drag sort for the display order.
[設定]-[表示設定]の「最新の投稿」、検索結果、カテゴリー、タグ、カスタム分類毎に投稿表示順を設定可能にします。 [設定]-[表示設定]の「最新の投稿」、検索結果、カテゴリー、タグ、カスタム分類毎に投稿表示順を設定可能にします。
表示順は 1)標準+カスタムフィールドソート、2)ドラッグソートのどちらを選択します。 表示順は 1)標準+カスタムフィールドソート、2)ドラッグソートのどちらを選択します。
1)標準+カスタムフィールドソート 1Standard + custom field sort (標準+カスタムフィールドソート)
In addition to the post update date, ID, title, and registration date, 4 custom fields (*) can be registered.
Select the post you want to enable and drag to set the order.
*) Custom fields can be selected from existing custom fields or added for this plugin.
*) When this plug-in is deleted, the added custom field will also be deleted.
投稿の更新日、ID、タイトル、登録日に加え、4つのカスタムフィールド(※)が登録可能です。 投稿の更新日、ID、タイトル、登録日に加え、4つのカスタムフィールド(※)が登録可能です。
有効にしたい項目を選択しドラッグで順番を設定します。 有効にしたい項目を選択しドラッグで順番を設定します。
@@ -31,20 +46,26 @@ License URI: https://www.gnu.org/licenses/gpl-2.0.html
(追加の場合は各投稿の専用入力フォームから登録します) (追加の場合は各投稿の専用入力フォームから登録します)
※)本プラグインの削除時は、追加したカスタムフィールドも削除されます ※)本プラグインの削除時は、追加したカスタムフィールドも削除されます
2)ドラッグソート 2Drag sort (ドラッグソート)
リスト表示されてた投稿一覧で、投稿をドラッグし表示順を設定します。 In the list of posts displayed in the list, drag the posts to set the display order.
リスト表示されてた投稿一覧で、投稿をドラッグし表示順を設定します。
== Installation == == Installation ==
= 自動インストール = = Automatic installation (自動インストール) =
1. プラグインの検索フィールドより「Archive Post Order Plus」と入力し、"プラグインの検索"をクリックします。 1. Enter "Archive Post Order Plus" in the plugin search field and click "Search for Plugins".
2. 当プラグインを見つけたら、"今すぐインストール"をクリックしてインストールし、プラグインを有効化してください。 2. If you find this plugin, click "Install Now" to install it and activate the plugin.
= 手動インストール = 1)プラグインの検索フィールドより「Archive Post Order Plus」と入力し、"プラグインの検索"をクリックします。
1. プラグインをダウンロードします 2)当プラグインを見つけたら、"今すぐインストール"をクリックしてインストールし、プラグインを有効化してください
2. プラグインフォルダ内にアップロードし、管理画面よりプラグインを有効化してください。
= Manual installation (手動インストール) =
1. Download this plugin.
2. Please upload it in the plugin folder and activate the plugin from the management screen.
1)プラグインをダウンロードします。
2)プラグインフォルダ内にアップロードし、管理画面よりプラグインを有効化してください。
== Frequently Asked Questions == == Frequently Asked Questions ==
@@ -61,36 +82,57 @@ screenshot-8.png
== Changelog == == Changelog ==
= 1.0.0 = = 1.1.7 =
初回リリース Supports translation.
Bug fixed: custom field selection by Search
= 1.0.1 = 翻訳対応
検索のソート対象にカスタム投稿を追加 検索のカスタムフィールド選択バグの修正
= 1.1.6 =
Fixed the part where the notice error occurred when the initial data was not set.
初期データ未設定時にnoticeエラーになっていた箇所を修正
= 1.1.5 =
Smartphone support for drag sorting of posted articles.
投稿記事のドラッグ並べ替えのスマートフォン対応
= 1.1.4 =
Explicitly include jquery-ui-autocomplete.
jquery-ui-autocompleteを明示的にインクルード
= 1.1.3 =
Change selected custom field to autocomplete.
選択カスタムフィールドをオートコンプリートに変更
= 1.1.2 =
Fixed selected custom fields to be read-only.
選択カスタムフィールドを読み取り専用表示するよう修正
= 1.1.1 =
Bug fixed: Fixed missing addition of selected attribute of custom field.
バグ修正:カスタムフィールドのselected属性の追加漏れ修正
= 1.1.0 = = 1.1.0 =
Fixed mandatory check omissions for custom fields.
Fixed existing custom field selection.
Set background color in sort list.
Fixed refresh button position on sort settings page.
Fixed the order of radio buttons for sorting by category, tag, and custom taxonomies to be the same as standard and search.
カスタムフィールドの必須チェック漏れの修正 カスタムフィールドの必須チェック漏れの修正
既存カスタムフィールド選択も可能なよう修正 既存カスタムフィールド選択も可能なよう修正
ソートのリストに背景色を設定 ソートのリストに背景色を設定
並べ替え設定ページの更新ボタン位置を修正 並べ替え設定ページの更新ボタン位置を修正
カテゴリー、タグ、カスタム分類のソート対象選択のラジオボタン並び順を標準、検索と同一になるよう修正 カテゴリー、タグ、カスタム分類のソート対象選択のラジオボタン並び順を標準、検索と同一になるよう修正
= 1.1.1 = = 1.0.1 =
バグ修正:カスタムフィールドのselected属性の追加漏れ修正 Add custom posts to search sort.
検索のソート対象にカスタム投稿を追加
= 1.1.2 = = 1.0.0 =
選択カスタムフィールドを読み取り専用表示するよう修正 First lease.
初回リリース
= 1.1.3 =
選択カスタムフィールドをオートコンプリートに変更
= 1.1.4 =
jquery-ui-autocompleteを明示的にインクルード
= 1.1.5 =
投稿記事のドラッグ並べ替えのスマートフォン対応
= 1.1.6 =
初期データ未設定時にnoticeエラーになっていた箇所を修正
== Upgrade Notice == == Upgrade Notice ==
No information No information
+19 -19
View File
@@ -1,15 +1,15 @@
<?php <?php
$submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' ); $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
?> ?>
<div class="post-setting-box"> <div class="post-setting-box <?php _e( 'apop-lang-en', APOP_DOMAIN ); ?>">
<h2>並べ替え</h2> <h2><?php _e( 'Sorting', APOP_DOMAIN ); ?></h2>
<nav class="post-order-nav"> <nav class="post-order-nav">
<ul> <ul>
<li class="en">最新の投稿</li> <li class="en"><?php _e( 'Your latest posts', APOP_DOMAIN ); ?></li>
<li>検索</li> <li><?php _e( 'Search', APOP_DOMAIN ); ?></li>
<li>カテゴリー</li> <li><?php _e( 'Category', APOP_DOMAIN ); ?></li>
<li>タグ</li> <li><?php _e( 'Tag', APOP_DOMAIN ); ?></li>
<li>カスタム分類</li> <li><?php _e( 'Custom taxonomy', APOP_DOMAIN ); ?></li>
</ul> </ul>
</nav> </nav>
<form action="" method="post"> <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="post-order-box">
<div class="list-orders-outer"> <div class="list-orders-outer">
<div class="list-orders-inner"> <div class="list-orders-inner">
<h3>最新の投稿(設定-表示設定ーホームページの表示)</h3> <h3><?php _e( 'Your latest posts / Settings - Reading Settings', APOP_DOMAIN ); ?></h3>
<?php <?php
$order_target_type = '_apop_normal_order'; $order_target_type = '_apop_normal_order';
$order_target = APOP_UI::get_order_type( $order_target_type ); $order_target = APOP_UI::get_order_type( $order_target_type );
?> ?>
<?php include APOP_PLUGIN_PATH . 'template/order_parts_menu.php'; ?> <?php include APOP_PLUGIN_PATH . 'template/order_parts_menu.php'; ?>
<hr> <hr>
<p>並べ替えを登録するには「変更を保存」をクリックしてください</p> <p><?php _e( 'Click "Save Changes" to register the sort.', APOP_DOMAIN ); ?></p>
<div class="sort_box"> <div class="sort_box">
<div class="enable-box"> <div class="enable-box">
<h4>有効</h4> <h4><?php _e( 'Enabled', APOP_DOMAIN ); ?></h4>
<ul class="post-order-list search-normal-sort"> <ul class="post-order-list search-normal-sort">
<?php APOP_UI::create_search_normal_list( 'normal' ); ?> <?php APOP_UI::create_search_normal_list( 'normal' ); ?>
</ul> </ul>
</div> </div>
<div class="disable-box"> <div class="disable-box">
<h4>無効</h4> <h4><?php _e( 'Disabled', APOP_DOMAIN ); ?></h4>
<ul class="disable-normal-list"></ul> <ul class="disable-normal-list"></ul>
</div> </div>
</div> </div>
@@ -51,23 +51,23 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
<div class="post-order-box"> <div class="post-order-box">
<div class="list-orders-outer"> <div class="list-orders-outer">
<div class="list-orders-inner"> <div class="list-orders-inner">
<h3>検索</h3> <h3><?php _e( 'Search', APOP_DOMAIN ); ?></h3>
<?php <?php
$order_target_type = '_apop_search_order'; $order_target_type = '_apop_search_order';
$order_target = APOP_UI::get_order_type( $order_target_type ); $order_target = APOP_UI::get_order_type( $order_target_type );
?> ?>
<?php include APOP_PLUGIN_PATH . 'template/order_parts_menu.php'; ?> <?php include APOP_PLUGIN_PATH . 'template/order_parts_menu.php'; ?>
<hr> <hr>
<p>並べ替えを登録するには「変更を保存」をクリックしてください</p> <p><?php _e( 'Click "Save Changes" to register the sort.', APOP_DOMAIN ); ?></p>
<div class="sort_box"> <div class="sort_box">
<div class="enable-box"> <div class="enable-box">
<h4>有効</h4> <h4><?php _e( 'Enabled', APOP_DOMAIN ); ?></h4>
<ul class="post-order-list search-normal-sort"> <ul class="post-order-list search-normal-sort">
<?php APOP_UI::create_search_normal_list( 'search' ); ?> <?php APOP_UI::create_search_normal_list( 'search' ); ?>
</ul> </ul>
</div> </div>
<div class="disable-box"> <div class="disable-box">
<h4>無効</h4> <h4><?php _e( 'Disabled', APOP_DOMAIN ); ?></h4>
<ul class="disable-normal-list"></ul> <ul class="disable-normal-list"></ul>
</div> </div>
</div> </div>
@@ -83,7 +83,7 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
<div class="tax_sort_box"> <div class="tax_sort_box">
<?php <?php
$tax_lists = array( 'category' => APOP_UI::get_cat_tag_list( 'cat', 'category' ) ); $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'; ?> <?php include APOP_PLUGIN_PATH . 'template/order_parts_taxonomy.php'; ?>
</div> </div>
@@ -92,7 +92,7 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
<div class="tax_sort_box"> <div class="tax_sort_box">
<?php <?php
$tax_lists = array( 'tag_id' => APOP_UI::get_cat_tag_list( 'tag', 'post_tag' ) ); $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'; ?> <?php include APOP_PLUGIN_PATH . 'template/order_parts_taxonomy.php'; ?>
</div> </div>
@@ -101,12 +101,12 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
<div class="tax_sort_box"> <div class="tax_sort_box">
<?php <?php
$tax_lists = array( 'taxonomy' => APOP_UI::get_cat_tag_list( 'tax', 'taxonomy' ) ); $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'; ?> <?php include APOP_PLUGIN_PATH . 'template/order_parts_taxonomy.php'; ?>
</div> </div>
</div> </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> </form>
</div> </div>
+2 -2
View File
@@ -3,9 +3,9 @@
data-order_target="<?php echo esc_attr( $order_target ); ?>"> data-order_target="<?php echo esc_attr( $order_target ); ?>">
<li><label> <li><label>
<input class="sort_menu" type="radio" name="<?php echo esc_attr( $order_target_type ); ?>" <input class="sort_menu" type="radio" name="<?php echo esc_attr( $order_target_type ); ?>"
value="1"<?php checked( $order_target, 1 ); ?>>標準+カスタムフィールドソート</label></li> value="1"<?php checked( $order_target, 1 ); ?>><?php _e('Standard + custom field sort', APOP_DOMAIN); ?></label></li>
<li><label> <li><label>
<input class="sort_menu" type="radio" name="<?php echo esc_attr( $order_target_type ); ?>" <input class="sort_menu" type="radio" name="<?php echo esc_attr( $order_target_type ); ?>"
value="2"<?php checked( $order_target, 2 ); ?>>ドラッグソート</label></li> value="2"<?php checked( $order_target, 2 ); ?>><?php _e('Drag sort', APOP_DOMAIN); ?></label></li>
</ul> </ul>
<?php endif; <?php endif;
+9 -7
View File
@@ -19,19 +19,21 @@
<label> <label>
<input class="sort_menu" type="radio" <input class="sort_menu" type="radio"
name="_apop_tax_sort_type[<?php echo esc_attr( $tax_data->term_id ); ?>]" name="_apop_tax_sort_type[<?php echo esc_attr( $tax_data->term_id ); ?>]"
value="2"<?php checked( $order_target, 2 ); ?>>標準+カスタムフィールドソート</label> value="2"<?php checked( $order_target, 2 ); ?>><?php _e( 'Standard + custom field sort', APOP_DOMAIN ); ?>
</label>
</li> </li>
<li> <li>
<label> <label>
<input class="sort_menu" type="radio" <input class="sort_menu" type="radio"
name="_apop_tax_sort_type[<?php echo esc_attr( $tax_data->term_id ); ?>]" name="_apop_tax_sort_type[<?php echo esc_attr( $tax_data->term_id ); ?>]"
value="1"<?php checked( $order_target, 1 ); ?>>ドラッグソート</label> value="1"<?php checked( $order_target, 1 ); ?>><?php _e( 'Drag sort', APOP_DOMAIN ); ?>
</label>
</li> </li>
</ul> </ul>
<div class="sort_box"> <div class="sort_box">
<hr> <hr>
<p>並べ替えを登録するには「変更を保存」をクリックしてください</p> <p><?php _e( 'Click "Save Changes" to register the sort.', APOP_DOMAIN ); ?></p>
<ul class="post-order-list drag-sort"> <ul class="post-order-list drag-sort">
<?php echo APOP_UI::create_order_list( $tax_data, $tax_key ); ?> <?php echo APOP_UI::create_order_list( $tax_data, $tax_key ); ?>
</ul> </ul>
@@ -39,22 +41,22 @@
<div class="sort_box"> <div class="sort_box">
<hr> <hr>
<p>並べ替えを登録するには「変更を保存」をクリックしてください</p> <p><?php _e( 'Click "Save Changes" to register the sort.', APOP_DOMAIN ); ?></p>
<div class="enable-box"> <div class="enable-box">
<h4>有効</h4> <h4><?php _e( 'Enabled', APOP_DOMAIN ); ?></h4>
<ul class="post-order-list search-normal-sort"> <ul class="post-order-list search-normal-sort">
<?php APOP_UI::create_search_normal_list( 'tax', $tax_data->term_id ); ?> <?php APOP_UI::create_search_normal_list( 'tax', $tax_data->term_id ); ?>
</ul> </ul>
</div> </div>
<div class="disable-box"> <div class="disable-box">
<h4>無効</h4> <h4><?php _e( 'Disabled', APOP_DOMAIN ); ?></h4>
<ul class="disable-normal-list"></ul> <ul class="disable-normal-list"></ul>
</div> </div>
</div> </div>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<?php else: ?> <?php else: ?>
<p class="no-registered-exp">並べ替えをカスタマイズする<?php echo esc_html( $tax_title_text ); ?>は選択されていません。</p> <p class="no-registered-exp"><?php _e( 'No', APOP_DOMAIN ); ?> <?php echo esc_html( $tax_title_text . ' ' ); ?><?php _e( 'has been selected.', APOP_DOMAIN ); ?></p>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
+14 -11
View File
@@ -1,29 +1,31 @@
<div class="post-setting-box"> <div class="post-setting-box">
<form action="" method="post"> <form action="" method="post">
<?php wp_nonce_field( 'sh_options' ); ?> <?php wp_nonce_field( 'sh_options' ); ?>
<h2>設定</h2> <h2><?php _e( 'Settings', APOP_DOMAIN ); ?></h2>
<table class="form-table apop-form-table"> <table class="form-table apop-form-table">
<tr> <tr>
<th scope="row">全体設定</th> <th scope="row"><?php _e( 'Global settings', APOP_DOMAIN ); ?></th>
<td> <td>
<dl class="apop-setting-list"> <dl class="apop-setting-list">
<dt>1ページ表示件数</dt> <dt><?php _e( 'Displayed per page', APOP_DOMAIN ); ?></dt>
<dd><?php $per_page_data = APOP_UI::create_cat_per_page( get_option( '_apop_per_page' ), 'search' ); ?> <dd><?php $per_page_data = APOP_UI::create_cat_per_page( get_option( '_apop_per_page' ), 'search' ); ?>
<ul> <ul>
<li> <li>
<label> <label>
<input class="per_page_search" type="radio" name="_apop_per_page[search]" <input class="per_page_search" type="radio" name="_apop_per_page[search]"
value="default"<?php checked( $per_page_data['_per_page'], 'default' ); ?>>表示設定に従う(<?php echo esc_html( get_option( 'posts_per_page' ) ); ?> value="default"<?php checked( $per_page_data['_per_page'], 'default' ); ?>><?php _e( 'Follow display settings', APOP_DOMAIN ); ?>
件)</label> <?php echo esc_html( get_option( 'posts_per_page' ) ); ?>
<?php _e( 'Posts', APOP_DOMAIN ); ?></label>
</li> </li>
<li><label> <li><label>
<input class="per_page_search" type="radio" name="_apop_per_page[search]" <input class="per_page_search" type="radio" name="_apop_per_page[search]"
value="-1"<?php checked( $per_page_data['_per_page'], '-1' ); ?>>全件</label> value="-1"<?php checked( $per_page_data['_per_page'], '-1' ); ?>><?php _e( 'All posts', APOP_DOMAIN ); ?>
</label>
</li> </li>
<li> <li>
<label><input class="per_page_search" type="radio" <label><input class="per_page_search" type="radio"
name="_apop_per_page[search]" name="_apop_per_page[search]"
value="" <?php echo esc_attr( $per_page_data['_checked'] ); ?>>表示数設定 value="" <?php echo esc_attr( $per_page_data['_checked'] ); ?>><?php _e( 'Set the number posts', APOP_DOMAIN ); ?>
<input class="per_page_search_input" type="text" <input class="per_page_search_input" type="text"
name="_apop_per_page[search]" name="_apop_per_page[search]"
value="<?php echo esc_attr( $per_page_data['_per_page_num'] ); ?>" value="<?php echo esc_attr( $per_page_data['_per_page_num'] ); ?>"
@@ -35,10 +37,11 @@
</dl> </dl>
</td> </td>
</tr> </tr>
<?php APOP_UI::disp_tax_setting( 'category', 'カテゴリー', '_apop_cat_order' ); ?> <?php APOP_UI::disp_tax_setting( 'category', __( 'Categories setting', APOP_DOMAIN ), '_apop_cat_order' ); ?>
<?php APOP_UI::disp_tax_setting( 'post_tag', 'タグ', '_apop_tag_order' ); ?> <?php APOP_UI::disp_tax_setting( 'post_tag', __( 'Tags setting', APOP_DOMAIN ), '_apop_tag_order' ); ?>
<?php APOP_UI::disp_tax_setting( 'taxonomy', 'カスタム分類', '_apop_tax_order' ); ?> <?php APOP_UI::disp_tax_setting( 'taxonomy', __( 'Custom Taxonomies setting', APOP_DOMAIN ), '_apop_tax_order' ); ?>
</table> </table>
<p class="submit"><input type="submit" name="Submit" class="button-primary" value="変更を保存"/> <p class="submit"><input type="submit" name="Submit" class="button-primary"
value="<?php _e( 'Save changes', APOP_DOMAIN ); ?>"/>
</form> </form>
</div> </div>
+6 -6
View File
@@ -1,6 +1,6 @@
<?php if ( isset( $tax_data, $order_name, $order_tax ) ): ?> <?php if ( isset( $tax_data, $order_name, $order_tax ) ): ?>
<dl class="apop-setting-list"> <dl class="apop-setting-list">
<dt>対象</dt> <dt><?php _e('Targets', APOP_DOMAIN); ?></dt>
<dd> <dd>
<ul class="order-setting-list"> <ul class="order-setting-list">
<?php foreach ( $tax_data as $tax_datum ): ?> <?php foreach ( $tax_data as $tax_datum ): ?>
@@ -28,23 +28,23 @@
<label> <label>
<input class="per_page_cat" type="radio" <input class="per_page_cat" type="radio"
name="_apop_per_page[<?php echo esc_attr( $order_tax ); ?>][<?php echo esc_attr( $tax_datum->term_id ); ?>]" name="_apop_per_page[<?php echo esc_attr( $order_tax ); ?>][<?php echo esc_attr( $tax_datum->term_id ); ?>]"
value="default"<?php checked( $per_page_data['_per_page'], 'default' ); ?>>表示設定に従う<?php echo esc_html( get_option( 'posts_per_page' ) ); ?> value="default"<?php checked( $per_page_data['_per_page'], 'default' ); ?>><?php _e( 'Follow display settings', APOP_DOMAIN ); ?><?php echo esc_html( get_option( 'posts_per_page' ) ); ?>
</label> <?php _e( 'Posts', APOP_DOMAIN ); ?></label>
</li> </li>
<li><label> <li><label>
<input class="per_page_cat" type="radio" <input class="per_page_cat" type="radio"
name="_apop_per_page[<?php echo esc_attr( $order_tax ); ?>][<?php echo esc_attr( $tax_datum->term_id ); ?>]" name="_apop_per_page[<?php echo esc_attr( $order_tax ); ?>][<?php echo esc_attr( $tax_datum->term_id ); ?>]"
value="all"<?php checked( $per_page_data['_per_page'], 'all' ); ?>>全体設定に従う</label> value="all"<?php checked( $per_page_data['_per_page'], 'all' ); ?>><?php _e( 'Follow global settings', APOP_DOMAIN ); ?></label>
</li> </li>
<li><label> <li><label>
<input class="per_page_cat" type="radio" <input class="per_page_cat" type="radio"
name="_apop_per_page[<?php echo esc_attr( $order_tax ); ?>][<?php echo esc_attr( $tax_datum->term_id ); ?>]" name="_apop_per_page[<?php echo esc_attr( $order_tax ); ?>][<?php echo esc_attr( $tax_datum->term_id ); ?>]"
value="-1"<?php checked( $per_page_data['_per_page'], '-1' ); ?>>全件</label> value="-1"<?php checked( $per_page_data['_per_page'], '-1' ); ?>><?php _e( 'All posts', APOP_DOMAIN ); ?></label>
</li> </li>
<li class="set_number_list"> <li class="set_number_list">
<label><input class="per_page_cat set_number" type="radio" <label><input class="per_page_cat set_number" type="radio"
name="_apop_per_page[<?php echo esc_attr( $order_tax ); ?>][<?php echo esc_attr( $tax_datum->term_id ); ?>]" name="_apop_per_page[<?php echo esc_attr( $order_tax ); ?>][<?php echo esc_attr( $tax_datum->term_id ); ?>]"
value=""<?php echo esc_attr( $per_page_data['_checked'] ); ?>>表示数設定 value=""<?php echo esc_attr( $per_page_data['_checked'] ); ?>><?php _e( 'Set the number posts', APOP_DOMAIN ); ?>
<input class="per_page_cat_input" type="text" <input class="per_page_cat_input" type="text"
name="_apop_per_page[<?php echo esc_attr( $order_tax ); ?>][<?php echo esc_attr( $tax_datum->term_id ); ?>]" name="_apop_per_page[<?php echo esc_attr( $order_tax ); ?>][<?php echo esc_attr( $tax_datum->term_id ); ?>]"
value="<?php echo esc_attr( $per_page_data['_per_page_num'] ); ?>" value="<?php echo esc_attr( $per_page_data['_per_page_num'] ); ?>"
+1 -1
View File
@@ -15,7 +15,7 @@
} else { } else {
$custom_field_prefix = ''; $custom_field_prefix = '';
$disabled = ' disabled'; $disabled = ' disabled';
$read_only_class = ' ※カスタムフィールドから変更してください'; $read_only_class = __( '* Change from custom field', APOP_DOMAIN );
} }
?> ?>
<li> <li>
+2 -1
View File
@@ -1 +1,2 @@
<div id="settings_updated" class="updated notice is-dismissible"><p><strong>設定を保存しました</strong></p></div> <div id="settings_updated" class="updated notice is-dismissible"><p>
<strong><?php _e( 'Saved the setting', APOP_DOMAIN ); ?></strong></p></div>