| @@ -21,8 +21,12 @@ | ||
| 21 | 21 | 'block_id' => [ |
| 22 | 22 | 'type' => 'string', |
| 23 | 23 | 'default' => '', |
| 24 | 24 | ], |
| 25 | + 'blockVersion' => array( | |
| 26 | + 'type' => 'number', | |
| 27 | + 'default' => '', | |
| 28 | + ), | |
| 25 | 29 | 'blockElements' => [ |
| 26 | 30 | 'type' => 'array', |
| 27 | 31 | 'default' => [ |
| 28 | 32 | [ |
| @@ -122,8 +126,12 @@ | ||
| 122 | 126 | 'iconPrimaryColorH' => [ |
| 123 | 127 | 'type' => 'string', |
| 124 | 128 | 'default' => '', |
| 125 | 129 | ], |
| 130 | + 'iconBackgroundColorH' => [ | |
| 131 | + 'type' => 'string', | |
| 132 | + 'default' => '', | |
| 133 | + ], | |
| 126 | 134 | 'iconTransition' => [ |
| 127 | 135 | 'type' => 'number', |
| 128 | 136 | 'default' => '', |
| 129 | 137 | ], |
| @@ -158,9 +166,9 @@ | ||
| 158 | 166 | 'default' => 'Your Info Box Sub Title', |
| 159 | 167 | ), |
| 160 | 168 | 'subHeadingTag' => array( |
| 161 | 169 | 'type' => 'string', |
| 162 | - 'default' => 'h4', | |
| 170 | + 'default' => 'h3', | |
| 163 | 171 | ), |
| 164 | 172 | 'subHeadingTextColor' => array( |
| 165 | 173 | 'type' => 'string', |
| 166 | 174 | 'default' => '#13191B', |
| @@ -187,23 +195,23 @@ | ||
| 187 | 195 | 'desDropCapsTextColor' => [ |
| 188 | 196 | 'type' => 'string', |
| 189 | 197 | 'default' => '#0f2aff', |
| 190 | 198 | ], |
| 199 | + 'desSize' => [ | |
| 200 | + 'type' => 'string', | |
| 201 | + 'default' => 'sm', | |
| 202 | + ], | |
| 191 | 203 | 'desGraphSize' => [ |
| 192 | 204 | 'type' => 'string', |
| 193 | 205 | 'default' => 'sm', |
| 194 | 206 | ], |
| 195 | - 'desSize' => [ | |
| 196 | - 'type' => 'string', | |
| 197 | - 'default' => 'sm', | |
| 198 | - ], | |
| 199 | 207 | 'desTextColor' => [ |
| 200 | 208 | 'type' => 'string', |
| 201 | - 'default' => '#74777C', | |
| 209 | + 'default' => '#595959', | |
| 202 | 210 | ], |
| 203 | 211 | 'desTextColorHover' => [ |
| 204 | 212 | 'type' => 'string', |
| 205 | - 'default' => 'gray', | |
| 213 | + 'default' => '', | |
| 206 | 214 | ], |
| 207 | 215 | 'desTransition' => [ |
| 208 | 216 | 'type' => 'number', |
| 209 | 217 | 'default' => '', |
| @@ -240,8 +248,12 @@ | ||
| 240 | 248 | 'showRatingNumber' => [ |
| 241 | 249 | 'type' => 'boolean', |
| 242 | 250 | 'default' => true, |
| 243 | 251 | ], |
| 252 | + 'showCount' => [ | |
| 253 | + 'type' => 'boolean', | |
| 254 | + 'default' => true, | |
| 255 | + ], | |
| 244 | 256 | 'ratingNumberColor' => [ |
| 245 | 257 | 'type' => 'string', |
| 246 | 258 | 'default' => '#000000', |
| 247 | 259 | ], |
| @@ -289,14 +301,18 @@ | ||
| 289 | 301 | 'btnShowIcon' => [ |
| 290 | 302 | 'type' => 'boolean', |
| 291 | 303 | 'default' => true |
| 292 | 304 | ], |
| 305 | + 'stack' => [ | |
| 306 | + 'type' => 'string', | |
| 307 | + 'default' => '', | |
| 308 | + ], | |
| 293 | 309 | ]; |
| 294 | 310 | |
| 295 | 311 | $attributes = array_merge( |
| 296 | 312 | $attributes, |
| 297 | 313 | Alignment::get_attribute( 'alignment', true ), |
| 298 | - ButtonGroup::get_attribute( 'stack', false, [ | |
| 314 | + ButtonGroup::get_attribute( 'iconPlacement', true, [ | |
| 299 | 315 | 'value' => '', |
| 300 | 316 | ] ), |
| 301 | 317 | // badge starts |
| 302 | 318 | Border::get_attribute( 'badgeBorder', true ), |
| @@ -313,8 +329,9 @@ | ||
| 313 | 329 | Icon::get_attribute('icon', [ |
| 314 | 330 | 'color' => '#000000', |
| 315 | 331 | 'hasNoSelectorOrSource' => true |
| 316 | 332 | ] ), |
| 333 | + Dimensions::get_attribute( 'iconMargin', true ), | |
| 317 | 334 | Link::get_attribute( 'iconLink' ), |
| 318 | 335 | Alignment::get_attribute( 'iconAlignment', true ), |
| 319 | 336 | // heading starts |
| 320 | 337 | Typography::get_attribute( 'headingTypography', true, [ |
| @@ -323,8 +340,9 @@ | ||
| 323 | 340 | 'fontSize' => '28', |
| 324 | 341 | ]), |
| 325 | 342 | TextShadow::get_attribute( 'headingTextShadow' ), |
| 326 | 343 | TextStroke::get_attribute( 'headingTextStroke', true ), |
| 344 | + Dimensions::get_attribute( 'headingMargin', true ), | |
| 327 | 345 | // sub heading starts |
| 328 | 346 | Typography::get_attribute( 'subHeadingTypography', true, [ |
| 329 | 347 | 'fontFamily' => 'Roboto', |
| 330 | 348 | 'weight' => '500', |
| @@ -331,8 +349,9 @@ | ||
| 331 | 349 | 'fontSize' => '20', |
| 332 | 350 | ]), |
| 333 | 351 | TextShadow::get_attribute( 'subHeadingTextShadow' ), |
| 334 | 352 | TextStroke::get_attribute( 'subHeadingTextStroke', true ), |
| 353 | + Dimensions::get_attribute( 'subHeadingMargin', true ), | |
| 335 | 354 | // paragraph starts |
| 336 | 355 | Typography::get_attribute( 'desTypography', true, [ |
| 337 | 356 | 'fontFamily' => 'Roboto', |
| 338 | 357 | 'weight' => '400', |
| @@ -339,8 +358,9 @@ | ||
| 339 | 358 | 'fontSize' => '16', |
| 340 | 359 | ]), |
| 341 | 360 | TextShadow::get_attribute( 'desTextShadow' ), |
| 342 | 361 | TextStroke::get_attribute( 'desTextStroke', true ), |
| 362 | + Dimensions::get_attribute( 'desMargin', true ), | |
| 343 | 363 | // button starts |
| 344 | 364 | Icon::get_attribute('btnIcon', [ |
| 345 | 365 | 'size' => 20, |
| 346 | 366 | 'color' => '#FAFAFA', |
| @@ -351,13 +371,15 @@ | ||
| 351 | 371 | ] ), |
| 352 | 372 | Link::get_attribute( 'btnLink' ), |
| 353 | 373 | Border::get_attribute( 'btnBorder', true ), |
| 354 | 374 | Dimensions::get_attribute( 'btnPadding', true ), |
| 375 | + Dimensions::get_attribute( 'btnMargin', true ), | |
| 355 | 376 | Typography::get_attribute( 'btnTypography', true ), |
| 356 | 377 | TextShadow::get_attribute( 'btnTextShadow' ), |
| 357 | 378 | Alignment::get_attribute( 'btnAlignment', true, [ 'value' => 'center' ] ), |
| 358 | 379 | // star rating starts |
| 359 | 380 | Typography::get_attribute( 'ratingNumberTypography', true ), |
| 381 | + Dimensions::get_attribute( 'ratingMargin', true ), | |
| 360 | 382 | Icon::get_attribute( 'starIcon', [ |
| 361 | 383 | 'path' => 'M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z', |
| 362 | 384 | 'viewBox' => '0 0 576 512', |
| 363 | 385 | 'className' => 'far fa-star', |