<?php

$this->start_controls_section(
    'content_section',
    [
        'label' => __('Content', 'ostech-addon'),
        'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
        'condition' => [
            'layout_type' => 'layout_one'
        ]
    ]
);

$this->add_control(
    'layout_two_title',
    [
        'label' => __('Add Title', 'ostech-addon'),
        'type' => \Elementor\Controls_Manager::TEXT,
        'default' => __('Title', 'ostech-addon')
    ]
);

$footer_timing_list = new \Elementor\Repeater();

$footer_timing_list->add_control(
    'title',
    [
        'label' => __('Add Title', 'ostech-addon'),
        'type' => \Elementor\Controls_Manager::TEXT,
        'default' => __('Title', 'ostech-addon')
    ]
);

$footer_timing_list->add_control(
    'url',
    [
        'label' => __('Url', 'ostech-addon'),
        'type' => \Elementor\Controls_Manager::URL,
        'placeholder' => __('#', 'ostech-addon'),
        'show_external' => false,
        'default' => [
            'is_external' => false,
            'nofollow' => true,
        ],
        'show_label' => true,
    ]
);

$this->add_control(
    'footer_timing_list',
    [
        'label' => __('Timing List', 'ostech-addon'),
        'type' => \Elementor\Controls_Manager::REPEATER,
        'fields' => $footer_timing_list->get_controls(),
        'prevent_empty' => false,
    ]
);



$this->end_controls_section();
