PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.9.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.9.0
2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 All 80 releases
ablocks / includes / blocks / frontend-dashboard / attributes.php

attributes.php in aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder 2.9.0, at includes/blocks/frontend-dashboard/attributes.php

92 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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
92