| @@ -1,0 +1,114 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit; | |
| 5 | +} | |
| 6 | + | |
| 7 | +use ABlocks\Classes\BlockBaseAbstract; | |
| 8 | +use ABlocks\Classes\CssGenerator; | |
| 9 | +use ABlocks\Controls\Typography; | |
| 10 | +use ABlocks\Controls\Dimensions; | |
| 11 | +use ABlocks\Controls\Border; | |
| 12 | +use ABlocks\Controls\Icon; | |
| 13 | +use ABlocks\Controls\BoxShadow; | |
| 14 | +use ABlocks\Controls\Range; | |
| 15 | +use ABlocks\Controls\Alignment; | |
| 16 | +use ABlocks\Controls\TextStroke; | |
| 17 | +use ABlocks\Controls\Responsive; | |
| 18 | +use ABlocks\Controls\Color; | |
| 19 | +use ABlocks\Controls\Link; | |
| 20 | +use ABlocks\Controls\TextShadow; | |
| 21 | + | |
| 22 | + | |
| 23 | +$attributes = [ | |
| 24 | + 'block_id' => [ | |
| 25 | + 'type' => 'string', | |
| 26 | + 'default' => '', | |
| 27 | + ], | |
| 28 | + 'blockVersion' => array( | |
| 29 | + 'type' => 'number', | |
| 30 | + 'default' => '', | |
| 31 | + ), | |
| 32 | + 'text' => [ | |
| 33 | + 'type' => 'string', | |
| 34 | + 'default' => 'Add Your Curvy Text Here', | |
| 35 | + ], | |
| 36 | + 'pathType' => [ | |
| 37 | + 'type' => 'string', | |
| 38 | + 'default' => 'wave', | |
| 39 | + ], | |
| 40 | + 'isShowIcon' => [ | |
| 41 | + 'type' => 'boolean', | |
| 42 | + 'default' => true, | |
| 43 | + ], | |
| 44 | + 'strokeColor' => [ | |
| 45 | + 'type' => 'string', | |
| 46 | + 'default' => 'blue', | |
| 47 | + ], | |
| 48 | + 'textColor' => [ | |
| 49 | + 'type' => 'string', | |
| 50 | + 'default' => 'black', | |
| 51 | + 'copyStyle' => true, | |
| 52 | + ], | |
| 53 | + 'textColorH' => [ | |
| 54 | + 'type' => 'string', | |
| 55 | + 'default' => '', | |
| 56 | + 'copyStyle' => true, | |
| 57 | + ], | |
| 58 | + 'textStrokeShow' => [ | |
| 59 | + 'type' => 'boolean', | |
| 60 | + 'default' => false, | |
| 61 | + ], | |
| 62 | + 'textStroke' => [ | |
| 63 | + 'type' => 'number', | |
| 64 | + 'default' => 0, | |
| 65 | + ], | |
| 66 | + 'strokeTextColor' => [ | |
| 67 | + 'type' => 'string', | |
| 68 | + 'default' => 'black', | |
| 69 | + 'copyStyle' => true, | |
| 70 | + ], | |
| 71 | + 'offsetControl' => [ | |
| 72 | + 'type' => 'number', | |
| 73 | + 'default' => 0, | |
| 74 | + ], | |
| 75 | + 'transition' => [ | |
| 76 | + 'type' => 'number', | |
| 77 | + 'default' => 1, | |
| 78 | + 'copyStyle' => true, | |
| 79 | + ], | |
| 80 | + 'strokeWidth' => [ | |
| 81 | + 'type' => 'number', | |
| 82 | + 'default' => 1, | |
| 83 | + ], | |
| 84 | + 'rotate' => [ | |
| 85 | + 'type' => 'number', | |
| 86 | + 'default' => 0, | |
| 87 | + 'copyStyle' => true, | |
| 88 | + ], | |
| 89 | + 'iconSize' => [ | |
| 90 | + 'type' => 'number', | |
| 91 | + 'default' => 250, | |
| 92 | + ], | |
| 93 | + 'iconSvgPath' => [ | |
| 94 | + 'type' => 'string', | |
| 95 | + 'default' => '', | |
| 96 | + ], | |
| 97 | + 'iconSvgViewBox' => [ | |
| 98 | + 'type' => 'string', | |
| 99 | + 'default' => '', | |
| 100 | + ], | |
| 101 | + 'iconClass' => [ | |
| 102 | + 'type' => 'string', | |
| 103 | + 'default' => '' | |
| 104 | + ], | |
| 105 | +]; | |
| 106 | + | |
| 107 | +$attributes = array_merge( | |
| 108 | + $attributes, | |
| 109 | + Alignment::get_attribute( 'alignment', true, [ 'value' => 'left' ] ), | |
| 110 | + Typography::get_attribute( 'typography', true ), | |
| 111 | + TextShadow::get_attribute( 'textShadow' ), | |
| 112 | + Link::get_attribute( 'link' ), | |
| 113 | +); | |
| 114 | +return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); | |