| @@ -1,15 +1,15 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -if ( ! function_exists( 'getwid_blocks_no_items_found' ) ) : | |
| 4 | - /* | |
| 5 | - * Displays message when there are no posts to display | |
| 6 | - */ | |
| 7 | - function getwid_blocks_no_items_found( $attributes, $content ) { | |
| 8 | - ?><p><?php echo esc_html__( 'Nothing found.', 'getwid' ); ?></p><?php | |
| 9 | - } | |
| 10 | -endif; | |
| 11 | - | |
| 12 | -add_action( 'getwid/blocks/post-slider/no-items', 'getwid_blocks_no_items_found', 10, 2 ); | |
| 13 | -add_action( 'getwid/blocks/custom-post-type/no-items', 'getwid_blocks_no_items_found', 10, 2 ); | |
| 14 | -add_action( 'getwid/blocks/post-carousel/no-items', 'getwid_blocks_no_items_found', 10, 2 ); | |
| 15 | -add_action( 'getwid/blocks/recent-posts/no-items', 'getwid_blocks_no_items_found', 10, 2 ); | |
| 1 | +<?php | |
| 2 | + | |
| 3 | +if ( ! function_exists( 'getwid_blocks_no_items_found' ) ) : | |
| 4 | + /* | |
| 5 | + * Displays message when there are no posts to display | |
| 6 | + */ | |
| 7 | + function getwid_blocks_no_items_found( $attributes, $content ) { | |
| 8 | + ?><p><?php echo esc_html__( 'Nothing found.', 'getwid' ); ?></p><?php | |
| 9 | + } | |
| 10 | +endif; | |
| 11 | + | |
| 12 | +add_action( 'getwid/blocks/post-slider/no-items', 'getwid_blocks_no_items_found', 10, 2 ); | |
| 13 | +add_action( 'getwid/blocks/custom-post-type/no-items', 'getwid_blocks_no_items_found', 10, 2 ); | |
| 14 | +add_action( 'getwid/blocks/post-carousel/no-items', 'getwid_blocks_no_items_found', 10, 2 ); | |
| 15 | +add_action( 'getwid/blocks/recent-posts/no-items', 'getwid_blocks_no_items_found', 10, 2 ); | |