PluginProbe ʕ •ᴥ•ʔ
Shortcodes and extra features for Phlox theme / 2.5.8
Shortcodes and extra features for Phlox theme v2.5.8
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-land-style.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-land-style.php
631 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_land_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_land_style'] = array(
29 'name' => __('Land Style Recent Posts', 'auxin-elements' ),
30 'auxin_output_callback' => 'auxin_widget_recent_posts_land_style_callback',
31 'base' => 'aux_recent_posts_land_style',
32 'description' => __('It adds recent posts in land style.', 'auxin-elements' ),
33 'class' => 'aux-widget-recent-posts-land',
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-land',
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 'std' => '',
61 'value' => '',
62 'holder' => 'textfield',
63 'class' => 'title',
64 'admin_label' => false,
65 'dependency' => '',
66 'weight' => '',
67 'group' => '',
68 'edit_field_class' => ''
69 ),
70 array(
71 'heading' => __('Categories', 'auxin-elements'),
72 'description' => __('Specifies a category that you want to show posts from it.', 'auxin-elements' ),
73 'param_name' => 'cat',
74 'type' => 'aux_select2_multiple',
75 'def_value' => ' ',
76 'holder' => '',
77 'class' => 'cat',
78 'value' => $categories_list,
79 'admin_label' => false,
80 'dependency' => '',
81 'weight' => '',
82 'group' => __( 'Query', 'auxin-elements' ),
83 'edit_field_class' => ''
84 ),
85 array(
86 'heading' => __('Number of posts to show', 'auxin-elements'),
87 'description' => '',
88 'param_name' => 'num',
89 'type' => 'textfield',
90 'value' => '8',
91 'holder' => '',
92 'class' => 'num',
93 'admin_label' => false,
94 'dependency' => '',
95 'weight' => '',
96 'group' => __( 'Query', 'auxin-elements' ),
97 'edit_field_class' => ''
98 ),
99 array(
100 'heading' => __('Image aspect ratio', 'auxin-elements'),
101 'description' => '',
102 'param_name' => 'image_aspect_ratio',
103 'type' => 'dropdown',
104 'def_value' => '0.75',
105 'holder' => '',
106 'class' => 'order',
107 'value' =>array (
108 '0.75' => __('Horizontal 4:3' , 'auxin-elements'),
109 '0.56' => __('Horizontal 16:9', 'auxin-elements'),
110 '1.00' => __('Square 1:1' , 'auxin-elements'),
111 '1.33' => __('Vertical 3:4' , 'auxin-elements')
112 ),
113 'admin_label' => false,
114 'dependency' => '',
115 'weight' => '',
116 'group' => '',
117 'edit_field_class' => ''
118 ),
119 array(
120 'heading' => __('Exclude posts without media','auxin-elements' ),
121 'description' => '',
122 'param_name' => 'exclude_without_media',
123 'type' => 'aux_switch',
124 'value' => '0',
125 'class' => '',
126 'admin_label' => false,
127 'dependency' => '',
128 'weight' => '',
129 'group' => __( 'Query', 'auxin-elements' ),
130 'edit_field_class' => ''
131 ),
132 array(
133 'heading' => __('Exclude custom post formats','auxin-elements' ),
134 'description' => '',
135 'param_name' => 'exclude_custom_post_formats',
136 'type' => 'aux_switch',
137 'value' => '0',
138 'class' => '',
139 'admin_label' => false,
140 'dependency' => '',
141 'weight' => '',
142 'group' => __( 'Query', 'auxin-elements' ),
143 'edit_field_class' => ''
144 ),
145 array(
146 'heading' => __('Exclude quote and link post formats','auxin-elements' ),
147 'description' => '',
148 'param_name' => 'exclude_quote_link',
149 'type' => 'aux_switch',
150 'value' => '0',
151 'class' => '',
152 'admin_label' => false,
153 'dependency' => array(
154 'element' => 'exclude_custom_post_formats',
155 'value' => array('0', 'false')
156 ),
157 'weight' => '',
158 'group' => __( 'Query', 'auxin-elements' ),
159 'edit_field_class' => ''
160 ),
161 array(
162 'heading' => __('Order by', 'auxin-elements'),
163 'description' => '',
164 'param_name' => 'order_by',
165 'type' => 'dropdown',
166 'def_value' => 'date',
167 'holder' => '',
168 'class' => 'order_by',
169 'value' => array (
170 'date' => __('Date', 'auxin-elements'),
171 'menu_order date' => __('Menu Order', 'auxin-elements'),
172 'title' => __('Title', 'auxin-elements'),
173 'ID' => __('ID', 'auxin-elements'),
174 'rand' => __('Random', 'auxin-elements'),
175 'comment_count' => __('Comments', 'auxin-elements'),
176 'modified' => __('Date Modified', 'auxin-elements'),
177 'author' => __('Author', 'auxin-elements'),
178 'post__in' => __('Inserted Post IDs', 'auxin-elements')
179 ),
180 'admin_label' => false,
181 'dependency' => '',
182 'weight' => '',
183 'group' => __( 'Query', 'auxin-elements' ),
184 'edit_field_class' => ''
185 ),
186 array(
187 'heading' => __('Order', 'auxin-elements'),
188 'description' => '',
189 'param_name' => 'order',
190 'type' => 'dropdown',
191 'def_value' => 'DESC',
192 'holder' => '',
193 'class' => 'order',
194 'value' =>array (
195 'DESC' => __('Descending', 'auxin-elements'),
196 'ASC' => __('Ascending', 'auxin-elements'),
197 ),
198 'admin_label' => false,
199 'dependency' => '',
200 'weight' => '',
201 'group' => __( 'Query', 'auxin-elements' ),
202 'edit_field_class' => ''
203 ),
204 array(
205 'heading' => __('Only posts','auxin-elements' ),
206 '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' ),
207 'param_name' => 'only_posts__in',
208 'type' => 'textfield',
209 'value' => '',
210 'holder' => '',
211 'class' => '',
212 'admin_label' => false,
213 'dependency' => '',
214 'weight' => '',
215 'group' => __( 'Query', 'auxin-elements' ),
216 'edit_field_class' => ''
217 ),
218 array(
219 'heading' => __('Include posts','auxin-elements' ),
220 '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' ),
221 'param_name' => 'include',
222 'type' => 'textfield',
223 'value' => '',
224 'holder' => '',
225 'class' => '',
226 'admin_label' => false,
227 'dependency' => '',
228 'weight' => '',
229 'group' => __( 'Query', 'auxin-elements' ),
230 'edit_field_class' => ''
231 ),
232 array(
233 'heading' => __('Exclude posts','auxin-elements' ),
234 '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' ),
235 'param_name' => 'exclude',
236 'type' => 'textfield',
237 'value' => '',
238 'holder' => '',
239 'class' => '',
240 'admin_label' => false,
241 'dependency' => '',
242 'weight' => '',
243 'group' => __( 'Query', 'auxin-elements' ),
244 'edit_field_class' => ''
245 ),
246 array(
247 'heading' => __('Start offset','auxin-elements' ),
248 'description' => __('Number of post to displace or pass over.', 'auxin-elements' ),
249 'param_name' => 'offset',
250 'type' => 'textfield',
251 'value' => '',
252 'holder' => '',
253 'class' => '',
254 'admin_label' => false,
255 'dependency' => '',
256 'weight' => '',
257 'group' => __( 'Query', 'auxin-elements' ),
258 'edit_field_class' => ''
259 ),
260 array(
261 'heading' => __('Display post media (image, video, etc)', 'auxin-elements' ),
262 'param_name' => 'show_media',
263 'type' => 'aux_switch',
264 'def_value' => '',
265 'value' => '1',
266 'holder' => '',
267 'class' => 'show_media',
268 'admin_label' => false,
269 'dependency' => '',
270 'weight' => '',
271 'group' => '',
272 'edit_field_class' => ''
273 ),
274 array(
275 'heading' => __('Display post title','auxin-elements' ),
276 'description' => '',
277 'param_name' => 'display_title',
278 'type' => 'aux_switch',
279 'value' => '1',
280 'class' => 'display_title',
281 'admin_label' => false,
282 'dependency' => '',
283 'weight' => '',
284 'group' => '',
285 'edit_field_class' => ''
286 ),
287 array(
288 'heading' => __('Display post meta','auxin-elements' ),
289 'description' => '',
290 'param_name' => 'show_info',
291 'type' => 'aux_switch',
292 'value' => '1',
293 'class' => '',
294 'admin_label' => false,
295 'weight' => '',
296 'group' => '',
297 'edit_field_class' => ''
298 ),
299 array(
300 'heading' => __('Display like button','auxin-elements' ),
301 'description' => sprintf(__('Enable it to display %s like button%s on gride template blog. Please note WP Ulike plugin needs to be activaited to use this option.', 'auxin-elements'), '<strong>', '</strong>'),
302 'param_name' => 'display_like',
303 'type' => 'aux_switch',
304 'value' => '1',
305 'holder' => '',
306 'class' => 'display_like',
307 'admin_label' => false,
308 'dependency' => '',
309 'weight' => '',
310 'group' => '',
311 'edit_field_class' => ''
312 ),
313 array(
314 'heading' => __('Load More Type','auxin-elements' ),
315 'description' => '',
316 'param_name' => 'loadmore_type',
317 'type' => 'aux_visual_select',
318 'value' => 'scroll',
319 'class' => 'loadmore_type',
320 'admin_label' => false,
321 'dependency' => '',
322 'weight' => '',
323 'group' => '' ,
324 'edit_field_class' => '',
325 'choices' => array(
326 '' => array(
327 'label' => __('None', 'auxin-elements' ),
328 'image' => AUXIN_URL . 'images/visual-select/load-more-none.svg'
329 ),
330 'scroll' => array(
331 'label' => __('Infinite Scroll', 'auxin-elements' ),
332 'image' => AUXIN_URL . 'images/visual-select/load-more-infinite.svg'
333 ),
334 'next' => array(
335 'label' => __('Next Button', 'auxin-elements' ),
336 'image' => AUXIN_URL . 'images/visual-select/load-more-button.svg'
337 ),
338 'next-prev' => array(
339 'label' => __('Next Prev', 'auxin-elements' ),
340 'image' => AUXIN_URL . 'images/visual-select/load-more-next-prev.svg'
341 )
342 )
343 ),
344 array(
345 'heading' => __('Excerpt length','auxin-elements' ),
346 'description' => __('Specify summary content in character.','auxin-elements' ),
347 'param_name' => 'excerpt_len',
348 'type' => 'textfield',
349 'value' => '160',
350 'holder' => '',
351 'class' => 'excerpt_len',
352 'admin_label' => false,
353 // @TODO: bcz of this dependency its value does not save on VC
354 'dependency' => array(
355 'element' => 'show_excerpt',
356 'value' => '1'
357 ),
358 'weight' => '',
359 'group' => '',
360 'edit_field_class' => ''
361 ),
362 array(
363 'heading' => __('Display author or read more', 'auxin-elements'),
364 'description' => __('Specifies whether to show author or read more on each post.', 'auxin-elements'),
365 'param_name' => 'author_or_readmore',
366 'type' => 'dropdown',
367 'def_value' => 'readmore',
368 'holder' => '',
369 'class' => 'author_or_readmore',
370 'value' =>array (
371 'readmore' => __('Read More', 'auxin-elements'),
372 'author' => __('Author Name', 'auxin-elements'),
373 ),
374 'admin_label' => false,
375 'dependency' => '',
376 'weight' => '',
377 'group' => '',
378 'edit_field_class' => ''
379 ),
380 array(
381 'heading' => __('Extra class name','auxin-elements' ),
382 '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' ),
383 'param_name' => 'extra_classes',
384 'type' => 'textfield',
385 'value' => '',
386 'def_value' => '',
387 'holder' => '',
388 'class' => 'extra_classes',
389 'admin_label' => false,
390 'dependency' => '',
391 'weight' => '',
392 'group' => '',
393 'edit_field_class' => ''
394 )
395 )
396 );
397
398 return $master_array;
399 }
400
401 add_filter( 'auxin_master_array_shortcodes', 'auxin_get_recent_posts_land_master_array', 10, 1 );
402
403
404
405
406 /**
407 * Element without loop and column
408 * The front-end output of this element is returned by the following function
409 *
410 * @param array $atts The array containing the parsed values from shortcode, it should be same as defined params above.
411 * @param string $shortcode_content The shorcode content
412 * @return string The output of element markup
413 */
414 function auxin_widget_recent_posts_land_style_callback( $atts, $shortcode_content = null ){
415
416 // Defining default attributes
417 $default_atts = array(
418 'title' => '', // header title
419 'cat' => ' ',
420 'num' => '8',
421 'only_posts__in' => '', // display only these post IDs. array or string comma separated
422 'include' => '', // include these post IDs in result too. array or string comma separated
423 'exclude' => '', // exclude these post IDs from result. array or string comma separated
424 'posts_per_page' => -1,
425 'paged' => '',
426 'offset' => '',
427 'order_by' => 'date',
428 'order' => 'DESC',
429 'size' => '',
430 'exclude_without_media' => 0,
431 'exclude_custom_post_formats' => 0,
432 'exclude_quote_link' => 0,
433 'exclude_post_formats_in' => array(), // the list od post formats to exclude
434 'show_media' => true,
435 'show_excerpt' => true,
436 'show_content' => true,
437 'excerpt_len' => '160',
438 'display_title' => true,
439 'display_like' => true,
440 'display_comments' => true,
441 'display_categories' => true,
442 'show_info' => true,
443 'show_date' => true,
444 'author_or_readmore' => 'readmore',
445 'display_author_footer' => false,
446 'display_author_header' => true,
447 'image_aspect_ratio' => 0.75,
448 'tag' => '',
449 'taxonomy_name' => 'category',
450 'preloadable' => false,
451 'preload_preview' => true,
452 'preload_bgcolor' => '',
453
454 'extra_classes' => '',
455 'extra_column_classes' => '',
456 'custom_el_id' => '',
457
458 'template_part_file' => 'theme-parts/entry/post-column',
459 'extra_template_path' => '',
460
461 'universal_id' => '',
462 'reset_query' => true,
463 'use_wp_query' => false, // true to use the global wp_query, false to use internal custom query
464 'wp_query_args' => array(), // additional wp_query args
465 'loadmore_type' => '', // 'next' (more button), 'scroll', 'next-prev'
466 'loadmore_per_page' => '',
467 'base' => 'aux_recent_posts_land_style',
468 'base_class' => 'aux-widget-recent-posts-land'
469 );
470
471
472 $result = auxin_get_widget_scafold( $atts, $default_atts, $shortcode_content );
473 extract( $result['parsed_atts'] );
474
475 $display_author_footer = auxin_is_true( $display_author_footer );
476 $display_author_header = auxin_is_true( $display_author_header );
477
478 // specify the post formats that should be excluded -------
479 $exclude_post_formats_in = (array) $exclude_post_formats_in;
480
481 if( $exclude_custom_post_formats ){
482 $exclude_post_formats_in = array_merge( $exclude_post_formats_in, array( 'aside', 'gallery', 'image', 'link', 'quote', 'video', 'audio' ) );
483 }
484 if( $exclude_quote_link ){
485 $exclude_post_formats_in[] = 'quote';
486 $exclude_post_formats_in[] = 'link';
487 }
488 $exclude_post_formats_in = array_unique( $exclude_post_formats_in );
489
490 // --------------
491
492
493 ob_start();
494
495 $tax_args = array();
496 if( ! empty( $cat ) && $cat != " " && ( ! is_array( $cat ) || ! in_array( " ", $cat ) ) ) {
497 $tax_args = array(
498 array(
499 'taxonomy' => $taxonomy_name,
500 'field' => 'term_id',
501 'terms' => ! is_array( $cat ) ? explode( ",", $cat ) : $cat
502 )
503 );
504 }
505
506 global $wp_query;
507
508 if( ! $use_wp_query ){
509
510 // create wp_query to get latest items -----------
511 $args = array(
512 'post_type' => 'post',
513 'orderby' => $order_by,
514 'order' => $order,
515 'offset' => $offset,
516 'paged' => $paged,
517 'tax_query' => $tax_args,
518 'post_status' => 'publish',
519 'posts_per_page' => $num,
520 'ignore_sticky_posts' => 1,
521 'include_posts__in' => $include, // include posts in this liat
522 'posts__not_in' => $exclude, // exclude posts in this list
523 'posts__in' => $only_posts__in, // only posts in this list
524
525 'exclude_without_media' => $exclude_without_media,
526 'exclude_post_formats_in' => $exclude_post_formats_in
527 );
528
529 // ---------------------------------------------------------------------
530
531 // add the additional query args if available
532 if( $wp_query_args ){
533 $args = wp_parse_args( $args, $wp_query_args );
534 }
535
536 // pass the args through the auxin query parser
537 $wp_query = new WP_Query( auxin_parse_query_args( $args ) );
538 }
539
540 // widget header ------------------------------
541 echo $result['widget_header'];
542 echo $result['widget_title'];
543
544
545 $phone_break_point = 767;
546 $tablet_break_point = 992;
547
548 $show_comments = true; // shows comments icon
549 $post_counter = 0;
550 $column_class = 'aux-blog-land-style aux-ajax-view ' . $extra_column_classes;
551 $item_class = 'aux-block';
552
553 if( ! empty( $loadmore_type ) ) {
554 $item_class .= ' aux-ajax-item';
555 }
556
557 // automatically calculate the media size if was empty
558 if( empty( $size ) ){
559 $column_media_width = auxin_get_content_column_width( 2, 15, $content_width );
560 $size = array( 'width' => $column_media_width, 'height' => $column_media_width * $image_aspect_ratio );
561 }
562
563 // whether any result was found or not
564 $have_posts = $wp_query->have_posts();
565
566 if( $have_posts ){
567
568 echo ! $skip_wrappers ? sprintf( '<div data-element-id="%s" class="%s">', esc_attr( $universal_id ), esc_attr( $column_class ) ) : '';
569
570 while ( $wp_query->have_posts() ) {
571
572 $wp_query->the_post();
573 $post = $wp_query->post;
574 $post_vars = auxin_get_post_format_media(
575 $post,
576 array(
577 'request_from' => 'archive',
578 'media_width' => $phone_break_point,
579 'media_size' => $size,
580 'upscale_image' => true,
581 'preloadable' => $preloadable,
582 'preload_preview' => $preload_preview,
583 'preload_bgcolor' => $preload_bgcolor,
584 'image_sizes' => 'auto',
585 'srcset_sizes' => 'auto'
586 )
587 );
588
589 extract( $post_vars );
590
591 $the_format = get_post_format( $post );
592
593 $post_classes = 'aux-column-post-entry land-post-style';
594 $post_classes .= $has_attach ? '': ' aux-no-thumb';
595
596 printf( '<div class="%s post-%s">', esc_attr( $item_class ), esc_attr( $post->ID ) );
597 include auxin_get_template_file( $template_part_file, '', $extra_template_path );
598 echo '</div>';
599 }
600
601 if( ! $skip_wrappers ) {
602 // End tag for aux-ajax-view wrapper
603 echo '</div>';
604 // Execute load more functionality
605 if( $wp_query->found_posts > $loadmore_per_page ) {
606 echo auxin_get_load_more_controller( $loadmore_type );
607 }
608
609 } else {
610 // Get post counter in the query
611 echo '<span class="aux-post-count hidden">'.$wp_query->post_count.'</span>';
612 }
613
614 }
615
616 if( $reset_query ){
617 wp_reset_query();
618 }
619
620 // return false if no result found
621 if( ! $have_posts ){
622 ob_get_clean();
623 return false;
624 }
625
626 // widget footer ------------------------------
627 echo $result['widget_footer'];
628
629 return ob_get_clean();
630 }
631