tskit' ),
]
);
$this->add_control(
'ekit_price_menu_arrow_color',
[
'label' => esc_html__( 'Color', 'elementskit' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ekit-price-card-slider .elementor-swiper-button > i' => 'color: {{VALUE}}',
],
]
);
$this->add_control(
'ekit_price_menu_arrow_background',
[
'label' => esc_html__( 'Background Color', 'elementskit' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ekit-price-card-slider .elementor-swiper-button > i' => 'background: {{VALUE}}',
],
]
);
$this->add_group_control(
Group_Control_Border::get_type(),
[
'name' => 'ekit_price_menu_arrow_border_group',
'label' => esc_html__( 'Border', 'elementskit' ),
'selector' => '{{WRAPPER}} .ekit-price-card-slider .elementor-swiper-button > i',
]
);
$this->end_controls_tab();
// Arrow hover tab
$this->start_controls_tab(
'ekit_price_menu_arrow_hover_tab',
[
'label' => esc_html__( 'Hover', 'elementskit' ),
]
);
$this->add_control(
'ekit_price_menu_arrow_hv_color',
[
'label' => esc_html__( 'Color', 'elementskit' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ekit-price-card-slider .elementor-swiper-button:hover > i' => 'color: {{VALUE}}',
],
]
);
$this->add_control(
'ekit_price_menu_arrow_hover_background',
[
'label' => esc_html__( 'Background Color', 'elementskit' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ekit-price-card-slider .elementor-swiper-button:hover > i' => 'background: {{VALUE}}',
],
]
);
$this->add_group_control(
Group_Control_Border::get_type(),
[
'name' => 'ekit_price_menu_arrow_border_hover_group',
'label' => esc_html__( 'Border', 'elementskit' ),
'selector' => '{{WRAPPER}} .ekit-price-card-slider .elementor-swiper-button:hover > i',
]
);
$this->end_controls_tab();
$this->end_controls_tabs();
$this->add_responsive_control(
'ekit_price_menu_arrow_border_radious',
[
'label' => esc_html__( 'Border Radius', 'elementskit' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .ekit-price-card-slider .elementor-swiper-button > i' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'separator' => 'before'
]
);
$this->add_responsive_control(
'ekit_price_menu_arrow_padding',
[
'label' => esc_html__( 'Padding', 'elementskit' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', 'em' ],
'selectors' => [
'{{WRAPPER}} .ekit-price-card-slider .elementor-swiper-button > i' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_section();
/** Dot Style Section */
$this->start_controls_section(
'ekit_price_menu_navigation_dot',
[
'label' => esc_html__( 'Dots', 'elementskit' ),
'tab' => Controls_Manager::TAB_STYLE,
'condition' => [
'ekit_price_menu_show_dot' => 'yes'
]
]
);
$this->add_control(
'ekit_price_menu_dots_left_right_spacing',
[
'label' => esc_html__( 'Space Between', 'elementskit' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px' ],
'range' => [
'px' => [
'min' => 0,
'max' => 20,
'step' => 1,
],
],
'default' => [
'unit' => 'px',
'size' => 4,
],
'selectors' => [
'{{WRAPPER}} .ekit-price-card-slider .swiper-pagination .swiper-pagination-bullet' => 'margin-right: {{SIZE}}{{UNIT}};margin-left: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_control(
'ekit_price_menu_dots_top_to_bottom',
[
'label' => esc_html__( 'Spacing Top To Bottom', 'elementskit' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px'],
'range' => [
'px' => [
'min' => -100,
'max' => 200,
'step' => 1,
],
],
'default' => [
'size' => 50,
'unit' => 'px',
],
'selectors' => [
'{{WRAPPER}} .ekit-price-card-slider .swiper-pagination' => 'transform: translateY({{SIZE}}{{UNIT}});',
],
]
);
$this->add_control(
'ekit_price_menu_dot_width',
[
'label' => esc_html__( 'Width', 'elementskit' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px' ],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
],
'default' => [
'unit' => 'px',
'size' => 8,
],
'selectors' => [
'{{WRAPPER}} .ekit-price-card-slider .swiper-pagination .swiper-pagination-bullet' => 'width: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_control(
'ekit_price_menu_dot_height',
[
'label' => esc_html__( 'Height', 'elementskit' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px' ],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
],
'default' => [
'unit' => 'px',
'size' => 8,
],
'selectors' => [
'{{WRAPPER}} .ekit-price-card-slider .swiper-pagination .swiper-pagination-bullet' => 'height: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_control(
'ekit_price_menu_dot_border_radius',
[
'label' => esc_html__( 'Border radius', 'elementskit' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%' ],
'selectors' => [
'{{WRAPPER}} .ekit-price-card-slider .swiper-pagination .swiper-pagination-bullet' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_group_control(
Group_Control_Background::get_type(),
[
'name' => 'ekit_price_menu_dot_background',
'label' => esc_html__( 'Background', 'elementskit' ),
'types' => [ 'classic', 'gradient' ],
'exclude' => ['image'],
'selector' => '{{WRAPPER}} .ekit-price-card-slider .swiper-pagination .swiper-pagination-bullet',
]
);
$this->add_control(
'ekit_price_menu_dot_active_heading',
[
'label' => esc_html__( 'Active', 'elementskit' ),
'type' => Controls_Manager::HEADING,
'separator' => 'before',
]
);
$this->add_group_control(
Group_Control_Background::get_type(),
[
'name' => 'ekit_price_menu_dot_active_background',
'label' => esc_html__( 'Background', 'elementskit' ),
'types' => [ 'classic', 'gradient' ],
'exclude' => ['image'],
'selector' => '{{WRAPPER}} .ekit-price-card-slider .swiper-pagination .swiper-pagination-bullet-active',
]
);
$this->add_responsive_control(
'ekit_price_menu_dot_active_scale',
[
'label' => esc_html__( 'Scale', 'elementskit' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px' ],
'range' => [
'px' => [
'min' => 0,
'max' => 2,
'step' => 0.1,
],
],
'default' => [
'unit' => 'px',
'size' => 1.2,
],
'selectors' => [
'{{WRAPPER}} .ekit-price-card-slider .swiper-pagination .swiper-pagination-bullet-active' => 'transform: scale({{SIZE}});',
],
]
);
$this->end_controls_section();
}
protected function render() {
echo '
';
$this->render_raw();
echo '
';
}
protected function render_raw() {
$settings = $this->get_settings_for_display();
extract($settings);
include Handler::get_dir().'/styles/'.$ekit_price_menu_list_style.'.php';
}
}
آسیاب - تجهیزات جانبی دستگاه تزریق پلاستیک مجتمع صنعتی ام تی سی
پرش به محتوا