| 1 |
<?php |
| 2 |
/** |
| 3 |
* Server-side renderer for the Post Count block. |
| 4 |
* |
| 5 |
* @package WebberZone\Top_Ten |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! isset( $attributes ) || ! is_array( $attributes ) ) { |
| 9 |
$attributes = array(); |
| 10 |
} |
| 11 |
|
| 12 |
if ( ! isset( $content ) ) { |
| 13 |
$content = ''; |
| 14 |
} |
| 15 |
|
| 16 |
if ( ! isset( $block ) ) { |
| 17 |
$block = null; |
| 18 |
} |
| 19 |
|
| 20 |
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- The block renderer returns escaped markup. |
| 21 |
echo \WebberZone\Top_Ten\Frontend\Blocks\Blocks::render_block_post_count( $attributes, $content, $block ); |
| 22 |
|