| 1 |
<?php |
| 2 |
/** |
| 3 |
* Render the Blog Post block. |
| 4 |
* |
| 5 |
* The work (query, cache, markup, schema) lives in \GutSlider\Blocks\PostSlider, which |
| 6 |
* the "Load more" endpoint uses too. |
| 7 |
* |
| 8 |
* @param array $attributes The block attributes. |
| 9 |
*/ |
| 10 |
|
| 11 |
// Exit if accessed directly. |
| 12 |
if ( ! defined( 'ABSPATH' ) ) { |
| 13 |
exit; |
| 14 |
} |
| 15 |
|
| 16 |
echo \GutSlider\Blocks\PostSlider::render( $attributes ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 17 |
|