|
@@ 1107-1115 (lines=9) @@
|
| 1104 |
|
|
| 1105 |
|
$value = ''; |
| 1106 |
|
|
| 1107 |
|
if ( !empty( $pod ) ) { |
| 1108 |
|
pods_no_conflict_on( 'post' ); |
| 1109 |
|
|
| 1110 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1111 |
|
|
| 1112 |
|
pods_no_conflict_off( 'post' ); |
| 1113 |
|
} |
| 1114 |
|
elseif ( !empty( $id ) ) |
| 1115 |
|
$value = get_post_meta( $id, $field[ 'name' ], true ); |
| 1116 |
|
|
| 1117 |
|
if ( 'hidden' == $field[ 'type' ] ) { |
| 1118 |
|
$hidden_fields[] = array( |
|
@@ 1374-1382 (lines=9) @@
|
| 1371 |
|
|
| 1372 |
|
$value = ''; |
| 1373 |
|
|
| 1374 |
|
if ( !empty( $pod ) ) |
| 1375 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1376 |
|
elseif ( !empty( $id ) ) { |
| 1377 |
|
pods_no_conflict_on( 'post' ); |
| 1378 |
|
|
| 1379 |
|
$value = get_post_meta( $id, $field[ 'name' ], true ); |
| 1380 |
|
|
| 1381 |
|
pods_no_conflict_off( 'post' ); |
| 1382 |
|
} |
| 1383 |
|
|
| 1384 |
|
$form_fields[ 'pods_meta_' . $field[ 'name' ] ] = array( |
| 1385 |
|
'label' => $field[ 'label' ], |
|
@@ 1745-1753 (lines=9) @@
|
| 1742 |
|
|
| 1743 |
|
$value = ''; |
| 1744 |
|
|
| 1745 |
|
if ( !empty( $pod ) ) |
| 1746 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1747 |
|
elseif ( !empty( $id ) ) { |
| 1748 |
|
pods_no_conflict_on( 'user' ); |
| 1749 |
|
|
| 1750 |
|
$value = get_user_meta( $id, $field[ 'name' ], true ); |
| 1751 |
|
|
| 1752 |
|
pods_no_conflict_off( 'user' ); |
| 1753 |
|
} |
| 1754 |
|
|
| 1755 |
|
if ( 'hidden' == $field[ 'type' ] ) { |
| 1756 |
|
$hidden_fields[] = array( |
|
@@ 1922-1930 (lines=9) @@
|
| 1919 |
|
|
| 1920 |
|
$value = ''; |
| 1921 |
|
|
| 1922 |
|
if ( !empty( $pod ) ) |
| 1923 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1924 |
|
elseif ( !empty( $id ) ) { |
| 1925 |
|
pods_no_conflict_on( 'comment' ); |
| 1926 |
|
|
| 1927 |
|
$value = get_comment_meta( $id, $field[ 'name' ], true ); |
| 1928 |
|
|
| 1929 |
|
pods_no_conflict_off( 'comment' ); |
| 1930 |
|
} |
| 1931 |
|
?> |
| 1932 |
|
<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;' : '' ); ?>"> |
| 1933 |
|
<?php |
|
@@ 1987-1995 (lines=9) @@
|
| 1984 |
|
|
| 1985 |
|
$value = ''; |
| 1986 |
|
|
| 1987 |
|
if ( !empty( $pod ) ) |
| 1988 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1989 |
|
elseif ( !empty( $id ) ) { |
| 1990 |
|
pods_no_conflict_on( 'comment' ); |
| 1991 |
|
|
| 1992 |
|
$value = get_comment_meta( $id, $field[ 'name' ], true ); |
| 1993 |
|
|
| 1994 |
|
pods_no_conflict_off( 'comment' ); |
| 1995 |
|
} |
| 1996 |
|
|
| 1997 |
|
ob_start(); |
| 1998 |
|
?> |