PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.14.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.14.0
2.14.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 All 81 releases
← All changes | includes/blocks/form-multi-step/attributes.php +36 -0 2.7.6 → 2.14.0 View file →
@@ -1,0 +1,36 @@
1 +<?php
2 +
3 +if ( ! defined( 'ABSPATH' ) ) {
4 + exit;
5 +}
6 +
7 +$attributes = [
8 + 'block_id' => array(
9 + 'type' => 'string',
10 + 'default' => ''
11 + ),
12 + 'steps' => [
13 + 'type' => 'array',
14 + 'default' => [
15 + [
16 + 'id' => 1,
17 + 'value' => 'Step One'
18 + ]
19 + ]
20 + ],
21 + 'submitButtonText' => array(
22 + 'type' => 'string',
23 + 'default' => 'Submit'
24 + ),
25 + 'submitButtonSize' => array(
26 + 'type' => 'string',
27 + 'default' => 'default'
28 + )
29 +];
30 +
31 +$attributes = array_merge(
32 + $attributes,
33 +);
34 +
35 +return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
36 +