|
@@ 1001-1009 (lines=9) @@
|
| 998 |
|
|
| 999 |
|
$value = ''; |
| 1000 |
|
|
| 1001 |
|
if ( !empty( $pod ) ) { |
| 1002 |
|
pods_no_conflict_on( 'post' ); |
| 1003 |
|
|
| 1004 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1005 |
|
|
| 1006 |
|
pods_no_conflict_off( 'post' ); |
| 1007 |
|
} |
| 1008 |
|
elseif ( !empty( $id ) ) |
| 1009 |
|
$value = get_post_meta( $id, $field[ 'name' ], true ); |
| 1010 |
|
|
| 1011 |
|
if ( 'hidden' == $field[ 'type' ] ) { |
| 1012 |
|
$hidden_fields[] = array( |
|
@@ 1248-1256 (lines=9) @@
|
| 1245 |
|
|
| 1246 |
|
$value = ''; |
| 1247 |
|
|
| 1248 |
|
if ( !empty( $pod ) ) |
| 1249 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1250 |
|
elseif ( !empty( $id ) ) { |
| 1251 |
|
pods_no_conflict_on( 'post' ); |
| 1252 |
|
|
| 1253 |
|
$value = get_post_meta( $id, $field[ 'name' ], true ); |
| 1254 |
|
|
| 1255 |
|
pods_no_conflict_off( 'post' ); |
| 1256 |
|
} |
| 1257 |
|
|
| 1258 |
|
$form_fields[ 'pods_meta_' . $field[ 'name' ] ] = array( |
| 1259 |
|
'label' => $field[ 'label' ], |
|
@@ 1619-1627 (lines=9) @@
|
| 1616 |
|
|
| 1617 |
|
$value = ''; |
| 1618 |
|
|
| 1619 |
|
if ( !empty( $pod ) ) |
| 1620 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1621 |
|
elseif ( !empty( $id ) ) { |
| 1622 |
|
pods_no_conflict_on( 'user' ); |
| 1623 |
|
|
| 1624 |
|
$value = get_user_meta( $id, $field[ 'name' ], true ); |
| 1625 |
|
|
| 1626 |
|
pods_no_conflict_off( 'user' ); |
| 1627 |
|
} |
| 1628 |
|
|
| 1629 |
|
if ( 'hidden' == $field[ 'type' ] ) { |
| 1630 |
|
$hidden_fields[] = array( |
|
@@ 1799-1807 (lines=9) @@
|
| 1796 |
|
|
| 1797 |
|
$value = ''; |
| 1798 |
|
|
| 1799 |
|
if ( !empty( $pod ) ) |
| 1800 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1801 |
|
elseif ( !empty( $id ) ) { |
| 1802 |
|
pods_no_conflict_on( 'comment' ); |
| 1803 |
|
|
| 1804 |
|
$value = get_comment_meta( $id, $field[ 'name' ], true ); |
| 1805 |
|
|
| 1806 |
|
pods_no_conflict_off( 'comment' ); |
| 1807 |
|
} |
| 1808 |
|
?> |
| 1809 |
|
<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;' : '' ); ?>"> |
| 1810 |
|
<?php |
|
@@ 1864-1872 (lines=9) @@
|
| 1861 |
|
|
| 1862 |
|
$value = ''; |
| 1863 |
|
|
| 1864 |
|
if ( !empty( $pod ) ) |
| 1865 |
|
$value = $pod->field( array( 'name' => $field[ 'name' ], 'in_form' => true ) ); |
| 1866 |
|
elseif ( !empty( $id ) ) { |
| 1867 |
|
pods_no_conflict_on( 'comment' ); |
| 1868 |
|
|
| 1869 |
|
$value = get_comment_meta( $id, $field[ 'name' ], true ); |
| 1870 |
|
|
| 1871 |
|
pods_no_conflict_off( 'comment' ); |
| 1872 |
|
} |
| 1873 |
|
|
| 1874 |
|
ob_start(); |
| 1875 |
|
?> |