PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.8
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.8
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / blocks / includes / post-slider-two / Post_Slider_Two.php

Post_Slider_Two.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.8, at blocks/includes/post-slider-two/Post_Slider_Two.php

51 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Post slider block class for Smart Post Show Blocks.
4 *
5 * @package Smart_Post_Show_Pro
6 * @subpackage Smart_Post_Show_Pro/blocks/includes
7 */
8
9 namespace SmartPostShow\Blocks;
10
11 use SmartPostShow\Blocks\Helper;
12
13 use SmartPostShow\Blocks\Block_Base;
14
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit;
17 }
18 /**
19 * Post Slider Two Block Class.
20 */
21 class Post_Slider_Two extends Block_Base {
22 /**
23 * Set_block_properties
24 *
25 * @return void
26 */
27 protected function set_block_properties() {
28 $this->block_name = 'post-slider-two';
29 $this->category = 'sp-smart-post-show-pro-blocks';
30 $this->scripts = array( 'sp_smart_post_blocks_script_js', 'pcp_swiper' );
31 $this->styles = array( 'sp_smart_post_blocks_css', 'sp_smart_post_blocks_social_icons_style', 'pcp_swiper', 'sp_smart_post_blocks_google_fonts' );
32 $this->editor_scripts = array( 'sp_smart_post_blocks_index_js' );
33 $this->editor_styles = array( 'sp_smart_post_blocks_editor_style' );
34 $this->keywords = array( 'Smart post', 'Slider', 'Live Filter', 'Pagination', 'Ajax Live Filter' );
35 }
36 /**
37 * Render block
38 *
39 * @param array $attributes attributes.
40 * @param mixed $content content.
41 * @param array $blocks blocks.
42 * @return string
43 */
44 public function render_block( $attributes, $content = '', $blocks = array() ) {
45 if ( Helper::is_editor_page() ) {
46 return $content;
47 }
48 return '';
49 }
50 }
51