<?php
if ($custom_field_data['multiple']) {
    for ($i = 0; $i < $custom_field_data['quantity']; $i++) {
        ?>

        <div class="row">
            <label></label>
            <input type="text"
                    name="custom[<?=$custom_field_data['database_field'];?>][<?=$i;?>]"
                    value="<?=clean_page($values[$custom_field_data['database_field']][$i]);?>"
                    />
        </div>

        <?php
    }
} else {
    ?>
    <input type="text"
            name="custom[<?=$custom_field_data['database_field'];?>]"
            value="<?=clean_page($values[$custom_field_data['database_field']] ?? '');?>"
    />

    <?php
}
