<?php
/**
 * GGM Commerce Product Attributes Widget
 * Displays product weight and dimensions with configurable layout options
 *
 * @package GGM_Commerce
 * @since 1.0.0
 */

// If this file is called directly, abort.
if (! defined('ABSPATH')) {
    exit;
}

require_once __DIR__ . '/widget-product-attributes/elementor-render.php';

class GGM_Commerce_Widget_Product_Attributes extends \GGM_Commerce_Base_Widget
{

    public function get_name()
    {
        return 'ggmc-product-attributes';
    }

    public function get_title()
    {
        return 'Product Attributes';
    }

    public function get_icon()
    {
        return 'eicon-info-box';
    }

    protected function register_controls()
    {
        require __DIR__ . '/widget-product-attributes/elementor-controls.php';
        require __DIR__ . '/widget-product-attributes/elementor-controls-style.php';
    }

    protected function render()
    {
        ggmc_product_attributes_render( $this );
    }

    /**
     * Get default styles for this widget
     */
    public static function get_static_default_styles()
    {
        return self::get_defaults_from_config();
    }
}
