|
@@ 995-1003 (lines=9) @@
|
| 992 |
|
|
| 993 |
|
$value = ''; |
| 994 |
|
|
| 995 |
|
if ( !empty( $pod ) ) { |
| 996 |
|
pods_no_conflict_on( 'post' ); |
| 997 |
|
|
| 998 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 999 |
|
|
| 1000 |
|
pods_no_conflict_off( 'post' ); |
| 1001 |
|
} |
| 1002 |
|
elseif ( !empty( $id ) ) |
| 1003 |
|
$value = get_post_meta( $id, $field[ 'name' ], true ); |
| 1004 |
|
|
| 1005 |
|
if ( 'hidden' == $field[ 'type' ] ) { |
| 1006 |
|
$hidden_fields[] = array( |
|
@@ 1242-1250 (lines=9) @@
|
| 1239 |
|
|
| 1240 |
|
$value = ''; |
| 1241 |
|
|
| 1242 |
|
if ( !empty( $pod ) ) |
| 1243 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1244 |
|
elseif ( !empty( $id ) ) { |
| 1245 |
|
pods_no_conflict_on( 'post' ); |
| 1246 |
|
|
| 1247 |
|
$value = get_post_meta( $id, $field[ 'name' ], true ); |
| 1248 |
|
|
| 1249 |
|
pods_no_conflict_off( 'post' ); |
| 1250 |
|
} |
| 1251 |
|
|
| 1252 |
|
$form_fields[ 'pods_meta_' . $field[ 'name' ] ] = array( |
| 1253 |
|
'label' => $field[ 'label' ], |
|
@@ 1613-1621 (lines=9) @@
|
| 1610 |
|
|
| 1611 |
|
$value = ''; |
| 1612 |
|
|
| 1613 |
|
if ( !empty( $pod ) ) |
| 1614 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1615 |
|
elseif ( !empty( $id ) ) { |
| 1616 |
|
pods_no_conflict_on( 'user' ); |
| 1617 |
|
|
| 1618 |
|
$value = get_user_meta( $id, $field[ 'name' ], true ); |
| 1619 |
|
|
| 1620 |
|
pods_no_conflict_off( 'user' ); |
| 1621 |
|
} |
| 1622 |
|
|
| 1623 |
|
if ( 'hidden' == $field[ 'type' ] ) { |
| 1624 |
|
$hidden_fields[] = array( |
|
@@ 1793-1801 (lines=9) @@
|
| 1790 |
|
|
| 1791 |
|
$value = ''; |
| 1792 |
|
|
| 1793 |
|
if ( !empty( $pod ) ) |
| 1794 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1795 |
|
elseif ( !empty( $id ) ) { |
| 1796 |
|
pods_no_conflict_on( 'comment' ); |
| 1797 |
|
|
| 1798 |
|
$value = get_comment_meta( $id, $field[ 'name' ], true ); |
| 1799 |
|
|
| 1800 |
|
pods_no_conflict_off( 'comment' ); |
| 1801 |
|
} |
| 1802 |
|
?> |
| 1803 |
|
<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;' : '' ); ?>"> |
| 1804 |
|
<?php |
|
@@ 1858-1866 (lines=9) @@
|
| 1855 |
|
|
| 1856 |
|
$value = ''; |
| 1857 |
|
|
| 1858 |
|
if ( !empty( $pod ) ) |
| 1859 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1860 |
|
elseif ( !empty( $id ) ) { |
| 1861 |
|
pods_no_conflict_on( 'comment' ); |
| 1862 |
|
|
| 1863 |
|
$value = get_comment_meta( $id, $field[ 'name' ], true ); |
| 1864 |
|
|
| 1865 |
|
pods_no_conflict_off( 'comment' ); |
| 1866 |
|
} |
| 1867 |
|
|
| 1868 |
|
ob_start(); |
| 1869 |
|
?> |