Files
POST_ORDER_BY_ARCHIVE/template/setting_post_custom_field.php
nobu b8dcf1c44c ARCHIVE POST ORDER PLUS
翻訳対応
検索のカスタムフィールド選択バグ修正
2021-07-11 17:41:03 +09:00

37 lines
1.7 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;
$disabled = '';
$read_only_class = '';
} else {
$custom_field_prefix = '';
$disabled = ' disabled';
$read_only_class = __( '* Change from custom field', APOP_DOMAIN );
}
?>
<li>
<label><?php echo esc_html( $item ); ?></label>
<div class="sort-custom-field-input">
<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 ) ); ?>"<?php echo esc_attr( $disabled ); ?>/>
<?php echo esc_html( $read_only_class ); ?>
</div>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</dd>
<?php endforeach; ?>
</dl>
<?php endif; ?>
</div>