start_controls_section( 'advanced_pricing_table_settings', [ 'label' => esc_html__( 'Settings', 'advamentor' ) ] ); $this->add_control( 'advanced_pricing_table_style', [ 'label' => esc_html__( 'Pricing Style', 'advamentor' ), 'type' => Controls_Manager::SELECT, 'default' => 'style-1', 'label_block' => false, 'options' => [ 'style-1' => esc_html__( 'Style 1', 'advamentor' ), 'style-2' => esc_html__( 'Style 2', 'advamentor' ), 'style-3' => esc_html__( 'Style 3', 'advamentor' ), 'style-4' => esc_html__( 'Style 4', 'advamentor' ), ], ] ); /** * Condition: 'advanced_pricing_table_featured_or_not' => 'yes' */ $this->add_control( 'advanced_pricing_table_icon_enabled', [ 'label' => esc_html__( 'List Icon', 'advamentor' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'show', 'default' => 'show', ] ); $this->add_control( 'advanced_pricing_table_title', [ 'label' => esc_html__( 'Title', 'advamentor' ), 'type' => Controls_Manager::TEXT, 'label_block' => false, 'default' => esc_html__( 'Startup', 'advamentor' ) ] ); /** * Condition: 'advanced_pricing_table_style' => 'style-2' */ $this->add_control( 'advanced_pricing_table_sub_title', [ 'label' => esc_html__( 'Sub Title', 'advamentor' ), 'type' => Controls_Manager::TEXT, 'label_block' => false, 'default' => esc_html__( 'A tagline here.', 'advamentor' ), 'condition' => [ 'advanced_pricing_table_style' => [ 'style-2', 'style-3', 'style-4' ] ] ] ); /** * Condition: 'advanced_pricing_table_style' => 'style-2' */ $this->add_control( 'advanced_pricing_table_style_2_icon', [ 'label' => esc_html__( 'Icon', 'advamentor' ), 'type' => Controls_Manager::ICON, 'default' => 'fa fa-home', 'condition' => [ 'advanced_pricing_table_style' => 'style-2' ] ] ); $this->end_controls_section(); /** * Pricing Table Price */ $this->start_controls_section( 'advanced_pricing_table_price_section', [ 'label' => esc_html__( 'Price', 'advamentor' ) ] ); $this->add_control( 'advanced_pricing_table_price', [ 'label' => esc_html__( 'Price', 'advamentor' ), 'type' => Controls_Manager::TEXT, 'label_block' => false, 'default' => esc_html__( '149', 'advamentor' ) ] ); $this->add_control( 'advanced_pricing_table_onsale', [ 'label' => __( 'On Sale?', 'advamentor' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'no', 'label_on' => __( 'Yes', 'advamentor' ), 'label_off' => __( 'No', 'advamentor' ), 'return_value' => 'yes', ] ); $this->add_control( 'advanced_pricing_table_onsale_price', [ 'label' => esc_html__( 'Sale Price', 'advamentor' ), 'type' => Controls_Manager::TEXT, 'label_block' => false, 'default' => esc_html__( '99', 'advamentor' ), 'condition' => [ 'advanced_pricing_table_onsale' => 'yes' ] ] ); $this->add_control( 'advanced_pricing_table_price_cur', [ 'label' => esc_html__( 'Price Currency', 'advamentor' ), 'type' => Controls_Manager::TEXT, 'label_block' => false, 'default' => esc_html__( '$', 'advamentor' ), ] ); $this->add_control( 'advanced_pricing_table_price_cur_placement', [ 'label' => esc_html__( 'Currency Placement', 'advamentor' ), 'type' => Controls_Manager::SELECT, 'default' => 'left', 'label_block' => false, 'options' => [ 'left' => esc_html__( 'Left', 'advamentor' ), 'right' => esc_html__( 'Right', 'advamentor' ), ], ] ); $this->add_control( 'advanced_pricing_table_price_period', [ 'label' => esc_html__( 'Price Period (per)', 'advamentor' ), 'type' => Controls_Manager::TEXT, 'label_block' => false, 'default' => esc_html__( 'month', 'advamentor' ) ] ); $this->add_control( 'advanced_pricing_table_period_separator', [ 'label' => esc_html__( 'Period Separator', 'advamentor' ), 'type' => Controls_Manager::TEXT, 'label_block' => false, 'default' => esc_html__( '/', 'advamentor' ) ] ); $this->end_controls_section(); /** * Pricing Table Feature */ $this->start_controls_section( 'advanced_pricing_table_feature', [ 'label' => esc_html__( 'Feature', 'advamentor' ) ] ); $this->add_control( 'advanced_pricing_table_items', [ 'type' => Controls_Manager::REPEATER, 'seperator' => 'before', 'default' => [ [ 'advanced_pricing_table_item' => 'Unlimited calls' ], [ 'advanced_pricing_table_item' => 'Free hosting' ], [ 'advanced_pricing_table_item' => '500 MB of storage space' ], [ 'advanced_pricing_table_item' => '500 MB Bandwidth' ], [ 'advanced_pricing_table_item' => '24/7 support' ] ], 'fields' => [ [ 'name' => 'advanced_pricing_table_item', 'label' => esc_html__( 'List Item', 'advamentor' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'default' => esc_html__( 'Pricing table list item', 'advamentor' ) ], [ 'name' => 'advanced_pricing_table_list_icon', 'label' => esc_html__( 'List Icon', 'advamentor' ), 'type' => Controls_Manager::ICON, 'label_block' => false, 'default' => 'fa fa-check', ], [ 'name' => 'advanced_pricing_table_icon_mood', 'label' => esc_html__( 'Item Active?', 'advamentor' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'yes' ], [ 'name' => 'advanced_pricing_table_list_icon_color', 'label' => esc_html__( 'Icon Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '#d7d7d7', ], [ 'name' => 'advanced_pricing_item_tooltip', 'label' => esc_html__( 'Enable Tooltip?', 'advamentor' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => false ], [ 'name' => 'advanced_pricing_item_tooltip_content', 'label' => esc_html__( 'Tooltip Content', 'advamentor' ), 'type' => Controls_Manager::TEXTAREA, 'default' => __( "I'm a awesome tooltip!!", 'advamentor' ), 'condition' => [ 'advanced_pricing_item_tooltip' => 'yes' ] ], [ 'name' => 'advanced_pricing_item_tooltip_side', 'label' => esc_html__( 'Tooltip Side', 'advamentor' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'advamentor' ), 'icon' => 'eicon-h-align-left', ], 'top' => [ 'title' => __( 'Top', 'advamentor' ), 'icon' => 'eicon-v-align-top', ], 'right' => [ 'title' => __( 'Right', 'advamentor' ), 'icon' => 'eicon-h-align-right', ], 'bottom' => [ 'title' => __( 'Bottom', 'advamentor' ), 'icon' => 'eicon-v-align-bottom', ], ], 'default' => 'top', 'condition' => [ 'advanced_pricing_item_tooltip' => 'yes' ] ], [ 'name' => 'advanced_pricing_item_tooltip_trigger', 'label' => esc_html__( 'Tooltip Trigger', 'advamentor' ), 'type' => Controls_Manager::SELECT2, 'options' => [ 'hover' => __( 'Hover', 'advamentor' ), 'click' => __( 'Click', 'advamentor' ), ], 'default' => 'hover', 'condition' => [ 'advanced_pricing_item_tooltip' => 'yes' ] ], [ 'name' => 'advanced_pricing_item_tooltip_animation', 'label' => esc_html__( 'Tooltip Animation', 'advamentor' ), 'type' => Controls_Manager::SELECT2, 'options' => [ 'fade' => __( 'Fade', 'advamentor' ), 'grow' => __( 'Grow', 'advamentor' ), 'swing' => __( 'Swing', 'advamentor' ), 'slide' => __( 'Slide', 'advamentor' ), 'fall' => __( 'Fall', 'advamentor' ), ], 'default' => 'fade', 'condition' => [ 'advanced_pricing_item_tooltip' => 'yes' ] ], [ 'name' => 'pricing_item_tooltip_animation_duration', 'label' => esc_html__( 'Animation Duration', 'advamentor' ), 'type' => Controls_Manager::TEXT, 'default' => 300, 'condition' => [ 'advanced_pricing_item_tooltip' => 'yes' ] ], [ 'name' => 'advanced_pricing_table_toolip_arrow', 'label' => esc_html__( 'Tooltip Arrow', 'advamentor' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'yes', 'condition' => [ 'advanced_pricing_item_tooltip' => 'yes' ] ], [ 'name' => 'advanced_pricing_item_tooltip_theme', 'label' => esc_html__( 'Tooltip Theme', 'advamentor' ), 'type' => Controls_Manager::SELECT2, 'options' => [ 'default' => __( 'Default', 'advamentor' ), 'noir' => __( 'Noir', 'advamentor' ), 'light' => __( 'Light', 'advamentor' ), 'punk' => __( 'Punk', 'advamentor' ), 'shadow' => __( 'Shadow', 'advamentor' ), 'borderless'=> __( 'Borderless', 'advamentor' ), ], 'default' => 'noir', 'condition' => [ 'advanced_pricing_item_tooltip' => 'yes' ] ], ], 'title_field' => '{{advanced_pricing_table_item}}', ] ); $this->end_controls_section(); /** * Pricing Table Footer */ $this->start_controls_section( 'advanced_pricing_table_footerr', [ 'label' => esc_html__( 'Footer', 'advamentor' ) ] ); $this->add_control( 'advanced_pricing_table_button_icon', [ 'label' => esc_html__( 'Button Icon', 'advamentor' ), 'type' => Controls_Manager::ICON, ] ); $this->add_control( 'advanced_pricing_table_button_icon_alignment', [ 'label' => esc_html__( 'Icon Position', 'advamentor' ), 'type' => Controls_Manager::SELECT, 'default' => 'left', 'options' => [ 'left' => esc_html__( 'Before', 'advamentor' ), 'right' => esc_html__( 'After', 'advamentor' ), ], 'condition' => [ 'advanced_pricing_table_button_icon!' => '', ], ] ); $this->add_control( 'advanced_pricing_table_button_icon_indent', [ 'label' => esc_html__( 'Icon Spacing', 'advamentor' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'max' => 60, ], ], 'condition' => [ 'advanced_pricing_table_button_icon!' => '', ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing-button i.fa-icon-left' => 'margin-right: {{SIZE}}px;', '{{WRAPPER}} .advanced-pricing-button i.fa-icon-right' => 'margin-left: {{SIZE}}px;', ], ] ); $this->add_control( 'advanced_pricing_table_btn', [ 'label' => esc_html__( 'Button Text', 'advamentor' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'default' => esc_html__( 'Choose Plan', 'advamentor' ), ] ); $this->add_control( 'advanced_pricing_table_btn_link', [ 'label' => esc_html__( 'Button Link', 'advamentor' ), 'type' => Controls_Manager::URL, 'label_block' => true, 'default' => [ 'url' => '#', 'is_external' => '', ], 'show_external' => true, ] ); $this->end_controls_section(); /** * Pricing Table Rebon */ $this->start_controls_section( 'advanced_pricing_table_featured', [ 'label' => esc_html__( 'Ribbon', 'advamentor' ) ] ); $this->add_control( 'advanced_pricing_table_featured_or_not', [ 'label' => esc_html__( 'Featured?', 'advamentor' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'no', ] ); $this->add_control( 'advanced_pricing_table_featured_styles', [ 'label' => esc_html__( 'Ribbon Style', 'advamentor' ), 'type' => Controls_Manager::SELECT, 'default' => 'ribbon-1', 'options' => [ 'ribbon-1' => esc_html__( 'Style 1', 'advamentor' ), 'ribbon-2' => esc_html__( 'Style 2', 'advamentor' ), 'ribbon-3' => esc_html__( 'Style 3', 'advamentor' ), ], 'condition' => [ 'advanced_pricing_table_featured_or_not' => 'yes', ], ] ); /** * Condition: 'advanced_pricing_table_featured_styles' => [ 'ribbon-2', 'ribbon-3' ], 'advanced_pricing_table_featured_or_not' => 'yes' */ $this->add_control( 'advanced_pricing_table_featured_tag_text', [ 'label' => esc_html__( 'Featured Tag Text', 'advamentor' ), 'type' => Controls_Manager::TEXT, 'label_block' => false, 'default' => esc_html__( 'Featured', 'advamentor' ), 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-1 .advanced-pricing-item.featured:before' => 'content: "{{VALUE}}";', '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item.featured:before' => 'content: "{{VALUE}}";', ], 'condition' => [ 'advanced_pricing_table_featured_styles' => [ 'ribbon-2', 'ribbon-3' ], 'advanced_pricing_table_featured_or_not' => 'yes' ] ] ); $this->end_controls_section(); /** * ------------------------------------------- * Tab Style (Pricing Table Style) * ------------------------------------------- */ $this->start_controls_section( 'advanced_pricing_table_style_settings', [ 'label' => esc_html__( 'Pricing Table Style', 'advamentor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'advanced_pricing_table_bg_color', [ 'label' => esc_html__( 'Background Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-item' => 'background-color: {{VALUE}};', ], ] ); $this->add_responsive_control( 'advanced_pricing_table_container_padding', [ 'label' => esc_html__( 'Padding', 'advamentor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-item' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'advanced_pricing_table_container_margin', [ 'label' => esc_html__( 'Margin', 'advamentor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-item' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'advanced_pricing_table_border', 'label' => esc_html__( 'Border Type', 'advamentor' ), 'selector' => '{{WRAPPER}} .advanced-pricing .advanced-pricing-item', ] ); $this->add_control( 'advanced_pricing_table_border_radius', [ 'label' => esc_html__( 'Border Radius', 'advamentor' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 4, ], 'range' => [ 'px' => [ 'max' => 50, ], ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-item' => 'border-radius: {{SIZE}}px;', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'advanced_pricing_table_shadow', 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-item', ], ] ); $this->add_responsive_control( 'advanced_pricing_table_content_alignment', [ 'label' => esc_html__( 'Content Alignment', 'advamentor' ), 'type' => Controls_Manager::CHOOSE, 'label_block' => true, 'options' => [ 'left' => [ 'title' => esc_html__( 'Left', 'advamentor' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'advamentor' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => esc_html__( 'Right', 'advamentor' ), 'icon' => 'fa fa-align-right', ], ], 'default' => 'center', 'prefix_class' => 'advanced-pricing-content-align-', ] ); $this->add_responsive_control( 'advanced_pricing_table_content_button_alignment', [ 'label' => esc_html__( 'Button Alignment', 'advamentor' ), 'type' => Controls_Manager::CHOOSE, 'label_block' => true, 'options' => [ 'left' => [ 'title' => esc_html__( 'Left', 'advamentor' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'advamentor' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => esc_html__( 'Right', 'advamentor' ), 'icon' => 'fa fa-align-right', ], ], 'default' => 'center', 'prefix_class' => 'advanced-pricing-button-align-', ] ); $this->end_controls_section(); /** * ------------------------------------------- * Style (Header) * ------------------------------------------- */ $this->start_controls_section( 'advanced_pricing_table_header_style_settings', [ 'label' => esc_html__( 'Header', 'advamentor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'advanced_pricing_table_title_heading', [ 'label' => esc_html__( 'Title Style', 'advamentor' ), 'type' => Controls_Manager::HEADING, ] ); $this->add_control( 'advanced_pricing_table_title_color', [ 'label' => esc_html__( 'Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing-item .header .title' => 'color: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-3 .advanced-pricing-item:hover .header:after' => 'background: {{VALUE}};', ], ] ); $this->add_control( 'advanced_pricing_table_style_2_title_bg_color', [ 'label' => esc_html__( 'Background Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '#C8E6C9', 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item .header' => 'background: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-4 .advanced-pricing-item .header' => 'background: {{VALUE}};', ], 'condition' => [ 'advanced_pricing_table_style' => ['style-2'] ] ] ); $this->add_control( 'advanced_pricing_table_style_1_title_line_color', [ 'label' => esc_html__( 'Line Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '#dbdbdb', 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-1 .advanced-pricing-item .header:after' => 'background: {{VALUE}};', ], 'condition' => [ 'advanced_pricing_table_style' => ['style-1'] ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'advanced_pricing_table_title_typography', 'selector' => '{{WRAPPER}} .advanced-pricing-item .header .title', ] ); $this->add_control( 'advanced_pricing_table_subtitle_heading', [ 'label' => esc_html__( 'Subtitle Style', 'advamentor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', 'condition' => [ 'advanced_pricing_table_style!' => 'style-1' ] ] ); $this->add_control( 'advanced_pricing_table_subtitle_color', [ 'label' => esc_html__( 'Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing-item .header .subtitle' => 'color: {{VALUE}};', ], 'condition' => [ 'advanced_pricing_table_style!' => 'style-1' ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'advanced_pricing_table_subtitle_typography', 'selector' => '{{WRAPPER}} .advanced-pricing-item .header .subtitle', 'condition' => [ 'advanced_pricing_table_style!' => 'style-1' ] ] ); $this->end_controls_section(); /** * ------------------------------------------- * Style (Pricing) * ------------------------------------------- */ $this->start_controls_section( 'advanced_pricing_table_title_style_settings', [ 'label' => esc_html__( 'Pricing', 'advamentor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'advanced_pricing_table_price_tag_onsale_heading', [ 'label' => esc_html__( 'Original Price', 'advamentor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before' ] ); $this->add_control( 'advanced_pricing_table_pricing_onsale_color', [ 'label' => esc_html__( 'Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '#999', 'selectors' => [ '{{WRAPPER}} .advanced-pricing-item .muted-price' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'advanced_pricing_table_price_tag_onsale_typography', 'selector' => '{{WRAPPER}} .advanced-pricing-item .muted-price', ] ); $this->add_control( 'advanced_pricing_table_price_tag_heading', [ 'label' => esc_html__( 'Sale Price', 'advamentor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before' ] ); $this->add_control( 'advanced_pricing_table_pricing_color', [ 'label' => esc_html__( 'Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing-item .price-tag' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'advanced_pricing_table_price_tag_typography', 'selector' => '{{WRAPPER}} .advanced-pricing-item .price-tag', ] ); $this->add_control( 'advanced_pricing_table_price_currency_heading', [ 'label' => esc_html__( 'Currency', 'advamentor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before' ] ); $this->add_control( 'advanced_pricing_table_pricing_curr_color', [ 'label' => esc_html__( 'Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '#00C853', 'selectors' => [ '{{WRAPPER}} .advanced-pricing-item .price-tag .price-currency' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'advanced_pricing_table_price_cur_typography', 'selector' => '{{WRAPPER}} .advanced-pricing-item .price-currency', ] ); $this->add_responsive_control( 'advanced_pricing_table_price_cur_margin', [ 'label' => esc_html__( 'Margin', 'advamentor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing-item .price-currency' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'advanced_pricing_table_pricing_period_heading', [ 'label' => esc_html__( 'Pricing Period', 'advamentor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before' ] ); $this->add_control( 'advanced_pricing_table_pricing_period_color', [ 'label' => esc_html__( 'Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing-item .price-period' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'advanced_pricing_table_price_preiod_typography', 'selector' => '{{WRAPPER}} .advanced-pricing-item .price-period', ] ); $this->end_controls_section(); /** * ------------------------------------------- * Style (Feature List) * ------------------------------------------- */ $this->start_controls_section( 'advanced_pricing_table_style_featured_list_settings', [ 'label' => esc_html__( 'Feature List', 'advamentor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'advanced_pricing_table_list_item_color', [ 'label' => esc_html__( 'Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing-item .body ul li' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'advanced_pricing_table_list_disable_item_color', [ 'label' => esc_html__( 'Disable item color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-item ul li.disable-item' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'advanced_pricing_table_list_item_typography', 'selector' => '{{WRAPPER}} .advanced-pricing-item .body ul li', ] ); $this->end_controls_section(); /** * ------------------------------------------- * Style (Ribbon) * ------------------------------------------- */ $this->start_controls_section( 'advanced_pricing_table_style_3_featured_tag_settings', [ 'label' => esc_html__( 'Ribbon', 'advamentor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'advanced_pricing_table_style_1_featured_bar_color', [ 'label' => esc_html__( 'Line Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '#00C853', 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-1 .advanced-pricing-item.ribbon-1:before' => 'background: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item.ribbon-1:before' => 'background: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-3 .advanced-pricing-item.ribbon-1:before' => 'background: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-4 .advanced-pricing-item.ribbon-1:before' => 'background: {{VALUE}};', ], 'condition' => [ 'advanced_pricing_table_featured_or_not' => 'yes', 'advanced_pricing_table_featured_styles' => 'ribbon-1' ], ] ); $this->add_control( 'advanced_pricing_table_style_1_featured_bar_height', [ 'label' => esc_html__( 'Line Height', 'advamentor' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 3 ], 'range' => [ 'px' => [ 'max' => 50, ], ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-1 .advanced-pricing-item.ribbon-1:before' => 'height: {{SIZE}}px;', '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item.ribbon-1:before' => 'height: {{SIZE}}px;', '{{WRAPPER}} .advanced-pricing.style-3 .advanced-pricing-item.ribbon-1:before' => 'height: {{SIZE}}px;', '{{WRAPPER}} .advanced-pricing.style-4 .advanced-pricing-item.ribbon-1:before' => 'height: {{SIZE}}px;', ], 'condition' => [ 'advanced_pricing_table_featured_or_not' => 'yes', 'advanced_pricing_table_featured_styles' => 'ribbon-1' ], ] ); $this->add_control( 'advanced_pricing_table_featured_tag_font_size', [ 'label' => esc_html__( 'Font Size', 'advamentor' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 10 ], 'range' => [ 'px' => [ 'max' => 18, ], ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-1 .advanced-pricing-item.ribbon-2:before' => 'font-size: {{SIZE}}px;', '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item.ribbon-2:before' => 'font-size: {{SIZE}}px;', '{{WRAPPER}} .advanced-pricing.style-3 .advanced-pricing-item.ribbon-2:before' => 'font-size: {{SIZE}}px;', '{{WRAPPER}} .advanced-pricing.style-4 .advanced-pricing-item.ribbon-2:before' => 'font-size: {{SIZE}}px;', '{{WRAPPER}} .advanced-pricing.style-1 .advanced-pricing-item.ribbon-3:before' => 'font-size: {{SIZE}}px;', '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item.ribbon-3:before' => 'font-size: {{SIZE}}px;', '{{WRAPPER}} .advanced-pricing.style-3 .advanced-pricing-item.ribbon-3:before' => 'font-size: {{SIZE}}px;', '{{WRAPPER}} .advanced-pricing.style-4 .advanced-pricing-item.ribbon-3:before' => 'font-size: {{SIZE}}px;', ], 'condition' => [ 'advanced_pricing_table_featured_or_not' => 'yes', 'advanced_pricing_table_featured_styles' => ['ribbon-2', 'ribbon-3'] ], ] ); $this->add_control( 'advanced_pricing_table_featured_tag_text_color', [ 'label' => esc_html__( 'Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-1 .advanced-pricing-item.ribbon-2:before' => 'color: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item.ribbon-2:before' => 'color: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-3 .advanced-pricing-item.ribbon-2:before' => 'color: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-4 .advanced-pricing-item.ribbon-2:before' => 'color: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-1 .advanced-pricing-item.ribbon-3:before' => 'color: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item.ribbon-3:before' => 'color: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-3 .advanced-pricing-item.ribbon-3:before' => 'color: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-4 .advanced-pricing-item.ribbon-3:before' => 'color: {{VALUE}};', ], 'condition' => [ 'advanced_pricing_table_featured_or_not' => 'yes', 'advanced_pricing_table_featured_styles' => ['ribbon-2', 'ribbon-3'] ], ] ); $this->add_control( 'advanced_pricing_table_featured_tag_bg_color', [ 'label' => esc_html__( 'Background Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-1 .advanced-pricing-item.ribbon-2:before' => 'background: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-1 .advanced-pricing-item.ribbon-2:after' => 'border-bottom-color: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-1 .advanced-pricing-item.ribbon-3:before' => 'background: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item.ribbon-2:before' => 'background: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item.ribbon-2:after' => 'border-bottom-color: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item.ribbon-3:before' => 'background: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-3 .advanced-pricing-item.ribbon-2:before' => 'background: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-3 .advanced-pricing-item.ribbon-2:after' => 'border-bottom-color: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-3 .advanced-pricing-item.ribbon-3:before' => 'background: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-4 .advanced-pricing-item.ribbon-2:before' => 'background: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-4 .advanced-pricing-item.ribbon-2:after' => 'border-bottom-color: {{VALUE}};', '{{WRAPPER}} .advanced-pricing.style-4 .advanced-pricing-item.ribbon-3:before' => 'background: {{VALUE}};', ], 'condition' => [ 'advanced_pricing_table_featured_or_not' => 'yes', 'advanced_pricing_table_featured_styles' => ['ribbon-2', 'ribbon-3'] ], ] ); $this->end_controls_section(); /** * ------------------------------------------- * Tab Style (Tooltip Style) * ------------------------------------------- */ $this->start_controls_section( 'advanced_pricing_table_tooltip_style', [ 'label' => esc_html__( 'Tooltip', 'advamentor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'advanced_pricing_table_tooltip_bg_color', [ 'label' => esc_html__( 'Background Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ 'div.tooltipster-base.tooltipster-sidetip .tooltipster-box' => 'background-color: {{VALUE}}' ] ] ); $this->add_control( 'advanced_pricing_table_tooltip_arrow_bg', [ 'label' => esc_html__( 'Arrow Background', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '#3d3d3d', 'selectors' => [ 'div.tooltipster-base.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border, div.tooltipster-base.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background' => 'border-top-color: {{VALUE}};', 'div.tooltipster-base.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-border, .tooltipster-base.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-background' => 'border-right-color: {{VALUE}};', 'div.tooltipster-base.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-border, div.tooltipster-base.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-background' => 'border-left-color: {{VALUE}};', 'div.tooltipster-base.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-border, div.tooltipster-base.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-background' => 'border-bottom-color: {{VALUE}};', ], ] ); $this->add_control( 'advanced_pricing_table_tooltip_color', [ 'label' => esc_html__( 'Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ 'div.tooltipster-base.tooltipster-sidetip .tooltipster-box .tooltipster-content' => 'color: {{VALUE}};', ], ] ); $this->add_responsive_control( 'advanced_pricing_table_tooltip_padding', [ 'label' => esc_html__( 'Padding', 'advamentor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => 'px', 'description' => __( 'Refresh your browser after saving the padding value for see changes.', 'advamentor' ), 'selectors' => [ 'div.tooltipster-base.tooltipster-sidetip .tooltipster-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'advanced_pricing_table_tooltip_border', 'label' => esc_html__( 'Border Type', 'advamentor' ), 'selector' => '.tooltipster-base.tooltipster-sidetip .tooltipster-box' ] ); $this->add_control( 'advanced_pricing_table_tooltip_border_radius', [ 'label' => esc_html__( 'Border Radius', 'advamentor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ '%' => [ 'max' => 100, 'step' => 1 ], 'px' => [ 'max' => 200, 'step' => 1 ], ], 'selectors' => [ '.tooltipster-base.tooltipster-sidetip .tooltipster-box' => 'border-radius: {{SIZE}}{{UNIT}};' ], ] ); $this->add_control( 'advanced_pricing_table_tooltip_arrow_heading', [ 'label' => __( 'Tooltip Arrow', 'advamentor' ), 'separator' => 'before', 'type' => Controls_Manager::HEADING ] ); $this->add_control( 'advanced_pricing_table_tooltip_arrow_size', [ 'label' => esc_html__( 'Arrow Size', 'advamentor' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'max' => 45, 'step' => 1 ], ], 'selectors' => [ // Right Position Arrow 'div.tooltipster-base.tooltipster-sidetip.tooltipster-right .tooltipster-arrow' => 'width: calc( {{SIZE}}px * 2); height: calc( {{SIZE}}px * 2); margin-top: calc( (-{{SIZE}}px * 2) / 2 ); left: calc( (-{{SIZE}}px * 2) / 2 );', 'div.tooltipster-sidetip.tooltipster-right .tooltipster-box' => 'margin-left: calc({{SIZE}}px - 10px);', 'div.tooltipster-base.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-background,.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-border' => 'border: {{SIZE}}px solid transparent;', // Left Position Arrow '.tooltipster-sidetip.tooltipster-base.tooltipster-left .tooltipster-arrow' => 'width: calc( {{SIZE}}px * 2); height: calc( {{SIZE}}px * 2); margin-top: calc( (-{{SIZE}}px * 2) / 2 ); right: calc( (-{{SIZE}}px * 2) / 2 );', 'div.tooltipster-sidetip.tooltipster-left .tooltipster-box' => 'margin-right: calc({{SIZE}}px - 1px);', 'div.tooltipster-base.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-background, .tooltipster-sidetip.tooltipster-left .tooltipster-arrow-border' => 'border: {{SIZE}}px solid transparent;', // Top Position Arrow '.tooltipster-sidetip.tooltipster-base.tooltipster-top .tooltipster-arrow' => 'width: calc( {{SIZE}}px * 2); height: calc( {{SIZE}}px * 2); margin-left: calc( (-{{SIZE}}px * 2) / 2 ); left: 40%;top: 100%;', 'div.tooltipster-sidetip.tooltipster-top .tooltipster-box' => 'margin-bottom: -1px;', 'div.tooltipster-base.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background, .tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border' => 'border: {{SIZE}}px solid transparent;', // Bottom Position Arrow '.tooltipster-sidetip.tooltipster-base.tooltipster-bottom .tooltipster-arrow' => 'width: calc( {{SIZE}}px * 2); height: calc( {{SIZE}}px * 2); margin-left: calc( (-{{SIZE}}px * 2) / 2 ); left: 40%; top: auto; bottom: 88%;', 'div.tooltipster-base.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-background, .tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-border' => 'border: {{SIZE}}px solid transparent;', ], ] ); $this->end_controls_section(); /** * ------------------------------------------- * Tab Style (Pricing Table Icon Style) * Condition: 'advanced_pricing_table_style' => 'style-2' * ------------------------------------------- */ $this->start_controls_section( 'advanced_pricing_table_icon_settings_style2', [ 'label' => esc_html__( 'Icon Settings', 'advamentor' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'advanced_pricing_table_style' => 'style-2' ] ] ); $this->add_control( 'advanced_pricing_table_icon_bg_show', [ 'label' => __( 'Show Background', 'advamentor' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', 'label_on' => __( 'Show', 'advamentor' ), 'label_off' => __( 'Hide', 'advamentor' ), 'return_value' => 'yes', ] ); /** * Condition: 'advanced_pricing_table_icon_bg_show' => 'yes' */ $this->add_control( 'advanced_pricing_table_icon_bg_color', [ 'label' => esc_html__( 'Background Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item .advanced-pricing-icon .icon' => 'background-color: {{VALUE}};', ], 'condition' => [ 'advanced_pricing_table_icon_bg_show' => 'yes' ] ] ); /** * Condition: 'advanced_pricing_table_icon_bg_show' => 'yes' */ $this->add_control( 'advanced_pricing_table_icon_bg_hover_color', [ 'label' => esc_html__( 'Background Hover Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item:hover .advanced-pricing-icon .icon' => 'background-color: {{VALUE}};', ], 'condition' => [ 'advanced_pricing_table_icon_bg_show' => 'yes' ], 'separator'=> 'after', ] ); $this->add_control( 'advanced_pricing_table_icon_settings', [ 'label' => esc_html__( 'Icon Size', 'advamentor' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 30 ], 'range' => [ 'px' => [ 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item .advanced-pricing-icon .icon i' => 'font-size: {{SIZE}}px;', ], ] ); $this->add_control( 'advanced_pricing_table_icon_area_width', [ 'label' => esc_html__( 'Icon Area Width', 'advamentor' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 80 ], 'range' => [ 'px' => [ 'max' => 200, ], ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item .advanced-pricing-icon .icon' => 'width: {{SIZE}}px;', ], ] ); $this->add_control( 'advanced_pricing_table_icon_area_height', [ 'label' => esc_html__( 'Icon Area Height', 'advamentor' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 80 ], 'range' => [ 'px' => [ 'max' => 200, ], ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item .advanced-pricing-icon .icon' => 'height: {{SIZE}}px;', ], ] ); $this->add_control( 'advanced_pricing_table_icon_line_height', [ 'label' => esc_html__( 'Icon Alignment', 'advamentor' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 80 ], 'range' => [ 'px' => [ 'max' => 300, ], ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item .advanced-pricing-icon .icon i' => 'line-height: {{SIZE}}px;', ], ] ); $this->add_control( 'advanced_pricing_table_icon_color', [ 'label' => esc_html__( 'Icon Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item .advanced-pricing-icon .icon i' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'advanced_pricing_table_icon_hover_color', [ 'label' => esc_html__( 'Icon Hover Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item:hover .advanced-pricing-icon .icon i' => 'color: {{VALUE}};', ], 'separator' => 'after' ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'advanced_pricing_table_icon_border', 'label' => esc_html__( 'Border', 'advamentor' ), 'selector' => '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item .advanced-pricing-icon .icon', ] ); $this->add_control( 'advanced_pricing_table_icon_border_hover_color', [ 'label' => esc_html__( 'Hover Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item:hover .advanced-pricing-icon .icon' => 'border-color: {{VALUE}};', ], 'condition' => [ 'advanced_pricing_table_icon_border_border!' => '' ] ] ); $this->add_control( 'advanced_pricing_table_icon_border_radius', [ 'label' => esc_html__( 'Border Radius', 'advamentor' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 50, ], 'range' => [ 'px' => [ 'max' => 50, ], ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing.style-2 .advanced-pricing-item .advanced-pricing-icon .icon' => 'border-radius: {{SIZE}}%;', ], ] ); $this->end_controls_section(); /** * ------------------------------------------- * Tab Style (Button Style) * ------------------------------------------- */ $this->start_controls_section( 'advanced_pricing_table_btn_style_settings', [ 'label' => esc_html__( 'Button', 'advamentor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_responsive_control( 'advanced_pricing_table_btn_padding', [ 'label' => esc_html__( 'Padding', 'advamentor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'advanced_pricing_table_btn_margin', [ 'label' => esc_html__( 'Margin', 'advamentor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-button' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'advanced_pricing_table_btn_typography', 'selector' => '{{WRAPPER}} .advanced-pricing .advanced-pricing-button', ] ); $this->start_controls_tabs( 'advanced_button_tabs' ); // Normal State Tab $this->start_controls_tab( 'advanced_pricing_table_btn_normal', [ 'label' => esc_html__( 'Normal', 'advamentor' ) ] ); $this->add_control( 'advanced_pricing_table_btn_normal_text_color', [ 'label' => esc_html__( 'Text Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '#fff', 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-button' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'advanced_pricing_table_btn_normal_bg_color', [ 'label' => esc_html__( 'Background Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '#00C853', 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-button' => 'background: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'advanced_pricing_table_btn_border', 'label' => esc_html__( 'Border', 'advamentor' ), 'selector' => '{{WRAPPER}} .advanced-pricing .advanced-pricing-button', ] ); $this->add_control( 'advanced_pricing_table_btn_border_radius', [ 'label' => esc_html__( 'Border Radius', 'advamentor' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'max' => 50, ], ], 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-button' => 'border-radius: {{SIZE}}px;', ], ] ); $this->end_controls_tab(); // Hover State Tab $this->start_controls_tab( 'advanced_pricing_table_btn_hover', [ 'label' => esc_html__( 'Hover', 'advamentor' ) ] ); $this->add_control( 'advanced_pricing_table_btn_hover_text_color', [ 'label' => esc_html__( 'Text Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '#f9f9f9', 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-button:hover' => 'color: {{VALUE}};', ], ] ); $this->add_control( 'advanced_pricing_table_btn_hover_bg_color', [ 'label' => esc_html__( 'Background Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '#03b048', 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-button:hover' => 'background: {{VALUE}};', ], ] ); $this->add_control( 'advanced_pricing_table_btn_hover_border_color', [ 'label' => esc_html__( 'Border Color', 'advamentor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .advanced-pricing .advanced-pricing-button:hover' => 'border-color: {{VALUE}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'advanced_button_shadow', 'selector' => '{{WRAPPER}} .advanced-pricing .advanced-pricing-button', 'separator' => 'before' ] ); $this->end_controls_section(); } protected function render_feature_list( $settings ) { if( empty($settings['advanced_pricing_table_items']) ) return; $counter = 0; ?> get_settings(); $pricing_table_image = $this->get_settings( 'advanced_pricing_table_image' ); $pricing_table_image_url = Group_Control_Image_Size::get_attachment_image_src( $pricing_table_image['id'], 'thumbnail', $settings ); $target = $settings['advanced_pricing_table_btn_link']['is_external'] ? 'target="_blank"' : ''; $nofollow = $settings['advanced_pricing_table_btn_link']['nofollow'] ? 'rel="nofollow"' : ''; if( 'yes' === $settings['advanced_pricing_table_featured_or_not'] ) : $featured_class = 'featured '.$settings['advanced_pricing_table_featured_styles']; else : $featured_class = ''; endif; if( 'yes' === $settings['advanced_pricing_table_onsale'] ) { if( $settings['advanced_pricing_table_price_cur_placement'] == 'left' ) { $pricing = ''.$settings['advanced_pricing_table_price_cur'].''.$settings['advanced_pricing_table_price'].' '.$settings['advanced_pricing_table_price_cur'].''.$settings['advanced_pricing_table_onsale_price']; }else if( $settings['advanced_pricing_table_price_cur_placement'] == 'right' ) { $pricing = ''.$settings['advanced_pricing_table_price'].''.$settings['advanced_pricing_table_price_cur'].' '.$settings['advanced_pricing_table_onsale_price'].''.$settings['advanced_pricing_table_price_cur'].''; } }else { if( $settings['advanced_pricing_table_price_cur_placement'] == 'left' ) { $pricing = ''.$settings['advanced_pricing_table_price_cur'].''.$settings['advanced_pricing_table_price']; }else if( $settings['advanced_pricing_table_price_cur_placement'] == 'right' ) { $pricing = $settings['advanced_pricing_table_price'].''.$settings['advanced_pricing_table_price_cur'].''; } } ?>

render_feature_list( $settings ); ?>

render_feature_list( $settings ); ?>