| @@ 3434-3440 (lines=7) @@ | ||
| 3431 | $default_templates = apply_filters( 'pods_template_default_templates', $default_templates ); |
|
| 3432 | ||
| 3433 | // Only detail templates need $this->id |
|
| 3434 | if ( empty( $this->id ) ) { |
|
| 3435 | while ( $this->fetch() ) { |
|
| 3436 | pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) ); |
|
| 3437 | } |
|
| 3438 | } |
|
| 3439 | else |
|
| 3440 | pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) ); |
|
| 3441 | ||
| 3442 | $out = ob_get_clean(); |
|
| 3443 | ||
| @@ 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(); |
|