Elementor Essential Addons - Version 4.1.2

Version Description

  • 30/07/2020 =
  • Fixed: EA Twitter Feed | Content length issue
  • Fixed: EA Woo Checkout Coupons showing despite disabling from Woo Settings
  • Few minor bugfix and improvements
Download this release

Release Info

Developer re_enter_rupok
Plugin Icon 128x128 Elementor Essential Addons
Version 4.1.2
Comparing to
See all releases

Code changes from version 4.1.1 to 4.1.2

essential_adons_elementor.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: The Essential plugin you install after Elementor! 70+ Premium elements, including WooCommerce, Event Calender, Data Table, Post Grid, Instagram Feed.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
- * Version: 4.1.1
8
  * Author URI: https://wpdeveloper.net/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
@@ -26,7 +26,7 @@ define('EAEL_PLUGIN_FILE', __FILE__);
26
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
27
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
28
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
29
- define('EAEL_PLUGIN_VERSION', '4.1.1');
30
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
31
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
32
 
4
  * Description: The Essential plugin you install after Elementor! 70+ Premium elements, including WooCommerce, Event Calender, Data Table, Post Grid, Instagram Feed.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
+ * Version: 4.1.2
8
  * Author URI: https://wpdeveloper.net/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
26
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
27
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
28
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
29
+ define('EAEL_PLUGIN_VERSION', '4.1.2');
30
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
31
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
32
 
includes/Elements/Twitter_Feed.php CHANGED
@@ -169,9 +169,11 @@ class Twitter_Feed extends Widget_Base
169
  'eael_twitter_feed_content_length',
170
  [
171
  'label' => esc_html__('Content Length', 'essential-addons-for-elementor-lite'),
172
- 'type' => Controls_Manager::TEXT,
173
  'label_block' => false,
174
- 'default' => '400',
 
 
175
  ]
176
  );
177
 
169
  'eael_twitter_feed_content_length',
170
  [
171
  'label' => esc_html__('Content Length', 'essential-addons-for-elementor-lite'),
172
+ 'type' => Controls_Manager::NUMBER,
173
  'label_block' => false,
174
+ 'min' => 1,
175
+ 'max' => 400,
176
+ 'default' => 400,
177
  ]
178
  );
179
 
includes/Template/Woocommerce/Checkout/Woo_Checkout_Helper.php CHANGED
@@ -250,6 +250,9 @@ trait Woo_Checkout_Helper {
250
  */
251
  public static function ea_coupon_template() {
252
  $settings = self::ea_get_woo_checkout_settings();
 
 
 
253
  ?>
254
  <div class="woo-checkout-coupon">
255
  <div class="ea-coupon-icon">
250
  */
251
  public static function ea_coupon_template() {
252
  $settings = self::ea_get_woo_checkout_settings();
253
+ if(get_option('woocommerce_enable_coupons')==='no'){
254
+ return ;
255
+ }
256
  ?>
257
  <div class="woo-checkout-coupon">
258
  <div class="ea-coupon-icon">
includes/Traits/Helper.php CHANGED
@@ -2100,32 +2100,35 @@ trait Helper
2100
  $items = array_splice($items, 0, $settings['eael_twitter_feed_post_limit']);
2101
 
2102
  foreach ($items as $item) {
 
 
2103
  $html .= '<div class="eael-twitter-feed-item ' . $class . '">
2104
  <div class="eael-twitter-feed-item-inner">
2105
  <div class="eael-twitter-feed-item-header clearfix">';
2106
- if ($settings['eael_twitter_feed_show_avatar'] == 'true') {
2107
- $html .= '<a class="eael-twitter-feed-item-avatar avatar-' . $settings['eael_twitter_feed_avatar_style'] . '" href="//twitter.com/' . $settings['eael_twitter_feed_ac_name'] . '" target="_blank">
2108
  <img src="' . $item['user']['profile_image_url_https'] . '">
2109
  </a>';
2110
- }
2111
- $html .= '<a class="eael-twitter-feed-item-meta" href="//twitter.com/' . $settings['eael_twitter_feed_ac_name'] . '" target="_blank">';
2112
- if ($settings['eael_twitter_feed_show_icon'] == 'true') {
2113
- $html .= '<i class="fab fa-twitter eael-twitter-feed-item-icon"></i>';
2114
- }
2115
 
2116
- $html .= '<span class="eael-twitter-feed-item-author">' . $item['user']['name'] . '</span>
2117
  </a>';
2118
- if ($settings['eael_twitter_feed_show_date'] == 'true') {
2119
- $html .= '<span class="eael-twitter-feed-item-date">' . sprintf(__('%s ago', 'essential-addons-for-elementor-lite'), human_time_diff(strtotime($item['created_at']))) . '</span>';
2120
- }
2121
- $html .= '</div>
 
2122
  <div class="eael-twitter-feed-item-content">
2123
- <p>' . substr(str_replace(@$item['entities']['urls'][0]['url'], '', $item['full_text']), 0, $settings['eael_twitter_feed_content_length']) . '...</p>';
2124
 
2125
- if ($settings['eael_twitter_feed_show_read_more'] == 'true') {
2126
- $html .= '<a href="//twitter.com/' . @$item['user']['screen_name'] . '/status/' . $item['id_str'] . '" target="_blank" class="read-more-link">Read More <i class="fas fa-angle-double-right"></i></a>';
2127
- }
2128
- $html .= '</div>
2129
  ' . (isset($item['extended_entities']['media'][0]) && $settings['eael_twitter_feed_media'] == 'true' ? ($item['extended_entities']['media'][0]['type'] == 'photo' ? '<img src="' . $item['extended_entities']['media'][0]['media_url_https'] . '">' : '') : '') . '
2130
  </div>
2131
  </div>';
2100
  $items = array_splice($items, 0, $settings['eael_twitter_feed_post_limit']);
2101
 
2102
  foreach ($items as $item) {
2103
+ $delimeter = strlen($item['full_text']) > $settings['eael_twitter_feed_content_length'] ? '...' : '';
2104
+
2105
  $html .= '<div class="eael-twitter-feed-item ' . $class . '">
2106
  <div class="eael-twitter-feed-item-inner">
2107
  <div class="eael-twitter-feed-item-header clearfix">';
2108
+ if ($settings['eael_twitter_feed_show_avatar'] == 'true') {
2109
+ $html .= '<a class="eael-twitter-feed-item-avatar avatar-' . $settings['eael_twitter_feed_avatar_style'] . '" href="//twitter.com/' . $settings['eael_twitter_feed_ac_name'] . '" target="_blank">
2110
  <img src="' . $item['user']['profile_image_url_https'] . '">
2111
  </a>';
2112
+ }
2113
+ $html .= '<a class="eael-twitter-feed-item-meta" href="//twitter.com/' . $settings['eael_twitter_feed_ac_name'] . '" target="_blank">';
2114
+ if ($settings['eael_twitter_feed_show_icon'] == 'true') {
2115
+ $html .= '<i class="fab fa-twitter eael-twitter-feed-item-icon"></i>';
2116
+ }
2117
 
2118
+ $html .= '<span class="eael-twitter-feed-item-author">' . $item['user']['name'] . '</span>
2119
  </a>';
2120
+ if ($settings['eael_twitter_feed_show_date'] == 'true') {
2121
+ $html .= '<span class="eael-twitter-feed-item-date">' . sprintf(__('%s ago', 'essential-addons-for-elementor-lite'), human_time_diff(strtotime($item['created_at']))) . '</span>';
2122
+ }
2123
+ $html .= '</div>
2124
+
2125
  <div class="eael-twitter-feed-item-content">
2126
+ <p>' . substr(str_replace(@$item['entities']['urls'][0]['url'], '', $item['full_text']), 0, $settings['eael_twitter_feed_content_length']) . $delimeter . '</p>';
2127
 
2128
+ if ($settings['eael_twitter_feed_show_read_more'] == 'true') {
2129
+ $html .= '<a href="//twitter.com/' . @$item['user']['screen_name'] . '/status/' . $item['id_str'] . '" target="_blank" class="read-more-link">Read More <i class="fas fa-angle-double-right"></i></a>';
2130
+ }
2131
+ $html .= '</div>
2132
  ' . (isset($item['extended_entities']['media'][0]) && $settings['eael_twitter_feed_media'] == 'true' ? ($item['extended_entities']['media'][0]['type'] == 'photo' ? '<img src="' . $item['extended_entities']['media'][0]['media_url_https'] . '">' : '') : '') . '
2133
  </div>
2134
  </div>';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: elementor, elements, addons, elementor addon, elementor widget, elementor
4
  Requires at least: 4.0
5
  Tested up to: 5.4
6
  Requires PHP: 5.4
7
- Stable tag: 4.1.1
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
@@ -224,10 +224,13 @@ Your existing elements/content will work with premium version. So you won't lose
224
 
225
  == Changelog ==
226
 
 
 
 
 
 
227
  = 4.1.1 - 23/07/2020 =
228
  - Improved: EA Typeform with auth2 authentication
229
- - Fixed: EA Instagram Feed not showing Videos
230
- - Fixed: EA Instagram Feed post limit issue
231
  - Fixed: EA Sticky Video PHP error with Image Overlay option
232
  - Fixed: EA Reading Progress Bar & EA TOC not working inside Elementor Editor
233
  - Fixed: EA Filterable Gallery- broken link issue
4
  Requires at least: 4.0
5
  Tested up to: 5.4
6
  Requires PHP: 5.4
7
+ Stable tag: 4.1.2
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
224
 
225
  == Changelog ==
226
 
227
+ = 4.1.2 - 30/07/2020 =
228
+ - Fixed: EA Twitter Feed | Content length issue
229
+ - Fixed: EA Woo Checkout Coupons showing despite disabling from Woo Settings
230
+ - Few minor bugfix and improvements
231
+
232
  = 4.1.1 - 23/07/2020 =
233
  - Improved: EA Typeform with auth2 authentication
 
 
234
  - Fixed: EA Sticky Video PHP error with Image Overlay option
235
  - Fixed: EA Reading Progress Bar & EA TOC not working inside Elementor Editor
236
  - Fixed: EA Filterable Gallery- broken link issue