9cc82988e2
・ソートのカスタムフィールドのメタボックスを追加 ・共通nameタグが更新されないバグ対策としてフォームタグを共通化 ・ファイル名をクラス名に合わせるよう変更
21 lines
883 B
PHP
21 lines
883 B
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 $this->labels[ $type ]; ?></dt>
|
|
<dd>
|
|
<ul>
|
|
<?php foreach ( $items as $item ): ?>
|
|
<?php if ( ! empty( $item ) ): ?>
|
|
<li><label><?php echo $item; ?></label>
|
|
<input type="text" name="<?php echo $item; ?>"
|
|
value="<?php echo $this->get_custom_field_data( $item ); ?>"/>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</dd>
|
|
<?php endforeach; ?>
|
|
</dl>
|
|
<?php endif; ?>
|
|
</div>
|