| 1 |
<?php |
| 2 |
|
| 3 |
namespace TableBuilder\Config; |
| 4 |
|
| 5 |
defined('ABSPATH') || exit; |
| 6 |
|
| 7 |
class BlockList |
| 8 |
{ |
| 9 |
|
| 10 |
public static function get_block_list() |
| 11 |
{ |
| 12 |
$list = apply_filters( |
| 13 |
'tablebuilder/blocks/list', |
| 14 |
array( |
| 15 |
'table-builder' => array( |
| 16 |
'slug' => 'table-builder', |
| 17 |
'title' => 'Table Builder', |
| 18 |
'package' => 'free', |
| 19 |
'category' => 'general', |
| 20 |
'status' => 'active', |
| 21 |
'badge' => ['freemium', 'new', 'beta'], |
| 22 |
), |
| 23 |
'table-builder-row' => array( |
| 24 |
'slug' => 'table-builder-row', |
| 25 |
'title' => 'Table Row', |
| 26 |
'package' => 'free', |
| 27 |
'category' => 'general', |
| 28 |
'parent' => 'table-builder', |
| 29 |
'status' => 'active', |
| 30 |
), |
| 31 |
'table-builder-item' => array( |
| 32 |
'slug' => 'table-builder-item', |
| 33 |
'title' => 'Table Column', |
| 34 |
'package' => 'free', |
| 35 |
'category' => 'general', |
| 36 |
'parent' => 'table-builder-row', |
| 37 |
'status' => 'active', |
| 38 |
), |
| 39 |
'data-table' => array( |
| 40 |
'slug' => 'data-table', |
| 41 |
'title' => 'Data Table', |
| 42 |
'package' => 'pro', |
| 43 |
'category' => 'general', |
| 44 |
'status' => 'active', |
| 45 |
), |
| 46 |
) |
| 47 |
); |
| 48 |
|
| 49 |
return $list; |
| 50 |
} |
| 51 |
} |
| 52 |
|