| Server IP : 68.183.124.220 / Your IP : 216.73.216.141 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/wp-content/plugins/ninja-forms/includes/Templates/ |
Upload File : |
<div id="nf-sub-fields">
<table class="nf-sub-custom-fields-table">
<thead>
<tr>
<th><?php _e( 'Field', 'ninja-forms' ); ?></th>
<th><?php _e( 'Value', 'ninja-forms' ); ?></th>
</tr>
</thead>
<tbody>
<?php foreach( $fields as $field ): ?>
<?php if( in_array( $field->get_setting( 'type' ), $hidden_field_types ) ) continue; ?>
<?php if( ! isset( Ninja_Forms()->fields[ $field->get_setting( 'type' ) ] ) ) continue; ?>
<?php $field_class = Ninja_Forms()->fields[ $field->get_setting( 'type' ) ]; ?>
<?php if( ! $field_class ) continue; ?>
<tr>
<td><?php echo ( $field->get_setting( 'admin_label' ) ) ? $field->get_setting( 'admin_label' ) : $field->get_setting( 'label' ) ; ?></td>
<td><?php echo $field_class->admin_form_element( $field->get_id(), $sub->get_field_value( $field->get_id() ) ); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<!-- TODO: Move to Style Sheet -->
<style>
.nf-sub-custom-fields-table {
width: 100%;
border-spacing: 0;
}
.nf-sub-custom-fields-table thead {
background-color: #f1f1f1;
}
.nf-sub-custom-fields-table thead th {
text-align: left;
}
.nf-sub-custom-fields-table th,
.nf-sub-custom-fields-table td {
padding: 10px 0 10px 10px;
vertical-align: top;
}
.nf-sub-custom-fields-table textarea {
height: 150px;
}
</style>
</div>