PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wilcity-shortcodes
/
core
<?php use WilokeListingTools\Framework\Helpers\GetSettings; use WILCITY_SC\ParseShortcodeAtts\ParseShortcodeAtts; function wilcity_render_term_masonry_items($atts) { $oParseSC = new ParseShortcodeAtts($atts); $atts = $oParseSC->parse(); $aTerms = get_terms($oParseSC->buildTermQueryArgs()); if (empty($aTerms) || is_wp_error($aTerms)) { return ''; } if ($atts['isApp']) { $aResponse = []; foreach ($aTerms as $oTerm) { $aPostFeaturedImgs = GetSettings::getPostFeaturedImgsByTerm( $oTerm->term_id, $atts['taxonomy'] ); $aResponse[] = [ 'oTerm' => $oTerm, 'aPostFeaturedImg' => $aPostFeaturedImgs, 'oCount' => [ 'number' => $oTerm->count, 'text' => $oTerm->count > 1 ? esc_html__('Listings', 'wilcity-shortcodes') : esc_html__('Listing', 'wilcity-shortcodes') ], 'oIcon' => WilokeHelpers::getTermOriginalIcon($oTerm) ]; } echo '%SC%'.json_encode([ 'oSettings' => $atts, 'oResults' => $aResponse, 'TYPE' => $atts['TYPE'] ]).'%SC%'; return ''; } $wrapper_class = apply_filters('wilcity-el-class', $atts); $wrapper_class = implode(' ', $wrapper_class).' '.$atts['extra_class'].' wil-masonry_module__hEqFd'; ?> <div class="<?php echo esc_attr($wrapper_class); ?>"> <?php if (!empty($atts['heading']) || !empty($atts['desc'])) { wilcity_render_heading([ 'TYPE' => 'HEADING', 'blur_mark' => '', 'blur_mark_color' => '', 'heading' => $atts['heading'], 'heading_color' => $atts['heading_color'], 'desc' => $atts['desc'], 'desc_color' => $atts['desc_color'], 'alignment' => $atts['header_desc_text_align'], 'extra_class' => '' ]); } ?> <?php $termsCount = 11; if (count($aTerms) < 11) { $termsCount = count($aTerms); } ?> <div class="row" data-col-xs-gap="<?php echo esc_attr($atts['col_gap']); ?>" data-count="<?php echo esc_attr($termsCount); ?>"> <?php foreach ($aTerms as $oTerm) { wilcity_render_term_masonry_item($oTerm, $atts); } ?> </div> </div> <?php }
[+]
..
[-] wilcity_render_event_item.php
[edit]
[-] wilcity_render_team_intro_slider.php
[edit]
[-] wilcity_render_modern_term_boxes.php
[edit]
[-] wilcity_listing_slider_item.php
[edit]
[-] wilcity_render_author_slider.php
[edit]
[-] wilcity_render_term_box.php
[edit]
[-] wilcity_render_testimonial_item.php
[edit]
[-] wilcity_render_rectangle_term_boxes.php
[edit]
[-] wilcity_render_rectangle_term_box.php
[edit]
[-] wilcity_render_restaunrant_menu_item.php
[edit]
[-] wilcity_render_hero_search_form.php
[edit]
[-] wilcity_render_grid_post.php
[edit]
[-] wilcity_render_events_grid.php
[edit]
[-] wilcity_render_listings_tabs.php
[edit]
[-] wilcity_render_map.php
[edit]
[-] wilcity_render_modern_term_box.php
[edit]
[-] wilcity_render_contact_us.php
[edit]
[-] wilcity_render_hero.php
[edit]
[-] wilcity_render_restaurant_list_menu.php
[edit]
[-] wilcity_render_terms_slider.php
[edit]
[-] wilcity_terms_box.php
[edit]
[-] wilcity_render_image_box.php
[edit]
[-] wilcity_render_intro_box.php
[edit]
[-] wilcity_render_wiloke_wave.php
[edit]
[-] wilcity_render_restaurant_listing.php
[edit]
[-] wilcity_render_grid.php
[edit]
[-] wilcity_post_slider_item.php
[edit]
[-] wilcity_render_term_masonry_item.php
[edit]
[-] wilcity_render_slider.php
[edit]
[-] wilcity_render_team_intro_slider_item.php
[edit]
[-] wilcity_widget_list_style.php
[edit]
[-] wilcity_render_term_masonry_items.php
[edit]
[-] wilcity_render_grid_item.php
[edit]
[-] wilcity_render_box_icon.php
[edit]
[-] wilcity_render_new_grid.php
[edit]
[-] wilcity_render_heading_ribbon.php
[edit]
[-] wilcity_render_testimonials.php
[edit]
[-] wilcity_render_post_types.php
[edit]
[-] wilcity_event_slider_item.php
[edit]
[-] wilcity_render_heading.php
[edit]
[-] wilcity_render_term_boxes.php
[edit]
[-] wilcity_render_restaurant_listings.php
[edit]
[-] wilcity_render_full_width_list_item.php
[edit]