| @@ -1,0 +1,103 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +use ABlocks\Controls\Typography; | |
| 4 | +use ABlocks\Controls\Background; | |
| 5 | +use ABlocks\Controls\Border; | |
| 6 | +use ABlocks\Controls\Dimensions; | |
| 7 | +use ABlocks\Controls\Alignment; | |
| 8 | + | |
| 9 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 10 | + exit; | |
| 11 | +} | |
| 12 | + | |
| 13 | +$attributes = [ | |
| 14 | + 'block_id' => array( | |
| 15 | + 'type' => 'string', | |
| 16 | + 'default' => '', | |
| 17 | + ), | |
| 18 | + 'blockVersion' => [ | |
| 19 | + 'type' => 'number', | |
| 20 | + 'default' => 2, | |
| 21 | + ], | |
| 22 | + 'homeBreadcrumbs' => [ | |
| 23 | + 'type' => 'string', | |
| 24 | + 'default' => '', | |
| 25 | + ], | |
| 26 | + 'enableFaqSchema' => [ | |
| 27 | + 'type' => 'boolean', | |
| 28 | + 'default' => false, | |
| 29 | + ], | |
| 30 | + 'SeparatorChange' => [ | |
| 31 | + 'type' => 'string', | |
| 32 | + 'default' => '', | |
| 33 | + ], | |
| 34 | + 'breadcrumbTitlecolor' => [ | |
| 35 | + 'type' => 'string', | |
| 36 | + 'default' => '', | |
| 37 | + ], | |
| 38 | + 'breadcrumbHoverLinkcolor' => [ | |
| 39 | + 'type' => 'string', | |
| 40 | + 'default' => '', | |
| 41 | + ], | |
| 42 | + 'beforeSeparator' => [ | |
| 43 | + 'type' => 'boolean', | |
| 44 | + 'default' => false, | |
| 45 | + ], | |
| 46 | + 'breadcrumbItemBackground' => [ | |
| 47 | + 'type' => 'string', | |
| 48 | + 'default' => '', | |
| 49 | + ], | |
| 50 | + 'breadcrumbLinkcolor' => [ | |
| 51 | + 'type' => 'string', | |
| 52 | + 'default' => '', | |
| 53 | + ], | |
| 54 | + 'breadcrumbseparatorcolor' => [ | |
| 55 | + 'type' => 'string', | |
| 56 | + 'default' => '', | |
| 57 | + ], | |
| 58 | + 'beforeBreadcrumbImage' => [ | |
| 59 | + 'type' => 'string', | |
| 60 | + 'default' => '', | |
| 61 | + ], | |
| 62 | + 'beforeBreadcrumbText' => [ | |
| 63 | + 'type' => 'string', | |
| 64 | + 'default' => '', | |
| 65 | + ], | |
| 66 | + 'beforeBreadcrumbTextImage' => [ | |
| 67 | + 'type' => 'string', | |
| 68 | + 'default' => '', | |
| 69 | + ], | |
| 70 | + 'beforeBreadcrumbBackgroundcolor' => [ | |
| 71 | + 'type' => 'string', | |
| 72 | + 'default' => '', | |
| 73 | + ], | |
| 74 | + 'beforeTextImage' => [ | |
| 75 | + 'type' => 'boolean', | |
| 76 | + 'default' => false, | |
| 77 | + ], | |
| 78 | + 'positionBreadcrumb' => [ | |
| 79 | + 'type' => 'object', | |
| 80 | + 'default' => '', | |
| 81 | + ], | |
| 82 | + 'breadcrumbSpaceBetween' => [ | |
| 83 | + 'type' => 'number', | |
| 84 | + 'default' => 10, | |
| 85 | + ], | |
| 86 | + 'breadcrumbseparsize' => [ | |
| 87 | + 'type' => 'number', | |
| 88 | + 'default' => 20, | |
| 89 | + ], | |
| 90 | + | |
| 91 | +]; | |
| 92 | + | |
| 93 | +$attributes = array_merge( | |
| 94 | + $attributes, | |
| 95 | + Typography::get_attribute( 'breadcrumbTitleTypography', true ), | |
| 96 | + Dimensions::get_attribute( 'beforeBreadcrumbBorderRadius', true ), | |
| 97 | + Dimensions::get_attribute( 'BreadcrumbBorderRadius', true ), | |
| 98 | + Dimensions::get_attribute( 'beforeBreadcrumbPaddingcolor', true ), | |
| 99 | + Dimensions::get_attribute( 'breadcrumbItemPadding', true ), | |
| 100 | +); | |
| 101 | + | |
| 102 | +return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); | |
| 103 | + | |