|
@@ 1055-1063 (lines=9) @@
|
| 1052 |
|
|
| 1053 |
|
$value = ''; |
| 1054 |
|
|
| 1055 |
|
if ( !empty( $pod ) ) { |
| 1056 |
|
pods_no_conflict_on( 'post' ); |
| 1057 |
|
|
| 1058 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1059 |
|
|
| 1060 |
|
pods_no_conflict_off( 'post' ); |
| 1061 |
|
} |
| 1062 |
|
elseif ( !empty( $id ) ) |
| 1063 |
|
$value = get_post_meta( $id, $field[ 'name' ], true ); |
| 1064 |
|
|
| 1065 |
|
if ( 'hidden' == $field[ 'type' ] ) { |
| 1066 |
|
$hidden_fields[] = array( |
|
@@ 1302-1310 (lines=9) @@
|
| 1299 |
|
|
| 1300 |
|
$value = ''; |
| 1301 |
|
|
| 1302 |
|
if ( !empty( $pod ) ) |
| 1303 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1304 |
|
elseif ( !empty( $id ) ) { |
| 1305 |
|
pods_no_conflict_on( 'post' ); |
| 1306 |
|
|
| 1307 |
|
$value = get_post_meta( $id, $field[ 'name' ], true ); |
| 1308 |
|
|
| 1309 |
|
pods_no_conflict_off( 'post' ); |
| 1310 |
|
} |
| 1311 |
|
|
| 1312 |
|
$form_fields[ 'pods_meta_' . $field[ 'name' ] ] = array( |
| 1313 |
|
'label' => $field[ 'label' ], |
|
@@ 1731-1739 (lines=9) @@
|
| 1728 |
|
|
| 1729 |
|
$value = ''; |
| 1730 |
|
|
| 1731 |
|
if ( !empty( $pod ) ) |
| 1732 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1733 |
|
elseif ( !empty( $id ) ) { |
| 1734 |
|
pods_no_conflict_on( 'user' ); |
| 1735 |
|
|
| 1736 |
|
$value = get_user_meta( $id, $field[ 'name' ], true ); |
| 1737 |
|
|
| 1738 |
|
pods_no_conflict_off( 'user' ); |
| 1739 |
|
} |
| 1740 |
|
|
| 1741 |
|
if ( 'hidden' == $field[ 'type' ] ) { |
| 1742 |
|
$hidden_fields[] = array( |
|
@@ 1911-1919 (lines=9) @@
|
| 1908 |
|
|
| 1909 |
|
$value = ''; |
| 1910 |
|
|
| 1911 |
|
if ( !empty( $pod ) ) |
| 1912 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1913 |
|
elseif ( !empty( $id ) ) { |
| 1914 |
|
pods_no_conflict_on( 'comment' ); |
| 1915 |
|
|
| 1916 |
|
$value = get_comment_meta( $id, $field[ 'name' ], true ); |
| 1917 |
|
|
| 1918 |
|
pods_no_conflict_off( 'comment' ); |
| 1919 |
|
} |
| 1920 |
|
?> |
| 1921 |
|
<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;' : '' ); ?>"> |
| 1922 |
|
<?php |
|
@@ 1976-1984 (lines=9) @@
|
| 1973 |
|
|
| 1974 |
|
$value = ''; |
| 1975 |
|
|
| 1976 |
|
if ( !empty( $pod ) ) |
| 1977 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1978 |
|
elseif ( !empty( $id ) ) { |
| 1979 |
|
pods_no_conflict_on( 'comment' ); |
| 1980 |
|
|
| 1981 |
|
$value = get_comment_meta( $id, $field[ 'name' ], true ); |
| 1982 |
|
|
| 1983 |
|
pods_no_conflict_off( 'comment' ); |
| 1984 |
|
} |
| 1985 |
|
|
| 1986 |
|
ob_start(); |
| 1987 |
|
?> |