| @@ -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() ); |