# ablocks/2.9.1/includes/blocks/academy-courses/attributes.php

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

- Page: https://pluginprobe.com/plugins/ablocks/2.9.1/code/includes/blocks/academy-courses/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.9.1/raw/includes/blocks/academy-courses/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-courses/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_count' => array(
		'type' => 'number',
		'default' => 3,
	),
	'course_columns' => array(
		'type' => 'number',
		'default' => 3,
	),
	'show_pagination' => array(
		'type' => 'boolean',
		'default' => true,

	),
	'difficulty_levels' => array(
		'type' => 'array',
		'default' => array(),
	),
	'price_types' => array(
		'type' => 'array',
		'default' => array(),
	),
	'order_by' => array(
		'type' => 'string',
		'default' => 'date',
	),
	'course_order' => array(
		'type' => 'string',
		'default' => 'DESC',
	),
	'course_ids' => array(
		'type' => 'array',
		'default' => array(),
	),
	'course_categories' => array(
		'type' => 'array',
		'default' => array(),
	),
	'course_tags' => array(
		'type' => 'array',
		'default' => array(),
	),
	'course_exclude_ids' => array(
		'type' => 'array',
		'default' => array(),
	),
	'course_exclude_categories' => array(
		'type' => 'array',
		'default' => array(),
	),
	'course_exclude_tags' => array(
		'type' => 'array',
		'default' => array(),
	),
	'category_color' => array(
		'type' => 'string',
		'default' => '#333',
	),
	'category_hover_color' => array(
		'type' => 'string',
		'default' => '#333',
	),
	'title_color' => array(
		'type' => 'string',
		'default' => '#000',
	),
	'title_hover_color' => array(
		'type' => 'string',
		'default' => '#000',
	),
	'author_color' => array(
		'type' => 'string',
		'default' => '#000',
	),
	'author_hover_color' => array(
		'type' => 'string',
		'default' => '#000',
	),
	'rating_color' => array(
		'type' => 'string',
		'default' => '#f4c150',
	),
	'rating_hover_color' => array(
		'type' => 'string',
		'default' => '#f4c150',
	),
	'price_color' => array(
		'type' => 'string',
		'default' => '#1dbe84',
	),
	'price_hover_color' => array(
		'type' => 'string',
		'default' => '#1dbe84',
	),
	'wish_icon_color' => array(
		'type' => 'string',
		'default' => '#999',
	),
	'wish_icon_hover_color' => array(
		'type' => 'string',
		'default' => '#999',
	),
];

$attributes = array_merge(
	$attributes,
	Typography::get_attribute( 'cat_typography', true ),
	Typography::get_attribute( 'title_typography', true ),
	Typography::get_attribute( 'author_typography', true ),
	Typography::get_attribute( 'rating_typography', true ),
	Typography::get_attribute( 'price_typography', true ),
	Background::get_attribute( 'card_background', true ),
	Border::get_attribute( 'card_border', true ),
	Dimensions::get_attribute( 'card_margin', true ),
	Dimensions::get_attribute( 'card_hover_margin', true ),
	Dimensions::get_attribute( 'card_padding', true ),
	Dimensions::get_attribute( 'card_hover_padding', true ),
	Background::get_attribute( 'wish_icon_background', true )
);

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


```
