Files
2024-11-04 20:48:19 +01:00

738 lines
30 KiB
PHP

<?php namespace Elementor;
class restly_pricing_v3_Widget extends Widget_Base {
public function get_name() {
return 'restly_pricing_v3';
}
public function get_title() {
return esc_html__( 'Restly Pricing v3', 'restlycore' );
}
public function get_icon() {
return 'eicon-price-table';
}
public function get_categories() {
return ['restly'];
}
protected function register_controls() {
//Content tab start
$this->start_controls_section(
'restly_pricing_v3_options',
[
'label' => esc_html__( 'Header', 'restlycore' ),
'tab' => Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'restly_pricing_v3_title',
[
'label' => esc_html__( 'Title', 'restlycore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'Basic', 'restlycore' ),
]
);
$this->add_control(
'restly_pricing_v3_title_tag',
[
'label' => esc_html__( 'Title HTML Tag', 'restlycore' ),
'description' => esc_html__( 'Add HTML Tag For Title', 'restlycore' ),
'type' => \Elementor\Controls_Manager::SELECT,
'default' => 'h4',
'options' => [
'h1' => esc_html__( 'H1', 'restlycore' ),
'h2' => esc_html__( 'H2', 'restlycore' ),
'h3' => esc_html__( 'H3', 'restlycore' ),
'h4' => esc_html__( 'H4', 'restlycore' ),
'h5' => esc_html__( 'H5', 'restlycore' ),
'h6' => esc_html__( 'H6', 'restlycore' ),
'p' => esc_html__( 'P', 'restlycore' ),
'span' => esc_html__( 'span', 'restlycore' ),
'div' => esc_html__( 'Div', 'restlycore' ),
],
]
);
$this->add_control(
'restly_pricing_v3_stitle',
[
'label' => esc_html__( 'Sub Title', 'restlycore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'Enjoy Basic ammunites', 'restlycore' ),
]
);
$this->add_control(
'restly_pricing_v3_amount',
[
'label' => esc_html__( 'Amount', 'restlycore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( '$15', 'restlycore' ),
]
);
$this->end_controls_section();
$this->start_controls_section(
'restly_pricing_v3_content_options',
[
'label' => esc_html__( 'Content', 'restlycore' ),
'tab' => Controls_Manager::TAB_CONTENT,
]
);
$repeater = new \Elementor\Repeater();
$repeater->add_control(
'restly_pricing_v3_contents', [
'label' => esc_html__( 'Content', 'restlycore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'Unlimited Reports 100+ Data' , 'restlycore' ),
'label_block' => true,
]
);
$repeater->add_control(
'restly_pricing_v3_coicon',
[
'label' => esc_html__( 'Icon', 'restlycore' ),
'type' => \Elementor\Controls_Manager::ICONS,
]
);
$repeater->add_responsive_control(
'restly_pricing_v3_cicon_c',
[
'label' => esc_html__( 'Icon Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} {{CURRENT_ITEM}} i' => 'color: {{VALUE}}',
],
]
);
$this->add_control(
'pricing_v3_lists',
[
'label' => esc_html__( 'Content List', 'restlycore' ),
'type' => \Elementor\Controls_Manager::REPEATER,
'fields' => $repeater->get_controls(),
'default' => [
[
'restly_pricing_v3_contents' => esc_html__( 'Unlimited Reports 100+ Data', 'restlycore' ),
'restly_pricing_v3_coicon' => 'bi bi-check2',
],
[
'restly_pricing_v3_contents' => esc_html__( 'Connectors', 'restlycore' ),
'restly_pricing_v3_coicon' => 'bi bi-check2',
],
[
'restly_pricing_v3_contents' => esc_html__( 'Yearly Premium Support', 'restlycore' ),
'restly_pricing_v3_coicon' => 'bi bi-check2',
]
],
'title_field' => '{{{ restly_pricing_v3_contents }}}',
]
);
$this->end_controls_section();
$this->start_controls_section(
'restly_pricing_v3_footer_options',
[
'label' => esc_html__( 'Footer', 'restlycore' ),
'tab' => Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'restly_pricing_v3_footer_link_text',
[
'label' => esc_html__( 'Button Text', 'restlycore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'Start Free Trial', 'restlycore' ),
]
);
$this->add_control(
'restly_pricing_v3_footer_link_icon',
[
'label' => esc_html__( 'Icon', 'restlycore' ),
'type' => \Elementor\Controls_Manager::ICONS,
]
);
$this->add_control(
'restly_pricing_v3_footer_link',
[
'label' => __( 'Link', 'restlycore' ),
'type' => \Elementor\Controls_Manager::URL,
'placeholder' => __( 'https://your-link.com', 'restlycore' ),
'show_external' => true,
'default' => [
'url' => '',
'is_external' => true,
'nofollow' => true,
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'restly_pricing_v3_CSS_box_options',
[
'label' => esc_html__( ' Box', 'restlycore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_group_control(
\Elementor\Group_Control_Background::get_type(),
[
'name' => 'restly_pricing_v3_CSS_box_bg',
'label' => esc_html__( 'Background', 'restlycore' ),
'types' => [ 'classic', 'gradient', 'video' ],
'selector' => '{{WRAPPER}} .pricing-item-seven',
]
);
$this->add_group_control(
\Elementor\Group_Control_Box_Shadow::get_type(),
[
'name' => 'restly_pricing_v3_CSS_box_shadow',
'label' => esc_html__( 'Box Shadow', 'restlycore' ),
'selector' => '{{WRAPPER}} .pricing-item-seven',
]
);
$this->add_group_control(
\Elementor\Group_Control_Border::get_type(),
[
'name' => 'restly_pricing_v3_CSS_box_border',
'label' => esc_html__( 'Border', 'restlycore' ),
'selector' => '{{WRAPPER}} .pricing-item-seven',
]
);
$this->add_responsive_control(
'restly_pricing_v3_CSS_box_radius',
[
'label' => esc_html__( 'Border Radius', 'restlycore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px', '%' ],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
'%' => [
'min' => 0,
'max' => 100,
],
],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven' => 'border-radius: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_pricing_v3_CSS_box_margin',
[
'label' => esc_html__( 'Margin', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_pricing_v3_CSS_box_padding',
[
'label' => esc_html__( 'Padding', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'restly_pricing_v3_CSS_header_options',
[
'label' => esc_html__( 'Header', 'restlycore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'restly_pricing_v3_CSS_header_align',
[
'label' => __( 'Alignment', 'restlycore' ),
'type' => \Elementor\Controls_Manager::CHOOSE,
'options' => [
'left' => [
'title' => __( 'Left', 'restlycore' ),
'icon' => 'eicon-text-align-left',
],
'center' => [
'title' => __( 'Center', 'restlycore' ),
'icon' => 'eicon-text-align-center',
],
'right' => [
'title' => __( 'Right', 'restlycore' ),
'icon' => 'eicon-text-align-right',
],
],
'default' => 'left',
'toggle' => true,
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .pricing-top' => 'text-align: {{VALUE}}',
],
]
);
$this->start_controls_tabs(
'restly_pricing_v3_header_tabs'
);
$this->start_controls_tab(
'restly_pricing_v3_header_tabs_title',
[
'label' => __( 'Title', 'restlycore' ),
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'restly_pv3_h_title_typo',
'label' => esc_html__( 'Typography', 'restlycore' ),
'selector' => '{{WRAPPER}} .pricing-item-seven .price-top-left .pricing-title',
]
);
$this->add_responsive_control(
'restly_pv3_h_title_color',
[
'label' => esc_html__( 'Title Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .price-top-left .pricing-title' => 'color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'restly_pv3_h_title_margin',
[
'label' => esc_html__( 'Margin', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .price-top-left .pricing-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_pv3_h_title_padding',
[
'label' => esc_html__( 'Padding', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .price-top-left .pricing-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_tab();
$this->start_controls_tab(
'restly_pricing_v3_header_tabs_stitle',
[
'label' => __( 'Sub Title', 'restlycore' ),
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'restly_pv3_h_stitle_typo',
'label' => esc_html__( 'Typography', 'restlycore' ),
'selector' => '{{WRAPPER}} .pricing-item-seven .price-top-left span',
]
);
$this->add_responsive_control(
'restly_pv3_h_stitle_color',
[
'label' => esc_html__( 'Title Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .price-top-left span' => 'color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'restly_pv3_h_stitle_margin',
[
'label' => esc_html__( 'Margin', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .price-top-left span' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_pv3_h_stitle_padding',
[
'label' => esc_html__( 'Padding', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .price-top-left span' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_tab();
$this->start_controls_tab(
'restly_pricing_v3_header_tabs_price',
[
'label' => __( 'Price', 'restlycore' ),
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'restly_pv3_h_price_typo',
'label' => esc_html__( 'Typography', 'restlycore' ),
'selector' => '{{WRAPPER}} .pricing-item-seven .pricing-top .price',
]
);
$this->add_responsive_control(
'restly_pv3_h_price_color',
[
'label' => esc_html__( 'Title Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .pricing-top .price' => 'color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'restly_pv3_h_price_margin',
[
'label' => esc_html__( 'Margin', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .pricing-top .price' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_pv3_h_price_padding',
[
'label' => esc_html__( 'Padding', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .pricing-top .price' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_tab();
$this->end_controls_tabs();
$this->end_controls_section();
$this->start_controls_section(
'restly_pricing_v3_CSS_dec_options',
[
'label' => esc_html__( 'List CSS', 'restlycore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'restly_pv3_dec_typo',
'label' => esc_html__( 'Typography', 'restlycore' ),
'selector' => '{{WRAPPER}} .pricing-item-seven .list-style-three li',
]
);
$this->add_responsive_control(
'restly_pv3_dec_c',
[
'label' => esc_html__( 'Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .list-style-three li' => 'color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'restly_pv3_dec_margin',
[
'label' => esc_html__( 'Margin', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .list-style-three li' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_pv3_dec_padding',
[
'label' => esc_html__( 'Padding', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .list-style-three li' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_pv3_dec_icon_right',
[
'label' => esc_html__( 'Icon Margin', 'restlycore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px' ],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
]
],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .list-style-three li i' => 'margin-right: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_pv3_dec_icon_size',
[
'label' => esc_html__( 'Icon Size', 'restlycore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px' ],
'range' => [
'px' => [
'min' => 0,
'max' => 30,
'step' => 1,
]
],
'selectors' => [
'{{WRAPPER}} .pricing-item-seven .list-style-three li i' => 'font-size: {{SIZE}}{{UNIT}};',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'restly_price_v3_btn_css_options',
[
'label' => esc_html__( 'Button CSS', 'restlycore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'restly_price_v3_btn_css_aligment',
[
'label' => __( 'Alignment', 'restlycore' ),
'type' => \Elementor\Controls_Manager::CHOOSE,
'options' => [
'left' => [
'title' => __( 'Left', 'restlycore' ),
'icon' => 'eicon-text-align-left',
],
'center' => [
'title' => __( 'Center', 'restlycore' ),
'icon' => 'eicon-text-align-center',
],
'right' => [
'title' => __( 'Right', 'restlycore' ),
'icon' => 'eicon-text-align-right',
],
],
'default' => 'center',
'toggle' => true,
'selectors' => [
'{{WRAPPER}} a.theme-btn.style-six' => 'text-align: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'restly_price_v3_btn_css_margin',
[
'label' => esc_html__( 'Margin', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} a.theme-btn.style-six' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_price_v3_btn_css_padding',
[
'label' => esc_html__( 'Padding', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} a.theme-btn.style-six' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->start_controls_tabs(
'restly_price_v3_btn_css_tabs'
);
$this->start_controls_tab(
'restly_price_v3_btn_css_tabs_normal',
[
'label' => __( 'Normal', 'restlycore' ),
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'restly_price_v3_btn_css_typos',
'label' => esc_html__( 'Typography', 'restlycore' ),
'selector' => '{{WRAPPER}} a.theme-btn.style-six',
]
);
$this->add_responsive_control(
'restly_price_v3_btn_css_ncolor',
[
'label' => esc_html__( 'Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} a.theme-btn.style-six' => 'color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'restly_price_v3_btn_css_nbg',
[
'label' => esc_html__( 'Background Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} a.theme-btn.style-six' => 'background-color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Border::get_type(),
[
'name' => 'restly_price_v3_btn_css_nborder',
'label' => esc_html__( 'Border', 'restlycore' ),
'selector' => '{{WRAPPER}} a.theme-btn.style-six',
]
);
$this->add_responsive_control(
'restly_price_v3_btn_css_nradisu',
[
'label' => esc_html__( 'Border Radius', 'restlycore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px' ],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
],
'selectors' => [
'{{WRAPPER}} a.theme-btn.style-six' => 'border-radius: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Box_Shadow::get_type(),
[
'name' => 'restly_price_v3_btn_css_nshadow',
'label' => esc_html__( 'Shadow', 'restlycore' ),
'selector' => '{{WRAPPER}} a.theme-btn.style-six',
]
);
$this->end_controls_tab();
$this->start_controls_tab(
'restly_price_v3_btn_css_tabs_hover',
[
'label' => __( 'Hover', 'restlycore' ),
]
);
$this->add_responsive_control(
'restly_price_v3_btn_css_hcolor',
[
'label' => esc_html__( 'Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} a.theme-btn.style-six:hover' => 'color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'restly_price_v3_btn_css_hbg',
[
'label' => esc_html__( 'Background Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} a.theme-btn.style-six:hover' => 'background-color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Border::get_type(),
[
'name' => 'restly_price_v3_btn_css_hborder',
'label' => esc_html__( 'Border', 'restlycore' ),
'selector' => '{{WRAPPER}} a.theme-btn.style-six:hover',
]
);
$this->add_responsive_control(
'restly_price_v3_btn_css_hradisu',
[
'label' => esc_html__( 'Border Radius', 'restlycore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px' ],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
],
'default' => [
'unit' => 'px',
'size' => 5,
],
'selectors' => [
'{{WRAPPER}} a.theme-btn.style-six:hover' => 'border-radius: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Box_Shadow::get_type(),
[
'name' => 'restly_price_v3_btn_css_hshadow',
'label' => esc_html__( 'Shadow', 'restlycore' ),
'selector' => '{{WRAPPER}} a.theme-btn.style-six:hover',
]
);
$this->end_controls_tab();
$this->end_controls_tabs();
$this->end_controls_section();
}
//Render
protected function render() {
$settings = $this->get_settings_for_display();
$target = $settings['restly_pricing_v3_footer_link']['is_external'] ? ' target="_blank"' : '';
$nofollow = $settings['restly_pricing_v3_footer_link']['nofollow'] ? ' rel="nofollow"' : '';
ob_start();
?>
<div class="restly-pricing-v3-wrapper">
<div class="pricing-item-seven">
<div class="pricing-top">
<div class="price-top-left">
<<?php echo esc_html($settings['restly_pricing_v3_title_tag']); ?> class="pricing-title"><?php echo esc_html($settings['restly_pricing_v3_title']); ?></<?php echo esc_html($settings['restly_pricing_v3_title_tag']); ?>>
<span><?php echo esc_html($settings['restly_pricing_v3_stitle']); ?></span>
</div>
<span class="price"><?php echo esc_html($settings['restly_pricing_v3_amount']); ?></span>
</div>
<ul class="list-style-three">
<?php foreach($settings['pricing_v3_lists'] as $plist ) : ?>
<li class="elementor-repeater-item-<?php echo esc_attr( $plist['_id'] ); ?>"><i class="<?php echo esc_html($plist['restly_pricing_v3_coicon']['value']); ?>"></i><?php echo esc_html($plist['restly_pricing_v3_contents']); ?></li>
<?php endforeach; ?>
</ul>
<?php echo '<a class="theme-btn style-six" href="' . esc_url($settings['restly_pricing_v3_footer_link']['url']) . '"' . $target . $nofollow . '>'.esc_html($settings['restly_pricing_v3_footer_link_text']).'<i class="'.esc_attr($settings['restly_pricing_v3_footer_link_icon']['value']).'"></i></a>'; ?>
</div>
</div>
<?php
echo ob_get_clean();
}
}
Plugin::instance()->widgets_manager->register( new restly_pricing_v3_Widget );