| @@ 545-554 (lines=10) @@ | ||
| 542 | * |
|
| 543 | * @return string |
|
| 544 | */ |
|
| 545 | public function get_input_content() { |
|
| 546 | ob_start(); |
|
| 547 | ||
| 548 | require_once dirname( __FILE__ ) . '/pre-image-placeholder-content.html'; |
|
| 549 | ||
| 550 | $contents = trim( ob_get_contents() ); |
|
| 551 | ob_end_clean(); |
|
| 552 | ||
| 553 | return trim( $contents ); |
|
| 554 | } |
|
| 555 | ||
| 556 | /** |
|
| 557 | * Get output content. |
|
| @@ 561-570 (lines=10) @@ | ||
| 558 | * |
|
| 559 | * @return string |
|
| 560 | */ |
|
| 561 | public function get_output_content() { |
|
| 562 | ob_start(); |
|
| 563 | ||
| 564 | require_once dirname( __FILE__ ) . '/post-image-placeholder-content.html'; |
|
| 565 | ||
| 566 | $contents = trim( ob_get_contents() ); |
|
| 567 | ob_end_clean(); |
|
| 568 | ||
| 569 | return trim( $contents ); |
|
| 570 | } |
|
| 571 | ||
| 572 | /** |
|
| 573 | * Check is the srcset attribute it set. |
|