<?php
namespace Softech_Addons_for_Elementor\Widgets;

if (!defined('ABSPATH')) exit;

class sitsel_pro_post_comments extends Base_Locked_Widget {

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

    public function get_widget_metadata() {
        return [
            'title'       => __('SITS Post Comments', 'softech-addons-for-elementor'),
            'description' => __('Display and style WordPress post comments with options for layout, typography, and comment form.', 'softech-addons-for-elementor'),
            'icon'        => 'eicon-comments',
            'categories'  => ['sits-category'],
            'keywords'    => ['comments', 'post comments', 'discussion', 'feedback', 'comment form', 'wordpress'],
        ];
    }

    // Defines upsell / lock data for this widget
    protected function get_upsale_data() {
        if ($this->is_pro_active()) {
            return false;
        }

        return [
            'condition'   => true,
            'image'       => '', // Optional: Add preview image URL here
            'image_alt'   => __('Upgrade', 'softech-addons-for-elementor'),
            'title'       => __('Unlock Sitsel Post Comments Widget', 'softech-addons-for-elementor'),
            'description' => __('Upgrade to Sitsel Pro to unlock the Post Comments widget with full styling controls for layout, typography, and comment form design.', 'softech-addons-for-elementor'),
            'upgrade_url' => 'https://softechaddons.sitslab.com/#pro-plan',
            'upgrade_text'=> __('Upgrade Now', 'softech-addons-for-elementor'),
        ];
    }
}
