<?php
/**
 * Product Comparison Widget — Layout Controls (TAB_CONTENT, Layout section)
 *
 * Included via require inside register_controls(), so $this is in scope.
 *
 * @package GGM_Commerce
 */

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

// Layout Section
$this->start_controls_section(
	'section_layout',
	array(
		'label' => 'Layout',
		'tab'   => \Elementor\Controls_Manager::TAB_CONTENT,
	)
);

$this->add_control(
	'show_remove_button',
	array(
		'label'        => 'Show Remove Button',
		'type'         => \Elementor\Controls_Manager::SWITCHER,
		'default'      => 'yes',
		'label_on'     => 'Show',
		'label_off'    => 'Hide',
		'return_value' => 'yes',
	)
);

$this->add_control(
	'show_clear_all',
	array(
		'label'        => 'Show Clear All Button',
		'type'         => \Elementor\Controls_Manager::SWITCHER,
		'default'      => 'yes',
		'label_on'     => 'Show',
		'label_off'    => 'Hide',
		'return_value' => 'yes',
	)
);

$this->add_control(
	'sticky_first_column',
	array(
		'label'        => 'Sticky Field Names Column',
		'type'         => \Elementor\Controls_Manager::SWITCHER,
		'default'      => 'yes',
		'label_on'     => 'Yes',
		'label_off'    => 'No',
		'return_value' => 'yes',
		'description'  => 'Keep the field names column fixed when scrolling horizontally on mobile',
	)
);

$this->end_controls_section();
