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 +11 -0 2.8.1 → 2.14.0 View file →
@@ -10,8 +10,10 @@
10 10 use ABlocks\Controls\Typography;
11 11 use ABlocks\Controls\CssFilter;
12 12 use ABlocks\Controls\BoxShadow;
13 13 use ABlocks\Controls\Range;
14 +use ABlocks\Controls\LinkControl;
15 +use ABlocks\Controls\Link;
14 16
15 17 $attributes = [
16 18 'block_id' => [
17 19 'type' => 'string',
@@ -144,8 +146,9 @@
144 146 CssFilter::get_attribute( 'cssHoverFilter' ),
145 147 Alignment::get_attribute( 'alignment', true, [ 'value' => 'left' ] ),
146 148 Border::get_attribute( 'border', true ),
147 149 Dimensions::get_attribute( 'padding', true ),
150 + Link::get_attribute( 'link' ),
148 151 Range::get_attribute([
149 152 'attributeName' => 'opacity',
150 153 'defaultValue' => 1
151 154 ]),
@@ -175,8 +178,16 @@
175 178 'attributeName' => 'scrollHeight',
176 179 'attributeObjectKey' => 'value',
177 180 'isResponsive' => true,
178 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' => '%',
179 190 ] ),
180 191 );
181 192
182 193 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );