PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.14.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.14.0
2.14.0 2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 81 releases
← All changes | includes/blocks/image-scroll/attributes.php +25 -2 2.9.1 → 2.14.0 View file →
@@ -1,6 +1,10 @@
1 1 <?php
2 2
3 +if ( ! defined( 'ABSPATH' ) ) {
4 + exit;
5 +}
6 +
3 7 use ABlocks\Controls\Alignment;
4 8 use ABlocks\Controls\Border;
5 9 use ABlocks\Controls\Dimensions;
6 10 use ABlocks\Controls\Typography;
@@ -6,8 +10,10 @@
6 10 use ABlocks\Controls\Typography;
7 11 use ABlocks\Controls\CssFilter;
8 12 use ABlocks\Controls\BoxShadow;
9 13 use ABlocks\Controls\Range;
14 +use ABlocks\Controls\LinkControl;
15 +use ABlocks\Controls\Link;
10 16
11 17 $attributes = [
12 18 'block_id' => [
13 19 'type' => 'string',
@@ -140,8 +146,9 @@
140 146 CssFilter::get_attribute( 'cssHoverFilter' ),
141 147 Alignment::get_attribute( 'alignment', true, [ 'value' => 'left' ] ),
142 148 Border::get_attribute( 'border', true ),
143 149 Dimensions::get_attribute( 'padding', true ),
150 + Link::get_attribute( 'link' ),
144 151 Range::get_attribute([
145 152 'attributeName' => 'opacity',
146 153 'defaultValue' => 1
147 154 ]),
@@ -158,13 +165,29 @@
158 165 'defaultValue' => 0.5,
159 166 ]),
160 167 Range::get_attribute( [
161 168 'attributeName' => 'iconFontSize',
162 - 'defaultValue' => 35,
169 + 'attributeObjectKey' => 'value',
170 + 'isResponsive' => true,
171 + 'defaultValue' => 36,
172 + 'defaultValueTablet' => 24,
173 + 'defaultValueMobile' => 16,
174 + 'hasUnit' => true,
175 + 'unitDefaultValue' => 'px',
163 176 ] ),
164 177 Range::get_attribute( [
165 178 'attributeName' => 'scrollHeight',
166 - 'defaultValue' => 300,
179 + 'attributeObjectKey' => 'value',
180 + 'isResponsive' => true,
181 + 'defaultValue' => 200,
182 + ] ),
183 + Range::get_attribute( [
184 + 'attributeName' => 'scrollWidth',
185 + 'attributeObjectKey' => 'value',
186 + 'isResponsive' => true,
187 + 'defaultValue' => 100,
188 + 'hasUnit' => true,
189 + 'unitDefaultValue' => '%',
167 190 ] ),
168 191 );
169 192
170 193 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );