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-grid-five / attributes.php

attributes.php in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.8, at blocks/includes/post-grid-five/attributes.php

56 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Post grid block attributes file for Smart Post Show Blocks.
4 *
5 * @package Smart_Post_Show_Pro
6 * @subpackage Smart_Post_Show_Pro/blocks/includes
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 $post_grid_five_attributes = array(
14 'paginationEnable' => array(
15 'type' => 'boolean',
16 'default' => true,
17 ),
18 'postGridLayout' => array(
19 'type' => 'string',
20 'default' => 'grid-five-layout-one',
21 ),
22 'gridFiveColumns' => array(
23 'type' => 'object',
24 'default' => array(
25 'device' => array(
26 'Desktop' => 3,
27 'Tablet' => 2,
28 'Mobile' => 1,
29 ),
30 ),
31 ),
32 'gridFiveHorizontalGap' => $this->ranger_attribute( 16 ),
33 'gridLargeContentPosition' => array(
34 'type' => 'string',
35 'default' => 'left',
36 ),
37 'gridFiveVerticalGap' => $this->ranger_attribute( 16, '', 16 ),
38
39 'titleEffect' => array(
40 'type' => 'string',
41 'default' => 'none',
42 ),
43
44
45 'titleUnderlineEffect' => array(
46 'type' => 'string',
47 'default' => 'leftToRight',
48 ),
49 'titleEffectColor' => array(
50 'type' => 'string',
51 'default' => '#fff',
52 ),
53 );
54
55 return array_merge( $post_grid_five_attributes, $shared_attributes );
56