Plugin Directory

Changeset 2613305


Ignore:
Timestamp:
10/12/2021 11:38:04 PM (4 years ago)
Author:
quentn
Message:

Fix the styling bug when using the Form widget of Elementor PRO

Location:
quentn-wp/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • quentn-wp/trunk/includes/class-quentn-wp-elementor-integration.php

    r2608554 r2613305  
    33use Elementor\Controls_Manager;
    44use Elementor\Settings;
     5use Elementor\Repeater;
    56use ElementorPro\Modules\Forms\Classes\Form_Record;
     7use ElementorPro\Modules\Forms\Widgets\Form;
    68use ElementorPro\Modules\Forms\Module;
    79use QuentnWP\Admin\Utility\Helper;
     
    165167        );
    166168
    167         $widget->add_control(
    168             'quentn_fields_map',
    169             [
    170                 'label' => __( 'Field Mapping', 'quentn-wp' ),
    171                 'type' => Quentn_Wp_Elementor_Field_Mapping::CONTROL_TYPE,
    172                 'separator' => 'before',
    173                 'fields' => [
    174                     [
    175                         'name' => 'local_id',
    176                         'type' => Controls_Manager::HIDDEN,
    177                     ],
    178                     [
    179                         'name' => 'remote_id',
    180                         'type' => Controls_Manager::SELECT,
    181                     ],
    182                 ],
    183             ]
    184         );
     169        $this->register_quentn_fields_map_control( $widget );
    185170
    186171        $widget->add_control(
     
    241226        );
    242227        $widget->end_controls_section();
     228    }
     229
     230    private function register_quentn_fields_map_control( Form $form ) {
     231        $repeater = new Repeater();
     232
     233        $repeater->add_control( 'local_id', [ 'type' => Controls_Manager::HIDDEN ] );
     234
     235        $repeater->add_control( 'remote_id', [ 'type' => Controls_Manager::SELECT ] );
     236
     237        $fields_map_control_options = [
     238            'label' => __( 'Field Mapping', 'elementor-pro' ),
     239            'type' => Quentn_Wp_Elementor_Field_Mapping::CONTROL_TYPE,
     240            'separator' => 'before',
     241            'fields' => $repeater->get_controls(),
     242        ];
     243
     244        if ( method_exists( $this,'get_fields_map_control_options' ) ) {
     245            $fields_map_control_options = array_merge( $fields_map_control_options, $this->get_fields_map_control_options() );
     246        }
     247
     248        $form->add_control( $this->get_name() . '_fields_map', $fields_map_control_options );
    243249    }
    244250
  • quentn-wp/trunk/includes/class-quentn-wp.php

    r2608554 r2613305  
    7575            $this->version = QUENTN_WP_VERSION;
    7676        } else {
    77             $this->version = '1.1.8';
     77            $this->version = '1.1.9';
    7878        }
    7979        $this->plugin_name = 'quentn-wp';
  • quentn-wp/trunk/quentn-wp.php

    r2608554 r2613305  
    1717 * Plugin URI:        https://docs.quentn.com/de/beta-quentn-wordpress-plugin/installieren-und-verbinden
    1818 * Description:       This plugin allows you to restrict access to specific pages, create custom access links and create dynamic page countdowns. Optionally, you can connect your Quentn account to your WordPress installation to share contacts and manage access restrictions through Quentn.
    19  * Version:           1.1.8
     19 * Version:           1.1.9
    2020 * Author:            Quentn.com GmbH
    2121 * Author URI:        https://quentn.com/
     
    3535define( "TABLE_QUENTN_RESTRICTIONS", 'qntn_restrictions' );
    3636define( "TABLE_QUENTN_USER_DATA", 'qntn_user_data' );
    37 define( 'QUENTN_WP_VERSION', '1.1.8' );
     37define( 'QUENTN_WP_VERSION', '1.1.9' );
    3838
    3939/**
  • quentn-wp/trunk/readme.txt

    r2608554 r2613305  
    44Requires at least: 4.6.0
    55Tested up to: 5.8
    6 Stable tag: 1.1.8
     6Stable tag: 1.1.9
    77Requires PHP: 5.6.0
    88License: GPLv2 or later
     
    6666
    6767== Changelog ==
     68= 1.1.9 =
     69* Fix: The styling bug when using the Form widget of Elementor PRO.
     70* Tweak: Improved method of loading field mapping in Form widget of Elementor PRO.
     71
    6872= 1.1.8 =
    6973* Fixed minor issue how ternary operators used in Elementor integration.
     
    131135== Upgrade Notice ==
    132136
     137= 1.1.9 =
     138Thanks for using Quentn Plugin! Please update the plugin to fix the styling bug when using the Form widget of Elementor PRO
     139
    133140= 1.1.8 =
    134141Thanks for using Quentn Plugin! Please update the plugin to fix ternary operator error in Elementor integration.
Note: See TracChangeset for help on using the changeset viewer.