| @@ -7,8 +7,9 @@ | ||
| 7 | 7 | use ABlocks\Controls\Dimensions; |
| 8 | 8 | use ABlocks\Controls\Alignment; |
| 9 | 9 | use ABlocks\Controls\Range; |
| 10 | 10 | use ABlocks\Controls\Icon; |
| 11 | +use ABlocks\Controls\BoxShadow; | |
| 11 | 12 | use ABlocks\Helper; |
| 12 | 13 | |
| 13 | 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | 15 | exit; |
| @@ -18,8 +19,12 @@ | ||
| 18 | 19 | 'block_id' => array( |
| 19 | 20 | 'type' => 'string', |
| 20 | 21 | 'default' => '', |
| 21 | 22 | ), |
| 23 | + 'blockVersion' => array( | |
| 24 | + 'type' => 'number', | |
| 25 | + 'default' => '', | |
| 26 | + ), | |
| 22 | 27 | 'tocTableTitle' => array( |
| 23 | 28 | 'type' => 'string', |
| 24 | 29 | 'default' => 'Table Of Contents', |
| 25 | 30 | ), |
| @@ -56,9 +61,9 @@ | ||
| 56 | 61 | 'default' => true, |
| 57 | 62 | ), |
| 58 | 63 | 'markerView' => array( |
| 59 | 64 | 'type' => 'string', |
| 60 | - 'default' => 'ul', | |
| 65 | + 'default' => 'disc', | |
| 61 | 66 | ), |
| 62 | 67 | 'titleColor' => array( |
| 63 | 68 | 'type' => 'string', |
| 64 | 69 | 'default' => '#000000', |
| @@ -69,8 +74,12 @@ | ||
| 69 | 74 | ), |
| 70 | 75 | 'iconColor' => array( |
| 71 | 76 | 'type' => 'string', |
| 72 | 77 | ), |
| 78 | + 'activeColor' => array( | |
| 79 | + 'type' => 'string', | |
| 80 | + 'default' => '#2763f3', | |
| 81 | + ), | |
| 73 | 82 | 'headerBG' => array( |
| 74 | 83 | 'type' => 'string', |
| 75 | 84 | 'default' => '#ddd', |
| 76 | 85 | ), |
| @@ -85,9 +94,12 @@ | ||
| 85 | 94 | $attributes, |
| 86 | 95 | Typography::get_attribute( 'titleTypography', true ), |
| 87 | 96 | Typography::get_attribute( 'contentTypography', true ), |
| 88 | 97 | Border::get_attribute( 'headerBorder', true ), |
| 98 | + Border::get_attribute( 'iconBorder', true ), | |
| 99 | + BoxShadow::get_attribute( 'iconBoxShadow', true ), | |
| 89 | 100 | Dimensions::get_attribute( 'header_padding', true ), |
| 101 | + Dimensions::get_attribute( 'icon_padding', true ), | |
| 90 | 102 | Dimensions::get_attribute( 'list_padding', true ), |
| 91 | 103 | Icon::get_attribute( 'openIcon', [ |
| 92 | 104 | 'path' => 'M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z', |
| 93 | 105 | 'viewBox' => '0 0 448 512', |