|
@@ 1038-1046 (lines=9) @@
|
| 1035 |
|
|
| 1036 |
|
$value = ''; |
| 1037 |
|
|
| 1038 |
|
if ( !empty( $pod ) ) { |
| 1039 |
|
pods_no_conflict_on( 'post' ); |
| 1040 |
|
|
| 1041 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1042 |
|
|
| 1043 |
|
pods_no_conflict_off( 'post' ); |
| 1044 |
|
} |
| 1045 |
|
elseif ( !empty( $id ) ) |
| 1046 |
|
$value = get_post_meta( $id, $field[ 'name' ], true ); |
| 1047 |
|
|
| 1048 |
|
if ( 'hidden' == $field[ 'type' ] ) { |
| 1049 |
|
$hidden_fields[] = array( |
|
@@ 1285-1293 (lines=9) @@
|
| 1282 |
|
|
| 1283 |
|
$value = ''; |
| 1284 |
|
|
| 1285 |
|
if ( !empty( $pod ) ) |
| 1286 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1287 |
|
elseif ( !empty( $id ) ) { |
| 1288 |
|
pods_no_conflict_on( 'post' ); |
| 1289 |
|
|
| 1290 |
|
$value = get_post_meta( $id, $field[ 'name' ], true ); |
| 1291 |
|
|
| 1292 |
|
pods_no_conflict_off( 'post' ); |
| 1293 |
|
} |
| 1294 |
|
|
| 1295 |
|
$form_fields[ 'pods_meta_' . $field[ 'name' ] ] = array( |
| 1296 |
|
'label' => $field[ 'label' ], |
|
@@ 1656-1664 (lines=9) @@
|
| 1653 |
|
|
| 1654 |
|
$value = ''; |
| 1655 |
|
|
| 1656 |
|
if ( !empty( $pod ) ) |
| 1657 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1658 |
|
elseif ( !empty( $id ) ) { |
| 1659 |
|
pods_no_conflict_on( 'user' ); |
| 1660 |
|
|
| 1661 |
|
$value = get_user_meta( $id, $field[ 'name' ], true ); |
| 1662 |
|
|
| 1663 |
|
pods_no_conflict_off( 'user' ); |
| 1664 |
|
} |
| 1665 |
|
|
| 1666 |
|
if ( 'hidden' == $field[ 'type' ] ) { |
| 1667 |
|
$hidden_fields[] = array( |
|
@@ 1836-1844 (lines=9) @@
|
| 1833 |
|
|
| 1834 |
|
$value = ''; |
| 1835 |
|
|
| 1836 |
|
if ( !empty( $pod ) ) |
| 1837 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1838 |
|
elseif ( !empty( $id ) ) { |
| 1839 |
|
pods_no_conflict_on( 'comment' ); |
| 1840 |
|
|
| 1841 |
|
$value = get_comment_meta( $id, $field[ 'name' ], true ); |
| 1842 |
|
|
| 1843 |
|
pods_no_conflict_off( 'comment' ); |
| 1844 |
|
} |
| 1845 |
|
?> |
| 1846 |
|
<p class="comment-form-author comment-form-pods-meta-<?php echo esc_attr( $field[ 'name' ] ); ?> pods-field" style="<?php echo esc_attr( 'hidden' == $field[ 'type' ] ? 'display:none;' : '' ); ?>"> |
| 1847 |
|
<?php |
|
@@ 1901-1909 (lines=9) @@
|
| 1898 |
|
|
| 1899 |
|
$value = ''; |
| 1900 |
|
|
| 1901 |
|
if ( !empty( $pod ) ) |
| 1902 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1903 |
|
elseif ( !empty( $id ) ) { |
| 1904 |
|
pods_no_conflict_on( 'comment' ); |
| 1905 |
|
|
| 1906 |
|
$value = get_comment_meta( $id, $field[ 'name' ], true ); |
| 1907 |
|
|
| 1908 |
|
pods_no_conflict_off( 'comment' ); |
| 1909 |
|
} |
| 1910 |
|
|
| 1911 |
|
ob_start(); |
| 1912 |
|
?> |