Version Description
- 2021-06-05 =
- Fixed PHP notice undefined 'post_type'.
Download this release
Release Info
Developer | pacotole |
Plugin | Polylang Connect for Elementor – Templates Translation & Language Switcher |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
README.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: daveshine, p4fbradjohnson, deckerweb, wpautobahn, pacotole, creapu
|
|
3 |
Donate link: https://www.paypal.me/deckerweb
|
4 |
Tags: elementor, polylang, multilingual, language switcher, languages, templates, widget, finder, dynamic tags, deckerweb
|
5 |
Requires at least: 4.7
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 1.0.
|
9 |
License: GPL-2.0-or-later
|
10 |
License URI: https://opensource.org/licenses/GPL-2.0
|
11 |
|
@@ -15,6 +15,12 @@ Connect Polylang with Elementor - show correct Templates, plus Elementor languag
|
|
15 |
|
16 |
Connect the Polylang multilingual plugin with Elementor Page Builder: This plugin will make Elementor and Polylang **show the correct language templates**, especially with Elementor Pro Theme Builder. Plus: native **Polylang Language Switcher Elementor widget**, new Dynamic Tags, and Polylang links added to the **Elementor Finder** feature.
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
https://www.youtube.com/watch?v=tMmJ6sdMdxw
|
19 |
|
20 |
= What the Plugin Does =
|
@@ -220,6 +226,9 @@ There are quite a few:
|
|
220 |
|
221 |
== Changelog ==
|
222 |
|
|
|
|
|
|
|
223 |
= 1.0.5 - 2021-05-17 =
|
224 |
* Fixed Elementor editor don't load with Global Widgets in secondary language.
|
225 |
|
3 |
Donate link: https://www.paypal.me/deckerweb
|
4 |
Tags: elementor, polylang, multilingual, language switcher, languages, templates, widget, finder, dynamic tags, deckerweb
|
5 |
Requires at least: 4.7
|
6 |
+
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 1.0.6
|
9 |
License: GPL-2.0-or-later
|
10 |
License URI: https://opensource.org/licenses/GPL-2.0
|
11 |
|
15 |
|
16 |
Connect the Polylang multilingual plugin with Elementor Page Builder: This plugin will make Elementor and Polylang **show the correct language templates**, especially with Elementor Pro Theme Builder. Plus: native **Polylang Language Switcher Elementor widget**, new Dynamic Tags, and Polylang links added to the **Elementor Finder** feature.
|
17 |
|
18 |
+
= ⚡ Try the new Version 2.0 ⚡ =
|
19 |
+
If you are starting with a new project we recommend using the new version 2.0 (it's in beta phase but with it you will not lose the changes you make when the final version is published).
|
20 |
+
|
21 |
+
[Download v2.0 beta](https://github.com/creame/connect-polylang-elementor/releases/download/v2.0.0-beta.1/connect-polylang-elementor-2.0.0-beta.1.zip) [(more info)](https://wordpress.org/support/topic/try-new-version-2-0/)
|
22 |
+
|
23 |
+
|
24 |
https://www.youtube.com/watch?v=tMmJ6sdMdxw
|
25 |
|
26 |
= What the Plugin Does =
|
226 |
|
227 |
== Changelog ==
|
228 |
|
229 |
+
= 1.0.6 - 2021-06-05 =
|
230 |
+
* Fixed PHP notice undefined 'post_type'.
|
231 |
+
|
232 |
= 1.0.5 - 2021-05-17 =
|
233 |
* Fixed Elementor editor don't load with Global Widgets in secondary language.
|
234 |
|
connect-polylang-elementor.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Plugin Name: Polylang Connect for Elementor
|
13 |
* Plugin URI: https://github.com/deckerweb/connect-polylang-elementor
|
14 |
* Description: Connect the Polylang multilingual plugin with Elementor Page Builder: This plugin will make Elementor and Polylang show the correct language templates, especially with Elementor Pro Theme Builder. Plus: native Polylang Language Switcher Elementor widget, new Dynamic Tags, and Polylang links added to the Elementor Finder feature.
|
15 |
-
* Version: 1.0.
|
16 |
* Author: David Decker - DECKERWEB
|
17 |
* Author URI: https://deckerweb.de/
|
18 |
* License: GPL-2.0-or-later
|
@@ -41,7 +41,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
41 |
* @since 1.0.0
|
42 |
*/
|
43 |
/** Plugin version */
|
44 |
-
define( 'CPEL_PLUGIN_VERSION', '1.0.
|
45 |
|
46 |
/** File */
|
47 |
define( 'CPEL__FILE__', __FILE__ );
|
12 |
* Plugin Name: Polylang Connect for Elementor
|
13 |
* Plugin URI: https://github.com/deckerweb/connect-polylang-elementor
|
14 |
* Description: Connect the Polylang multilingual plugin with Elementor Page Builder: This plugin will make Elementor and Polylang show the correct language templates, especially with Elementor Pro Theme Builder. Plus: native Polylang Language Switcher Elementor widget, new Dynamic Tags, and Polylang links added to the Elementor Finder feature.
|
15 |
+
* Version: 1.0.6
|
16 |
* Author: David Decker - DECKERWEB
|
17 |
* Author URI: https://deckerweb.de/
|
18 |
* License: GPL-2.0-or-later
|
41 |
* @since 1.0.0
|
42 |
*/
|
43 |
/** Plugin version */
|
44 |
+
define( 'CPEL_PLUGIN_VERSION', '1.0.6' );
|
45 |
|
46 |
/** File */
|
47 |
define( 'CPEL__FILE__', __FILE__ );
|
modules/connect/tweaks-polylang-elementor.php
CHANGED
@@ -85,7 +85,8 @@ function ddw_cpel_polylang_elementor_library_conditions_parse_query( $query ) {
|
|
85 |
$is_elementor_conditions = isset( $query->query_vars['meta_key'] )
|
86 |
&& '_elementor_conditions' === $query->query_vars['meta_key'];
|
87 |
|
88 |
-
$is_global_widget =
|
|
|
89 |
&& isset( $query->query_vars['meta_query'] )
|
90 |
&& in_array( $global_widget_meta_query, $query->query_vars['meta_query'] );
|
91 |
|
85 |
$is_elementor_conditions = isset( $query->query_vars['meta_key'] )
|
86 |
&& '_elementor_conditions' === $query->query_vars['meta_key'];
|
87 |
|
88 |
+
$is_global_widget = isset( $query->query_vars['post_type'] )
|
89 |
+
&& 'elementor_library' === $query->query_vars['post_type']
|
90 |
&& isset( $query->query_vars['meta_query'] )
|
91 |
&& in_array( $global_widget_meta_query, $query->query_vars['meta_query'] );
|
92 |
|