Trabajar en Madisson

dasdadsasdasdasdasdasdasdasdasd

dasdasdasdasdasdasdasdasdasdasdasdasdasd

asdasda

start_controls_section( ‘ma_el_pricing_table_section_start’, [ ‘label’ => __(‘Pricing Contents’, ‘master-addons’ ), ] ); // Pricing Layout $this->add_control( ‘ma_el_pricing_table_layout’, [ ‘label’ => __(‘Layout’, ‘master-addons’ ), ‘type’ => Controls_Manager::SELECT, ‘default’ => ‘one’, ‘options’ => [ ‘one’ => __(‘Default’, ‘master-addons’ ), ‘two’ => __(‘Left Align Content’, ‘master-addons’ ), ‘three’ => __(‘Rounded Table’, ‘master-addons’ ), ‘four’ => __(‘Table with BG Image’, ‘master-addons’ ), ‘five’ => __(‘Skew BG Pattern’, ‘master-addons’ ), ], ] ); $this->add_control( ‘ma_el_pricing_table_highlight’, [ ‘label’ => __(‘Highlight Table?’, ‘master-addons’ ), ‘type’ => Controls_Manager::SWITCHER, ] ); $this->add_control( ‘ma_el_pricing_table_features_show’, [ ‘label’ => __(‘Show Features?’, ‘master-addons’ ), ‘default’ => ‘yes’, ‘type’ => Controls_Manager::SWITCHER, ] ); $this->end_controls_section(); // Image $this->start_controls_section( ‘ma_el_pricing_table_section_content_image’, [ ‘label’ => __(‘Image’, ‘master-addons’ ), ‘condition’ => [‘ma_el_pricing_table_layout’ => ‘four’] ] ); $this->add_group_control( Group_Control_Background::get_type(), [ ‘name’ => ‘ma_el_pricing_table_image’, ‘selector’ => ‘{{WRAPPER}} .table-bg-image’, ] ); $this->end_controls_section(); //Heading $this->start_controls_section( ‘ma_el_pricing_table_section_header’, [ ‘label’ => __(‘Header’, ‘master-addons’ ), ] ); $this->add_control( ‘ma_el_pricing_table_head_color_scheme’, [ ‘label’ => __(‘Header BG Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::SELECT, ‘default’ => ‘gradient-1’, ‘options’ => [ ‘gradient-1’ => __(‘Gradient One’, ‘master-addons’ ), ‘gradient-2’ => __(‘Gradient Two’, ‘master-addons’ ), ‘gradient-3’ => __(‘Gradient Three’, ‘master-addons’ ), ‘custom’ => __(‘Custom (Style Tab Settings)’, ‘master-addons’ ) ], ‘condition’ => [ ‘ma_el_pricing_table_layout!’ => [‘three’, ‘four’, ‘five’] ], ] ); $this->add_control( ‘ma_el_pricing_table_icon’, [ ‘label’ => esc_html__(‘Icon’, ‘master-addons’ ), ‘description’ => esc_html__(‘Please choose an icon from the list.’, ‘master-addons’ ), ‘type’ => Controls_Manager::ICONS, ‘fa4compatibility’ => ‘icon’, ‘default’ => [ ‘value’ => ‘far fa-lightbulb’, ‘library’ => ‘regular’, ], ‘render_type’ => ‘template’, ‘condition’ => [‘ma_el_pricing_table_layout’ => ‘four’], ] ); $this->add_control( ‘ma_el_pricing_table_heading’, [ ‘label’ => __(‘Title’, ‘master-addons’ ), ‘type’ => Controls_Manager::TEXT, ‘default’ => __(‘Personal’, ‘master-addons’ ), ] ); $this->add_control( ‘ma_el_pricing_table_heading_tag’, [ ‘label’ => __(‘HTML Tag’, ‘master-addons’ ), ‘type’ => Controls_Manager::SELECT, ‘options’ => Master_Addons_Helper::jltma_title_tags(), ‘default’ => ‘h3’, ] ); $this->add_control( ‘ma_el_pricing_table_sub_heading’, [ ‘label’ => __(‘Subtitle’, ‘master-addons’ ), ‘type’ => Controls_Manager::TEXT, ‘default’ => __(‘Suitable for single website’, ‘master-addons’ ), ] ); $this->end_controls_section(); //Pricing $this->start_controls_section( ‘ma_el_pricing_table_section_pricing’, [ ‘label’ => __(‘Pricing’, ‘master-addons’ ), ] ); $this->add_control( ‘ma_el_pricing_table_currency_symbol’, [ ‘label’ => __(‘Currency Symbol’, ‘master-addons’ ), ‘type’ => Controls_Manager::SELECT, ‘options’ => [ ” => __(‘None’, ‘master-addons’ ), ‘dollar’ => ‘$ ‘ . _x(‘Dollar’, ‘Currency Symbol’, ‘master-addons’ ), ‘euro’ => ‘€ ‘ . _x(‘Euro’, ‘Currency Symbol’, ‘master-addons’ ), ‘baht’ => ‘฿ ‘ . _x(‘Baht’, ‘Currency Symbol’, ‘master-addons’ ), ‘franc’ => ‘₣ ‘ . _x(‘Franc’, ‘Currency Symbol’, ‘master-addons’ ), ‘guilder’ => ‘ƒ ‘ . _x(‘Guilder’, ‘Currency Symbol’, ‘master-addons’ ), ‘krona’ => ‘kr ‘ . _x(‘Krona’, ‘Currency Symbol’, ‘master-addons’ ), ‘lira’ => ‘₤ ‘ . _x(‘Lira’, ‘Currency Symbol’, ‘master-addons’ ), ‘peseta’ => ‘&#8359 ‘ . _x(‘Peseta’, ‘Currency Symbol’, ‘master-addons’ ), ‘peso’ => ‘₱ ‘ . _x(‘Peso’, ‘Currency Symbol’, ‘master-addons’ ), ‘pound’ => ‘£ ‘ . _x(‘Pound Sterling’, ‘Currency Symbol’, ‘master-addons’ ), ‘real’ => ‘R$ ‘ . _x(‘Real’, ‘Currency Symbol’, ‘master-addons’ ), ‘ruble’ => ‘₽ ‘ . _x(‘Ruble’, ‘Currency Symbol’, ‘master-addons’ ), ‘rupee’ => ‘₨ ‘ . _x(‘Rupee’, ‘Currency Symbol’, ‘master-addons’ ), ‘indian_rupee’ => ‘₹ ‘ . _x(‘Rupee (Indian)’, ‘Currency Symbol’, ‘master-addons’ ), ‘shekel’ => ‘₪ ‘ . _x(‘Shekel’, ‘Currency Symbol’, ‘master-addons’ ), ‘yen’ => ‘¥ ‘ . _x(‘Yen/Yuan’, ‘Currency Symbol’, ‘master-addons’ ), ‘won’ => ‘₩ ‘ . _x(‘Won’, ‘Currency Symbol’, ‘master-addons’ ), ‘custom’ => __(‘Custom’, ‘master-addons’ ), ], ‘default’ => ‘dollar’, ] ); $this->add_control( ‘ma_el_pricing_table_currency_symbol_custom’, [ ‘label’ => __(‘Custom Symbol’, ‘master-addons’ ), ‘type’ => Controls_Manager::TEXT, ‘condition’ => [ ‘ma_el_pricing_table_currency_symbol’ => ‘custom’, ], ] ); $this->add_control( ‘ma_el_pricing_table_price’, [ ‘label’ => __(‘Price’, ‘master-addons’ ), ‘type’ => Controls_Manager::TEXT, ‘default’ => ‘29.99’, ] ); $this->add_control( ‘ma_el_pricing_table_sale’, [ ‘label’ => __(‘Sale’, ‘master-addons’ ), ‘type’ => Controls_Manager::SWITCHER, ] ); $this->add_control( ‘ma_el_pricing_table_original_price’, [ ‘label’ => __(‘Original Price’, ‘master-addons’ ), ‘type’ => Controls_Manager::NUMBER, ‘default’ => ’99’, ‘condition’ => [ ‘ma_el_pricing_table_sale’ => ‘yes’, ], ] ); $this->add_control( ‘ma_el_pricing_table_period’, [ ‘label’ => __(‘Period’, ‘master-addons’ ), ‘type’ => Controls_Manager::TEXT, ‘default’ => __(‘Monthly’, ‘master-addons’ ), ] ); $this->end_controls_section(); //Pricing Features $this->start_controls_section( ‘ma_el_pricing_table_section_content_features’, [ ‘label’ => __(‘Features’, ‘master-addons’ ), ‘condition’ => [ ‘ma_el_pricing_table_features_show’ => ‘yes’ ] ] ); $repeater = new Repeater(); $repeater->start_controls_tabs(‘ma_el_pricing_table_features_list_tabs’); $repeater->start_controls_tab( ‘ma_el_pricing_table_features_list_tab_normal_text’, [ ‘label’ => __(‘Text’, ‘master-addons’ ) ] ); $repeater->add_control( ‘ma_el_pricing_table_item_text’, [ ‘label’ => __(‘Text’, ‘master-addons’ ), ‘type’ => Controls_Manager::TEXT, ‘default’ => __(‘Feature’, ‘master-addons’ ), ] ); $repeater->add_control( ‘ma_el_pricing_table_item_icon_show’, [ ‘label’ => __(‘Show Icon’, ‘master-addons’ ), ‘type’ => Controls_Manager::SWITCHER, ‘default’ => ‘yes’ ] ); $repeater->add_control( ‘ma_el_pricing_table_item_icon’, [ ‘label’ => esc_html__(‘Icon’, ‘master-addons’ ), ‘description’ => esc_html__(‘Please choose an icon from the list.’, ‘master-addons’ ), ‘type’ => Controls_Manager::ICONS, ‘fa4compatibility’ => ‘icon’, ‘default’ => [ ‘value’ => ‘fas fa-check’, ‘library’ => ‘solid’, ], ‘render_type’ => ‘template’, ‘condition’ => [ ‘ma_el_pricing_table_item_icon_show!’ => ”, ], ] ); $repeater->end_controls_tab(); // Icon Style $repeater->start_controls_tab( ‘ma_el_pricing_table_features_list_tab_tooltip_icon’, [ ‘label’ => __(‘Icon’, ‘master-addons’ ), ‘condition’ => [ ‘ma_el_pricing_table_item_icon_show!’ => ”, ], ] ); $repeater->add_control( ‘ma_el_pricing_table_item_icon_color’, [ ‘label’ => __(‘Icon Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details li{{CURRENT_ITEM}} i’ => ‘color: {{VALUE}}’, ‘{{WRAPPER}} .jltma-price-table-details li{{CURRENT_ITEM}} svg path’ => ‘stroke: {{VALUE}}’, ], ] ); $repeater->add_responsive_control( ‘ma_el_pricing_table_item_icon_size’, [ ‘label’ => __(‘Icon Size’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘range’ => [ ‘px’ => [ ‘min’ => 10, ‘max’ => 100, ], ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details li{{CURRENT_ITEM}} i, {{WRAPPER}} .jltma-price-table-details li{{CURRENT_ITEM}} svg path’ => ‘font-size: {{SIZE}}{{UNIT}};’, ], ] ); $repeater->add_responsive_control( ‘ma_el_pricing_table_item_icon_padding’, [ ‘label’ => __(‘Padding’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’, ’em’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details li{{CURRENT_ITEM}} i, {{WRAPPER}} .jltma-price-table-details li{{CURRENT_ITEM}} svg path’ => ‘padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ] ); $repeater->add_responsive_control( ‘ma_el_pricing_table_item_icon_margin’, [ ‘label’ => __(‘Margin’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’, ’em’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details li{{CURRENT_ITEM}} i, {{WRAPPER}} .jltma-price-table-details li{{CURRENT_ITEM}} svg path’ => ‘margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ] ); $repeater->end_controls_tab(); // Tooltips Settings $repeater->start_controls_tab( ‘ma_el_pricing_table_features_list_tab_tooltip_text’, [ ‘label’ => __(‘Tooltip’, ‘master-addons’ ) ] ); $repeater->add_control( ‘ma_el_pricing_table_tooltip_text’, [ ‘label’ => __(‘Text’, ‘master-addons’ ), ‘type’ => Controls_Manager::TEXTAREA, ] ); $repeater->add_control( ‘ma_el_pricing_table_tooltip_placement’, [ ‘label’ => __(‘Placement’, ‘master-addons’ ), ‘type’ => Controls_Manager::SELECT, ‘default’ => ‘top’, ‘options’ => [ ‘top’ => __(‘Top’, ‘master-addons’ ), ‘bottom’ => __(‘Bottom’, ‘master-addons’ ), ‘left’ => __(‘Left’, ‘master-addons’ ), ‘right’ => __(‘Right’, ‘master-addons’ ), ], ‘condition’ => [ ‘ma_el_pricing_table_tooltip_text!’ => ”, ], ] ); $repeater->end_controls_tab(); $repeater->end_controls_tabs(); $this->add_control( ‘ma_el_pricing_table_features_list’, [ ‘type’ => Controls_Manager::REPEATER, ‘fields’ => $repeater->get_controls(), ‘default’ => [ [ ‘ma_el_pricing_table_item_text’ => __(‘Feature #1’, ‘master-addons’ ), ‘ma_el_pricing_table_item_icon’ => ‘fa fa-check’, ‘ma_el_pricing_table_tooltip_text’ => ‘Feature One Tooltip’, ], [ ‘ma_el_pricing_table_item_text’ => __(‘Feature #2’, ‘master-addons’ ), ‘ma_el_pricing_table_item_icon’ => ‘fa fa-check’, ‘ma_el_pricing_table_tooltip_text’ => ‘Feature Two Tooltip’, ], [ ‘ma_el_pricing_table_item_text’ => __(‘Feature #3’, ‘master-addons’ ), ‘ma_el_pricing_table_item_icon’ => ‘fa fa-check’, ‘ma_el_pricing_table_tooltip_text’ => ‘Feature Three Tooltip’, ], ], ‘title_field’ => ‘{{{ ma_el_pricing_table_item_text }}}’, ] ); $this->end_controls_section(); //Pricing Footer $this->start_controls_section( ‘ma_el_pricing_table_section_content_footer’, [ ‘label’ => __(‘Footer’, ‘master-addons’ ), ] ); $this->add_control( ‘ma_el_pricing_table_button_text’, [ ‘label’ => __(‘Button Text’, ‘master-addons’ ), ‘type’ => Controls_Manager::TEXT, ‘default’ => __(‘Purchase Now’, ‘master-addons’ ), ] ); if (class_exists(‘Easy_Digital_Downloads’)) { $edd_posts = get_posts([‘numberposts’ => 10, ‘post_type’ => ‘download’]); $options = [‘0’ => __(‘Select EDD’, ‘master-addons’ )]; foreach ($edd_posts as $edd_post) { $options[$edd_post->ID] = $edd_post->post_title; } } else { $options = [‘0’ => __(‘Not found’, ‘master-addons’ )]; } $this->add_control( ‘ma_el_pricing_table_edd_as_button’, [ ‘label’ => __(‘Easy Digital Download Integration’, ‘master-addons’ ), ‘type’ => Controls_Manager::SWITCHER, ‘return_value’ => ‘yes’ ] ); $this->add_control( ‘ma_el_pricing_table_edd_id’, [ ‘label’ => __(‘Easy Digital Download Item’, ‘master-addons’ ), ‘type’ => Controls_Manager::SELECT, ‘default’ => ‘0’, ‘options’ => $options, ‘label_block’ => true, ‘condition’ => [ ‘ma_el_pricing_table_edd_as_button’ => ‘yes’, ], ] ); $this->add_control( ‘ma_el_pricing_table_link’, [ ‘label’ => __(‘Link’, ‘master-addons’ ), ‘type’ => Controls_Manager::URL, ‘placeholder’ => ‘http://your-link.com’, ‘default’ => [ ‘url’ => ‘#’, ], ‘condition’ => [ ‘ma_el_pricing_table_edd_as_button’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_footer_additional_info’, [ ‘label’ => __(‘Additional Info’, ‘master-addons’ ), ‘type’ => Controls_Manager::TEXTAREA, ‘default’ => __(‘This is footer text’, ‘master-addons’ ), ‘rows’ => 2, ] ); $this->end_controls_section(); //Header Style $this->start_controls_section( ‘ma_el_pricing_table_section_style_header’, [ ‘label’ => __(‘Header’, ‘master-addons’ ), ‘tab’ => Controls_Manager::TAB_STYLE, ] ); $this->add_control( ‘ma_el_pricing_table_header_bg_color_heading’, [ ‘label’ => __(‘Header Background’, ‘master-addons’ ), ‘type’ => Controls_Manager::HEADING, ‘separator’ => ‘before’, ‘condition’ => [ ‘ma_el_pricing_table_head_color_scheme’ => ‘custom’, ‘ma_el_pricing_table_layout!’ => ‘five’ ] ] ); $this->add_group_control( Group_Control_Background::get_type(), [ ‘name’ => ‘ma_el_pricing_table_header_bg_color’, ‘selector’ => ‘{{WRAPPER}} .jltma-price-table-head’, ‘condition’ => [ ‘ma_el_pricing_table_head_color_scheme’ => ‘custom’, ‘ma_el_pricing_table_layout!’ => ‘five’ ] ] ); $this->add_control( ‘ma_el_pricing_table_header_rounded_bg_color_heading’, [ ‘label’ => __(‘Rounded Background’, ‘master-addons’ ), ‘type’ => Controls_Manager::HEADING, ‘separator’ => ‘before’, ‘condition’ => [ ‘ma_el_pricing_table_layout’ => ‘three’ ] ] ); $this->add_group_control( Group_Control_Background::get_type(), [ ‘name’ => ‘ma_el_pricing_table_heading_rounded_bg_color’, ‘label’ => __(‘Rounded BG Color’, ‘master-addons’ ), ‘types’ => [‘gradient’], ‘selector’ => ‘{{WRAPPER}} .table-active-zoom .jltma-table-price-area’, ‘condition’ => [ ‘ma_el_pricing_table_layout’ => ‘three’ ] ] ); $this->add_control( ‘ma_el_pricing_table_header_pattern_bg_color_heading’, [ ‘label’ => __(‘Pattern Background’, ‘master-addons’ ), ‘type’ => Controls_Manager::HEADING, ‘separator’ => ‘before’, ‘condition’ => [ ‘ma_el_pricing_table_layout’ => ‘five’ ] ] ); $this->add_group_control( Group_Control_Background::get_type(), [ ‘name’ => ‘ma_el_pricing_table_heading_pattern_bg_color’, ‘label’ => __(‘Pattern BG Color’, ‘master-addons’ ), ‘types’ => [‘classic’, ‘gradient’], ‘selector’ => ‘{{WRAPPER}} .table-bg-pattern .jltma-price-table:before, {{WRAPPER}} .table-bg-pattern .jltma-price-table:after’, ‘condition’ => [ ‘ma_el_pricing_table_layout’ => ‘five’ ] ] ); $this->add_responsive_control( ‘ma_el_pricing_table_heading_pattern_bg_height’, [ ‘label’ => __(‘Height’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘default’ => [ ‘size’ => 280, ‘unit’ => ‘px’, ], ‘range’ => [ ‘px’ => [ ‘min’ => 25, ‘max’ => 1000, ], ], ‘selectors’ => [ ‘{{WRAPPER}} .table-bg-pattern .jltma-price-table:before’ => ‘max-height: {{SIZE}}{{UNIT}};’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_heading_after_pattern_bg_ver_pos’, [ ‘label’ => __(‘Vertical Position(Pattern Bar)’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘default’ => [ ‘size’ => 36, ‘unit’ => ‘%’, ], ‘range’ => [ ‘%’ => [ ‘min’ => 25, ‘max’ => 100, ], ], ‘selectors’ => [ ‘{{WRAPPER}} .table-bg-pattern .jltma-price-table:after’ => ‘top: {{SIZE}}{{UNIT}};’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_header_margin’, [ ‘label’ => __(‘Margin’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’, ’em’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-head’ => ‘margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_header_padding’, [ ‘label’ => __(‘Padding’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’, ’em’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-head’ => ‘padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ] ); $this->add_control( ‘ma_el_pricing_table_heading_heading_style’, [ ‘label’ => __(‘Title’, ‘master-addons’ ), ‘type’ => Controls_Manager::HEADING, ‘separator’ => ‘before’, ] ); $this->add_control( ‘ma_el_pricing_table_heading_color’, [ ‘label’ => __(‘Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-title’ => ‘color: {{VALUE}}’, ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ ‘name’ => ‘ma_el_pricing_table_heading_typography’, ‘selector’ => ‘{{WRAPPER}} .jltma-price-table-title’, ‘global’ => [ ‘default’ => Global_Typography::TYPOGRAPHY_PRIMARY, ], ] ); $this->add_control( ‘ma_el_pricing_table_heading_sub_heading_style’, [ ‘label’ => __(‘Sub Title’, ‘master-addons’ ), ‘type’ => Controls_Manager::HEADING, ‘separator’ => ‘before’, ] ); $this->add_control( ‘ma_el_pricing_table_sub_heading_color’, [ ‘label’ => __(‘Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-subheading’ => ‘color: {{VALUE}}’, ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ ‘name’ => ‘ma_el_pricing_table_sub_heading_typography’, ‘selector’ => ‘{{WRAPPER}} .jltma-price-table-subheading’, ‘global’ => [ ‘default’ => Global_Typography::TYPOGRAPHY_PRIMARY, ], ] ); $this->end_controls_section(); //Pricing Style $this->start_controls_section( ‘ma_el_pricing_table_section_style_pricing’, [ ‘label’ => __(‘Pricing’, ‘master-addons’ ), ‘tab’ => Controls_Manager::TAB_STYLE, ] ); $this->add_control( ‘ma_el_pricing_table_pricing_element_bg_color’, [ ‘label’ => __(‘Background Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-table-price-area’ => ‘background-color: {{VALUE}}’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_pricing_element_margin’, [ ‘label’ => __(‘Margin’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’, ’em’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-table-price-area’ => ‘margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_pricing_element_padding’, [ ‘label’ => __(‘Padding’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’, ’em’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-table-price-area’ => ‘padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ] ); $this->add_control( ‘ma_el_pricing_table_price_color’, [ ‘label’ => __(‘Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-table-price-area, {{WRAPPER}} .jltma-price-table-original-price, {{WRAPPER}} .jltma-table-price-currency, {{WRAPPER}} .jltma-table-price-amount, {{WRAPPER}} .jltma-fraction-price, {{WRAPPER}} .jltma-price-amount-duration’ => ‘color: {{VALUE}}’, ], ‘separator’ => ‘before’, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ ‘name’ => ‘ma_el_pricing_table_price_typography’, ‘selector’ => ‘{{WRAPPER}} .jltma-table-price-area’, ‘global’ => [ ‘default’ => Global_Typography::TYPOGRAPHY_PRIMARY, ], ] ); $this->add_control( ‘ma_el_pricing_table_heading_currency_style’, [ ‘label’ => __(‘Currency Symbol’, ‘master-addons’ ), ‘type’ => Controls_Manager::HEADING, ‘separator’ => ‘before’, ‘condition’ => [ ‘ma_el_pricing_table_currency_symbol!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_currency_size’, [ ‘label’ => __(‘Size’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘range’ => [ ‘px’ => [ ‘min’ => 0, ‘max’ => 100, ], ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-table-price-currency’ => ‘font-size: {{SIZE}}px’, ], ‘condition’ => [ ‘ma_el_pricing_table_currency_symbol!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_currency_vertical_position’, [ ‘label’ => __(‘Vertical Position’, ‘master-addons’ ), ‘type’ => Controls_Manager::CHOOSE, ‘options’ => [ ‘top’ => [ ‘title’ => __(‘Top’, ‘master-addons’ ), ‘icon’ => ‘eicon-v-align-top’, ], ‘middle’ => [ ‘title’ => __(‘Middle’, ‘master-addons’ ), ‘icon’ => ‘eicon-v-align-middle’, ], ‘bottom’ => [ ‘title’ => __(‘Bottom’, ‘master-addons’ ), ‘icon’ => ‘eicon-v-align-bottom’, ], ], ‘default’ => ‘top’, ‘selectors_dictionary’ => [ ‘top’ => ‘top’, ‘middle’ => ‘super’, ‘bottom’ => ‘bottom’, ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-table-price-currency’ => ‘vertical-align: {{VALUE}}’, ], ‘condition’ => [ ‘ma_el_pricing_table_currency_symbol!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_fractional_part_style’, [ ‘label’ => __(‘Fractional Part’, ‘master-addons’ ), ‘type’ => Controls_Manager::HEADING, ‘separator’ => ‘before’, ] ); $this->add_control( ‘ma_el_pricing_table_fractional-part_size’, [ ‘label’ => __(‘Size’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘range’ => [ ‘px’ => [ ‘min’ => 0, ‘max’ => 100, ], ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-fraction-price’ => ‘font-size: {{SIZE}}px’, ], ] ); $this->add_control( ‘ma_el_pricing_table_fractional_part_vertical_position’, [ ‘label’ => __(‘Vertical Position’, ‘master-addons’ ), ‘type’ => Controls_Manager::CHOOSE, ‘options’ => [ ‘top’ => [ ‘title’ => __(‘Top’, ‘master-addons’ ), ‘icon’ => ‘eicon-v-align-top’, ], ‘middle’ => [ ‘title’ => __(‘Middle’, ‘master-addons’ ), ‘icon’ => ‘eicon-v-align-middle’, ], ‘bottom’ => [ ‘title’ => __(‘Bottom’, ‘master-addons’ ), ‘icon’ => ‘eicon-v-align-bottom’, ], ], ‘default’ => ‘top’, ‘selectors_dictionary’ => [ ‘top’ => ‘top’, ‘middle’ => ‘super’, ‘bottom’ => ‘bottom’, ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-fraction-price’ => ‘vertical-align: {{VALUE}}’, ], ] ); $this->add_control( ‘ma_el_pricing_table_heading_original_price_style’, [ ‘label’ => __(‘Original Price’, ‘master-addons’ ), ‘type’ => Controls_Manager::HEADING, ‘separator’ => ‘before’, ‘condition’ => [ ‘ma_el_pricing_table_sale’ => ‘yes’, ‘ma_el_pricing_table_original_price!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_original_price_color’, [ ‘label’ => __(‘Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-original-price’ => ‘color: {{VALUE}}’, ], ‘condition’ => [ ‘ma_el_pricing_table_sale’ => ‘yes’, ‘ma_el_pricing_table_original_price!’ => ”, ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ ‘name’ => ‘ma_el_pricing_table_original_price_typography’, ‘selector’ => ‘{{WRAPPER}} .jltma-price-table-original-price’, ‘global’ => [ ‘default’ => Global_Typography::TYPOGRAPHY_PRIMARY, ], ‘condition’ => [ ‘ma_el_pricing_table_sale’ => ‘yes’, ‘ma_el_pricing_table_original_price!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_original_price_vertical_position’, [ ‘label’ => __(‘Vertical Position’, ‘master-addons’ ), ‘type’ => Controls_Manager::CHOOSE, ‘options’ => [ ‘top’ => [ ‘title’ => __(‘Top’, ‘master-addons’ ), ‘icon’ => ‘eicon-v-align-top’, ], ‘middle’ => [ ‘title’ => __(‘Middle’, ‘master-addons’ ), ‘icon’ => ‘eicon-v-align-middle’, ], ‘bottom’ => [ ‘title’ => __(‘Bottom’, ‘master-addons’ ), ‘icon’ => ‘eicon-v-align-bottom’, ], ], ‘selectors_dictionary’ => [ ‘top’ => ‘flex-start’, ‘middle’ => ‘center’, ‘bottom’ => ‘flex-end’, ], ‘default’ => ‘bottom’, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-original-price’ => ‘align-self: {{VALUE}}’, ], ‘condition’ => [ ‘ma_el_pricing_table_sale’ => ‘yes’, ‘ma_el_pricing_table_original_price!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_heading_period_style’, [ ‘label’ => __(‘Period’, ‘master-addons’ ), ‘type’ => Controls_Manager::HEADING, ‘separator’ => ‘before’, ‘condition’ => [ ‘ma_el_pricing_table_period!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_show_period’, [ ‘label’ => __(‘Show Dot’, ‘master-addons’ ), ‘type’ => Controls_Manager::SWITCHER, ‘default’ => ‘yes’, ‘condition’ => [ ‘ma_el_pricing_table_period!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_period_color’, [ ‘label’ => __(‘Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-amount-duration’ => ‘color: {{VALUE}}’, ], ‘condition’ => [ ‘ma_el_pricing_table_period!’ => ”, ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ ‘name’ => ‘ma_el_pricing_table_period_typography’, ‘selector’ => ‘{{WRAPPER}} .jltma-price-amount-duration’, ‘global’ => [ ‘default’ => Global_Typography::TYPOGRAPHY_PRIMARY, ], ‘condition’ => [ ‘ma_el_pricing_table_period!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_period_position’, [ ‘label’ => __(‘Position’, ‘master-addons’ ), ‘type’ => Controls_Manager::SELECT, ‘options’ => [ ‘below’ => ‘Below’, ‘beside’ => ‘Beside’, ], ‘default’ => ‘below’, ‘condition’ => [ ‘ma_el_pricing_table_period!’ => ”, ], ] ); $this->end_controls_section(); //Features Style $this->start_controls_section( ‘ma_el_pricing_table_section_style_features’, [ ‘label’ => __(‘Features’, ‘master-addons’ ), ‘tab’ => Controls_Manager::TAB_STYLE, ] ); $this->start_controls_tabs(‘tabs_style_features’); $this->start_controls_tab( ‘tab_features_normal_text’, [ ‘label’ => __(‘Normal Text’, ‘master-addons’ ) ] ); $this->add_control( ‘ma_el_pricing_table_features_list_bg_color’, [ ‘label’ => __(‘Background Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘separator’ => ‘before’, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details’ => ‘background-color: {{VALUE}}’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_features_list_padding’, [ ‘label’ => __(‘Padding’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’, ’em’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details’ => ‘padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ] ); $this->add_control( ‘ma_el_pricing_table_features_list_color’, [ ‘label’ => __(‘Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘separator’ => ‘before’, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details .jltma-tooltip-content, {{WRAPPER}} .edd_price_options li span’ => ‘color: {{VALUE}}’, ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ ‘name’ => ‘ma_el_pricing_table_features_list_typography’, ‘selector’ => ‘{{WRAPPER}} .jltma-price-table-details li .jltma-tooltip-content, {{WRAPPER}} .edd_price_options li span’, ‘global’ => [ ‘default’ => Global_Typography::TYPOGRAPHY_PRIMARY, ], ] ); $this->add_control( ‘ma_el_pricing_table_features_list_alignment’, [ ‘label’ => __(‘Alignment’, ‘master-addons’ ), ‘type’ => Controls_Manager::CHOOSE, ‘options’ => Master_Addons_Helper::jltma_content_alignment(), ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details li’ => ‘justify-content: {{VALUE}};’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_item_width’, [ ‘label’ => __(‘Width’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘size_units’ => [‘%’], ‘range’ => [ ‘%’ => [ ‘min’ => 0, ‘max’ => 100, ], ], ‘default’ => [ ‘unit’ => ‘%’, ‘size’ => 100, ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details ul’ => ‘width: {{SIZE}}{{UNIT}};’, ], ] ); $this->add_control( ‘ma_el_pricing_table_list_divider’, [ ‘label’ => __(‘Divider’, ‘master-addons’ ), ‘type’ => Controls_Manager::SWITCHER, ‘default’ => ‘yes’, ‘separator’ => ‘before’, ] ); $this->add_control( ‘ma_el_pricing_table_divider_style’, [ ‘label’ => __(‘Style’, ‘master-addons’ ), ‘type’ => Controls_Manager::SELECT, ‘options’ => [ ‘solid’ => __(‘Solid’, ‘master-addons’ ), ‘double’ => __(‘Double’, ‘master-addons’ ), ‘dotted’ => __(‘Dotted’, ‘master-addons’ ), ‘dashed’ => __(‘Dashed’, ‘master-addons’ ), ], ‘default’ => ‘solid’, ‘condition’ => [ ‘ma_el_pricing_table_list_divider’ => ‘yes’, ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details li:before’ => ‘border-top-style: {{VALUE}};’, ‘{{WRAPPER}} .jltma-pricing-tables.table-active-zoom .jltma-price-table-details li’ => ‘border-bottom-style: {{VALUE}};’, ], ] ); $this->add_control( ‘ma_el_pricing_table_divider_color’, [ ‘label’ => __(‘Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘default’ => ‘#ffc107’, ‘condition’ => [ ‘ma_el_pricing_table_list_divider’ => ‘yes’, ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details li:before’ => ‘border-top-color: {{VALUE}};’, ‘{{WRAPPER}} .jltma-pricing-tables.table-active-zoom .jltma-price-table-details li’ => ‘border-bottom-color: {{VALUE}};’, ], ] ); $this->add_control( ‘ma_el_pricing_table_divider_height’, [ ‘label’ => __(‘height’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘default’ => [ ‘size’ => 2, ‘unit’ => ‘px’, ], ‘range’ => [ ‘px’ => [ ‘min’ => 1, ‘max’ => 100, ], ], ‘condition’ => [ ‘ma_el_pricing_table_list_divider’ => ‘yes’, ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details li:before’ => ‘border-top-width: {{SIZE}}{{UNIT}};’, ‘{{WRAPPER}} .jltma-pricing-tables.table-active-zoom .jltma-price-table-details li’ => ‘border-bottom-width: {{SIZE}}{{UNIT}};’, ], ] ); $this->add_control( ‘ma_el_pricing_table_divider_width’, [ ‘label’ => __(‘Width’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘range’ => [ ‘px’ => [ ‘min’ => 45, ‘max’ => 1000, ], ], ‘condition’ => [ ‘ma_el_pricing_table_list_divider’ => ‘yes’, ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details li:before’ => ‘width: {{SIZE}}{{UNIT}};’, ‘{{WRAPPER}} .jltma-pricing-tables.table-active-zoom .jltma-price-table-details li’ => ‘width: {{SIZE}}{{UNIT}};’, ], ] ); $this->add_control( ‘ma_el_pricing_table_divider_gap’, [ ‘label’ => __(‘Gap’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘default’ => [ ‘size’ => 15, ‘unit’ => ‘px’, ], ‘range’ => [ ‘px’ => [ ‘min’ => 1, ‘max’ => 50, ], ], ‘condition’ => [ ‘ma_el_pricing_table_list_divider’ => ‘yes’, ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-details li:before’ => ‘margin-top: {{SIZE}}{{UNIT}}; margin-bottom: {{SIZE}}{{UNIT}}’, ‘{{WRAPPER}} .jltma-pricing-tables.table-active-zoom .jltma-price-table-details li’ => ‘margin-top: {{SIZE}}{{UNIT}}; margin-bottom: {{SIZE}}{{UNIT}}’, ], ] ); $this->end_controls_tab(); $this->start_controls_tab( ‘ma_el_pricing_table_tab_features_tooltip_text’, [ ‘label’ => __(‘Tooltip Text’, ‘master-addons’ ) ] ); $this->add_responsive_control( ‘ma_el_pricing_table_features_tooltip_width’, [ ‘label’ => esc_html__(‘Width’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘size_units’ => [ ‘px’, ’em’, ], ‘range’ => [ ‘px’ => [ ‘min’ => 50, ‘max’ => 500, ], ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item .jltma-tooltip-text’ => ‘width: {{SIZE}}{{UNIT}};’, ], ‘render_type’ => ‘template’, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ ‘name’ => ‘ma_el_pricing_table_features_tooltip_typography’, ‘selector’ => ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item .jltma-tooltip-text’, ] ); $this->add_control( ‘ma_el_pricing_table_features_tooltip_color’, [ ‘label’ => esc_html__(‘Text Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item .jltma-tooltip-text’ => ‘color: {{VALUE}}’, ], ] ); $this->add_control( ‘ma_el_pricing_table_features_tooltip_text_align’, [ ‘label’ => esc_html__(‘Text Alignment’, ‘master-addons’ ), ‘type’ => Controls_Manager::CHOOSE, ‘default’ => ‘center’, ‘options’ => Master_Addons_Helper::jltma_content_alignment(), ‘selectors’ => [ ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item .jltma-tooltip-text’ => ‘text-align: {{VALUE}};’, ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ ‘name’ => ‘ma_el_pricing_table_features_tooltip_background’, ‘selector’ => ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item .jltma-tooltip-text’, ] ); $this->add_control( ‘ma_el_pricing_table_features_tooltip_arrow_color’, [ ‘label’ => esc_html__(‘Arrow Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item.tooltip-top .jltma-tooltip-text:after’ => ‘border-color: {{VALUE}} transparent transparent transparent’, ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item.tooltip-right .jltma-tooltip-text:after’ => ‘border-color: transparent {{VALUE}} transparent transparent’, ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item.tooltip-left .jltma-tooltip-text:after’ => ‘border-color: transparent transparent transparent {{VALUE}}’, ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item.tooltip-bottom .jltma-tooltip-text:after’ => ‘border-color: transparent transparent {{VALUE}} transparent’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_features_tooltip_padding’, [ ‘label’ => __(‘Padding’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item .jltma-tooltip-text’ => ‘padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ‘render_type’ => ‘template’, ] ); $this->add_group_control( Group_Control_Border::get_type(), [ ‘name’ => ‘ma_el_pricing_table_features_tooltip_border’, ‘label’ => esc_html__(‘Border’, ‘master-addons’ ), ‘placeholder’ => ‘1px’, ‘default’ => ‘1px’, ‘selector’ => ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item .jltma-tooltip-text’, ] ); $this->add_responsive_control( ‘ma_el_pricing_table_features_tooltip_border_radius’, [ ‘label’ => __(‘Border Radius’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item .jltma-tooltip-text’ => ‘border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ ‘name’ => ‘ma_el_pricing_table_features_tooltip_box_shadow’, ‘selector’ => ‘{{WRAPPER}} .jltma-tooltip .jltma-tooltip-item .jltma-tooltip-text’, ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); // Ribbon $this->start_controls_section( ‘ma_el_pricing_table_section_content_ribbon’, [ ‘label’ => __(‘Ribbon’, ‘master-addons’ ), ] ); $this->add_control( ‘ma_el_pricing_table_show_ribbon’, [ ‘label’ => __(‘Show’, ‘master-addons’ ), ‘type’ => Controls_Manager::SWITCHER, ‘separator’ => ‘before’, ] ); $this->add_control( ‘ma_el_pricing_table_ribbon_title’, [ ‘label’ => __(‘Title’, ‘master-addons’ ), ‘type’ => Controls_Manager::TEXT, ‘default’ => __(‘Popular’, ‘master-addons’ ), ‘condition’ => [ ‘ma_el_pricing_table_show_ribbon’ => ‘yes’, ], ] ); $this->add_control( ‘ma_el_pricing_table_ribbon_align’, [ ‘label’ => __(‘Align’, ‘master-addons’ ), ‘type’ => Controls_Manager::CHOOSE, ‘options’ => Master_Addons_Helper::jltma_content_alignments(), ‘default’ => ‘left’, ‘condition’ => [ ‘ma_el_pricing_table_show_ribbon’ => ‘yes’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_ribbon_horizontal_position’, [ ‘label’ => __(‘Horizontal Position’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘range’ => [ ‘px’ => [ ‘min’ => -150, ‘max’ => 150, ], ], ‘default’ => [ ‘size’ => 0, ], ‘tablet_default’ => [ ‘size’ => 0, ], ‘mobile_default’ => [ ‘size’ => 0, ], ‘condition’ => [ ‘ma_el_pricing_table_show_ribbon’ => ‘yes’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_ribbon_vertical_position’, [ ‘label’ => __(‘Vertical Position’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘range’ => [ ‘px’ => [ ‘min’ => -150, ‘max’ => 150, ], ], ‘default’ => [ ‘size’ => 0, ], ‘tablet_default’ => [ ‘size’ => 0, ], ‘mobile_default’ => [ ‘size’ => 0, ], ‘condition’ => [ ‘ma_el_pricing_table_show_ribbon’ => ‘yes’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_ribbon_rotate’, [ ‘label’ => __(‘Rotate’, ‘master-addons’ ), ‘type’ => Controls_Manager::SLIDER, ‘default’ => [ ‘size’ => 0, ], ‘tablet_default’ => [ ‘size’ => 0, ], ‘mobile_default’ => [ ‘size’ => 0, ], ‘range’ => [ ‘px’ => [ ‘min’ => -180, ‘max’ => 180, ‘step’ => 5, ], ], ‘selectors’ => [ ‘(desktop){{WRAPPER}} .jltma-price-table-ribbon-inner’ => ‘transform: translate({{ma_el_pricing_table_ribbon_horizontal_position.SIZE}}{{UNIT}}, {{ma_el_pricing_table_ribbon_vertical_position.SIZE}}{{UNIT}}) rotate({{SIZE}}deg);’, ‘(tablet){{WRAPPER}} .jltma-price-table-ribbon-inner’ => ‘transform: translate({{ma_el_pricing_table_ribbon_horizontal_position_tablet.SIZE}}{{UNIT}}, {{ma_el_pricing_table_ribbon_vertical_position_tablet.SIZE}}{{UNIT}}) rotate({{SIZE}}deg);’, ‘(mobile){{WRAPPER}} .jltma-price-table-ribbon-inner’ => ‘transform: translate({{ma_el_pricing_table_ribbon_horizontal_position_mobile.SIZE}}{{UNIT}}, {{ma_el_pricing_table_ribbon_vertical_position_mobile.SIZE}}{{UNIT}}) rotate({{SIZE}}deg);’, ], ‘condition’ => [ ‘ma_el_pricing_table_show_ribbon’ => ‘yes’, ], ] ); $this->end_controls_section(); /* Header Style */ /* Footer Style */ $this->start_controls_section( ‘ma_el_pricing_table_section_style_footer’, [ ‘label’ => __(‘Footer’, ‘master-addons’ ), ‘tab’ => Controls_Manager::TAB_STYLE, ] ); $this->add_control( ‘ma_el_pricing_table_footer_bg_color’, [ ‘label’ => __(‘Background Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-footer’ => ‘background-color: {{VALUE}}’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_footer_margin’, [ ‘label’ => __(‘Margin’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’, ’em’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-footer’ => ‘margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_footer_padding’, [ ‘label’ => __(‘Padding’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’, ’em’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-footer’ => ‘padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ] ); $this->add_control( ‘ma_el_pricing_table_heading_footer_button’, [ ‘label’ => __(‘Button’, ‘master-addons’ ), ‘type’ => Controls_Manager::HEADING, ‘separator’ => ‘before’, ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_button_size’, [ ‘label’ => __(‘Size’, ‘master-addons’ ), ‘type’ => Controls_Manager::SELECT, ‘default’ => ‘md’, ‘options’ => [ ‘md’ => __(‘Default’, ‘master-addons’ ), ‘sm’ => __(‘Small’, ‘master-addons’ ), ‘xs’ => __(‘Extra Small’, ‘master-addons’ ), ‘lg’ => __(‘Large’, ‘master-addons’ ), ‘xl’ => __(‘Extra Large’, ‘master-addons’ ), ], ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ] ); $this->start_controls_tabs(‘ma_el_pricing_table_tabs_button_style’); $this->start_controls_tab( ‘ma_el_pricing_table_tab_button_normal’, [ ‘label’ => __(‘Normal’, ‘master-addons’ ), ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_button_text_color’, [ ‘label’ => __(‘Text Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-btn’ => ‘color: {{VALUE}};’, ], ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ ‘name’ => ‘ma_el_pricing_table_button_background_color’, ‘selector’ => ‘{{WRAPPER}} .jltma-price-table-btn’, ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ ‘name’ => ‘ma_el_pricing_table_button_border’, ‘label’ => __(‘Border’, ‘master-addons’ ), ‘placeholder’ => ‘1px’, ‘default’ => ‘1px’, ‘selector’ => ‘{{WRAPPER}} .jltma-price-table-btn’, ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ‘separator’ => ‘before’, ] ); $this->add_control( ‘ma_el_pricing_table_button_border_radius’, [ ‘label’ => __(‘Border Radius’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-btn’ => ‘border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_button_margin’, [ ‘label’ => __(‘Margin’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ’em’, ‘%’], ‘separator’ => ‘before’, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-btn’ => ‘margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_button_text_padding’, [ ‘label’ => __(‘Padding’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘separator’ => ‘after’, ‘size_units’ => [‘px’, ’em’, ‘%’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-btn’ => ‘padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ ‘name’ => ‘ma_el_pricing_table_button_shadow’, ‘selector’ => ‘{{WRAPPER}} .jltma-price-table-btn’, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ ‘name’ => ‘ma_el_pricing_table_button_typography’, ‘label’ => __(‘Typography’, ‘master-addons’ ), ‘global’ => [ ‘default’ => Global_Typography::TYPOGRAPHY_PRIMARY, ], ‘selector’ => ‘{{WRAPPER}} .jltma-price-table-btn’, ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ] ); $this->end_controls_tab(); $this->start_controls_tab( ‘ma_el_pricing_table_tab_button_hover’, [ ‘label’ => __(‘Hover’, ‘master-addons’ ), ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_button_hover_color’, [ ‘label’ => __(‘Text Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-btn:hover’ => ‘color: {{VALUE}};’, ], ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_button_background_hover_color’, [ ‘label’ => __(‘Background Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-btn:hover’ => ‘background-color: {{VALUE}};’, ], ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_button_hover_border_color’, [ ‘label’ => __(‘Border Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-btn:hover’ => ‘border-color: {{VALUE}};’, ], ‘condition’ => [ ‘ma_el_pricing_table_button_text!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_button_hover_animation’, [ ‘label’ => __(‘Animation’, ‘master-addons’ ), ‘type’ => Controls_Manager::HOVER_ANIMATION, ‘condition’ => [ ‘button_text!’ => ”, ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_control( ‘ma_el_pricing_table_heading_additional_info’, [ ‘label’ => __(‘Additional Info’, ‘master-addons’ ), ‘type’ => Controls_Manager::HEADING, ‘separator’ => ‘before’, ‘condition’ => [ ‘ma_el_pricing_table_footer_additional_info!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_additional_info_color’, [ ‘label’ => __(‘Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-additional_info p’ => ‘color: {{VALUE}}’, ], ‘condition’ => [ ‘ma_el_pricing_table_footer_additional_info!’ => ”, ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ ‘name’ => ‘ma_el_pricing_table_additional_info_typography’, ‘selector’ => ‘{{WRAPPER}} .jltma-price-table-additional_info’, ‘global’ => [ ‘default’ => Global_Typography::TYPOGRAPHY_PRIMARY, ], ‘condition’ => [ ‘ma_el_pricing_table_footer_additional_info!’ => ”, ], ] ); $this->add_control( ‘ma_el_pricing_table_additional_info_margin’, [ ‘label’ => __(‘Margin’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’, ’em’], ‘default’ => [ ‘top’ => 15, ‘right’ => 30, ‘bottom’ => 0, ‘left’ => 30, ], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-additional_info’ => ‘margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}’, ], ‘condition’ => [ ‘ma_el_pricing_table_footer_additional_info!’ => ”, ], ] ); $this->end_controls_section(); //Ribbon $this->start_controls_section( ‘ma_el_pricing_table_section_style_ribbon’, [ ‘label’ => __(‘Ribbon’, ‘master-addons’ ), ‘tab’ => Controls_Manager::TAB_STYLE, ‘condition’ => [ ‘ma_el_pricing_table_show_ribbon’ => ‘yes’, ], ] ); $this->add_control( ‘ma_el_pricing_table_ribbon_bg_color’, [ ‘label’ => __(‘Background Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘default’ => ‘#6e3ded’, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-ribbon-inner’ => ‘background-color: {{VALUE}}’, ], ] ); $this->add_control( ‘ma_el_pricing_table_ribbon_text_color’, [ ‘label’ => __(‘Text Color’, ‘master-addons’ ), ‘type’ => Controls_Manager::COLOR, ‘default’ => ‘#ffffff’, ‘separator’ => ‘before’, ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-ribbon-inner’ => ‘color: {{VALUE}}’, ], ] ); $this->add_responsive_control( ‘ma_el_pricing_table_ribbon_padding’, [ ‘label’ => __(‘Padding’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’, ’em’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-ribbon-inner’ => ‘padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ] ); $this->add_control( ‘ma_el_pricing_table_ribbon_border_radius’, [ ‘label’ => __(‘Border Radius’, ‘master-addons’ ), ‘type’ => Controls_Manager::DIMENSIONS, ‘size_units’ => [‘px’, ‘%’], ‘selectors’ => [ ‘{{WRAPPER}} .jltma-price-table-ribbon-inner’ => ‘border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};’, ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ ‘name’ => ‘shadow’, ‘selector’ => ‘{{WRAPPER}} .jltma-price-table-ribbon-inner’, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ ‘name’ => ‘ribbon_typography’, ‘selector’ => ‘{{WRAPPER}} .jltma-price-table-ribbon-inner’, ‘global’ => [ ‘default’ => Global_Typography::TYPOGRAPHY_PRIMARY, ], ] ); $this->end_controls_section(); /** * Content Tab: Docs Links */ $this->start_controls_section( ‘jltma_section_help_docs’, [ ‘label’ => esc_html__(‘Help Docs’, ‘master-addons’ ), ] ); $this->add_control( ‘help_doc_1’, [ ‘type’ => Controls_Manager::RAW_HTML, ‘raw’ => sprintf(esc_html__(‘%1$s Live Demo %2$s’, ‘master-addons’ ), ‘‘, ‘‘), ‘content_classes’ => ‘jltma-editor-doc-links’, ] ); $this->add_control( ‘help_doc_2’, [ ‘type’ => Controls_Manager::RAW_HTML, ‘raw’ => sprintf(esc_html__(‘%1$s Documentation %2$s’, ‘master-addons’ ), ‘‘, ‘‘), ‘content_classes’ => ‘jltma-editor-doc-links’, ] ); $this->add_control( ‘help_doc_3’, [ ‘type’ => Controls_Manager::RAW_HTML, ‘raw’ => sprintf(esc_html__(‘%1$s Watch Video Tutorial %2$s’, ‘master-addons’ ), ‘‘, ‘‘), ‘content_classes’ => ‘jltma-editor-doc-links’, ] ); $this->end_controls_section(); $this->upgrade_to_pro_message(); } private function jltma_pt_get_currency_symbol($symbol_name) { $symbols = [ ‘dollar’ => ‘$’, ‘baht’ => ‘฿’, ‘euro’ => ‘€’, ‘franc’ => ‘₣’, ‘guilder’ => ‘ƒ’, ‘indian_rupee’ => ‘₹’, ‘krona’ => ‘kr’, ‘lira’ => ‘₤’, ‘peseta’ => ‘&#8359’, ‘peso’ => ‘₱’, ‘pound’ => ‘£’, ‘real’ => ‘R$’, ‘ruble’ => ‘₽’, ‘rupee’ => ‘₨’, ‘shekel’ => ‘₪’, ‘won’ => ‘₩’, ‘yen’ => ‘¥’, ]; return isset($symbols[$symbol_name]) ? $symbols[$symbol_name] : ”; } public function jltma_pt_render_image() { $settings = $this->get_settings(); if (empty($settings[‘ma_el_pricing_table_image’][‘url’])) { return; } $this->add_render_attribute(‘wrapper’, ‘class’, ‘jltma-pricing-table-image’); ?>
get_render_attribute_string(‘wrapper’); ?>>
get_settings(); $ma_el_pricing_table_layout = $settings[‘ma_el_pricing_table_layout’]; if ($settings[‘ma_el_pricing_table_heading’] || $settings[‘ma_el_pricing_table_sub_heading’]) { ?> add_render_attribute(‘jltma-icon’, ‘class’, $settings[‘ma_el_pricing_table_icon’]); $this->add_render_attribute(‘jltma-icon’, ‘aria-hidden’, ‘true’); } if (!$has_icon && !empty($settings[‘ma_el_pricing_table_icon’][‘value’])) { $has_icon = true; } $migrated = isset($settings[‘__fa4_migrated’][‘ma_el_pricing_table_icon’]); $is_new = empty($settings[‘icon’]) && Icons_Manager::is_migration_allowed(); if ($is_new || $migrated) { Icons_Manager::render_icon($settings[‘ma_el_pricing_table_icon’], [‘aria-hidden’ => ‘true’]); } else { echo ‘get_render_attribute_string(‘jltma-icon’) . ‘>‘; } } ?> < class=”jltma-price-table-title”> parse_text_editor($settings[‘ma_el_pricing_table_heading’]); ?> >
parse_text_editor($settings[‘ma_el_pricing_table_sub_heading’]); ?>
get_settings(); $price_symbol = ”; $price = explode(‘.’, $settings[‘ma_el_pricing_table_price’]); $intpart = $price[0]; if (!empty($settings[‘ma_el_pricing_table_currency_symbol’])) { if ($settings[‘ma_el_pricing_table_currency_symbol’] !== ‘custom’) { $price_symbol = $this->jltma_pt_get_currency_symbol($settings[‘ma_el_pricing_table_currency_symbol’]); } else { $price_symbol = $settings[‘ma_el_pricing_table_currency_symbol_custom’]; } } if ($settings[‘ma_el_pricing_table_sale’] && !empty($settings[‘ma_el_pricing_table_original_price’])) { ?> parse_text_editor($price_symbol . $settings[‘ma_el_pricing_table_original_price’]); ?> get_settings(); $price = explode(‘.’, $settings[‘ma_el_pricing_table_price’]); $intpart = $price[0]; if (!empty($intpart) || 0 <= $intpart) { ?> jltma_pt_render_price_fraction_period(); } public function jltma_pt_render_price_period() { $settings = $this->get_settings(); if (!empty($settings[‘ma_el_pricing_table_period’])) { ?> get_settings(); $price = explode(‘.’, $settings[‘ma_el_pricing_table_price’]); $intpart = $price[0]; $fraction_part = ”; if (2 === sizeof($price)) { $fraction_part = $price[1]; } $period_position = $settings[‘ma_el_pricing_table_period_position’]; $period_class = ($period_position == ‘below’) ? ‘ jltma-price-table-period-position-below’ : ‘ jltma-price-table-period-position-beside’; $period_element = ‘‘ . esc_attr($settings[‘ma_el_pricing_table_period’]) . ‘‘; if ( 0 < $fraction_part || (!empty($settings['ma_el_pricing_table_period']) && 'beside' === $period_position) ) { ?> parse_text_editor($fraction_part); ?> get_settings(); ?>
jltma_pt_render_price_symbol(); $this->jltma_pt_render_price_amount(); $this->jltma_pt_render_price_period(); } elseif ($ma_el_pricing_table_layout == ‘two’ || $ma_el_pricing_table_layout == ‘three’) { $this->jltma_pt_render_price_symbol(); $this->jltma_pt_render_price_amount(); $this->jltma_pt_render_price_period(); } elseif ($ma_el_pricing_table_layout == ‘four’) { $this->jltma_pt_render_price_symbol(); $this->jltma_pt_render_price_amount(); $this->jltma_pt_render_price_period(); } elseif ($ma_el_pricing_table_layout == ‘five’) { $this->jltma_pt_render_price_symbol(); $this->jltma_pt_render_price_amount(); $this->jltma_pt_render_price_period(); } ?>
get_settings_for_display(); $ma_el_table_head_class = $settings[‘ma_el_pricing_table_head_color_scheme’]; $this->add_render_attribute( ‘ma_el_pricing_table_head’, ‘class’, [ ‘jltma-price-table-head’, $ma_el_table_head_class ] ); ?>
get_render_attribute_string(‘ma_el_pricing_table_head’); ?>> jltma_pt_render_heading(); ?> jltma_pt_render_price(); ?>
get_settings_for_display(); $this->add_render_attribute( ‘ma_el_pricing_table_tooltip’, [ ‘class’ => ‘jltma-tooltip’ ] ); if (!empty($settings[‘ma_el_pricing_table_features_list’])) { ?>
    add_render_attribute(‘features’, ‘class’, ‘jltma-price-table-feature-text’, true); // Tooltip settings if ($item[‘ma_el_pricing_table_tooltip_text’]) { $this->add_render_attribute( ‘features’, ‘class’, [ ‘jltma-tooltip-item’, ‘tooltip-‘ . esc_attr($item[‘ma_el_pricing_table_tooltip_placement’]), ‘elementor-repeater-item-‘ . esc_attr($item[‘_id’]) ] ); } if (!empty($item[‘ma_el_pricing_table_tooltip_text’])) { $this->add_render_attribute(‘features’, ‘data-tippy’, ‘1’, true); $this->add_render_attribute(‘features’, ‘data-tippy-content’, $item[‘ma_el_pricing_table_tooltip_text’], true); } if (!empty($item[‘ma_el_pricing_table_tooltip_placement’])) { $this->add_render_attribute(‘features’, ‘data-tippy-placement’, $item[‘ma_el_pricing_table_tooltip_placement’], true); } ?>
  • get_render_attribute_string(‘features’); ?>> add_render_attribute(‘jltma-icon’, ‘class’, $item[‘ma_el_pricing_table_item_icon’]); $this->add_render_attribute(‘jltma-icon’, ‘aria-hidden’, ‘true’); } if (!$has_icon && !empty($item[‘ma_el_pricing_table_item_icon’][‘value’])) { $has_icon = true; } $migrated = isset($item[‘__fa4_migrated’][‘ma_el_pricing_table_item_icon’]); $is_new = empty($item[‘icon’]) && Icons_Manager::is_migration_allowed(); if ($is_new || $migrated) { Icons_Manager::render_icon($item[‘ma_el_pricing_table_item_icon’], [‘aria-hidden’ => ‘true’]); } else { echo ‘get_render_attribute_string(‘jltma-icon’) . ‘>‘; } } if (!empty($item[‘ma_el_pricing_table_item_text’])) { ?>
    parse_text_editor($item[‘ma_el_pricing_table_item_text’]); ?>
get_settings(); $button_size = ($settings[‘ma_el_pricing_table_button_size’]) ? ‘elementor-size-‘ . esc_attr($settings[‘ma_el_pricing_table_button_size’]) : ”; $button_animation = (!empty($settings[‘button_hover_animation’])) ? ‘ elementor-animation-‘ . esc_attr($settings[‘ma_el_pricing_table_button_hover_animation’]) : ”; $button_bg_color = ($settings[‘ma_el_pricing_table_head_color_scheme’]) ? $settings[‘ma_el_pricing_table_head_color_scheme’] : ”; $this->add_render_attribute( ‘button’, ‘class’, [ ‘elementor-button’, ‘jltma-price-table-btn’, $button_bg_color, $button_size, ] ); if (!empty($settings[‘ma_el_pricing_table_link’][‘url’])) { $this->add_render_attribute(‘button’, ‘href’, esc_url_raw($settings[‘ma_el_pricing_table_link’][‘url’])); if (!empty($settings[‘ma_el_pricing_table_link’][‘is_external’])) { $this->add_render_attribute(‘button’, ‘target’, ‘_blank’); } } if (!empty($settings[‘ma_el_pricing_table_button_hover_animation’])) { $this->add_render_attribute(‘button’, ‘class’, ‘elementor-animation-‘ . esc_attr($settings[‘button_hover_animation’])); } if (jltma_is_plugin_active(‘easy-digital-downloads/easy-digital-downloads.php’)) { if ($settings[‘ma_el_pricing_table_edd_as_button’] === ‘yes’) { echo edd_get_purchase_link([ ‘download_id’ => $settings[‘ma_el_pricing_table_edd_id’], ‘price’ => false, ‘text’ => esc_html($settings[‘ma_el_pricing_table_button_text’]), ‘class’ => ‘jltma-price-table-button elementor-button ‘ . $button_size . $button_animation, ]); } } else { if (!empty($settings[‘ma_el_pricing_table_button_text’])) { ?> get_settings(); if ($settings[‘ma_el_pricing_table_show_ribbon’] && !empty($settings[‘ma_el_pricing_table_ribbon_title’])) : $this->add_render_attribute(‘ribbon-wrapper’, ‘class’, ‘jltma-price-table-ribbon’); if (!empty($settings[‘ma_el_pricing_table_ribbon_align’])) : $this->add_render_attribute(‘ribbon-wrapper’, ‘class’, ‘elementor-ribbon-‘ . esc_attr($settings[‘ma_el_pricing_table_ribbon_align’])); endif; ?>
get_render_attribute_string(‘ribbon-wrapper’); ?>>
get_settings(); if (!empty($settings[‘ma_el_pricing_table_button_text’]) || !empty($settings[‘ma_el_pricing_table_footer_additional_info’])) { ?> get_settings(); $ma_el_pricing_table_layout = $settings[‘ma_el_pricing_table_layout’]; $ma_el_pricing_table_highlight = $settings[‘ma_el_pricing_table_highlight’]; $ma_el_table_class = ”; if ($ma_el_pricing_table_layout == ‘one’) { $ma_el_table_class = “default-table text-center”; } elseif ($ma_el_pricing_table_layout == ‘two’) { $ma_el_table_class = “table-left-align text-left”; } elseif ($ma_el_pricing_table_layout == ‘three’) { $ma_el_table_class = “table-active-zoom text-center”; } elseif ($ma_el_pricing_table_layout == ‘four’) { $ma_el_table_class = “table-bg-image text-left”; } elseif ($ma_el_pricing_table_layout == ‘five’) { $ma_el_table_class = “table-bg-pattern text-left”; } $this->add_render_attribute( ‘jltma_pricing_table’, ‘class’, [ ‘jltma-pricing-tables’, $ma_el_table_class ] ); $this->add_render_attribute( ‘ma_el_pricing_table_container’, ‘class’, [ ‘jltma-price-table’, ($ma_el_pricing_table_highlight == ‘yes’) ? ‘active gradient-1’ : ” ] ); ?>
get_render_attribute_string(‘jltma_pricing_table’); ?>>
get_render_attribute_string(‘ma_el_pricing_table_container’); ?>>
jltma_pt_render_header(); ?>
render_features_list(); ?> jltma_render_footer(); ?>
jltma_render_ribbon(); } }
Request A Quote
First
Last