|
@@ 2028-2044 (lines=17) @@
|
| 2025 |
|
if ( !empty( $pod ) ) |
| 2026 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 2027 |
|
|
| 2028 |
|
if ( 'hidden' == $field[ 'type' ] ) { |
| 2029 |
|
$hidden_fields[] = array( |
| 2030 |
|
'field' => $field, |
| 2031 |
|
'value' => $value |
| 2032 |
|
); |
| 2033 |
|
} |
| 2034 |
|
else { |
| 2035 |
|
?> |
| 2036 |
|
<tr class="form-field pods-field <?php echo esc_attr( 'pods-form-ui-row-type-' . $field[ 'type' ] . ' pods-form-ui-row-name-' . PodsForm::clean( $field[ 'name' ], true ) ); ?>"> |
| 2037 |
|
<th scope="row" valign="top"><?php echo PodsForm::label( 'pods_meta_' . $field[ 'name' ], $field[ 'label' ], $field[ 'help' ], $field ); ?></th> |
| 2038 |
|
<td> |
| 2039 |
|
<?php echo PodsForm::field( 'pods_meta_' . $field[ 'name' ], $value, $field[ 'type' ], $field, $pod, $id ); ?> |
| 2040 |
|
<?php echo PodsForm::comment( 'pods_meta_' . $field[ 'name' ], $field[ 'description' ], $field ); ?> |
| 2041 |
|
</td> |
| 2042 |
|
</tr> |
| 2043 |
|
<?php |
| 2044 |
|
} |
| 2045 |
|
} |
| 2046 |
|
?> |
| 2047 |
|
</table> |
|
@@ 1666-1682 (lines=17) @@
|
| 1663 |
|
pods_no_conflict_off( 'user' ); |
| 1664 |
|
} |
| 1665 |
|
|
| 1666 |
|
if ( 'hidden' == $field[ 'type' ] ) { |
| 1667 |
|
$hidden_fields[] = array( |
| 1668 |
|
'field' => $field, |
| 1669 |
|
'value' => $value |
| 1670 |
|
); |
| 1671 |
|
} |
| 1672 |
|
else { |
| 1673 |
|
?> |
| 1674 |
|
<tr class="form-field pods-field <?php echo esc_attr( 'pods-form-ui-row-type-' . $field[ 'type' ] . ' pods-form-ui-row-name-' . PodsForm::clean( $field[ 'name' ], true ) ); ?>"> |
| 1675 |
|
<th scope="row" valign="top"><?php echo PodsForm::label( 'pods_meta_' . $field[ 'name' ], $field[ 'label' ], $field[ 'help' ], $field ); ?></th> |
| 1676 |
|
<td> |
| 1677 |
|
<?php echo PodsForm::field( 'pods_meta_' . $field[ 'name' ], $value, $field[ 'type' ], $field, $pod, $id ); ?> |
| 1678 |
|
<?php echo PodsForm::comment( 'pods_meta_' . $field[ 'name' ], $field[ 'description' ], $field ); ?> |
| 1679 |
|
</td> |
| 1680 |
|
</tr> |
| 1681 |
|
<?php |
| 1682 |
|
} |
| 1683 |
|
} |
| 1684 |
|
?> |
| 1685 |
|
</tbody> |