Version Description
- Added filter 'ae_multilingual_support' to manage support for WPML & Polylang compatibility.
Download this release
Release Info
Developer | wpvibes |
Plugin | AnyWhere Elementor |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.2.1
- anywhere-elementor.php +3 -3
- includes/bootstrap.php +9 -1
- readme.txt +7 -4
anywhere-elementor.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Description: Allows you to insert elementor pages and library templates anywhere using shortcodes.
|
5 |
* Plugin URI: http://www.elementoraddons.com/
|
6 |
* Author: WPVibes
|
7 |
-
* Version: 1.2
|
8 |
* Author URI: http://wpvibes.com/
|
9 |
* Text Domain: wts_ae
|
10 |
*
|
@@ -12,7 +12,7 @@
|
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
14 |
|
15 |
-
define( 'AE_VERSION', '1.2' );
|
16 |
|
17 |
define( 'WTS_AE__FILE__', __FILE__ );
|
18 |
define( 'WTS_AE_PLUGIN_BASE', plugin_basename( WTS_AE__FILE__ ) );
|
@@ -59,4 +59,4 @@ function add_ae_global_templates_columns( $column, $post_id ) {
|
|
59 |
}
|
60 |
}
|
61 |
add_filter( 'manage_ae_global_templates_posts_columns', 'set_custom_edit_ae_global_templates_posts_columns' );
|
62 |
-
add_action( 'manage_ae_global_templates_posts_custom_column' , 'add_ae_global_templates_columns', 10, 2 );
|
4 |
* Description: Allows you to insert elementor pages and library templates anywhere using shortcodes.
|
5 |
* Plugin URI: http://www.elementoraddons.com/
|
6 |
* Author: WPVibes
|
7 |
+
* Version: 1.2.1
|
8 |
* Author URI: http://wpvibes.com/
|
9 |
* Text Domain: wts_ae
|
10 |
*
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
14 |
|
15 |
+
define( 'AE_VERSION', '1.2.1' );
|
16 |
|
17 |
define( 'WTS_AE__FILE__', __FILE__ );
|
18 |
define( 'WTS_AE_PLUGIN_BASE', plugin_basename( WTS_AE__FILE__ ) );
|
59 |
}
|
60 |
}
|
61 |
add_filter( 'manage_ae_global_templates_posts_columns', 'set_custom_edit_ae_global_templates_posts_columns' );
|
62 |
+
add_action( 'manage_ae_global_templates_posts_custom_column' , 'add_ae_global_templates_columns', 10, 2 );
|
includes/bootstrap.php
CHANGED
@@ -2,6 +2,10 @@
|
|
2 |
namespace Elementor;
|
3 |
|
4 |
function wts_insert_elementor($atts){
|
|
|
|
|
|
|
|
|
5 |
if(!class_exists('Elementor\Plugin')){
|
6 |
return '';
|
7 |
}
|
@@ -11,7 +15,11 @@ function wts_insert_elementor($atts){
|
|
11 |
|
12 |
$post_id = $atts['id'];
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
15 |
|
16 |
$response = Plugin::instance()->frontend->get_builder_content_for_display($post_id);
|
17 |
return $response;
|
2 |
namespace Elementor;
|
3 |
|
4 |
function wts_insert_elementor($atts){
|
5 |
+
|
6 |
+
// Enable support for WPML & Polylang
|
7 |
+
$language_support = apply_filters('ae_multilingual_support', false);
|
8 |
+
|
9 |
if(!class_exists('Elementor\Plugin')){
|
10 |
return '';
|
11 |
}
|
15 |
|
16 |
$post_id = $atts['id'];
|
17 |
|
18 |
+
if($language_support){
|
19 |
+
$post_id = apply_filters( 'wpml_object_id', $post_id, 'ae_global_templates' );
|
20 |
+
}
|
21 |
+
|
22 |
+
|
23 |
|
24 |
$response = Plugin::instance()->frontend->get_builder_content_for_display($post_id);
|
25 |
return $response;
|
readme.txt
CHANGED
@@ -47,16 +47,19 @@ Note: This plugin is an addon of Elementor Page Builder (https://wordpress.org/p
|
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
-
|
|
|
|
|
|
|
51 |
* Added WPML Compatibility.
|
52 |
|
53 |
-
|
54 |
* Option to view and copy shortcode from All Template view (without opening template to edit.).
|
55 |
|
56 |
-
|
57 |
* Updated compatibility with latest version of WordPress and Elementor
|
58 |
|
59 |
-
|
60 |
* Compatibility with Elementor 1.5
|
61 |
|
62 |
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
+
= 1.2.1 =
|
51 |
+
* Added filter 'ae_multilingual_support' to manage support for WPML & Polylang compatibility.
|
52 |
+
|
53 |
+
= 1.2 =
|
54 |
* Added WPML Compatibility.
|
55 |
|
56 |
+
= 1.1 =
|
57 |
* Option to view and copy shortcode from All Template view (without opening template to edit.).
|
58 |
|
59 |
+
= 1.0 =
|
60 |
* Updated compatibility with latest version of WordPress and Elementor
|
61 |
|
62 |
+
= 0.5 =
|
63 |
* Compatibility with Elementor 1.5
|
64 |
|
65 |
|