| @@ -1,0 +1,91 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +use ABlocks\Controls\Typography; | |
| 4 | +use ABlocks\Controls\TextShadow; | |
| 5 | +use ABlocks\Controls\TextStroke; | |
| 6 | +use ABlocks\Controls\Background; | |
| 7 | +use ABlocks\Controls\Border; | |
| 8 | +use ABlocks\Controls\Dimensions; | |
| 9 | +use ABlocks\Controls\Icon; | |
| 10 | +use ABlocks\Controls\Range; | |
| 11 | + | |
| 12 | + | |
| 13 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 14 | + exit; | |
| 15 | +} | |
| 16 | + | |
| 17 | +$attributes = [ | |
| 18 | + 'block_id' => array( | |
| 19 | + 'type' => 'string', | |
| 20 | + 'default' => '', | |
| 21 | + ), | |
| 22 | + 'dashboard_page' => array( | |
| 23 | + 'type' => 'string', | |
| 24 | + 'default' => '', | |
| 25 | + ), | |
| 26 | + 'sidebarBackground' => array( | |
| 27 | + 'type' => 'string', | |
| 28 | + 'default' => '', | |
| 29 | + ), | |
| 30 | + 'sidebarUserBackground' => array( | |
| 31 | + 'type' => 'string', | |
| 32 | + 'default' => '', | |
| 33 | + ), | |
| 34 | + 'contentBackground' => array( | |
| 35 | + 'type' => 'string', | |
| 36 | + 'default' => '', | |
| 37 | + ), | |
| 38 | + 'userTextColor' => array( | |
| 39 | + 'type' => 'string', | |
| 40 | + 'default' => '', | |
| 41 | + ), | |
| 42 | + 'breadcrumbColor' => array( | |
| 43 | + 'type' => 'string', | |
| 44 | + 'default' => '', | |
| 45 | + ), | |
| 46 | + 'menuListActiveBackground' => array( | |
| 47 | + 'type' => 'string', | |
| 48 | + 'default' => '', | |
| 49 | + ), | |
| 50 | + 'menuListActiveTextColor' => array( | |
| 51 | + 'type' => 'string', | |
| 52 | + 'default' => '', | |
| 53 | + ), | |
| 54 | + 'menuListHoverBackground' => array( | |
| 55 | + 'type' => 'string', | |
| 56 | + 'default' => '', | |
| 57 | + ), | |
| 58 | + 'menuListHoverTextColor' => array( | |
| 59 | + 'type' => 'string', | |
| 60 | + 'default' => '', | |
| 61 | + ), | |
| 62 | + 'menuListBackground' => array( | |
| 63 | + 'type' => 'string', | |
| 64 | + 'default' => '', | |
| 65 | + ), | |
| 66 | + 'menuListTextColor' => array( | |
| 67 | + 'type' => 'string', | |
| 68 | + 'default' => '', | |
| 69 | + ), | |
| 70 | +]; | |
| 71 | + | |
| 72 | + | |
| 73 | +return array_merge( | |
| 74 | + $attributes, | |
| 75 | + Range::get_attribute([ | |
| 76 | + 'attributeName' => 'bothGap', | |
| 77 | + 'isResponsive' => false, | |
| 78 | + 'defaultValue' => 30, | |
| 79 | + ]), | |
| 80 | + Border::get_attribute( 'sidebarBorder', true ), | |
| 81 | + Border::get_attribute( 'userSidebarBorder', true ), | |
| 82 | + Border::get_attribute( 'menuListBorder', true ), | |
| 83 | + Border::get_attribute( 'contentBorder', true ), | |
| 84 | + Typography::get_attribute( 'userTypography', true ), | |
| 85 | + Typography::get_attribute( 'breadcrumbtTypography', true ), | |
| 86 | + Typography::get_attribute( 'menuListTypography', true ), | |
| 87 | + Dimensions::get_attribute( 'menuListPadding', true ), | |
| 88 | + Dimensions::get_attribute( 'contentPadding', true ), | |
| 89 | + \ABlocks\Classes\BlockGlobal::get_attributes() | |
| 90 | +); | |
| 91 | + | |