<?php

namespace ThemesflatAddons\ThemeBuilder;

use ElementorPro\Modules\ThemeBuilder\Documents\Theme_Section_Document;

if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

class Themesflat_Grid extends Theme_Section_Document {

    public static function get_properties() {

        $properties = parent::get_properties();

        $properties['condition_type'] = '';
        $properties['location'] = 'themesflat_grid';
        $properties['support_kit'] = true;
        $properties['support_site_editor'] = true;

        return $properties;
    }

    protected static function get_site_editor_type() {
        return 'themesflat_grid';
    }

    protected static function get_site_editor_thumbnail_url() {
        return TFL_PLUGIN_URL . 'assets/images/themesflat-grid.svg';
    }

    protected static function get_site_editor_icon() {
        return 'eicon-archive';
    }

    public function get_name() {
        return 'themesflat_grid';
    }

    public static function get_title() {

        return __('Themesflat Grid', 'themesflat');
    }

    /* The category for the loop item widget */
    protected static function get_editor_panel_categories() {

        $categories = [
            'themesflat-grid' => [
                'title' => __('Themesflat Grid', 'themesflat'),
            ],
        ];

        return $categories + parent::get_editor_panel_categories();

    }

}

