Elementor Essential Addons - Version 4.3.4

Version Description

  • 02/11/2020 =
  • Fixed: EA Post Grid | Title Tag not working
  • Fixed: EA Product Grid | Displaying 'Out of Stock' products even if it's disabled from WooCommerce
  • Fixed: EA Product Grid | PHP Notices
  • Few minor bug fix and improvements
Download this release

Release Info

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

Code changes from version 4.3.3 to 4.3.4

essential_adons_elementor.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: The Essential plugin you install after Elementor! Packed with 40+ stunning free elements including Advanced Data Table, Event Calendar, Filterable Gallery, WooCommerce, and many more.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
- * Version: 4.3.3
8
  * Author URI: https://wpdeveloper.net/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
@@ -25,7 +25,7 @@ define('EAEL_PLUGIN_FILE', __FILE__);
25
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
26
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
27
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
28
- define('EAEL_PLUGIN_VERSION', '4.3.3');
29
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
30
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
31
  /**
4
  * Description: The Essential plugin you install after Elementor! Packed with 40+ stunning free elements including Advanced Data Table, Event Calendar, Filterable Gallery, WooCommerce, and many more.
5
  * Plugin URI: https://essential-addons.com/elementor/
6
  * Author: WPDeveloper
7
+ * Version: 4.3.4
8
  * Author URI: https://wpdeveloper.net/
9
  * Text Domain: essential-addons-for-elementor-lite
10
  * Domain Path: /languages
25
  define('EAEL_PLUGIN_BASENAME', plugin_basename(__FILE__));
26
  define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
27
  define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
28
+ define('EAEL_PLUGIN_VERSION', '4.3.4');
29
  define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
30
  define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
31
  /**
includes/Elements/Post_Grid.php CHANGED
@@ -996,167 +996,6 @@ class Post_Grid extends Widget_Base
996
  do_action('eael/controls/load_more_button_style', $this);
997
  }
998
 
999
- private function render_template__header( $style = null ) {
1000
- $settings = $this->get_settings_for_display();
1001
-
1002
- if ($style === 'two' && $settings['eael_show_meta'] && $settings['meta_position'] == 'meta-entry-header') {
1003
- $this->render_template__meta_style_two($settings);
1004
- }
1005
- if ($settings['eael_show_title']) {
1006
- echo '<header class="eael-entry-header"><h2 class="eael-entry-title">';
1007
- echo '<a
1008
- class="eael-grid-post-link"
1009
- href="' . get_the_permalink() . '"
1010
- title="' . get_the_title() . '"
1011
- ' . ($settings['title_link_nofollow'] ? 'rel="nofollow"' : '') . '
1012
- ' . ($settings['title_link_target_blank'] ? 'target="_blank"' : '') . '
1013
- >';
1014
-
1015
- if (empty($settings['eael_title_length'])) {
1016
- echo get_the_title();
1017
- } else {
1018
- echo implode(" ", array_slice(explode(" ", get_the_title()), 0, $settings['eael_title_length']));
1019
- }
1020
- echo '</a>';
1021
- echo '</h2></header>';
1022
- }
1023
- if ($style == '' && $settings['meta_position'] == 'meta-entry-header') {
1024
- $this->render_template__meta($settings);
1025
- }
1026
- }
1027
-
1028
- private function render_template__meta()
1029
- {
1030
- $settings = $this->get_settings_for_display();
1031
-
1032
- if ($settings['eael_show_meta']) {
1033
- echo '<div class="eael-entry-meta">';
1034
- if ($settings['eael_show_author'] === 'yes') {
1035
- echo '<span class="eael-posted-by">' . get_the_author_posts_link() . '</span>';
1036
- }
1037
- if ($settings['eael_show_date'] === 'yes') {
1038
- echo '<span class="eael-posted-on"><time datetime="' . get_the_date() . '">' . get_the_date() . '</time></span>';
1039
- }
1040
- echo '</div>';
1041
- }
1042
- }
1043
-
1044
- private function render_template__meta_style_two()
1045
- {
1046
- $settings = $this->get_settings_for_display();
1047
-
1048
- echo '<div class="eael-entry-meta">';
1049
- if ($settings['eael_show_date'] === 'yes') {
1050
- echo '<span class="eael-meta-posted-on"><i class="far fa-clock"></i><time datetime="' . get_the_date() . '">' . get_the_date() . '</time></span>';
1051
- }
1052
- if ($settings['eael_show_post_terms'] === 'yes') {
1053
- if ($settings['eael_post_terms'] === 'category') {
1054
- $terms = get_the_category();
1055
- }
1056
- if ($settings['eael_post_terms'] === 'tags') {
1057
- $terms = get_the_tags();
1058
- }
1059
- if (!empty($terms)) {
1060
- $html = '<ul class="post-meta-categories">';
1061
- $count = 0;
1062
- foreach ($terms as $term) {
1063
- if ($count === intval($settings['eael_post_terms_max_length'])) {
1064
- break;
1065
- }
1066
- if ($count === 0) {
1067
- $html .= '<li class="meta-cat-icon"><i class="far fa-folder-open"></i></li>';
1068
- }
1069
- $link = ($settings['eael_post_terms'] === 'category') ? get_category_link($term->term_id) : get_tag_link($term->term_id);
1070
- $html .= '<li>';
1071
- $html .= '<a href="' . esc_url($link) . '">';
1072
- $html .= $term->name;
1073
- $html .= '</a>';
1074
- $html .= '</li>';
1075
- $count++;
1076
- }
1077
- $html .= '</ul>';
1078
- echo $html;
1079
- }
1080
- }
1081
- echo '</div>';
1082
- }
1083
-
1084
- private function render_template__footer_meta()
1085
- {
1086
- $settings = $this->get_settings_for_display();
1087
-
1088
- if ($settings['eael_show_meta'] && $settings['meta_position'] == 'meta-entry-footer') {
1089
- echo '<div class="eael-entry-footer">';
1090
- if ($settings['eael_show_avatar'] === 'yes') {
1091
- echo '<div class="eael-author-avatar"><a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . get_avatar(get_the_author_meta('ID'), 96) . '</a></div>';
1092
- }
1093
- $this->render_template__meta($settings);
1094
- echo '</div>';
1095
- }
1096
- }
1097
-
1098
- private function render_template__excerpt()
1099
- {
1100
- $settings = $this->get_settings_for_display();
1101
-
1102
- if ($settings['eael_show_excerpt'] || $settings['eael_show_read_more_button']) {
1103
- echo '<div class="eael-entry-content">
1104
- <div class="eael-grid-post-excerpt">';
1105
- if ($settings['eael_show_excerpt']) {
1106
- if (empty($settings['eael_excerpt_length'])) {
1107
- echo '<p>' . strip_shortcodes(get_the_excerpt() ? get_the_excerpt() : get_the_content()) . '</p>';
1108
- } else {
1109
- echo '<p>' . wp_trim_words(strip_shortcodes(get_the_excerpt() ? get_the_excerpt() : get_the_content()), $settings['eael_excerpt_length'], $settings['excerpt_expanison_indicator']) . '</p>';
1110
- }
1111
- }
1112
-
1113
- if ($settings['eael_show_read_more_button']) {
1114
- echo '<a
1115
- href="' . get_the_permalink() . '"
1116
- class="eael-post-elements-readmore-btn"
1117
- ' . ($settings['read_more_link_nofollow'] ? 'rel="nofollow"' : '') . '
1118
- ' . ($settings['read_more_link_target_blank'] ? 'target="_blank"' : '') . '
1119
- >' . esc_attr($settings['read_more_button_text']) . '</a>';
1120
- }
1121
- echo '</div>
1122
- </div>';
1123
- }
1124
- }
1125
- private function render_template__thumbnail($style = null)
1126
- {
1127
- $settings = $this->get_settings_for_display();
1128
-
1129
- if (has_post_thumbnail() && $settings['eael_show_image'] == 'yes') {
1130
-
1131
- echo '<div class="eael-entry-media">';
1132
- if ($style == null && $settings['eael_show_post_terms'] === 'yes') {
1133
- echo self::get_terms_as_list($settings['eael_post_terms'], $settings['eael_post_terms_max_length']);
1134
- }
1135
-
1136
- echo '<div class="eael-entry-overlay ' . $settings['eael_post_grid_hover_animation'] . '">';
1137
-
1138
- if (isset($settings['eael_post_grid_bg_hover_icon_new']['url'])) {
1139
- echo '<img src="' . esc_url($settings['eael_post_grid_bg_hover_icon_new']['url']) . '" alt="' . esc_attr(get_post_meta($settings['eael_post_grid_bg_hover_icon_new']['id'], '_wp_attachment_image_alt', true)) . '" />';
1140
- } else {
1141
- echo '<i class="' . $settings['eael_post_grid_bg_hover_icon_new']['value'] . '" aria-hidden="true"></i>';
1142
- }
1143
- echo '<a
1144
- href="' . get_the_permalink() . '"
1145
- ' . ($settings['image_link_nofollow'] ? 'rel="nofollow"' : '') . '
1146
- ' . ($settings['image_link_target_blank'] ? 'target="_blank"' : '') . '
1147
- ></a>';
1148
- echo '</div>';
1149
-
1150
- echo '<div class="eael-entry-thumbnail">
1151
- <img src="' . esc_url(wp_get_attachment_image_url(get_post_thumbnail_id(), $settings['image_size'])) . '" alt="' . esc_attr(get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true)) . '">
1152
- </div>';
1153
- echo '</div>';
1154
- if ($style === 'three' && $settings['eael_show_date'] === 'yes') {
1155
- echo '<span class="eael-meta-posted-on"><time datetime="' . get_the_date() . '"><span>' . get_the_date('d') . '</span>' . get_the_date('F') . '</time></span>';
1156
- }
1157
- }
1158
- }
1159
-
1160
  protected function render()
1161
  {
1162
  $settings = $this->get_settings();
996
  do_action('eael/controls/load_more_button_style', $this);
997
  }
998
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
999
  protected function render()
1000
  {
1001
  $settings = $this->get_settings();
includes/Elements/Product_Grid.php CHANGED
@@ -95,8 +95,8 @@ class Product_Grid extends Widget_Base {
95
  {
96
  if ($this->is_show_custom_add_to_cart) {
97
  global $product;
98
- $product_type = $product->product_type;
99
- switch ($product_type) {
100
  case 'external':
101
  return $this->external_add_to_cart_button_text;
102
  break;
@@ -913,6 +913,15 @@ class Product_Grid extends Widget_Base {
913
  ];
914
  }
915
 
 
 
 
 
 
 
 
 
 
916
  if ($settings['eael_product_grid_product_filter'] == 'featured-products') {
917
  $args['tax_query'] = [
918
  'relation' => 'AND',
@@ -935,7 +944,7 @@ class Product_Grid extends Widget_Base {
935
  $args['orderby'] = 'meta_value_num';
936
  $args['order'] = 'DESC';
937
  } else if ($settings['eael_product_grid_product_filter'] == 'sale-products') {
938
- $args['meta_query'] = [
939
  'relation' => 'OR',
940
  [
941
  'key' => '_sale_price',
95
  {
96
  if ($this->is_show_custom_add_to_cart) {
97
  global $product;
98
+
99
+ switch ($product->get_type()) {
100
  case 'external':
101
  return $this->external_add_to_cart_button_text;
102
  break;
913
  ];
914
  }
915
 
916
+ $args['meta_query'] = ['relation' => 'AND'];
917
+
918
+ if (get_option('woocommerce_hide_out_of_stock_items') == 'yes') {
919
+ $args['meta_query'][] = [
920
+ 'key' => '_stock_status',
921
+ 'value' => 'instock'
922
+ ];
923
+ }
924
+
925
  if ($settings['eael_product_grid_product_filter'] == 'featured-products') {
926
  $args['tax_query'] = [
927
  'relation' => 'AND',
944
  $args['orderby'] = 'meta_value_num';
945
  $args['order'] = 'DESC';
946
  } else if ($settings['eael_product_grid_product_filter'] == 'sale-products') {
947
+ $args['meta_query'][] = [
948
  'relation' => 'OR',
949
  [
950
  'key' => '_sale_price',
includes/Template/Post-Grid/default.php CHANGED
@@ -14,131 +14,127 @@ if ($settings['eael_post_grid_preset_style'] === 'two') {
14
  echo '<article class="eael-grid-post eael-post-grid-column" data-id="' . get_the_ID() . '">
15
  <div class="eael-grid-post-holder">
16
  <div class="eael-grid-post-holder-inner">';
 
 
 
 
 
17
 
18
- if (has_post_thumbnail() && $settings['eael_show_image'] == 'yes') {
19
-
20
- echo '<div class="eael-entry-media">';
21
- if ($settings['eael_show_post_terms'] === 'yes') {
22
- echo Helper::get_terms_as_list($settings['eael_post_terms'], $settings['eael_post_terms_max_length']);
23
- }
24
-
25
- echo '<div class="eael-entry-overlay ' . $settings['eael_post_grid_hover_animation'] . '">';
26
-
27
- if (isset($settings['eael_post_grid_bg_hover_icon_new']['url'])) {
28
- echo '<img src="' . esc_url($settings['eael_post_grid_bg_hover_icon_new']['url']) . '" alt="' . esc_attr(get_post_meta($settings['eael_post_grid_bg_hover_icon_new']['id'], '_wp_attachment_image_alt', true)) . '" />';
29
- } else {
30
- echo '<i class="' . $settings['eael_post_grid_bg_hover_icon_new']['value'] . '" aria-hidden="true"></i>';
31
- }
32
- echo '<a
33
- href="' . get_the_permalink() . '"
34
- ' . ($settings['image_link_nofollow'] ? 'rel="nofollow"' : '') . '
35
- ' . ($settings['image_link_target_blank'] ? 'target="_blank"' : '') . '
36
- ></a>';
37
- echo '</div>';
38
-
39
- echo '<div class="eael-entry-thumbnail">
40
- <img src="' . esc_url(wp_get_attachment_image_url(get_post_thumbnail_id(), $settings['image_size'])) . '" alt="' . esc_attr(get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true)) . '">
41
- </div>';
42
- echo '</div>';
43
- }
44
-
45
- if ($settings['eael_show_title'] || $settings['eael_show_meta'] || $settings['eael_show_excerpt']) {
46
- echo '<div class="eael-entry-wrapper">';
47
- if ($settings['eael_show_title']) {
48
- echo '<header class="eael-entry-header"><h2 class="eael-entry-title">';
49
- echo '<a
50
- class="eael-grid-post-link"
51
- href="' . get_the_permalink() . '"
52
- title="' . get_the_title() . '"
53
- ' . ($settings['title_link_nofollow'] ? 'rel="nofollow"' : '') . '
54
- ' . ($settings['title_link_target_blank'] ? 'target="_blank"' : '') . '
55
- >';
56
-
57
- if (empty($settings['eael_title_length'])) {
58
- echo get_the_title();
59
- } else {
60
- echo implode(" ", array_slice(explode(" ", get_the_title()), 0, $settings['eael_title_length']));
61
- }
62
- echo '</a>';
63
- echo '</h2></header>';
64
- }
65
-
66
-
67
- if ($settings['meta_position'] == 'meta-entry-header') {
68
- if ($settings['eael_show_meta']) {
69
- echo '<div class="eael-entry-meta">';
70
- if ($settings['eael_show_author'] === 'yes') {
71
- echo '<span class="eael-posted-by">' . get_the_author_posts_link() . '</span>';
72
  }
73
- if ($settings['eael_show_date'] === 'yes') {
74
- echo '<span class="eael-posted-on"><time datetime="' . get_the_date() . '">' . get_the_date() . '</time></span>';
75
- }
76
- echo '</div>';
77
- }
78
- }
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
- if ($settings['eael_show_excerpt'] || $settings['eael_show_read_more_button']) {
82
- echo '<div class="eael-entry-content">
83
- <div class="eael-grid-post-excerpt">';
84
- if ($settings['eael_show_excerpt']) {
85
- if (empty($settings['eael_excerpt_length'])) {
86
- echo '<p>' . strip_shortcodes(get_the_excerpt() ? get_the_excerpt() : get_the_content()) . '</p>';
87
- } else {
88
- echo '<p>' . wp_trim_words(strip_shortcodes(get_the_excerpt() ? get_the_excerpt() : get_the_content()), $settings['eael_excerpt_length'], $settings['excerpt_expanison_indicator']) . '</p>';
89
- }
90
- }
 
 
91
 
92
- if ($settings['eael_show_read_more_button']) {
93
- echo '<a
94
- href="' . get_the_permalink() . '"
95
- class="eael-post-elements-readmore-btn"
96
- ' . ($settings['read_more_link_nofollow'] ? 'rel="nofollow"' : '') . '
97
- ' . ($settings['read_more_link_target_blank'] ? 'target="_blank"' : '') . '
98
- >' . esc_attr($settings['read_more_button_text']) . '</a>';
99
- }
100
- echo '</div>
101
- </div>';
102
- }
103
 
104
- if ($settings['meta_position'] == 'meta-entry-footer') {
105
- echo '<div class="eael-entry-meta">';
106
- if ($settings['eael_show_date'] === 'yes') {
107
- echo '<span class="eael-meta-posted-on"><i class="far fa-clock"></i><time datetime="' . get_the_date() . '">' . get_the_date() . '</time></span>';
108
- }
109
- if ($settings['eael_show_post_terms'] === 'yes') {
110
- if ($settings['eael_post_terms'] === 'category') {
111
- $terms = get_the_category();
112
- }
113
- if ($settings['eael_post_terms'] === 'tags') {
114
- $terms = get_the_tags();
115
- }
116
- if (!empty($terms)) {
117
- $html = '<ul class="post-meta-categories">';
118
- $count = 0;
119
- foreach ($terms as $term) {
120
- if ($count === intval($settings['eael_post_terms_max_length'])) {
121
- break;
122
  }
123
- if ($count === 0) {
124
- $html .= '<li class="meta-cat-icon"><i class="far fa-folder-open"></i></li>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  }
126
- $link = ($settings['eael_post_terms'] === 'category') ? get_category_link($term->term_id) : get_tag_link($term->term_id);
127
- $html .= '<li>';
128
- $html .= '<a href="' . esc_url($link) . '">';
129
- $html .= $term->name;
130
- $html .= '</a>';
131
- $html .= '</li>';
132
- $count++;
133
  }
134
- $html .= '</ul>';
135
- echo $html;
136
  }
137
- }
138
- echo '</div>';
139
- }
140
- echo '</div>';
141
- }
142
  echo '</div>
143
  </div>
144
  </article>';
@@ -147,7 +143,6 @@ if ($settings['eael_post_grid_preset_style'] === 'two') {
147
  <div class="eael-grid-post-holder">
148
  <div class="eael-grid-post-holder-inner">';
149
 
150
-
151
  if (has_post_thumbnail() && $settings['eael_show_image'] == 'yes') {
152
 
153
  echo '<div class="eael-entry-media">';
@@ -182,7 +177,7 @@ if ($settings['eael_post_grid_preset_style'] === 'two') {
182
  echo '<div class="eael-entry-wrapper">';
183
 
184
  if ($settings['eael_show_title']) {
185
- echo '<header class="eael-entry-header"><h2 class="eael-entry-title">';
186
  echo '<a
187
  class="eael-grid-post-link"
188
  href="' . get_the_permalink() . '"
@@ -197,7 +192,7 @@ if ($settings['eael_post_grid_preset_style'] === 'two') {
197
  echo implode(" ", array_slice(explode(" ", get_the_title()), 0, $settings['eael_title_length']));
198
  }
199
  echo '</a>';
200
- echo '</h2></header>';
201
  }
202
 
203
  if ($settings['meta_position'] == 'meta-entry-footer') {
@@ -280,7 +275,7 @@ if ($settings['eael_post_grid_preset_style'] === 'two') {
280
  if ($settings['eael_show_title'] || $settings['eael_show_meta'] || $settings['eael_show_excerpt']) {
281
  echo '<div class="eael-entry-wrapper">';
282
  if ($settings['eael_show_title']) {
283
- echo '<header class="eael-entry-header"><h2 class="eael-entry-title">';
284
  echo '<a
285
  class="eael-grid-post-link"
286
  href="' . get_the_permalink() . '"
@@ -295,7 +290,7 @@ if ($settings['eael_post_grid_preset_style'] === 'two') {
295
  echo implode(" ", array_slice(explode(" ", get_the_title()), 0, $settings['eael_title_length']));
296
  }
297
  echo '</a>';
298
- echo '</h2></header>';
299
  }
300
  if ($settings['meta_position'] == 'meta-entry-header') {
301
  if ($settings['eael_show_meta']) {
@@ -333,7 +328,6 @@ if ($settings['eael_post_grid_preset_style'] === 'two') {
333
  </div>';
334
  }
335
 
336
-
337
  if ($settings['eael_show_meta'] && $settings['meta_position'] == 'meta-entry-footer') {
338
  echo '<div class="eael-entry-footer">';
339
  if ($settings['eael_show_avatar'] === 'yes') {
14
  echo '<article class="eael-grid-post eael-post-grid-column" data-id="' . get_the_ID() . '">
15
  <div class="eael-grid-post-holder">
16
  <div class="eael-grid-post-holder-inner">';
17
+ if (has_post_thumbnail() && $settings['eael_show_image'] == 'yes') {
18
+ echo '<div class="eael-entry-media">';
19
+ if ($settings['eael_show_post_terms'] === 'yes') {
20
+ echo Helper::get_terms_as_list($settings['eael_post_terms'], $settings['eael_post_terms_max_length']);
21
+ }
22
 
23
+ echo '<div class="eael-entry-overlay ' . $settings['eael_post_grid_hover_animation'] . '">';
24
+ if (isset($settings['eael_post_grid_bg_hover_icon_new']['url'])) {
25
+ echo '<img src="' . esc_url($settings['eael_post_grid_bg_hover_icon_new']['url']) . '" alt="' . esc_attr(get_post_meta($settings['eael_post_grid_bg_hover_icon_new']['id'], '_wp_attachment_image_alt', true)) . '" />';
26
+ } else {
27
+ echo '<i class="' . $settings['eael_post_grid_bg_hover_icon_new']['value'] . '" aria-hidden="true"></i>';
28
+ }
29
+
30
+ echo '<a
31
+ href="' . get_the_permalink() . '"
32
+ ' . ($settings['image_link_nofollow'] ? 'rel="nofollow"' : '') . '
33
+ ' . ($settings['image_link_target_blank'] ? 'target="_blank"' : '') . '
34
+ ></a>';
35
+ echo '</div>';
36
+
37
+ echo '<div class="eael-entry-thumbnail">
38
+ <img src="' . esc_url(wp_get_attachment_image_url(get_post_thumbnail_id(), $settings['image_size'])) . '" alt="' . esc_attr(get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true)) . '">
39
+ </div>';
40
+ echo '</div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  }
 
 
 
 
 
 
42
 
43
+ if ($settings['eael_show_title'] || $settings['eael_show_meta'] || $settings['eael_show_excerpt']) {
44
+ echo '<div class="eael-entry-wrapper">';
45
+ if ($settings['eael_show_title']) {
46
+ echo '<header class="eael-entry-header"><' . $settings['title_tag'] . ' class="eael-entry-title">';
47
+ echo '<a
48
+ class="eael-grid-post-link"
49
+ href="' . get_the_permalink() . '"
50
+ title="' . get_the_title() . '"
51
+ ' . ($settings['title_link_nofollow'] ? 'rel="nofollow"' : '') . '
52
+ ' . ($settings['title_link_target_blank'] ? 'target="_blank"' : '') . '
53
+ >';
54
+
55
+ if (empty($settings['eael_title_length'])) {
56
+ echo get_the_title();
57
+ } else {
58
+ echo implode(" ", array_slice(explode(" ", get_the_title()), 0, $settings['eael_title_length']));
59
+ }
60
+ echo '</a>';
61
+ echo '</' . $settings['title_tag'] . '></header>';
62
+ }
63
 
64
+ if ($settings['meta_position'] == 'meta-entry-header') {
65
+ if ($settings['eael_show_meta']) {
66
+ echo '<div class="eael-entry-meta">';
67
+ if ($settings['eael_show_author'] === 'yes') {
68
+ echo '<span class="eael-posted-by">' . get_the_author_posts_link() . '</span>';
69
+ }
70
+ if ($settings['eael_show_date'] === 'yes') {
71
+ echo '<span class="eael-posted-on"><time datetime="' . get_the_date() . '">' . get_the_date() . '</time></span>';
72
+ }
73
+ echo '</div>';
74
+ }
75
+ }
76
 
77
+ if ($settings['eael_show_excerpt'] || $settings['eael_show_read_more_button']) {
78
+ echo '<div class="eael-entry-content">
79
+ <div class="eael-grid-post-excerpt">';
80
+ if ($settings['eael_show_excerpt']) {
81
+ if (empty($settings['eael_excerpt_length'])) {
82
+ echo '<p>' . strip_shortcodes(get_the_excerpt() ? get_the_excerpt() : get_the_content()) . '</p>';
83
+ } else {
84
+ echo '<p>' . wp_trim_words(strip_shortcodes(get_the_excerpt() ? get_the_excerpt() : get_the_content()), $settings['eael_excerpt_length'], $settings['excerpt_expanison_indicator']) . '</p>';
85
+ }
86
+ }
 
87
 
88
+ if ($settings['eael_show_read_more_button']) {
89
+ echo '<a
90
+ href="' . get_the_permalink() . '"
91
+ class="eael-post-elements-readmore-btn"
92
+ ' . ($settings['read_more_link_nofollow'] ? 'rel="nofollow"' : '') . '
93
+ ' . ($settings['read_more_link_target_blank'] ? 'target="_blank"' : '') . '
94
+ >' . esc_attr($settings['read_more_button_text']) . '</a>';
95
+ }
96
+ echo '</div>
97
+ </div>';
98
+ }
99
+
100
+ if ($settings['meta_position'] == 'meta-entry-footer') {
101
+ echo '<div class="eael-entry-meta">';
102
+ if ($settings['eael_show_date'] === 'yes') {
103
+ echo '<span class="eael-meta-posted-on"><i class="far fa-clock"></i><time datetime="' . get_the_date() . '">' . get_the_date() . '</time></span>';
 
 
104
  }
105
+ if ($settings['eael_show_post_terms'] === 'yes') {
106
+ if ($settings['eael_post_terms'] === 'category') {
107
+ $terms = get_the_category();
108
+ }
109
+ if ($settings['eael_post_terms'] === 'tags') {
110
+ $terms = get_the_tags();
111
+ }
112
+ if (!empty($terms)) {
113
+ $html = '<ul class="post-meta-categories">';
114
+ $count = 0;
115
+ foreach ($terms as $term) {
116
+ if ($count === intval($settings['eael_post_terms_max_length'])) {
117
+ break;
118
+ }
119
+ if ($count === 0) {
120
+ $html .= '<li class="meta-cat-icon"><i class="far fa-folder-open"></i></li>';
121
+ }
122
+ $link = ($settings['eael_post_terms'] === 'category') ? get_category_link($term->term_id) : get_tag_link($term->term_id);
123
+ $html .= '<li>';
124
+ $html .= '<a href="' . esc_url($link) . '">';
125
+ $html .= $term->name;
126
+ $html .= '</a>';
127
+ $html .= '</li>';
128
+ $count++;
129
+ }
130
+ $html .= '</ul>';
131
+ echo $html;
132
+ }
133
  }
134
+ echo '</div>';
 
 
 
 
 
 
135
  }
136
+ echo '</div>';
 
137
  }
 
 
 
 
 
138
  echo '</div>
139
  </div>
140
  </article>';
143
  <div class="eael-grid-post-holder">
144
  <div class="eael-grid-post-holder-inner">';
145
 
 
146
  if (has_post_thumbnail() && $settings['eael_show_image'] == 'yes') {
147
 
148
  echo '<div class="eael-entry-media">';
177
  echo '<div class="eael-entry-wrapper">';
178
 
179
  if ($settings['eael_show_title']) {
180
+ echo '<header class="eael-entry-header"><' . $settings['title_tag'] . ' class="eael-entry-title">';
181
  echo '<a
182
  class="eael-grid-post-link"
183
  href="' . get_the_permalink() . '"
192
  echo implode(" ", array_slice(explode(" ", get_the_title()), 0, $settings['eael_title_length']));
193
  }
194
  echo '</a>';
195
+ echo '</' . $settings['title_tag'] . '></header>';
196
  }
197
 
198
  if ($settings['meta_position'] == 'meta-entry-footer') {
275
  if ($settings['eael_show_title'] || $settings['eael_show_meta'] || $settings['eael_show_excerpt']) {
276
  echo '<div class="eael-entry-wrapper">';
277
  if ($settings['eael_show_title']) {
278
+ echo '<header class="eael-entry-header"><' . $settings['title_tag'] . ' class="eael-entry-title">';
279
  echo '<a
280
  class="eael-grid-post-link"
281
  href="' . get_the_permalink() . '"
290
  echo implode(" ", array_slice(explode(" ", get_the_title()), 0, $settings['eael_title_length']));
291
  }
292
  echo '</a>';
293
+ echo '</' . $settings['title_tag'] . '></header>';
294
  }
295
  if ($settings['meta_position'] == 'meta-entry-header') {
296
  if ($settings['eael_show_meta']) {
328
  </div>';
329
  }
330
 
 
331
  if ($settings['eael_show_meta'] && $settings['meta_position'] == 'meta-entry-footer') {
332
  echo '<div class="eael-entry-footer">';
333
  if ($settings['eael_show_avatar'] === 'yes') {
includes/Traits/Controls.php CHANGED
@@ -650,7 +650,7 @@ trait Controls
650
  $wb->add_control(
651
  'title_tag',
652
  [
653
- 'label' => __('Select Tag', 'essential-addons-for-elementor-lite'),
654
  'type' => Controls_Manager::SELECT,
655
  'default' => 'h2',
656
  'options' => [
650
  $wb->add_control(
651
  'title_tag',
652
  [
653
+ 'label' => __('Title Tag', 'essential-addons-for-elementor-lite'),
654
  'type' => Controls_Manager::SELECT,
655
  'default' => 'h2',
656
  'options' => [
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.5
6
  Requires PHP: 5.4
7
- Stable tag: 4.3.3
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
@@ -224,6 +224,12 @@ Your existing elements/content will work with premium version. So you won't lose
224
 
225
  == Changelog ==
226
 
 
 
 
 
 
 
227
  = 4.3.3 - 22/10/2020 =
228
  - Fixed: Assets not generating on Multi-sites
229
  - Fixed: Critical Errors related to Template queries
4
  Requires at least: 4.0
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
7
+ Stable tag: 4.3.4
8
  License: GPLv3
9
  License URI: https://opensource.org/licenses/GPL-3.0
10
 
224
 
225
  == Changelog ==
226
 
227
+ = 4.3.4 - 02/11/2020 =
228
+ - Fixed: EA Post Grid | Title Tag not working
229
+ - Fixed: EA Product Grid | Displaying 'Out of Stock' products even if it's disabled from WooCommerce
230
+ - Fixed: EA Product Grid | PHP Notices
231
+ - Few minor bug fix and improvements
232
+
233
  = 4.3.3 - 22/10/2020 =
234
  - Fixed: Assets not generating on Multi-sites
235
  - Fixed: Critical Errors related to Template queries