|
@@ 1041-1060 (lines=20) @@
|
| 1038 |
|
$value = pods_image_url( $this->id(), $size, 0, true ); |
| 1039 |
|
|
| 1040 |
|
$object_field_found = true; |
| 1041 |
|
} elseif ( 0 === strpos( $params->name, 'image_attachment.' ) ) { |
| 1042 |
|
$size = 'thumbnail'; |
| 1043 |
|
|
| 1044 |
|
$image_id = 0; |
| 1045 |
|
|
| 1046 |
|
$field_names = explode( '.', $params->name ); |
| 1047 |
|
|
| 1048 |
|
if ( isset( $field_names[1] ) ) { |
| 1049 |
|
$image_id = $field_names[1]; |
| 1050 |
|
} |
| 1051 |
|
|
| 1052 |
|
if ( isset( $field_names[2] ) ) { |
| 1053 |
|
$size = $field_names[2]; |
| 1054 |
|
} |
| 1055 |
|
|
| 1056 |
|
if ( ! empty( $image_id ) ) { |
| 1057 |
|
$value = pods_image( $image_id, $size, 0, null, true ); |
| 1058 |
|
|
| 1059 |
|
if ( ! empty( $value ) ) { |
| 1060 |
|
$object_field_found = true; |
| 1061 |
|
} |
| 1062 |
|
} |
| 1063 |
|
} elseif ( 0 === strpos( $params->name, 'image_attachment_url.' ) ) { |
|
@@ 1106-1125 (lines=20) @@
|
| 1103 |
|
|
| 1104 |
|
$object_field_found = true; |
| 1105 |
|
} |
| 1106 |
|
} elseif ( 0 === strpos( $params->name, 'image_attachment.' ) ) { |
| 1107 |
|
$size = 'thumbnail'; |
| 1108 |
|
|
| 1109 |
|
$image_id = 0; |
| 1110 |
|
|
| 1111 |
|
$field_names = explode( '.', $params->name ); |
| 1112 |
|
|
| 1113 |
|
if ( isset( $field_names[1] ) ) { |
| 1114 |
|
$image_id = $field_names[1]; |
| 1115 |
|
} |
| 1116 |
|
|
| 1117 |
|
if ( isset( $field_names[2] ) ) { |
| 1118 |
|
$size = $field_names[2]; |
| 1119 |
|
} |
| 1120 |
|
|
| 1121 |
|
if ( ! empty( $image_id ) ) { |
| 1122 |
|
$value = pods_image( $image_id, $size, 0, null, true ); |
| 1123 |
|
|
| 1124 |
|
if ( ! empty( $value ) ) { |
| 1125 |
|
$object_field_found = true; |
| 1126 |
|
} |
| 1127 |
|
} |
| 1128 |
|
} elseif ( 0 === strpos( $params->name, 'image_attachment_url.' ) ) { |