| @@ 546-552 (lines=7) @@ | ||
| 543 | ||
| 544 | $default_templates = apply_filters( 'pods_template_default_templates', $default_templates ); |
|
| 545 | ||
| 546 | if ( empty( $obj->id ) ) { |
|
| 547 | while ( $obj->fetch() ) { |
|
| 548 | pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) ); |
|
| 549 | } |
|
| 550 | } else { |
|
| 551 | pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) ); |
|
| 552 | } |
|
| 553 | }//end if |
|
| 554 | ||
| 555 | $out = ob_get_clean(); |
|
| @@ 3804-3810 (lines=7) @@ | ||
| 3801 | $default_templates = apply_filters( 'pods_template_default_templates', $default_templates ); |
|
| 3802 | ||
| 3803 | // Only detail templates need $this->id |
|
| 3804 | if ( empty( $this->id ) ) { |
|
| 3805 | while ( $this->fetch() ) { |
|
| 3806 | pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) ); |
|
| 3807 | } |
|
| 3808 | } else { |
|
| 3809 | pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) ); |
|
| 3810 | } |
|
| 3811 | ||
| 3812 | $out = ob_get_clean(); |
|
| 3813 | ||