00d6775f77
・$_POSTのサニタイズ ・echoのエスケープ ・readmeの修正
21 lines
930 B
PHP
21 lines
930 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 esc_html($this->labels[ $type ]); ?></dt>
|
|
<dd>
|
|
<ul>
|
|
<?php foreach ( $items as $item ): ?>
|
|
<?php if ( ! empty( $item ) ): ?>
|
|
<li><label><?php echo esc_html($item); ?></label>
|
|
<input type="text" name="<?php echo APOP_CUSTOM_FIELD_PREFIX . $item; ?>"
|
|
value="<?php echo $this->get_custom_field_data( $item ); ?>"/>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</dd>
|
|
<?php endforeach; ?>
|
|
</dl>
|
|
<?php endif; ?>
|
|
</div>
|