PluginProbe
WebberZone Top 10 — Popular Posts / 4.5.1
WebberZone Top 10 — Popular Posts v4.5.1
4.5.1 4.5.0 4.4.3 4.4.2 4.4.1 4.4.0 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 trunk 1.0 1.0.1 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.5.3 1.6 1.6.1 All 117 releases
top-10 / includes / frontend / blocks / src / post-count / render.php

render.php in WebberZone Top 10 — Popular Posts 4.5.1, at includes/frontend/blocks/src/post-count/render.php

22 lines 499 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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