PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / 4.5.6
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets v4.5.6
4.5.6 4.5.5 4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 All 148 releases
← All changes | modules/ramble-carousel/widgets/ramble-carousel.php +15 -12 4.0.9 → 4.5.6 View file →
@@ -154,8 +154,9 @@
154 154 $this->add_group_control(
155 155 Group_Control_Image_Size::get_type(),
156 156 [
157 157 'name' => 'primary_thumbnail',
158 + // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude -- Elementor widget query built from user-configured controls; expected behaviour.
158 159 'exclude' => ['custom'],
159 160 'default' => 'medium',
160 161 ]
161 162 );
@@ -184,8 +185,11 @@
184 185 ],
185 186 'default' => [
186 187 'size' => 6,
187 188 ],
189 + 'condition' => [
190 + 'posts_source!' => 'current_query',
191 + ]
188 192 ]
189 193 );
190 194
191 195 $this->register_query_builder_controls();
@@ -194,9 +198,9 @@
194 198
195 199 $this->start_controls_section(
196 200 'section_content_additional',
197 201 [
198 - 'label' => esc_html__('Additional', 'ultimate-post-kit'),
202 + 'label' => esc_html__('Additional Options', 'ultimate-post-kit'),
199 203 ]
200 204 );
201 205
202 206 //Global Title Controls
@@ -270,8 +274,9 @@
270 274 'readmore_text',
271 275 [
272 276 'label' => esc_html__('Read More Text', 'ultimate-post-kit'),
273 277 'type' => Controls_Manager::TEXT,
278 + 'dynamic' => [ 'active' => true ],
274 279 'default' => esc_html__('Read More', 'ultimate-post-kit'),
275 280 'placeholder' => esc_html__('Read More', 'ultimate-post-kit'),
276 281 'condition' => [
277 282 'show_readmore' => 'yes',
@@ -1235,11 +1240,11 @@
1235 1240 */
1236 1241 public function query_posts($posts_per_page) {
1237 1242
1238 1243 $default = $this->getGroupControlQueryArgs();
1244 + $args = [];
1239 1245 if ($posts_per_page) {
1240 1246 $args['posts_per_page'] = $posts_per_page;
1241 - // $args['paged'] = max(1, get_query_var('paged'), get_query_var('page'));
1242 1247 }
1243 1248 $args = array_merge($default, $args);
1244 1249 $this->_query = new WP_Query($args);
1245 1250 }
@@ -1266,9 +1271,9 @@
1266 1271
1267 1272 <?php if ($settings['show_date'] or $settings['show_reading_time']) : ?>
1268 1273 <div class="upk-date-reading-time upk-flex upk-flex-middle">
1269 1274 <?php if ($settings['show_date'] == 'yes') : ?>
1270 - <div data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1275 + <div data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1271 1276 <?php $this->render_date(); ?>
1272 1277 </div>
1273 1278 <?php endif; ?>
1274 1279
@@ -1273,10 +1278,10 @@
1273 1278 <?php endif; ?>
1274 1279
1275 1280 <?php if (_is_upk_pro_activated()) :
1276 1281 if ('yes' === $settings['show_reading_time']) : ?>
1277 - <div class="upk-reading-time" data-separator="<?php echo esc_html($settings['meta_separator']); ?>">
1278 - <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'] ) ); ?>
1282 + <div class="upk-reading-time" data-separator="<?php echo esc_attr($settings['meta_separator']); ?>">
1283 + <?php echo esc_html( ultimate_post_kit_reading_time( get_the_content(), $settings['avg_reading_speed'], $settings['hide_seconds'] ?? 'no', $settings['hide_minutes'] ?? 'no' ) ); ?>
1279 1284 </div>
1280 1285 <?php endif; ?>
1281 1286 <?php endif; ?>
1282 1287
@@ -1293,13 +1298,11 @@
1293 1298
1294 1299 if (!$this->get_settings('show_comments')) {
1295 1300 return;
1296 1301 }
1297 -
1298 - ?>
1302 + ?>
1299 1303 <div class="upk-comments">
1300 - <?php echo get_comments_number($id) ?>
1301 - <?php echo esc_html__('Comments', 'ultimate-post-kit') ?>
1304 + <?php echo esc_html( $this->upk_get_formatted_comments_count( $id ) ); ?>
1302 1305 </div>
1303 1306 <?php
1304 1307 }
1305 1308
@@ -1312,14 +1315,14 @@
1312 1315
1313 1316 $animation = ($this->get_settings('readmore_hover_animation')) ? ' elementor-animation-' . $this->get_settings('readmore_hover_animation') : '';
1314 1317
1315 1318 ?>
1316 - <a href="<?php echo esc_url(get_permalink()); ?>" class="upk-readmore <?php echo esc_html($animation); ?>">
1319 + <a href="<?php echo esc_url(get_permalink()); ?>" class="upk-readmore <?php echo esc_attr($animation); ?>">
1317 1320 <span class="upk-flex upk-flex-middle">
1318 1321 <?php echo esc_html($this->get_settings('readmore_text')); ?>
1319 1322
1320 1323 <?php if ($settings['readmore_icon']['value']) : ?>
1321 - <span class="upk-readmore-btn-icon upk-flex-align-<?php echo esc_html($this->get_settings('icon_align')); ?>">
1324 + <span class="upk-readmore-btn-icon upk-flex-align-<?php echo esc_attr($this->get_settings('icon_align')); ?>">
1322 1325
1323 1326 <?php Icons_Manager::render_icon($settings['readmore_icon'], ['aria-hidden' => 'true', 'class' => 'fa-fw']); ?>
1324 1327
1325 1328 </span>
@@ -1335,9 +1338,9 @@
1335 1338
1336 1339 ?>
1337 1340 <div <?php $this->print_render_attribute_string('carousel'); ?>>
1338 1341 <div class="upk-wrapper">
1339 - <div <?php echo $this->get_render_attribute_string('swiper'); ?>>
1342 + <div <?php $this->print_render_attribute_string('swiper'); ?>>
1340 1343 <div class="swiper-wrapper">
1341 1344 <?php
1342 1345 }
1343 1346