# ablocks/2.9.1/includes/blocks/academy-enroll-form/attributes.php

aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder &amp; Animation Builder, version 2.9.1. 67 lines.

- Page: https://pluginprobe.com/plugins/ablocks/2.9.1/code/includes/blocks/academy-enroll-form/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.9.1/raw/includes/blocks/academy-enroll-form/attributes.php
- Modified: 2025-04-22T12:59:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ablocks/2.9.1/code/includes/blocks/academy-enroll-form/attributes.php#L10-L20`.

```php
<?php

use ABlocks\Controls\Typography;
use ABlocks\Controls\Background;
use ABlocks\Controls\Border;
use ABlocks\Controls\Dimensions;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$attributes = [
	'block_id' => array(
		'type' => 'string',
		'default' => '',
	),
	'course_id' => array(
		'type' => 'number',
		'default' => 0,
	),
	'start_btn_color' => array(
		'type' => 'string',
		'default' => '#fff',
	),
	'enroll_btn_color' => array(
		'type' => 'string',
		'default' => '#fff',
	),
	'start_btn_color_hover' => array(
		'type' => 'string',
		'default' => '#fff',
	),
	'enroll_btn_color_hover' => array(
		'type' => 'string',
		'default' => '#fff',
	),
	'start_btn_bg_color' => array(
		'type' => 'string',
		'default' => '#7B68EE',
	),
	'enroll_btn_bg_color' => array(
		'type' => 'string',
		'default' => '#7B68EE',
	),
	'start_btn_bg_hover_color' => array(
		'type' => 'string',
		'default' => '#6F5DD6',
	),
	'enroll_btn_bg_hover_color' => array(
		'type' => 'string',
		'default' => '#6F5DD6',
	),
];

$attributes = array_merge(
	$attributes,
	Typography::get_attribute( 'start_btn_typography', true ),
	Dimensions::get_attribute( 'start_btn_padding', true ),
	Dimensions::get_attribute( 'enroll_btn_padding', true ),
	Typography::get_attribute( 'enroll_btn_typography', true ),
	Border::get_attribute( 'start_btn_border', true ),
	Border::get_attribute( 'enroll_btn_border', true ),
);

return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );


```
