<?php
defined('ABSPATH') || die;
?>

<div class="publishpress-admin wrap">
    <header>
        <h1 class="wp-heading-inline">
            <?php esc_html_e('PublishPress Blocks', 'advanced-gutenberg') ?>
        </h1>
    </header>
    <div class="wrap">
        <div class="pp-columns-wrapper"
        >
            <div class="pp-column-left">
                <div>
                    <?php
                    $isPro = defined('ADVANCED_GUTENBERG_PRO_LOADED') ? true : false;
                    $features = [
                        [
                            'name' => 'enable_block_access',
                            'title' => __('Block Permissions', 'advanced-gutenberg'),
                            'description' => __(
                                'You can control who can use each block, including default WordPress blocks.',
                                'advanced-gutenberg'
                            ),
                            'default' => 1,
                            'access' => true
                        ],
                        [
                            'name' => 'enable_advgb_blocks',
                            'title' => __('Extra Blocks', 'advanced-gutenberg'),
                            'description' => __(
                                'Enable extra blocks including content displays, sliders, buttons, icons, tabs, accordions, and more.',
                                'advanced-gutenberg'
                            ),
                            'default' => 1,
                            'access' => true
                        ],
                        [
                            'name' => 'enable_custom_styles',
                            'title' => __('Block Styles', 'advanced-gutenberg'),
                            'description' => __(
                                'You can add your own CSS styles for your blocks. Anyone editing posts can quickly add the styles to blocks.',
                                'advanced-gutenberg'
                            ),
                            'default' => 1,
                            'access' => true
                        ],
                        [
                            'name' => 'block_controls',
                            'title' => __('Block Controls', 'advanced-gutenberg'),
                            'description' => __(
                                'This feature adds display controls for blocks. You can schedule when blocks are shown, and add user role restrictions.',
                                'advanced-gutenberg'
                            ),
                            'default' => 1,
                            'access' => true
                        ],
                        [
                            'name' => 'enable_block_usage',
                            'title' => __('Block Usage', 'advanced-gutenberg'),
                            'description' => __(
                                'You can scan the posts on your website for blocks usage.',
                                'advanced-gutenberg'
                            ),
                            'default' => 1,
                            'access' => true
                        ],
                        [
                            'name' => 'reusable_blocks',
                            'title' => __('Reusable Blocks', 'advanced-gutenberg'),
                            'description' => __(
                                'This feature enables a submenu to manage your Reusable Blocks.',
                                'advanced-gutenberg'
                            ),
                            'default' => 1,
                            'access' => true
                        ],
                        [
                            'name' => 'auto_insert_blocks',
                            'title' => __( 'Auto Insert Blocks', 'advanced-gutenberg' ),
                            'description' => __(
                                'Automatically insert reusable blocks into posts based on position, categories, tags, and other criteria.', 'advanced-gutenberg'
                            ),
                            'default' => 1,
                            'access' => true
                        ],
                        [
                            'name' => 'enable_core_blocks_features',
                            'title' => __('Core Blocks Features', 'advanced-gutenberg'),
                            'description' => __(
                                'Add Google Fonts support to core blocks including paragraphs and headings.',
                                'advanced-gutenberg'
                            ),
                            'default' => 1,
                            'access' => $isPro // Feature available on pro only. In free we display a placeholder.
                        ]
                    ];

                    $this->featuresBoxes($features);
                    ?>
                </div>
            </div><!-- .pp-column-left -->

        </div>
    </div>
</div>
