allSettings($this); (new AdvancedPricingWidgetStyles())->allStyles($this); } /** * Render pricing widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @since 1.0.5 * @access protected */ protected function render() { $settings = $this->get_settings_for_display(); $headerShow = 'yes'; $pricingShow = 'yes'; $centerIconShow = 'no'; $ribbonShow = 'no'; $additionalTextShow = ''; $buttonShow = 'yes'; $featuresShow = 'yes'; $iconPosition = 'left'; $currencyPosition = 'before'; $periodClass = 'beside'; $template = defined('APTFE_PRO') ? $settings["aptfe_pricing_template"] : '1'; $this->add_render_attribute( 'aptfe_pricing_options', [ 'id' => 'aptfe-pricing-table-' . intval( $this->get_id() ), 'class' => [ 'aptfe-pricing-table-container', 'aptfe-pricing-table-template-' . $template, ], ] ); // Currency format $currency_format = ! empty( $settings['aptfe_pricing_currency_format'] ) ? $settings['aptfe_pricing_currency_format'] : '.'; $price = explode( $currency_format, (string) ( $settings['aptfe_pricing_price'] ?? '' )); $intpart = $price[0] ?? ''; $fraction = $price[1] ?? ''; // Currency symbol $currency_symbol = $settings['aptfe_pricing_currency_symbol'] ?? ''; if ( 'custom' === $currency_symbol ) { $currency_symbol = $settings['aptfe_pricing_currency_symbol_custom'] ?? ''; } // Button $buttonClasses = [ 'aptfe-button' ]; if ( defined( 'APTFE_PRO' ) && ! empty( $settings['aptfe_button_size'] ) ) { $buttonClasses[] = 'aptfe-button-size-' . $settings['aptfe_button_size']; } $this->add_render_attribute( 'aptfe_render_button_attr', 'class', $buttonClasses ); if ( ! empty( $settings['aptfe_button_link']['url'] ) ) { $this->add_link_attributes( 'aptfe_render_button_attr', $settings['aptfe_button_link'] ); } // Title tag $this->add_render_attribute( 'aptfe_header_title_tag_attr', 'class', 'title' ); $titleTag = Utils::validate_html_tag( $settings['aptfe_header_title_tag'] ?? 'h3' ); if (defined('APTFE_PRO')) { $headerShow = $settings['aptfe_header_show'] ?? 'yes'; $pricingShow = $settings['aptfe_pricing_show'] ?? 'yes'; $centerIconShow = $settings['aptfe_center_icon_show'] ?? 'no'; $ribbonShow = $settings['aptfe_ribbon_show'] ?? 'no'; $additionalTextShow = $settings['aptfe_additional_text_show']?? ''; $buttonShow = $settings['aptfe_button_show'] ?? 'yes'; $featuresShow = $settings['aptfe_features_show']?? 'yes'; $iconPosition = $settings['aptfe_features_icon_position'] ?? 'left'; $currencyPosition = $settings['aptfe_currency_position'] ?? 'before'; $periodClass = $settings['aptfe_period_position'] ?? 'beside'; } ?>
get_render_attribute_string( 'aptfe_pricing_options' ) ); ?>>
< print_render_attribute_string( 'aptfe_header_title_tag_attr' ); ?>> print_unescaped_setting( 'aptfe_header_title' ); ?> >

'aptfe-features-top-icon', 'aria-hidden' => 'true', ] ); ?>

print_render_attribute_string( 'aptfe_render_button_attr' ); ?>> print_unescaped_setting( 'aptfe_button_text' ); ?>
esc_html__( 'These are pro features', 'advanced-pricing-table-for-elementor' ), 'message' => esc_html__( 'These are pro features, if you want to enable these features you need to upgrade to the pro version.', 'advanced-pricing-table-for-elementor' ), 'link' => esc_url( 'https://wpcreativeidea.com/pricing-table' ), ]; ob_start(); ?>