f6d64404a7
・カスタムフィールドの必須チェック漏れの修正 ・既存カスタムフィールド選択も可能なよう修正 ・ソートのリストに背景色を設定 ・並べ替え設定ページの更新ボタン位置を修正 ・カテゴリー、タグ、カスタム分類のソート対象選択のラジオボタン並び順を標準、検索と同一になるよう修正
33 lines
1.5 KiB
PHP
33 lines
1.5 KiB
PHP
<div class="order_setting_custom_field_box">
|
||
<?php if ( isset( $this->order_field ) && count( $this->order_field ) > 0 ): ?>
|
||
<dl class="apop-setting-list-dd">
|
||
<?php foreach ( $this->order_field as $type => $items ): ?>
|
||
<dt><?php echo esc_html( $this->labels[ $type ] ); ?></dt>
|
||
<dd>
|
||
<ul>
|
||
<?php foreach ( $items as $idx => $item ): ?>
|
||
<?php if ( ! empty( $item ) ): ?>
|
||
<?php
|
||
if ( $this->custom_field_type[ $type ][ $idx ] == '2' ) {
|
||
$custom_field_prefix = APOP_CUSTOM_FIELD_PREFIX;
|
||
} else {
|
||
$custom_field_prefix = '';
|
||
}
|
||
?>
|
||
<?php if ( ! empty( $custom_field_prefix ) ): ?>
|
||
<li><label><?php echo esc_html( $item ); ?></label>
|
||
<input type="text"
|
||
name="<?php echo esc_attr( $custom_field_prefix . $item ); ?>"
|
||
value="<?php echo esc_attr( $this->get_custom_field_data( $item, $custom_field_prefix ) ); ?>"/>
|
||
</li>
|
||
<?php else: ?>
|
||
[ <?php echo esc_html( $item ); ?> ]はカスタムフィールドから設定してください
|
||
<?php endif; ?>
|
||
<?php endif; ?>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
</dd>
|
||
<?php endforeach; ?>
|
||
</dl>
|
||
<?php endif; ?>
|
||
</div>
|