<?php

//layout_one
$this->start_controls_section(
    'layout_one_content_section',
    [
        'label' => __('Content', 'ostech-addon'),
        'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
        'conditions' => [
            'terms' => [
                [
                    'name' => 'layout_type',
                    'operator' => '==',
                    'value' => 'layout_one'
                ]
            ]
        ]
    ]
);

$this->add_control(
    'section_title',
    [
        'label' => __('Section Title', 'ostech-addon'),
        'type' => \Elementor\Controls_Manager::TEXTAREA,
        'rows' => '2',
        'placeholder' => __('Add title', 'ostech-addon'),
        'default' => __('Default Title', 'ostech-addon'),
    ]
);

ostech_elementor_heading_option($this, 'Section Title', 'h4', 'layout_one');

$this->add_control(
    'layout_one_summary',
    [
        'label' => __('Sumamry Two', 'ostech-addon'),
        'type' => \Elementor\Controls_Manager::TEXTAREA,
        'rows' => '2',
        'placeholder' => __('Add Sumamry', 'ostech-addon'),
        'default' => __('Default Sumamry', 'ostech-addon'),
    ]
);
$this->add_control(
    'layout_one_summary_two',
    [
        'label' => __('Sumamry Two', 'ostech-addon'),
        'type' => \Elementor\Controls_Manager::TEXTAREA,
        'rows' => '2',
        'placeholder' => __('Add Sumamry', 'ostech-addon'),
        'default' => __('Default Sumamry', 'ostech-addon'),
    ]
);
$this->add_control(
    'layout_one_feature_title',
    [
        'label' => __('Feature Title', 'ostech-addon'),
        'type' => \Elementor\Controls_Manager::TEXTAREA,
        'rows' => '2',
        'placeholder' => __('Feature title', 'ostech-addon'),
        'default' => __('Default Feature Title', 'ostech-addon'),
    ]
);


$this->add_control(
    'layout_one_image',
    [
        'label' => __('Image', 'ostech-addon'),
        'type' => \Elementor\Controls_Manager::MEDIA,
        'default' => [
            'url' => \Elementor\Utils::get_placeholder_image_src(),
        ],
    ]
);

$this->end_controls_section();
