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-list-three / 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-list-three/attributes.php

120 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Post list block attributes file class 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_list_three_attributes = array(
14 'largeItemPadding' => $this->spacing_attribute( 30, 30, 30, 30 ),
15 'paginationEnable' => array(
16 'type' => 'boolean',
17 'default' => true,
18 ),
19 'readMoreTextColor' => array(
20 'type' => 'object',
21 'default' => array(
22 'color' => '',
23 'hover' => 'var(--smart-post-secondary)',
24 ),
25 ),
26 'postListLayout' => array(
27 'type' => 'string',
28 'default' => 'sp-smart-post-list-three-layout-one',
29 ),
30 'verticalGap' => $this->ranger_attribute( 24 ),
31 'dividerBorderStyle' => array(
32 'type' => 'string',
33 'default' => 'solid',
34 ),
35 'showHideDivider' => array(
36 'type' => 'boolean',
37 'default' => false,
38 ),
39 'dividerAlignment' => array(
40 'type' => 'string',
41 'default' => 'center',
42 ),
43 'dividerBg' => array(
44 'type' => 'object',
45 'default' => array(
46 'color' => array(
47 'style' => 'bgColor',
48 'transparent' => '',
49 'solidColor' => '#E0E0E0',
50 'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)',
51 ),
52 ),
53 ),
54 'dividerWidth' => array(
55 'type' => 'object',
56 'default' => array(
57 'device' => array(
58 'Desktop' => 100,
59 'Tablet' => '',
60 'Mobile' => '',
61 ),
62 'unit' => array(
63 'Desktop' => '%',
64 'Tablet' => 'px',
65 'Mobile' => 'px',
66 ),
67 ),
68 ),
69 'dividerHeight' => $this->ranger_attribute( 1 ),
70 'spaceBetweenListItems' => $this->ranger_attribute( 5 ),
71 'contentAreaPadding' => $this->spacing_attribute(),
72 'horizontalGap' => array(
73 'type' => 'object',
74 'default' => array(
75 'device' => array(
76 'Desktop' => 16,
77 'Tablet' => '',
78 'Mobile' => '',
79 ),
80 'unit' => array(
81 'Desktop' => 'px',
82 'Tablet' => 'px',
83 'Mobile' => 'px',
84 ),
85 ),
86 ),
87 'largeItemAlignment' => array(
88 'type' => 'string',
89 'default' => 'left',
90 ),
91 );
92
93 $post_list_three_attributes_updated_attr = $this->change_attribute_data(
94 $shared_attributes,
95 array(
96 array(
97 'attrName' => 'excerptShow',
98 'value' => true,
99 ),
100 array(
101 'attrName' => 'showReadMoreButton',
102 'value' => true,
103 ),
104 array(
105 'attrName' => 'imageSpace',
106 'value' => '',
107 ),
108 )
109 );
110 return array_merge(
111 $post_list_three_attributes_updated_attr,
112 $post_list_three_attributes,
113 array(
114 'paginationType' => array(
115 'type' => 'string',
116 'default' => 'none',
117 ),
118 )
119 );
120