Changeset 2700751
- Timestamp:
- 03/28/2022 04:43:44 PM (4 years ago)
- Location:
- quentn-wp/trunk
- Files:
-
- 7 edited
-
includes/class-quentn-wp-elementor-integration.php (modified) (1 diff)
-
includes/class-quentn-wp-elementor.php (modified) (4 diffs)
-
includes/class-quentn-wp.php (modified) (2 diffs)
-
languages/quentn-wp-de_DE.po (modified) (1 diff)
-
languages/quentn-wp.pot (modified) (1 diff)
-
quentn-wp.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quentn-wp/trunk/includes/class-quentn-wp-elementor-integration.php
r2640611 r2700751 174 174 'label' => __( 'Flood Protection', 'quentn-wp' ), 175 175 'type' => Controls_Manager::NUMBER, 176 'description' => __( 'Enter the maximum form submissions per hour and unique IP-Ad resses (default: 5, 0 to diable)', 'quentn-wp' ),176 'description' => __( 'Enter the maximum form submissions per hour and unique IP-Address (default: 5, 0 to diable)', 'quentn-wp' ), 177 177 'min' => 0, 178 178 'default' => 5, -
quentn-wp/trunk/includes/class-quentn-wp-elementor.php
r2640611 r2700751 12 12 */ 13 13 public function __construct() { 14 add_action( 'plugins_loaded', array( $this, 'load_dependencies' ) ); 15 add_action( 'elementor/controls/controls_registered', array( $this, 'init_controls' ) ); 14 //As of Elementor 3.5, registering new controls hook and method is changed 15 if ( version_compare( ELEMENTOR_VERSION, '3.5.0', '>=' ) ) { 16 $action_name = 'register'; 17 } else { 18 $action_name = 'controls_registered'; 19 } 20 add_action( 'elementor/controls/'.$action_name, array( $this, 'init_controls' ) ); 16 21 add_action( 'elementor_pro/init', array( $this, 'init_elementor' ) ); 17 22 } … … 34 39 35 40 /** 36 * Load Elementor Integration dependencies37 *38 * @since 1.0.639 * @access public40 */41 public function load_dependencies() {42 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-quentn-wp-elementor-integration.php';43 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-quentn-wp-elementor-handler.php';44 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-quentn-wp-elementor-field-mapping.php';45 }46 47 /**48 41 * Init Controls 49 42 * … … 53 46 public function init_controls() 54 47 { 55 \Elementor\Plugin::$instance->controls_manager->register_control('qntn_fields_map', new \Quentn_Wp_Elementor_Field_Mapping()); 48 //As of Elementor 3.5, registering new controls hook and method is changed 49 if ( version_compare( ELEMENTOR_VERSION, '3.5.0', '>=' ) ) { 50 \Elementor\Plugin::$instance->controls_manager->register( new \Quentn_Wp_Elementor_Field_Mapping() ); 51 } else { 52 \Elementor\Plugin::$instance->controls_manager->register_control( 'qntn_fields_map', new \Quentn_Wp_Elementor_Field_Mapping() ); 53 } 56 54 } 57 55 … … 64 62 public function init_elementor() 65 63 { 64 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-quentn-wp-elementor-integration.php'; 65 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-quentn-wp-elementor-handler.php'; 66 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-quentn-wp-elementor-field-mapping.php'; 67 66 68 $quentn_action = new \Quentn_Wp_Elementor_Integration; 67 69 // Register the action with form widget -
quentn-wp/trunk/includes/class-quentn-wp.php
r2681536 r2700751 75 75 $this->version = QUENTN_WP_VERSION; 76 76 } else { 77 $this->version = '1.2. 1';77 $this->version = '1.2.2'; 78 78 } 79 79 $this->plugin_name = 'quentn-wp'; … … 190 190 * Add classes responsible to handle elementor integration 191 191 */ 192 if( defined('ELEMENTOR_VERSION' ) && defined('ELEMENTOR_PRO_VERSION' ) && ELEMENTOR_VERSION >= '2.0.0' ) { 193 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-quentn-wp-elementor.php'; 194 } 192 add_action('elementor_pro/init', function () { 193 if( defined('ELEMENTOR_VERSION' ) && defined('ELEMENTOR_PRO_VERSION' ) && ELEMENTOR_VERSION >= '2.0.0' ) { 194 //sometimes elementor pro plugin is active but not working because of compatibility with elementor free version 195 if ( class_exists('ElementorPro\Modules\Forms\Classes\Integration_Base' ) ) { 196 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-quentn-wp-elementor.php'; 197 } 198 } 199 }, 5); 195 200 196 201 $this->loader = new Quentn_Wp_Loader(); -
quentn-wp/trunk/languages/quentn-wp-de_DE.po
r2411960 r2700751 547 547 548 548 #: includes/class-quentn-wp-elementor-integration.php:191 549 msgid "Enter the maximum form submissions per hour and unique IP-Ad resses (default: 5, 0 to diable)"549 msgid "Enter the maximum form submissions per hour and unique IP-Address (default: 5, 0 to diable)" 550 550 msgstr "Geben Sie die maximale Anzahl der Formular-Eintragungen pro Stunde und pro eindeutige IP-Adresse ein (Standard: 5, 0 bis deaktiviert)" 551 551 -
quentn-wp/trunk/languages/quentn-wp.pot
r2411960 r2700751 553 553 554 554 #: includes/class-quentn-wp-elementor-integration.php:191 555 msgid "Enter the maximum form submissions per hour and unique IP-Ad resses (default: 5, 0 to diable)"555 msgid "Enter the maximum form submissions per hour and unique IP-Address (default: 5, 0 to diable)" 556 556 msgstr "" 557 557 -
quentn-wp/trunk/quentn-wp.php
r2681536 r2700751 17 17 * Plugin URI: https://docs.quentn.com/de/beta-quentn-wordpress-plugin/installieren-und-verbinden 18 18 * 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.2. 119 * Version: 1.2.2 20 20 * Author: Quentn.com GmbH 21 21 * Author URI: https://quentn.com/ … … 24 24 * Text Domain: quentn-wp 25 25 * Domain Path: /languages 26 * Elementor tested up to: 3.6.1 27 * Elementor Pro tested up to: 3.6.4 26 28 */ 27 29 … … 35 37 define( "TABLE_QUENTN_RESTRICTIONS", 'qntn_restrictions' ); 36 38 define( "TABLE_QUENTN_USER_DATA", 'qntn_user_data' ); 37 define( 'QUENTN_WP_VERSION', '1.2. 1' );39 define( 'QUENTN_WP_VERSION', '1.2.2' ); 38 40 39 41 /** -
quentn-wp/trunk/readme.txt
r2681536 r2700751 4 4 Requires at least: 4.6.0 5 5 Tested up to: 5.8 6 Stable tag: 1.2. 16 Stable tag: 1.2.2 7 7 Requires PHP: 5.6.0 8 8 License: GPLv2 or later … … 66 66 67 67 == Changelog == 68 = 1.2.2 = 69 * Fix: Make compatible for Elementor versions >= 3.5 70 68 71 = 1.2.1 = 69 72 * Fix: Error handling while getting password reset key. … … 141 144 == Upgrade Notice == 142 145 146 = 1.2.2 = 147 Thanks for using Quentn Plugin! Please update the plugin to make compatible for Elementor versions >= 3.5. 148 143 149 = 1.2.1 = 144 150 Thanks for using Quentn Plugin! Please update the plugin to fix the error handling while getting password reset key.
Note: See TracChangeset
for help on using the changeset viewer.