PluginProbe ʕ •ᴥ•ʔ
Shortcodes and extra features for Phlox theme / 2.17.4
Shortcodes and extra features for Phlox theme v2.17.4
2.17.21 2.17.20 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.6 1.0.9 1.1.0 1.3.0 1.3.1 1.3.10 1.3.14 1.3.2 1.3.3 1.3.6 1.4.0 1.4.1 1.4.2 1.5.0 1.5.2 1.6.0 1.6.2 1.6.4 1.7.0 1.7.2 2.10.0 2.10.1 2.10.3 2.10.5 2.10.7 2.10.8 2.10.9 2.11.0 2.11.1 2.11.2 2.12.0 2.14.0 2.15.0 2.15.2 2.15.4 2.15.5 2.15.6 2.15.7 2.15.8 2.15.9 2.16.0 2.16.1 2.16.2 2.16.3 2.16.4 2.17.0 2.17.1 2.17.12 2.17.13 2.17.14 2.17.15 2.17.16 2.17.2 2.17.3 2.17.4 2.17.5 2.17.6 2.17.8 2.17.9 2.4.12 2.4.13 2.4.14 2.4.16 2.4.18 2.4.19 2.4.9 2.5.0 2.5.1 2.5.10 2.5.11 2.5.12 2.5.13 2.5.14 2.5.15 2.5.16 2.5.17 2.5.19 2.5.2 2.5.20 2.5.3 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.10 2.6.12 2.6.13 2.6.14 2.6.15 2.6.16 2.6.17 2.6.19 2.6.2 2.6.20 2.6.4 2.6.5 2.6.7 2.7.0 2.7.1 2.7.10 2.7.11 2.7.12 2.7.13 2.7.14 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.9 2.9.0 2.9.12 2.9.14 2.9.15 2.9.16 2.9.17 2.9.18 2.9.19 2.9.2 2.9.20 2.9.21 2.9.22 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8
auxin-elements / includes / elementor / widgets / recent-posts-tiles-carousel.php
auxin-elements / includes / elementor / widgets Last commit date
theme-elements 1 year ago accordion.php 1 year ago audio.php 4 years ago before-after.php 3 years ago button.php 1 year ago carousel-navigation.php 4 years ago circle-chart.php 1 year ago contact-box.php 4 years ago contact-form.php 1 year ago custom-list.php 1 year ago divider.php 4 years ago gallery.php 1 year ago gmap.php 4 years ago heading-modern.php 1 year ago icon.php 1 year ago image.php 1 year ago mailchimp.php 1 year ago modern-button.php 1 year ago products-grid.php 1 year ago quote.php 1 year ago recent-comments.php 1 year ago recent-posts-grid-carousel.php 1 year ago recent-posts-land-style.php 1 year ago recent-posts-masonry.php 1 year ago recent-posts-tiles-carousel.php 1 year ago recent-posts-tiles.php 1 year ago recent-posts-timeline.php 1 year ago recent-products.php 1 year ago responsive-table.php 1 year ago search.php 4 years ago staff.php 1 year ago svg.php 1 year ago tabs.php 1 year ago testimonial.php 1 year ago text.php 1 year ago touch-slider.php 1 year ago video.php 4 years ago
recent-posts-tiles-carousel.php
752 lines
1 <?php
2 namespace Auxin\Plugin\CoreElements\Elementor\Elements;
3
4 use Elementor\Plugin;
5 use Elementor\Widget_Base;
6 use Elementor\Controls_Manager;
7 use Elementor\Group_Control_Typography;
8 use Elementor\Core\Kits\Documents\Tabs\Global_Typography;
9
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit; // Exit if accessed directly.
13 }
14
15 /**
16 * Elementor 'RecentPostsTilesCarousel' widget.
17 *
18 * Elementor widget that displays an 'RecentPostsTilesCarousel' with lightbox.
19 *
20 * @since 1.0.0
21 */
22 class RecentPostsTilesCarousel extends Widget_Base {
23
24 /**
25 * Get widget name.
26 *
27 * Retrieve 'RecentPostsTilesCarousel' widget name.
28 *
29 * @since 1.0.0
30 * @access public
31 *
32 * @return string Widget name.
33 */
34 public function get_name() {
35 return 'aux_recent_posts_tiles_carousel';
36 }
37
38 /**
39 * Get widget title.
40 *
41 * Retrieve 'RecentPostsTilesCarousel' widget title.
42 *
43 * @since 1.0.0
44 * @access public
45 *
46 * @return string Widget title.
47 */
48 public function get_title() {
49 return __('Tiles Carousel Posts', 'auxin-elements' );
50 }
51
52 /**
53 * Get widget icon.
54 *
55 * Retrieve 'RecentPostsTilesCarousel' widget icon.
56 *
57 * @since 1.0.0
58 * @access public
59 *
60 * @return string Widget icon.
61 */
62 public function get_icon() {
63 return 'eicon-posts-carousel auxin-badge';
64 }
65
66 /**
67 * Get widget categories.
68 *
69 * Retrieve 'RecentPostsTilesCarousel' widget icon.
70 *
71 * @since 1.0.0
72 * @access public
73 *
74 * @return string Widget icon.
75 */
76 public function get_categories() {
77 return array( 'auxin-dynamic' );
78 }
79
80 /**
81 * Retrieve the terms in a given taxonomy or list of taxonomies.
82 *
83 * Retrieve 'RecentPostsTilesCarousel' widget icon.
84 *
85 * @since 1.0.0
86 * @access public
87 *
88 * @return string Widget icon.
89 */
90 public function get_terms() {
91 $terms = get_terms([
92 'taxonomy' => 'category',
93 'orderby' => 'count',
94 'hide_empty' => false,
95 ]);
96
97 $list = array( ' ' => __('All Categories', 'auxin-elements' ) ) ;
98 foreach ( $terms as $key => $value ) {
99 $list[$value->term_id] = $value->name;
100 }
101
102 return $list;
103 }
104
105 /**
106 * Register 'RecentPostsTilesCarousel' widget controls.
107 *
108 * Adds different input fields to allow the user to change and customize the widget settings.
109 *
110 * @since 1.0.0
111 * @access protected
112 */
113 protected function register_controls() {
114
115 /*-----------------------------------------------------------------------------------*/
116 /* layout_section
117 /*-----------------------------------------------------------------------------------*/
118
119 $this->start_controls_section(
120 'layout_section',
121 array(
122 'label' => __('Layout', 'auxin-elements' ),
123 'tab' => Controls_Manager::TAB_LAYOUT
124 )
125 );
126
127 $this->add_control(
128 'tile_style_pattern',
129 array(
130 'label' => __('Post Tile styles','auxin-elements' ),
131 'type' => 'aux-visual-select',
132 'default' => 'default',
133 'options' => array(
134 'default' => array(
135 'label' => __( 'Default', 'auxin-elements' ),
136 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-5.svg'
137 ),
138 'pattern-1' => array(
139 'label' => __( 'Pattern 1', 'auxin-elements' ),
140 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-3.svg'
141 ),
142 'pattern-2' => array(
143 'label' => __( 'Pattern 2', 'auxin-elements' ),
144 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-6.svg'
145 ),
146 'pattern-3' => array(
147 'label' => __( 'Pattern 3', 'auxin-elements' ),
148 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-7.svg'
149 ),
150 'pattern-4' => array(
151 'label' => __( 'Pattern 4', 'auxin-elements' ),
152 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-8.svg'
153 ),
154 'pattern-5' => array(
155 'label' => __( 'Pattern 5', 'auxin-elements' ),
156 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-4.svg'
157 ),
158 'pattern-6' => array(
159 'label' => __('Pattern 6', 'auxin-elements' ),
160 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-1.svg'
161 ),
162 'pattern-7' => array(
163 'label' => __('Pattern 7', 'auxin-elements' ),
164 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-2.svg'
165 )
166 )
167 )
168 );
169
170 $this->add_control(
171 'tile_style',
172 array(
173 'label' => __('Post tile style','auxin-elements' ),
174 'type' => 'aux-visual-select',
175 'default' => '',
176 'options' => array(
177 '' => array(
178 'label' => __('Standard', 'auxin-elements' ),
179 'image' => AUXIN_URL . 'images/visual-select/button-normal.svg'
180 ),
181 'aux-overlay' => array(
182 'label' => __('Dark', 'auxin-elements' ),
183 'image' => AUXIN_URL . 'images/visual-select/button-curved.svg'
184 )
185 )
186 )
187 );
188
189 $this->end_controls_section();
190
191 /*-----------------------------------------------------------------------------------*/
192 /* carousel_section
193 /*-----------------------------------------------------------------------------------*/
194
195 $this->start_controls_section(
196 'carousel_section',
197 array(
198 'label' => __('Carousel', 'auxin-elements' ),
199 'tab' => Controls_Manager::TAB_LAYOUT
200 )
201 );
202
203 $this->add_control(
204 'carousel_navigation_control',
205 array(
206 'label' => __('Navigation control', 'auxin-elements'),
207 'type' => Controls_Manager::SELECT,
208 'default' => 'bullets',
209 'options' => array(
210 '' => __('None', 'auxin-elements'),
211 'arrows' => __('Arrows', 'auxin-elements'),
212 'bullets' => __('Bullets', 'auxin-elements')
213 )
214 )
215 );
216
217 $this->add_control(
218 'button_style',
219 array(
220 'label' => __('Button Navigation Style','auxin-elements' ),
221 'type' => 'aux-visual-select',
222 'default' => 'pattern-1',
223 'options' => array(
224 'pattern-1' => array(
225 'label' => __('Pattern 1', 'auxin-elements' ),
226 'image' => AUXIN_URL . 'images/visual-select/button-normal.svg'
227 ),
228 'pattern-2' => array(
229 'label' => __('Pattern 2', 'auxin-elements' ),
230 'image' => AUXIN_URL . 'images/visual-select/button-curved.svg'
231 )
232 ),
233 'condition' => array(
234 'carousel_navigation_control' => array( 'arrows' ),
235 )
236 )
237 );
238
239 $this->add_control(
240 'carousel_navigation',
241 array(
242 'label' => __('Navigation type', 'auxin-elements'),
243 'type' => Controls_Manager::SELECT,
244 'default' => 'peritem',
245 'options' => array(
246 'peritem' => __('Move per column', 'auxin-elements'),
247 'perpage' => __('Move per page', 'auxin-elements'),
248 'scroll' => __('Smooth scroll', 'auxin-elements')
249 )
250 )
251 );
252
253 $this->add_control(
254 'carousel_loop',
255 array(
256 'label' => __('Loop navigation','auxin-elements' ),
257 'type' => Controls_Manager::SWITCHER,
258 'label_on' => __( 'On', 'auxin-elements' ),
259 'label_off' => __( 'Off', 'auxin-elements' ),
260 'return_value' => 'yes',
261 'default' => 'yes'
262 )
263 );
264
265 $this->add_control(
266 'carousel_autoplay',
267 array(
268 'label' => __('Autoplay carousel','auxin-elements' ),
269 'type' => Controls_Manager::SWITCHER,
270 'label_on' => __( 'On', 'auxin-elements' ),
271 'label_off' => __( 'Off', 'auxin-elements' ),
272 'return_value' => 'yes',
273 'default' => 'no'
274 )
275 );
276
277 $this->add_control(
278 'carousel_autoplay_delay',
279 array(
280 'label' => __( 'Autoplay delay', 'auxin-elements' ),
281 'description' => __('Specifies the delay between auto-forwarding in seconds.', 'auxin-elements' ),
282 'type' => Controls_Manager::NUMBER,
283 'default' => '2'
284 )
285 );
286
287 $this->end_controls_section();
288
289 /*-----------------------------------------------------------------------------------*/
290 /* display_section
291 /*-----------------------------------------------------------------------------------*/
292
293 $this->start_controls_section(
294 'display_section',
295 array(
296 'label' => __('Display', 'auxin-elements' ),
297 'tab' => Controls_Manager::TAB_LAYOUT
298 )
299 );
300
301 $this->add_control(
302 'display_title',
303 array(
304 'label' => __('Display post title', 'auxin-elements' ),
305 'type' => Controls_Manager::SWITCHER,
306 'label_on' => __( 'On', 'auxin-elements' ),
307 'label_off' => __( 'Off', 'auxin-elements' ),
308 'return_value' => 'yes',
309 'default' => 'yes'
310 )
311 );
312
313 $this->add_control(
314 'show_info',
315 array(
316 'label' => __('Display post info','auxin-elements' ),
317 'type' => Controls_Manager::SWITCHER,
318 'label_on' => __( 'On', 'auxin-elements' ),
319 'label_off' => __( 'Off', 'auxin-elements' ),
320 'return_value' => 'yes',
321 'default' => 'yes'
322 )
323 );
324
325 $this->end_controls_section();
326
327 /*-----------------------------------------------------------------------------------*/
328 /* query_section
329 /*-----------------------------------------------------------------------------------*/
330
331 $this->start_controls_section(
332 'query_section',
333 array(
334 'label' => __('Query', 'auxin-elements' ),
335 )
336 );
337
338 $this->add_control(
339 'cat',
340 array(
341 'label' => __('Categories', 'auxin-elements'),
342 'description' => __('Specifies a category that you want to show posts from it.', 'auxin-elements' ),
343 'type' => Controls_Manager::SELECT2,
344 'multiple' => true,
345 'options' => $this->get_terms(),
346 'default' => array( ' ' ),
347 )
348 );
349
350 $this->add_control(
351 'num',
352 array(
353 'label' => __('Number of posts to show', 'auxin-elements'),
354 'label_block' => true,
355 'type' => Controls_Manager::NUMBER,
356 'default' => '8',
357 'min' => 1,
358 'step' => 1
359 )
360 );
361
362 $this->add_control(
363 'exclude_without_media',
364 array(
365 'label' => __('Exclude posts without media','auxin-elements' ),
366 'type' => Controls_Manager::SWITCHER,
367 'label_on' => __( 'On', 'auxin-elements' ),
368 'label_off' => __( 'Off', 'auxin-elements' ),
369 'return_value' => 'yes',
370 'default' => 'no'
371 )
372 );
373
374 $this->add_control(
375 'exclude_custom_post_formats',
376 array(
377 'label' => __('Exclude custom post formats','auxin-elements' ),
378 'type' => Controls_Manager::SWITCHER,
379 'label_on' => __( 'On', 'auxin-elements' ),
380 'label_off' => __( 'Off', 'auxin-elements' ),
381 'return_value' => 'yes',
382 'default' => 'no',
383 )
384 );
385
386 $this->add_control(
387 'exclude_quote_link',
388 array(
389 'label' => __('Exclude quote and link post formats','auxin-elements' ),
390 'type' => Controls_Manager::SWITCHER,
391 'label_on' => __( 'On', 'auxin-elements' ),
392 'label_off' => __( 'Off', 'auxin-elements' ),
393 'return_value' => 'yes',
394 'default' => 'no',
395 'condition' => array(
396 'exclude_custom_post_formats' => 'yes',
397 )
398 )
399 );
400
401 $this->add_control(
402 'order_by',
403 array(
404 'label' => __('Order by', 'auxin-elements'),
405 'type' => Controls_Manager::SELECT,
406 'default' => 'date',
407 'options' => array(
408 'date' => __('Date', 'auxin-elements'),
409 'menu_order date' => __('Menu Order', 'auxin-elements'),
410 'title' => __('Title', 'auxin-elements'),
411 'ID' => __('ID', 'auxin-elements'),
412 'rand' => __('Random', 'auxin-elements'),
413 'comment_count' => __('Comments', 'auxin-elements'),
414 'modified' => __('Date Modified', 'auxin-elements'),
415 'author' => __('Author', 'auxin-elements'),
416 'post__in' => __('Inserted Post IDs', 'auxin-elements')
417 ),
418 )
419 );
420
421 $this->add_control(
422 'order',
423 array(
424 'label' => __('Order', 'auxin-elements'),
425 'type' => Controls_Manager::SELECT,
426 'default' => 'DESC',
427 'options' => array(
428 'DESC' => __('Descending', 'auxin-elements'),
429 'ASC' => __('Ascending', 'auxin-elements'),
430 ),
431 )
432 );
433
434 $this->add_control(
435 'only_posts__in',
436 array(
437 'label' => __('Only posts','auxin-elements' ),
438 'description' => __('If you intend to display ONLY specific posts, you should specify the posts here. You have to insert the post IDs that are separated by comma (eg. 53,34,87,25).', 'auxin-elements' ),
439 'type' => Controls_Manager::TEXT
440 )
441 );
442
443 $this->add_control(
444 'include',
445 array(
446 'label' => __('Include posts','auxin-elements' ),
447 'description' => __('If you intend to include additional posts, you should specify the posts here. You have to insert the Post IDs that are separated by comma (eg. 53,34,87,25)', 'auxin-elements' ),
448 'type' => Controls_Manager::TEXT
449 )
450 );
451
452 $this->add_control(
453 'exclude',
454 array(
455 'label' => __('Exclude posts','auxin-elements' ),
456 'description' => __('If you intend to exclude specific posts from result, you should specify the posts here. You have to insert the Post IDs that are separated by comma (eg. 53,34,87,25)', 'auxin-elements' ),
457 'type' => Controls_Manager::TEXT
458 )
459 );
460
461 $this->add_control(
462 'offset',
463 array(
464 'label' => __('Start offset','auxin-elements' ),
465 'description' => __('Number of post to displace or pass over.', 'auxin-elements' ),
466 'type' => Controls_Manager::NUMBER
467 )
468 );
469
470 $this->end_controls_section();
471
472
473 /*-----------------------------------------------------------------------------------*/
474 /* title_style_section
475 /*-----------------------------------------------------------------------------------*/
476
477 $this->start_controls_section(
478 'title_style_section',
479 array(
480 'label' => __( 'Title', 'auxin-elements' ),
481 'tab' => Controls_Manager::TAB_STYLE,
482 'condition' => array(
483 'display_title' => 'yes',
484 ),
485 )
486 );
487
488 $this->start_controls_tabs( 'title_colors' );
489
490 $this->start_controls_tab(
491 'title_color_normal',
492 array(
493 'label' => __( 'Normal' , 'auxin-elements' ),
494 'condition' => array(
495 'display_title' => 'yes',
496 ),
497 )
498 );
499
500 $this->add_control(
501 'title_color',
502 array(
503 'label' => __( 'Color', 'auxin-elements' ),
504 'type' => Controls_Manager::COLOR,
505 'selectors' => array(
506 '{{WRAPPER}} .entry-title a' => 'color: {{VALUE}};',
507 ),
508 'condition' => array(
509 'display_title' => 'yes',
510 ),
511 )
512 );
513
514 $this->end_controls_tab();
515
516 $this->start_controls_tab(
517 'title_color_hover',
518 array(
519 'label' => __( 'Hover' , 'auxin-elements' ),
520 'condition' => array(
521 'display_title' => 'yes',
522 ),
523 )
524 );
525
526 $this->add_control(
527 'title_hover_color',
528 array(
529 'label' => __( 'Color', 'auxin-elements' ),
530 'type' => Controls_Manager::COLOR,
531 'selectors' => array(
532 '{{WRAPPER}} .entry-title a:hover' => 'color: {{VALUE}};',
533 ),
534 'condition' => array(
535 'display_title' => 'yes',
536 ),
537 )
538 );
539
540 $this->end_controls_tab();
541
542 $this->end_controls_tabs();
543
544 $this->add_group_control(
545 Group_Control_Typography::get_type(),
546 array(
547 'name' => 'title_typography',
548 'global' => [
549 'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
550 ],
551 'selector' => '{{WRAPPER}} .entry-title',
552 'condition' => array(
553 'display_title' => 'yes',
554 ),
555 )
556 );
557
558 $this->add_responsive_control(
559 'title_margin_bottom',
560 array(
561 'label' => __( 'Bottom space', 'auxin-elements' ),
562 'type' => Controls_Manager::SLIDER,
563 'range' => array(
564 'px' => array(
565 'max' => 100,
566 ),
567 ),
568 'selectors' => array(
569 '{{WRAPPER}} .entry-title' => 'margin-bottom: {{SIZE}}{{UNIT}};',
570 ),
571 'condition' => array(
572 'display_title' => 'yes',
573 ),
574 )
575 );
576
577 $this->end_controls_section();
578
579 /*-----------------------------------------------------------------------------------*/
580 /* info_style_section
581 /*-----------------------------------------------------------------------------------*/
582
583 $this->start_controls_section(
584 'info_style_section',
585 array(
586 'label' => __( 'Post Info', 'auxin-elements' ),
587 'tab' => Controls_Manager::TAB_STYLE,
588 'condition' => array(
589 'show_info' => 'yes',
590 ),
591 )
592 );
593
594 $this->start_controls_tabs( 'info_colors' );
595
596 $this->start_controls_tab(
597 'info_color_normal',
598 array(
599 'label' => __( 'Normal' , 'auxin-elements' ),
600 'condition' => array(
601 'show_info' => 'yes',
602 ),
603 )
604 );
605
606 $this->add_control(
607 'info_color',
608 array(
609 'label' => __( 'Color', 'auxin-elements' ),
610 'type' => Controls_Manager::COLOR,
611 'selectors' => array(
612 '{{WRAPPER}} .entry-info a, {{WRAPPER}} .entry-info' => 'color: {{VALUE}};',
613 ),
614 'condition' => array(
615 'show_info' => 'yes',
616 ),
617 )
618 );
619
620 $this->end_controls_tab();
621
622 $this->start_controls_tab(
623 'info_color_hover',
624 array(
625 'label' => __( 'Hover' , 'auxin-elements' ),
626 'condition' => array(
627 'show_info' => 'yes',
628 ),
629 )
630 );
631
632 $this->add_control(
633 'info_hover_color',
634 array(
635 'label' => __( 'Color', 'auxin-elements' ),
636 'type' => Controls_Manager::COLOR,
637 'selectors' => array(
638 '{{WRAPPER}} .entry-info a:hover' => 'color: {{VALUE}};',
639 ),
640 'condition' => array(
641 'show_info' => 'yes',
642 ),
643 )
644 );
645
646 $this->end_controls_tab();
647
648 $this->end_controls_tabs();
649
650 $this->add_group_control(
651 Group_Control_Typography::get_type(),
652 array(
653 'name' => 'info_typography',
654 'global' => [
655 'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
656 ],
657 'selector' => '{{WRAPPER}} .entry-info, {{WRAPPER}} .entry-info a',
658 'condition' => array(
659 'show_info' => 'yes',
660 ),
661 )
662 );
663
664 $this->add_responsive_control(
665 'info_margin_bottom',
666 array(
667 'label' => __( 'Bottom space', 'auxin-elements' ),
668 'type' => Controls_Manager::SLIDER,
669 'range' => array(
670 'px' => array(
671 'max' => 100
672 )
673 ),
674 'selectors' => array(
675 '{{WRAPPER}} .entry-info' => 'margin-bottom: {{SIZE}}{{UNIT}};'
676 ),
677 'condition' => array(
678 'show_info' => 'yes'
679 )
680 )
681 );
682
683 $this->add_responsive_control(
684 'info_spacing_between',
685 array(
686 'label' => __( 'Space between metas', 'auxin-elements' ),
687 'type' => Controls_Manager::SLIDER,
688 'range' => array(
689 'px' => array(
690 'max' => 30
691 )
692 ),
693 'selectors' => array(
694 '{{WRAPPER}} .entry-info [class^="entry-"] + [class^="entry-"]:before, {{WRAPPER}} .entry-info .entry-tax a:after' =>
695 'margin-right: {{SIZE}}{{UNIT}}; margin-left: {{SIZE}}{{UNIT}};'
696 ),
697 'condition' => array(
698 'show_info' => 'yes'
699 )
700 )
701 );
702
703 $this->end_controls_section();
704 }
705
706 /**
707 * Render image box widget output on the frontend.
708 *
709 * Written in PHP and used to generate the final HTML.
710 *
711 * @since 1.0.0
712 * @access protected
713 */
714 protected function render() {
715
716 $settings = $this->get_settings_for_display();
717
718 $args = array(
719 // Display Section
720 'display_title' => $settings['display_title'],
721 'show_info' => $settings['show_info'],
722
723 // Layout section
724 'tile_style_pattern' => $settings['tile_style_pattern'],
725 'tile_style' => $settings['tile_style'],
726 'carousel_navigation' => $settings['carousel_navigation'],
727 'button_style' => $settings['button_style'],
728 'carousel_navigation_control' => $settings['carousel_navigation_control'],
729 'carousel_loop' => $settings['carousel_loop'],
730 'carousel_autoplay' => $settings['carousel_autoplay'],
731 'carousel_autoplay_delay' => $settings['carousel_autoplay_delay'],
732
733 // Query Section
734 'cat' => $settings['cat'],
735 'num' => $settings['num'],
736 'exclude_without_media' => $settings['exclude_without_media'],
737 'exclude_custom_post_formats' => $settings['exclude_custom_post_formats'],
738 'exclude_quote_link' => $settings['exclude_quote_link'],
739 'order_by' => $settings['order_by'],
740 'order' => $settings['order'],
741 'only_posts__in' => $settings['only_posts__in'],
742 'include' => $settings['include'],
743 'exclude' => $settings['exclude'],
744 'offset' => $settings['offset']
745 );
746
747 // get the shortcode base blog page
748 echo auxin_widget_recent_posts_tiles_carousel_callback( $args );
749 }
750
751 }
752