PluginProbe ʕ •ᴥ•ʔ
Shortcodes and extra features for Phlox theme / 2.5.13
Shortcodes and extra features for Phlox theme v2.5.13
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 / elements / recent-posts-tiles.php
auxin-elements / includes / elements Last commit date
about-widget.php 6 years ago accordion-widget.php 6 years ago accordion.php 6 years ago attachment-url.php 6 years ago audio.php 6 years ago before-after.php 6 years ago button.php 6 years ago code.php 6 years ago contact-box.php 6 years ago contact-form.php 6 years ago custom-list.php 6 years ago divider.php 6 years ago dropcap.php 6 years ago facebook.php 6 years ago flickr.php 6 years ago gallery.php 6 years ago general-element-fields.php 6 years ago gmap.php 6 years ago highlight.php 6 years ago image.php 6 years ago instagram-feed.php 6 years ago latest-items.php 8 years ago latest-posts-slider.php 6 years ago popular-posts-widget.php 6 years ago quote.php 6 years ago recent-posts-grid-carousel.php 6 years ago recent-posts-land-style.php 6 years ago recent-posts-masonry.php 6 years ago recent-posts-tiles-carousel.php 6 years ago recent-posts-tiles.php 6 years ago recent-posts-timeline.php 6 years ago recent-posts-widget.php 6 years ago recent-products.php 6 years ago related-posts.php 8 years ago sample-element.php 6 years ago search.php 6 years ago socials-list.php 6 years ago staff.php 6 years ago tab-widget.php 6 years ago tabs.php 6 years ago testimonial.php 6 years ago text.php 6 years ago touch-slider.php 6 years ago video.php 6 years ago
recent-posts-tiles.php
635 lines
1 <?php
2 /**
3 * Code highlighter element
4 *
5 *
6 * @package Auxin
7 * @license LICENSE.txt
8 * @author averta
9 * @link http://phlox.pro/
10 * @copyright (c) 2010-2020 averta
11 */
12
13 function auxin_get_recent_posts_tiles_master_array( $master_array ) {
14
15 $categories = get_terms( 'category', 'orderby=count&hide_empty=0' );
16 $categories_list = array( ' ' => __('All Categories', 'auxin-elements' ) ) ;
17 foreach ( $categories as $key => $value ) {
18 $categories_list[$value->term_id] = $value->name;
19 }
20
21 // $tags = get_terms( 'post_tag', 'orderby=count&hide_empty=0' );
22 // $tags_list;
23 // foreach ($tags as $key => $value) {
24 // $tags_list["$value->term_id"] = $value->name;
25 // }
26
27
28 $master_array['aux_recent_posts_tiles'] = array(
29 'name' => __('Tiles Recent Posts', 'auxin-elements' ),
30 'auxin_output_callback' => 'auxin_widget_recent_posts_tiles_callback',
31 'base' => 'aux_recent_posts_tiles',
32 'description' => __('It adds recent posts in tiles style.', 'auxin-elements' ),
33 'class' => 'aux-widget-recent-posts-tiles',
34 'show_settings_on_create' => true,
35 'weight' => 1,
36 'is_widget' => false,
37 'is_shortcode' => true,
38 'is_so' => true,
39 'is_vc' => true,
40 'category' => THEME_NAME,
41 'group' => '',
42 'admin_enqueue_js' => '',
43 'admin_enqueue_css' => '',
44 'front_enqueue_js' => '',
45 'front_enqueue_css' => '',
46 'icon' => 'aux-element aux-pb-icons-tile',
47 'custom_markup' => '',
48 'js_view' => '',
49 'html_template' => '',
50 'deprecated' => '',
51 'content_element' => '',
52 'as_parent' => '',
53 'as_child' => '',
54 'params' => array(
55 array(
56 'heading' => __('Title','auxin-elements' ),
57 'description' => __('Recent post title, leave it empty if you don`t need title.', 'auxin-elements'),
58 'param_name' => 'title',
59 'type' => 'textfield',
60 'value' => '',
61 'holder' => 'textfield',
62 'class' => 'title',
63 'admin_label' => false,
64 'dependency' => '',
65 'weight' => '',
66 'group' => '',
67 'edit_field_class' => ''
68 ),
69 array(
70 'heading' => __('Categories', 'auxin-elements'),
71 'description' => __('Specifies a category that you want to show posts from it.', 'auxin-elements' ),
72 'param_name' => 'cat',
73 'type' => 'aux_select2_multiple',
74 'def_value' => ' ',
75 'holder' => '',
76 'class' => 'cat',
77 'value' => $categories_list,
78 'admin_label' => false,
79 'dependency' => '',
80 'weight' => '',
81 'group' => __( 'Query', 'auxin-elements' ),
82 'edit_field_class' => ''
83 ),
84 array(
85 'heading' => __('Number of posts to show', 'auxin-elements'),
86 'description' => '',
87 'param_name' => 'num',
88 'type' => 'textfield',
89 'value' => '8',
90 'holder' => '',
91 'class' => 'num',
92 'admin_label' => false,
93 'dependency' => '',
94 'weight' => '',
95 'group' => __( 'Query', 'auxin-elements' ),
96 'edit_field_class' => ''
97 ),
98 array(
99 'heading' => __('Exclude posts without media','auxin-elements' ),
100 'description' => '',
101 'param_name' => 'exclude_without_media',
102 'type' => 'aux_switch',
103 'value' => '1',
104 'class' => '',
105 'admin_label' => false,
106 'dependency' => '',
107 'weight' => '',
108 'group' => __( 'Query', 'auxin-elements' ),
109 'edit_field_class' => ''
110 ),
111 array(
112 'heading' => __('Exclude custom post formats','auxin-elements' ),
113 'description' => '',
114 'param_name' => 'exclude_custom_post_formats',
115 'type' => 'aux_switch',
116 'value' => '1',
117 'class' => '',
118 'admin_label' => false,
119 'dependency' => '',
120 'weight' => '',
121 'group' => __( 'Query', 'auxin-elements' ),
122 'edit_field_class' => ''
123 ),
124 array(
125 'heading' => __('Exclude quote and link post formats','auxin-elements' ),
126 'description' => '',
127 'param_name' => 'exclude_quote_link',
128 'type' => 'aux_switch',
129 'value' => '1',
130 'class' => '',
131 'admin_label' => false,
132 'dependency' => array(
133 'element' => 'exclude_custom_post_formats',
134 'value' => '0'
135 ),
136 'weight' => '',
137 'group' => __( 'Query', 'auxin-elements' ),
138 'edit_field_class' => ''
139 ),
140 array(
141 'heading' => __('Load More Type','auxin-elements' ),
142 'description' => '',
143 'param_name' => 'loadmore_type',
144 'type' => 'aux_visual_select',
145 'value' => 'scroll',
146 'class' => 'loadmore_type',
147 'admin_label' => false,
148 'dependency' => '',
149 'weight' => '',
150 'group' => '' ,
151 'edit_field_class' => '',
152 'choices' => array(
153 '' => array(
154 'label' => __('None', 'auxin-elements' ),
155 'image' => AUXIN_URL . 'images/visual-select/load-more-none.svg'
156 ),
157 'scroll' => array(
158 'label' => __('Infinite Scroll', 'auxin-elements' ),
159 'image' => AUXIN_URL . 'images/visual-select/load-more-infinite.svg'
160 ),
161 'next' => array(
162 'label' => __('Next Button', 'auxin-elements' ),
163 'image' => AUXIN_URL . 'images/visual-select/load-more-button.svg'
164 ),
165 'next-prev' => array(
166 'label' => __('Next Prev', 'auxin-elements' ),
167 'image' => AUXIN_URL . 'images/visual-select/load-more-next-prev.svg'
168 )
169 )
170 ),
171 array(
172 'heading' => __('Order by', 'auxin-elements'),
173 'description' => '',
174 'param_name' => 'order_by',
175 'type' => 'dropdown',
176 'def_value' => 'date',
177 'holder' => '',
178 'class' => 'order_by',
179 'value' => array (
180 'date' => __('Date', 'auxin-elements'),
181 'menu_order date' => __('Menu Order', 'auxin-elements'),
182 'title' => __('Title', 'auxin-elements'),
183 'ID' => __('ID', 'auxin-elements'),
184 'rand' => __('Random', 'auxin-elements'),
185 'comment_count' => __('Comments', 'auxin-elements'),
186 'modified' => __('Date Modified', 'auxin-elements'),
187 'author' => __('Author', 'auxin-elements'),
188 'post__in' => __('Inserted Post IDs', 'auxin-elements')
189 ),
190 'admin_label' => false,
191 'dependency' => '',
192 'weight' => '',
193 'group' => __( 'Query', 'auxin-elements' ),
194 'edit_field_class' => ''
195 ),
196 array(
197 'heading' => __('Order', 'auxin-elements'),
198 'description' => '',
199 'param_name' => 'order',
200 'type' => 'dropdown',
201 'def_value' => 'DESC',
202 'holder' => '',
203 'class' => 'order',
204 'value' =>array (
205 'DESC' => __('Descending', 'auxin-elements'),
206 'ASC' => __('Ascending', 'auxin-elements'),
207 ),
208 'admin_label' => false,
209 'dependency' => '',
210 'weight' => '',
211 'group' => __( 'Query', 'auxin-elements' ),
212 'edit_field_class' => ''
213 ),
214 array(
215 'heading' => __('Only posts','auxin-elements' ),
216 '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' ),
217 'param_name' => 'only_posts__in',
218 'type' => 'textfield',
219 'value' => '',
220 'holder' => '',
221 'class' => '',
222 'admin_label' => false,
223 'dependency' => '',
224 'weight' => '',
225 'group' => __( 'Query', 'auxin-elements' ),
226 'edit_field_class' => ''
227 ),
228 array(
229 'heading' => __('Include posts','auxin-elements' ),
230 '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' ),
231 'param_name' => 'include',
232 'type' => 'textfield',
233 'value' => '',
234 'holder' => '',
235 'class' => '',
236 'admin_label' => false,
237 'dependency' => '',
238 'weight' => '',
239 'group' => __( 'Query', 'auxin-elements' ),
240 'edit_field_class' => ''
241 ),
242 array(
243 'heading' => __('Exclude posts','auxin-elements' ),
244 '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' ),
245 'param_name' => 'exclude',
246 'type' => 'textfield',
247 'value' => '',
248 'holder' => '',
249 'class' => '',
250 'admin_label' => false,
251 'dependency' => '',
252 'weight' => '',
253 'group' => __( 'Query', 'auxin-elements' ),
254 'edit_field_class' => ''
255 ),
256 array(
257 'heading' => __('Order by', 'auxin-elements'),
258 'description' => '',
259 'param_name' => 'order_by',
260 'type' => 'dropdown',
261 'def_value' => 'date',
262 'holder' => '',
263 'class' => 'order_by',
264 'value' => array (
265 'date' => __('Date', 'auxin-elements'),
266 'menu_order date' => __('Menu Order', 'auxin-elements'),
267 'title' => __('Title', 'auxin-elements'),
268 'ID' => __('ID', 'auxin-elements'),
269 'rand' => __('Random', 'auxin-elements'),
270 'comment_count' => __('Comments', 'auxin-elements'),
271 'modified' => __('Date Modified', 'auxin-elements'),
272 'author' => __('Author', 'auxin-elements'),
273 'post__in' => __('Inserted Post IDs', 'auxin-elements')
274 ),
275 'admin_label' => false,
276 'dependency' => '',
277 'weight' => '',
278 'group' => __( 'Query', 'auxin-elements' ),
279 'edit_field_class' => ''
280 ),
281 array(
282 'heading' => __('Order', 'auxin-elements'),
283 'description' => '',
284 'param_name' => 'order',
285 'type' => 'dropdown',
286 'def_value' => 'DESC',
287 'holder' => '',
288 'class' => 'order',
289 'value' =>array (
290 'DESC' => __('Descending', 'auxin-elements'),
291 'ASC' => __('Ascending', 'auxin-elements'),
292 ),
293 'admin_label' => false,
294 'dependency' => '',
295 'weight' => '',
296 'group' => __( 'Query', 'auxin-elements' ),
297 'edit_field_class' => ''
298 ),
299 array(
300 'heading' => __('Start offset','auxin-elements' ),
301 'description' => __('Number of post to displace or pass over.', 'auxin-elements' ),
302 'param_name' => 'offset',
303 'type' => 'textfield',
304 'value' => '',
305 'holder' => '',
306 'class' => '',
307 'admin_label' => false,
308 'dependency' => '',
309 'weight' => '',
310 'group' => __( 'Query', 'auxin-elements' ),
311 'edit_field_class' => ''
312 ),
313 array(
314 'heading' => __( 'Post Tile styles','auxin-elements' ),
315 'description' => '',
316 'param_name' => 'tile_style_pattern',
317 'type' => 'aux_visual_select',
318 'def_value' => 'default',
319 'holder' => '',
320 'class' => 'tile_style_pattern',
321 'admin_label' => false,
322 'dependency' => '',
323 'weight' => '',
324 'group' => __( 'Style', 'auxin-elements' ),
325 'edit_field_class' => '',
326 'choices' => array(
327 'default' => array(
328 'label' => __( 'Default', 'auxin-elements' ),
329 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-5.svg'
330 ),
331 'pattern-1' => array(
332 'label' => __( 'Pattern 1', 'auxin-elements' ),
333 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-3.svg'
334 ),
335 'pattern-2' => array(
336 'label' => __( 'Pattern 2', 'auxin-elements' ),
337 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-6.svg'
338 ),
339 'pattern-3' => array(
340 'label' => __( 'Pattern 3', 'auxin-elements' ),
341 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-7.svg'
342 ),
343 'pattern-4' => array(
344 'label' => __( 'Pattern 4', 'auxin-elements' ),
345 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-8.svg'
346 ),
347 'pattern-5' => array(
348 'label' => __( 'Pattern 5', 'auxin-elements' ),
349 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-4.svg'
350 ),
351 'pattern-6' => array(
352 'label' => __('Pattern 6', 'auxin-elements' ),
353 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-1.svg'
354 ),
355 'pattern-7' => array(
356 'label' => __('Pattern 7', 'auxin-elements' ),
357 'image' => AUXELS_ADMIN_URL . '/assets/images/visual-select/tile-2.svg'
358 ),
359 )
360 ),
361 array(
362 'heading' => __('Post tile style','auxin-elements' ),
363 'description' => '',
364 'param_name' => 'tile_style',
365 'type' => 'aux_visual_select',
366 'def_value' => '',
367 'holder' => '',
368 'class' => 'tile_style',
369 'admin_label' => false,
370 'dependency' => '',
371 'weight' => '',
372 'group' => __( 'Style', 'auxin-elements' ),
373 'edit_field_class' => '',
374 'choices' => array(
375 '' => array(
376 'label' => __('Standard', 'auxin-elements' ),
377 'image' => AUXIN_URL . 'images/visual-select/button-normal.svg'
378 ),
379 'aux-overlay' => array(
380 'label' => __('Dark', 'auxin-elements' ),
381 'image' => AUXIN_URL . 'images/visual-select/button-curved.svg'
382 )
383 )
384 ),
385 array(
386 'heading' => __('Insert post title','auxin-elements' ),
387 'description' => '',
388 'param_name' => 'display_title',
389 'type' => 'aux_switch',
390 'value' => '1',
391 'class' => 'display_title',
392 'admin_label' => false,
393 'dependency' => '',
394 'weight' => '',
395 'group' => '' ,
396 'edit_field_class' => ''
397 ),
398 array(
399 'heading' => __('Insert post meta','auxin-elements' ),
400 'description' => '',
401 'param_name' => 'show_info',
402 'type' => 'aux_switch',
403 'value' => '1',
404 'class' => '',
405 'admin_label' => false,
406 'weight' => '',
407 'group' => '' ,
408 'edit_field_class' => ''
409 ),
410 array(
411 'heading' => __('Extra class name','auxin-elements' ),
412 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-elements' ),
413 'param_name' => 'extra_classes',
414 'type' => 'textfield',
415 'value' => '',
416 'holder' => '',
417 'class' => 'extra_classes',
418 'admin_label' => false,
419 'dependency' => '',
420 'weight' => '',
421 'group' => '',
422 'edit_field_class' => ''
423 )
424 )
425 );
426
427 return $master_array;
428 }
429
430 add_filter( 'auxin_master_array_shortcodes', 'auxin_get_recent_posts_tiles_master_array', 10, 1 );
431
432
433 /**
434 * Element without loop and column
435 * The front-end output of this element is returned by the following function
436 *
437 * @param array $atts The array containing the parsed values from shortcode, it should be same as defined params above.
438 * @param string $shortcode_content The shorcode content
439 * @return string The output of element markup
440 */
441 function auxin_widget_recent_posts_tiles_callback( $atts, $shortcode_content = null ){
442
443 global $aux_content_width;
444
445 // Defining default attributes
446 $default_atts = array(
447 'title' => '', // header title
448 'cat' => ' ',
449 'num' => '8', // max generated entry
450 'only_posts__in' => '', // display only these post IDs. array or string comma separated
451 'include' => '', // include these post IDs in result too. array or string comma separated
452 'exclude' => '', // exclude these post IDs from result. array or string comma separated
453 'posts_per_page' => -1,
454 'offset' => '',
455 'paged' => '',
456 'order_by' => 'date',
457 'order' => 'DESC',
458 'excerpt_len' => '160',
459 'exclude_without_media' => true,
460 'exclude_custom_post_formats' => true,
461 'exclude_quote_link' => true,
462 'exclude_post_formats_in' => array(), // the list od post formats to exclude
463 'tile_style' => '',
464 'display_title' => true,
465 'show_info' => true,
466 'show_date' => true,
467 'display_categories' => true,
468 'tile_style_pattern' => 'default',
469 'extra_classes' => '',
470 'extra_column_classes' => '',
471 'custom_el_id' => '',
472 'taxonomy_name' => 'category',
473
474 'template_part_file' => 'theme-parts/entry/post-tile',
475 'extra_template_path' => '',
476
477 'universal_id' => '',
478 'reset_query' => true,
479 'use_wp_query' => false, // true to use the global wp_query, false to use internal custom query
480 'wp_query_args' => array(), // additional wp_query args
481 'loadmore_type' => '', // 'next' (more button), 'scroll', 'next-prev'
482 'loadmore_per_page' => '',
483 'base' => 'aux_recent_posts_tiles',
484 'base_class' => 'aux-widget-recent-posts-tiles'
485 );
486
487 $result = auxin_get_widget_scafold( $atts, $default_atts, $shortcode_content );
488 extract( $result['parsed_atts'] );
489
490 // specify the post formats that should be excluded -------
491 $exclude_post_formats_in = (array) $exclude_post_formats_in;
492
493 if( $exclude_custom_post_formats ){
494 $exclude_post_formats_in = array_merge( $exclude_post_formats_in, array( 'aside', 'gallery', 'image', 'link', 'quote', 'video', 'audio' ) );
495 }
496 if( $exclude_quote_link ){
497 $exclude_post_formats_in[] = 'quote';
498 $exclude_post_formats_in[] = 'link';
499 }
500 $exclude_post_formats_in = array_unique( $exclude_post_formats_in );
501
502 // --------------
503
504 ob_start();
505
506 $tax_args = array();
507 if( ! empty( $cat ) && $cat != " " && ( ! is_array( $cat ) || ! in_array( " ", $cat ) ) ) {
508 $tax_args = array(
509 array(
510 'taxonomy' => $taxonomy_name,
511 'field' => 'term_id',
512 'terms' => ! is_array( $cat ) ? explode( ",", $cat ) : $cat
513 )
514 );
515 }
516
517 global $wp_query;
518
519 if( ! $use_wp_query ){
520
521 // create wp_query to get latest items -----------
522 $args = array(
523 'post_type' => 'post',
524 'orderby' => $order_by,
525 'order' => $order,
526 'offset' => $offset,
527 'paged' => $paged,
528 'tax_query' => $tax_args,
529 'post_status' => 'publish',
530 'posts_per_page' => $num,
531 'ignore_sticky_posts' => 1,
532 'include_posts__in' => $include, // include posts in this liat
533 'posts__not_in' => $exclude, // exclude posts in this list
534 'posts__in' => $only_posts__in, // only posts in this list
535
536 'exclude_without_media' => $exclude_without_media,
537 'exclude_post_formats_in' => $exclude_post_formats_in
538 );
539
540 // ---------------------------------------------------------------------
541
542 // add the additional query args if available
543 if( $wp_query_args ){
544 $args = wp_parse_args( $args, $wp_query_args );
545 }
546
547 // pass the args through the auxin query parser
548 $wp_query = new WP_Query( auxin_parse_query_args( $args ) );
549 }
550
551 // widget header ------------------------------
552 echo $result['widget_header'];
553 echo $result['widget_title'];
554
555 $phone_break_point = 767;
556 $tablet_break_point = 992;
557
558 $show_comments = true; // shows comments icon
559 $post_counter = 0;
560 $item_class = 'aux-post-tile aux-image-box';
561
562 if( ! empty( $loadmore_type ) ) {
563 $item_class .= ' aux-ajax-item';
564 }
565
566 $container_class = 'aux-tiles-layout aux-ajax-view ' . $tile_style;
567
568 $have_posts = $wp_query->have_posts();
569
570 if( $have_posts ){
571
572 echo ! $skip_wrappers ? sprintf( '<div data-lazyload="true" data-element-id="%s" class="%s">', esc_attr( $universal_id ), esc_attr( $container_class ) ) : '';
573
574 while ( $wp_query->have_posts() ) {
575
576 $wp_query->the_post();
577 $post = $wp_query->post;
578
579 $item_pattern_info = auxin_get_tile_pattern( $tile_style_pattern , $post_counter, $aux_content_width );
580 $post_counter++;
581
582 $post_vars = auxin_get_post_format_media(
583 $post,
584 array(
585 'request_from' => 'archive',
586 'media_width' => $phone_break_point,
587 'media_size' => $item_pattern_info['size'],
588 'upscale_image' => true,
589 'image_from_content' => ! $exclude_without_media,
590 'ignore_formats' => array( '*' ),
591 'preloadable' => false,
592 'image_sizes' => 'auto',
593 'srcset_sizes' => 'auto'
594 )
595 );
596
597 extract( $post_vars );
598
599 $post_classes = $item_class .' post '. $item_pattern_info['classname'];
600
601 $the_format = get_post_format( $post );
602
603 include auxin_get_template_file( $template_part_file, '', $extra_template_path );
604 }
605
606 if( ! $skip_wrappers ) {
607 // End tag for aux-ajax-view wrapper
608 echo '</div>';
609 // Execute load more functionality
610 if( $wp_query->found_posts > $loadmore_per_page ) {
611 echo auxin_get_load_more_controller( $loadmore_type );
612 }
613
614 } else {
615 // Get post counter in the query
616 echo '<span class="aux-post-count hidden">'.$wp_query->post_count.'</span>';
617 }
618 }
619
620 if( $reset_query ){
621 wp_reset_query();
622 }
623
624 // return false if no result found
625 if( ! $have_posts ){
626 ob_get_clean();
627 return false;
628 }
629
630 // widget footer ------------------------------
631 echo $result['widget_footer'];
632
633 return ob_get_clean();
634 }
635