Version Description
- 2017-12-18
Download this release
Release Info
| Developer | themeisle |
| Plugin | |
| Version | 1.1.4 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.3 to 1.1.4
- CHANGELOG.md +6 -0
- elementor-addon-widgets.php +2 -2
- readme.md +7 -0
- readme.txt +7 -0
- widgets/elementor/js/obfx-grid.js +21 -21
- widgets/elementor/posts-grid.php +18 -12
- widgets/elementor/pricing-table.php +6 -3
- widgets/elementor/services.php +1 -1
CHANGELOG.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
### v1.1.3 - 2017-11-17
|
| 3 |
**Changes:**
|
| 4 |
* Fixed javascript error on front end.
|
| 1 |
|
| 2 |
+
### v1.1.4 - 2017-12-18
|
| 3 |
+
**Changes:**
|
| 4 |
+
* Fixed Pricing Table Widget button link issue
|
| 5 |
+
* Fixed Post Grid Widget notice.
|
| 6 |
+
* Fixed Services Widget content align.
|
| 7 |
+
|
| 8 |
### v1.1.3 - 2017-11-17
|
| 9 |
**Changes:**
|
| 10 |
* Fixed javascript error on front end.
|
elementor-addon-widgets.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Elementor Addons & Widgets
|
| 4 |
* Plugin URI: https://themeisle.com/
|
| 5 |
* Description: Adds new Addons & Widgets that are specifically designed to be used in conjunction with the Elementor Page Builder.
|
| 6 |
-
* Version: 1.1.
|
| 7 |
* Author: ThemeIsle
|
| 8 |
* Author URI: https://themeisle.com/
|
| 9 |
* Requires at least: 4.4
|
|
@@ -23,7 +23,7 @@ Constants
|
|
| 23 |
------------------------------------------ */
|
| 24 |
|
| 25 |
/* Set plugin version constant. */
|
| 26 |
-
define( 'EA_VERSION', '1.1.
|
| 27 |
|
| 28 |
/* Set constant path to the plugin directory. */
|
| 29 |
define( 'EA_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
|
| 3 |
* Plugin Name: Elementor Addons & Widgets
|
| 4 |
* Plugin URI: https://themeisle.com/
|
| 5 |
* Description: Adds new Addons & Widgets that are specifically designed to be used in conjunction with the Elementor Page Builder.
|
| 6 |
+
* Version: 1.1.4
|
| 7 |
* Author: ThemeIsle
|
| 8 |
* Author URI: https://themeisle.com/
|
| 9 |
* Requires at least: 4.4
|
| 23 |
------------------------------------------ */
|
| 24 |
|
| 25 |
/* Set plugin version constant. */
|
| 26 |
+
define( 'EA_VERSION', '1.1.4' );
|
| 27 |
|
| 28 |
/* Set constant path to the plugin directory. */
|
| 29 |
define( 'EA_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
|
readme.md
CHANGED
|
@@ -61,6 +61,13 @@ See this [issue #495](https://github.com/pojome/elementor/issues/495) for curren
|
|
| 61 |
4. Frontend view posts with custom title.
|
| 62 |
|
| 63 |
## Changelog ##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
### 1.1.3 - 2017-11-17 ###
|
| 65 |
|
| 66 |
* Fixed javascript error on front end.
|
| 61 |
4. Frontend view posts with custom title.
|
| 62 |
|
| 63 |
## Changelog ##
|
| 64 |
+
### 1.1.4 - 2017-12-18 ###
|
| 65 |
+
|
| 66 |
+
* Fixed Pricing Table Widget button link issue
|
| 67 |
+
* Fixed Post Grid Widget notice.
|
| 68 |
+
* Fixed Services Widget content align.
|
| 69 |
+
|
| 70 |
+
|
| 71 |
### 1.1.3 - 2017-11-17 ###
|
| 72 |
|
| 73 |
* Fixed javascript error on front end.
|
readme.txt
CHANGED
|
@@ -61,6 +61,13 @@ See this [issue #495](https://github.com/pojome/elementor/issues/495) for curren
|
|
| 61 |
4. Frontend view posts with custom title.
|
| 62 |
|
| 63 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
= 1.1.3 - 2017-11-17 =
|
| 65 |
|
| 66 |
* Fixed javascript error on front end.
|
| 61 |
4. Frontend view posts with custom title.
|
| 62 |
|
| 63 |
== Changelog ==
|
| 64 |
+
= 1.1.4 - 2017-12-18 =
|
| 65 |
+
|
| 66 |
+
* Fixed Pricing Table Widget button link issue
|
| 67 |
+
* Fixed Post Grid Widget notice.
|
| 68 |
+
* Fixed Services Widget content align.
|
| 69 |
+
|
| 70 |
+
|
| 71 |
= 1.1.3 - 2017-11-17 =
|
| 72 |
|
| 73 |
* Fixed javascript error on front end.
|
widgets/elementor/js/obfx-grid.js
CHANGED
|
@@ -14,26 +14,26 @@
|
|
| 14 |
}
|
| 15 |
);
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
|
| 38 |
/**
|
| 39 |
* Check the container and image size.
|
|
@@ -61,4 +61,4 @@
|
|
| 61 |
);
|
| 62 |
}
|
| 63 |
|
| 64 |
-
})(jQuery);
|
| 14 |
}
|
| 15 |
);
|
| 16 |
|
| 17 |
+
if ( typeof elementor !== 'undefined' ) {
|
| 18 |
+
$( window ).on(
|
| 19 |
+
'elementor/frontend/init', function () {
|
| 20 |
+
elementor.hooks.addAction(
|
| 21 |
+
'panel/open_editor/widget/obfx-posts-grid', function (panel) {
|
| 22 |
+
var $element = panel.$el.find( '.elementor-control-section_grid_image' );
|
| 23 |
+
$element.click(
|
| 24 |
+
function () {
|
| 25 |
+
panel.$el.find( '.elementor-control-grid_image_height .elementor-control-input-wrapper' ).mouseup(
|
| 26 |
+
function () {
|
| 27 |
+
checkImageSize();
|
| 28 |
+
}
|
| 29 |
+
);
|
| 30 |
+
}
|
| 31 |
+
);
|
| 32 |
+
}
|
| 33 |
+
);
|
| 34 |
+
}
|
| 35 |
+
);
|
| 36 |
+
}
|
| 37 |
|
| 38 |
/**
|
| 39 |
* Check the container and image size.
|
| 61 |
);
|
| 62 |
}
|
| 63 |
|
| 64 |
+
})( jQuery );
|
widgets/elementor/posts-grid.php
CHANGED
|
@@ -241,22 +241,28 @@ class EAW_Elementor_Widget_Posts_Grid extends Widget_Base {
|
|
| 241 |
|
| 242 |
if ( $post_type == 'post' ) {
|
| 243 |
$taxonomy = 'category';
|
| 244 |
-
}
|
| 245 |
$taxonomy = 'product_cat';
|
| 246 |
}
|
| 247 |
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 258 |
}
|
| 259 |
-
|
| 260 |
return $options;
|
| 261 |
}
|
| 262 |
|
| 241 |
|
| 242 |
if ( $post_type == 'post' ) {
|
| 243 |
$taxonomy = 'category';
|
| 244 |
+
} elseif ( $post_type == 'product' ) {
|
| 245 |
$taxonomy = 'product_cat';
|
| 246 |
}
|
| 247 |
|
| 248 |
+
if ( ! empty( $taxonomy ) ) {
|
| 249 |
+
// Get categories for post type.
|
| 250 |
+
$terms = get_terms(
|
| 251 |
+
array(
|
| 252 |
+
'taxonomy' => $taxonomy,
|
| 253 |
+
'hide_empty' => false,
|
| 254 |
+
)
|
| 255 |
+
);
|
| 256 |
+
if ( ! empty( $terms ) ) {
|
| 257 |
+
foreach ( $terms as $term ) {
|
| 258 |
+
if ( isset( $term ) ) {
|
| 259 |
+
if ( isset( $term->slug ) && isset( $term->name ) ) {
|
| 260 |
+
$options[ $term->slug ] = $term->name;
|
| 261 |
+
}
|
| 262 |
+
}
|
| 263 |
+
}
|
| 264 |
+
}
|
| 265 |
}
|
|
|
|
| 266 |
return $options;
|
| 267 |
}
|
| 268 |
|
widgets/elementor/pricing-table.php
CHANGED
|
@@ -947,12 +947,15 @@ class EAW_Elementor_Widget_Pricing_Table extends Widget_Base {
|
|
| 947 |
$this->add_render_attribute( 'button', 'class', 'obfx-pricing-table-button' );
|
| 948 |
$this->add_render_attribute( 'button_icon', 'class', $settings['button_icon'] );
|
| 949 |
$this->add_render_attribute( 'button_icon_align', 'class', 'obfx-button-icon-align-' . $settings['button_icon_align'] );
|
| 950 |
-
if ( ! empty( $settings['
|
| 951 |
-
$this->add_render_attribute( 'button', 'href', $settings['
|
| 952 |
|
| 953 |
-
if ( ! empty( $settings['
|
| 954 |
$this->add_render_attribute( 'button', 'target', '_blank' );
|
| 955 |
}
|
|
|
|
|
|
|
|
|
|
| 956 |
}
|
| 957 |
|
| 958 |
$output = '';
|
| 947 |
$this->add_render_attribute( 'button', 'class', 'obfx-pricing-table-button' );
|
| 948 |
$this->add_render_attribute( 'button_icon', 'class', $settings['button_icon'] );
|
| 949 |
$this->add_render_attribute( 'button_icon_align', 'class', 'obfx-button-icon-align-' . $settings['button_icon_align'] );
|
| 950 |
+
if ( ! empty( $settings['button_link']['url'] ) ) {
|
| 951 |
+
$this->add_render_attribute( 'button', 'href', $settings['button_link']['url'] );
|
| 952 |
|
| 953 |
+
if ( ! empty( $settings['button_link']['is_external'] ) ) {
|
| 954 |
$this->add_render_attribute( 'button', 'target', '_blank' );
|
| 955 |
}
|
| 956 |
+
if ( ! empty( $settings['button_link']['nofollow'] ) ) {
|
| 957 |
+
$this->add_render_attribute( 'button', 'rel', 'nofollow' );
|
| 958 |
+
}
|
| 959 |
}
|
| 960 |
|
| 961 |
$output = '';
|
widgets/elementor/services.php
CHANGED
|
@@ -270,7 +270,7 @@ class EAW_Elementor_Widget_Services extends Widget_Base {
|
|
| 270 |
],
|
| 271 |
],
|
| 272 |
'selectors' => [
|
| 273 |
-
'{{WRAPPER}} .obfx-grid .obfx-grid-container .obfx-grid-wrapper .obfx-service-box' => 'text-align: {{VALUE}};',
|
| 274 |
'{{WRAPPER}} .obfx-grid .obfx-grid-container .obfx-grid-wrapper .obfx-service-box .obfx-service-text' => 'text-align: {{VALUE}};',
|
| 275 |
],
|
| 276 |
]
|
| 270 |
],
|
| 271 |
],
|
| 272 |
'selectors' => [
|
| 273 |
+
'{{WRAPPER}} .obfx-grid .obfx-grid-container .obfx-grid-wrapper .obfx-service-box' => 'text-align: {{VALUE}}; justify-content: {{VALUE}};',
|
| 274 |
'{{WRAPPER}} .obfx-grid .obfx-grid-container .obfx-grid-wrapper .obfx-service-box .obfx-service-text' => 'text-align: {{VALUE}};',
|
| 275 |
],
|
| 276 |
]
|
